GECOBench: A Gender-Controlled Text Dataset and Benchmark for Quantifying Biases in Explanations
This paper introduces GECOBench, a gender-controlled dataset and evaluation framework that demonstrates how fine-tuning pre-trained models like BERT, particularly by retraining embedding layers, significantly mitigates gender bias in the feature attributions generated by explainable AI methods.
Original paper licensed under CC BY 4.0 (http://creativecommons.org/licenses/by/4.0/). This is an AI-generated explanation of the paper below. It is not written or endorsed by the authors. For technical accuracy, refer to the original paper. Read full disclaimer
Imagine you have a very smart, well-read robot named BERT. BERT has read millions of books, websites, and articles (like Wikipedia) to learn how to speak and understand us. Because it read so much, it also absorbed the hidden prejudices and stereotypes found in those old texts. For example, it might subconsciously think "doctor" goes with "he" and "nurse" goes with "she," even when those words aren't actually the reason for a decision.
Now, imagine you ask BERT to explain why it made a specific decision. It points to certain words and says, "I chose this because of these words!" This is called Explainable AI (XAI). The problem is: Is BERT telling the truth, or is it just pointing to the words that match its old stereotypes?
This paper introduces a new tool called GECOBench to test if these AI explanations are honest, specifically regarding gender.
The "Gender-Flip" Game (GECO Dataset)
To test BERT, the researchers created a special playground called GECO. Think of it as a game of "Mad Libs" but with a strict rule: Only change the pronouns.
They took a sentence like:
"She loves to spend time with her favorite cat."
Then, they created two identical twins of this sentence, changing only the gendered words:
- Male version: "He loves to spend time with his favorite cat."
- Non-binary version: "They love to spend time with their favorite cat."
Everything else—the cat, the loving, the time spent—stays exactly the same.
Why is this a game?
In this game, the only reason the answer changes from "Male" to "Female" is the pronoun. If an AI looks at the sentence and says, "I know this is about a female because of the word 'cat'," it is wrong. The "cat" is a red herring; it's a distraction. The only "truthful" clue is the pronoun.
Because the researchers built the sentences this way, they know the Ground Truth: The AI must point to the pronoun to be correct. If it points to the cat, the explanation is a lie (or at least, biased).
The "Truth Detector" (GECOBench)
The researchers used this dataset to build a testing framework called GECOBench. They fed these sentences to BERT and asked, "Which words made you decide this?"
They then compared BERT's answer against the "Ground Truth" (the pronoun). They used a scoring system called Mass Accuracy.
- Perfect Score: The AI points only at the pronoun.
- Low Score: The AI points at the pronoun and other unrelated words (like "cat" or "kitchen"), or misses the pronoun entirely.
What They Found
The researchers tested BERT in different "training modes" to see how to fix its bad explanations:
- The "Frozen" BERT: They let BERT use its pre-trained brain without changing anything.
- Result: The explanations were messy. BERT kept pointing to stereotypical words (like "kitchen" or "car") instead of just the pronoun. It was biased.
- The "Fine-Tuned" BERT: They retrained specific parts of BERT's brain on their new "Gender-Flip" sentences.
- Result: When they retrained the embedding layer (the part of the brain that understands the basic meaning of words), the explanations got much better. BERT finally learned to ignore the stereotypes and focus only on the pronoun.
The Big Takeaway:
Even if a model gets the right answer (e.g., correctly identifying "He" as male), its explanation might still be lying if it's relying on old biases. The paper shows that you can't just trust an AI's explanation; you have to check if it's pointing at the right clues.
The "Pattern" Baseline
The researchers also compared BERT to a simple, old-school math method called the Pattern Variant. This method doesn't have a "brain" full of biases; it just looks at the math of how words appear.
- Surprise: The simple math method was actually better at finding the "truth" than the complex AI in many cases. This proves that the AI's complexity was getting in the way of honesty.
Summary
- The Problem: AI models often give explanations that look good but are actually based on hidden biases (like gender stereotypes).
- The Solution: A new dataset (GECO) where the only thing that changes is gender, creating a "truth" that the AI must follow.
- The Result: By retraining the AI's understanding of words (embeddings), we can force it to give honest explanations that focus on the actual clues, not the stereotypes.
The paper concludes that this is a first step. It's like teaching a student to stop guessing based on stereotypes and start looking at the actual evidence. While this specific test is about gender, the method can be used to check if AI is being honest about any topic.
Drowning in papers in your field?
Get daily digests of the most novel papers matching your research keywords — with technical summaries, in your language.