GECOBench: A Gender-Controlled Text Dataset and Benchmark for Quantifying Biases in Explanations

Fuente: arXiv
Guardado en:
Detalles Bibliográficos
Autores principales: Wilming, Rick, Dox, Artur, Schulz, Hjalmar, Oliveira, Marta, Clark, Benedict, Haufe, Stefan
Formato: Preprint
Publicado: 2024
Materias:
Acceso en línea:
Etiquetas: Agregar Etiqueta
Sin Etiquetas, Sea el primero en etiquetar este registro!
_version_ 1866911387952873472
author Wilming, Rick
Dox, Artur
Schulz, Hjalmar
Oliveira, Marta
Clark, Benedict
Haufe, Stefan
author_facet Wilming, Rick
Dox, Artur
Schulz, Hjalmar
Oliveira, Marta
Clark, Benedict
Haufe, Stefan
contents Large pre-trained language models have become a crucial backbone for many downstream tasks in natural language processing (NLP), and while they are trained on a plethora of data containing a variety of biases, such as gender biases, it has been shown that they can also inherit such biases in their weights, potentially affecting their prediction behavior. However, it is unclear to what extent these biases also affect feature attributions generated by applying "explainable artificial intelligence" (XAI) techniques, possibly in unfavorable ways. To systematically study this question, we create a gender-controlled text dataset, GECO, in which the alteration of grammatical gender forms induces class-specific words and provides ground truth feature attributions for gender classification tasks. This enables an objective evaluation of the correctness of XAI methods. We apply this dataset to the pre-trained BERT model, which we fine-tune to different degrees, to quantitatively measure how pre-training induces undesirable bias in feature attributions and to what extent fine-tuning can mitigate such explanation bias. To this extent, we provide GECOBench, a rigorous quantitative evaluation framework for benchmarking popular XAI methods. We show a clear dependency between explanation performance and the number of fine-tuned layers, where XAI methods are observed to benefit particularly from fine-tuning or complete retraining of embedding layers.
format Preprint
id arxiv_https___arxiv_org_abs_2406_11547
institution arXiv
publishDate 2024
record_format arxiv
spellingShingle GECOBench: A Gender-Controlled Text Dataset and Benchmark for Quantifying Biases in Explanations
Wilming, Rick
Dox, Artur
Schulz, Hjalmar
Oliveira, Marta
Clark, Benedict
Haufe, Stefan
Machine Learning
Artificial Intelligence
Computation and Language
Computers and Society
Large pre-trained language models have become a crucial backbone for many downstream tasks in natural language processing (NLP), and while they are trained on a plethora of data containing a variety of biases, such as gender biases, it has been shown that they can also inherit such biases in their weights, potentially affecting their prediction behavior. However, it is unclear to what extent these biases also affect feature attributions generated by applying "explainable artificial intelligence" (XAI) techniques, possibly in unfavorable ways. To systematically study this question, we create a gender-controlled text dataset, GECO, in which the alteration of grammatical gender forms induces class-specific words and provides ground truth feature attributions for gender classification tasks. This enables an objective evaluation of the correctness of XAI methods. We apply this dataset to the pre-trained BERT model, which we fine-tune to different degrees, to quantitatively measure how pre-training induces undesirable bias in feature attributions and to what extent fine-tuning can mitigate such explanation bias. To this extent, we provide GECOBench, a rigorous quantitative evaluation framework for benchmarking popular XAI methods. We show a clear dependency between explanation performance and the number of fine-tuned layers, where XAI methods are observed to benefit particularly from fine-tuning or complete retraining of embedding layers.
title GECOBench: A Gender-Controlled Text Dataset and Benchmark for Quantifying Biases in Explanations
topic Machine Learning
Artificial Intelligence
Computation and Language
Computers and Society
url https://arxiv.org/abs/2406.11547