Bridging Fairness and Explainability: Can Input-Based Explanations Promote Fairness in Hate Speech Detection?

Yifan Wang, Mayank Jobanputra, Ji-Ung Lee, Soyoung Oh, Isabel Valera, Vera Demberg

Natural language processing (NLP) models often replicate or amplify social biases present in their training data, leading to unfair treatment of marginalized groups. Because these models operate as "black boxes," it is difficult for developers to determine if a model is making a correct prediction for the right reasons, or if it is inappropriately relying on sensitive features—such as a person's race, gender, or religion—to flag hate speech.

While the research community has long hoped that explainable AI (XAI) could be the "silver bullet" for fairness, previous evidence has been largely qualitative or limited to small-scale studies. This paper presents the first systematic, quantitative study on whether input-based explanations (rationales) can actually improve fairness in hate speech detection.

Methodology: Three Core Research Questions

The authors evaluate two major classes of models—encoder-only (e.g., BERT, RoBERTa) and decoder-only (e.g., Llama 3.2, Qwen 3)—across 16 different explanation methods. These methods range from simple Attention weights to complex gradient-based techniques (like Integrated Gradients) and perturbation methods (like Occlusion).

The study investigates three fundamental Research Questions (RQs):

  1. Bias Detection (RQ1): Can we use token attribution scores (how much a model "weights" specific words) to identify when a prediction is unfair?
  2. Model Selection (RQ2): Can we use these attribution scores to automatically pick the "fairest" model from a pool of candidates?
  3. Bias Mitigation (RQ3): Can we penalize the model during training for looking at sensitive identity terms (e.g., "Muslim," "Black," "Woman") to make it fairer?
Overview of the three research questions: Bias Detection, Model Selection, and Bias Mitigation.

To test these questions, the researchers utilized two primary benchmarks for hate speech and toxicity: the Civil Comments dataset and the Jigsaw dataset. They focused on three specific bias types: race (Black/White), gender (Male/Female), and religion (Christian/Muslim/Jewish), while also testing generalization on a Twitter Sentiment dataset.

Key Insights and Results

The findings reveal a nuanced reality: explanations are excellent for identifying biased individual predictions and serving as a training signal to reduce bias, but they are surprisingly unreliable for selecting the fairest model among a group of candidates.

  • The "Magnitude" Matters More Than "Direction" (RQ1): L2-based and Occlusion-based explanations were the most effective at detecting bias. Unlike "mean-based" methods, these techniques do not care if a word's contribution is positive or negative; they simply measure how much the model relies on that sensitive token. These methods showed high Pearson correlations with "Individual Unfairness" scores, accurately flagging when a model's prediction changes simply because an identity term was swapped.
  • Explanations are Bad "Fairness Judges" (RQ2): Surprisingly, using explanations to rank models performed worse than simply checking the models' performance on a standard validation set. Different debiasing techniques alter a model's internal logic so significantly that "reliance" scores cannot be easily compared across different models.
  • Effective Bias Mitigation (RQ3): Adding an "explanation penalty" during training (Explanation Regularization) significantly reduced bias. For example, using Input x Gradient (IxG) L2 regularization consistently reduced False Negative Rate disparities across various bias types without destroying the model's overall accuracy.
  • Robustness Against "Masking": There is a common fear that debiasing a model merely "hides" the bias from explanations. The authors found that while Attention-based explanations are easily "fooled" by debiasing, Occlusion and L2-based methods remain robust and continue to reveal underlying biases.
  • Outperforming LLM Judges: In a head-to-head comparison, raw input-based explanations were more reliable at flagging biased predictions than asking a high-end LLM (like GPT-OSS-120B) to judge if a prediction was biased.

Limitations and Future Work

The authors acknowledge that the study is focused specifically on hate speech detection; results might differ in other high-stakes domains like medical diagnosis or legal recidivism. Additionally, the study relies on predefined lists of sensitive tokens, whereas real-world bias is often encoded in more subtle, linguistic ways that a simple word-list might miss.

However, preliminary results suggest that combining traditional debiasing (like data augmentation) with explanation-based penalties yields the best results, marking a promising path forward for "hybrid" fairness frameworks.

Summary updated

BibTeX
@inproceedings{wang2026bridging,
  author = {Yifan Wang and Mayank Jobanputra and Ji-Ung Lee and Soyoung Oh and Isabel Valera and Vera Demberg},
  title = {{Bridging Fairness and Explainability: Can Input-Based Explanations Promote Fairness in Hate Speech Detection?}},
  booktitle = {International Conference on Learning Representations},
  year = {2026},
  url = {https://openreview.net/forum?id=fPMu3Afv3s},
}
Figure