Mitigating Demographic Disparities in Explanation-Human Alignment via Rationale Regularization
Organizations: Purdue University Fort Wayne
Abstract
We study explanation fairness in hate speech detection. High classification performance does not always mean that a model produces equally plausible explanations for different demographic groups. Using the HateXplain dataset, we introduce Plausibility-EFG, a metric that measures the largest difference in explanation plausibility across demographic groups by comparing model-generated token attributions with human-annotated rationales. We evaluate BERT, RoBERTa, and ADV-RoBERTa, an adversarially trained model, using Integrated Gradients and SHAP. Our results show that ADV-RoBERTa improves classification performance and alignment between explanations and human rationales while reducing explanation disparities across demographic groups. These improvements are observed with both attribution methods and remain consistent across training, validation, and test splits. We also show that reducing prediction-level bias alone does not eliminate disparities in explanations, suggesting that predictive fairness and explanation fairness are related but distinct objectives. Finally, our fairness-performance analysis shows that stronger adversarial regularization can further reduce Plausibility-EFG, although it may cause a small decrease in macro-F1. Overall, this work presents explanation fairness as an important objective in hate speech moderation and introduces Fair-REF, a framework designed to reduce disparities in model explanations across demographic groups.
Figures & tables
| Model | Accuracy | Macro-F1 | Weighted-F1 | Normal F1 | HateSpeech F1 | Offensive F1 | Accuracy vs BERT | Macro-F1 vs BERT |
|---|---|---|---|---|---|---|---|---|
| BERT | 0.6736 | 0.6719 | 0.6785 | 0.7103 | 0.7519 | 0.5535 | — | — |
| RoBERTa | 0.6924 | 0.6913 | 0.7022 | 0.7430 | 0.7552 | 0.5757 | 0.0188 | 0.0194 |
| ADV-RoBERTa | 0.7627 | 0.7394 | 0.7616 | 0.7520 | 0.8173 | 0.6489 | 0.0891 | 0.0675 |
| Metric | Level | BERT | RoBERTa | ADV-RoBERTa |
|---|---|---|---|---|
| Overall Accuracy | Posts | 0.80 | 0.84 | 0.85 |
| Overall Accuracy | Exploded | 0.79 | 0.82 | 0.83 |
| Overall Macro-F1 | Posts | 0.79 | 0.83 | 0.84 |
| Overall Macro-F1 | Exploded | 0.59 | 0.64 | 0.68 |
| Mean AUPRC | Posts | 0.52 | 0.56 | 0.59 |
| Mean AUPRC | Exploded | 0.53 | 0.57 | 0.60 |
| Metric | IG BERT | IG RoBERTa | IG ADV-RoBERTa | SHAP BERT | SHAP RoBERTa | SHAP ADV-RoBERTa |
|---|---|---|---|---|---|---|
| Plausibility-EFG | 0.08 | 0.06 | 0.03 | 0.07 | 0.05 | 0.02 |
| Cohen’s | 0.26 | 0.20 | 0.11 | 0.24 | 0.17 | 0.08 |
| Kruskal p-value | 0.041 | 0.10 | 0.071 | 0.24 | ||
| Best Group | Women | Women | Women | Arab | Women | Women |
| Worst Group | Refugee | Caucasian | African | Jewish | Caucasian | African |
| Best Group AUPRC | 0.58 | 0.61 | 0.60 | 0.45 | 0.50 | 0.54 |
| Model | IG AUPRC | IG IOU-F1 | SHAP AUPRC | SHAP IOU-F1 | IG EFG | SHAP EFG |
|---|---|---|---|---|---|---|
| BERT | 0.52 | 0.26 | 0.43 | 0.23 | 0.08 | 0.07 |
| RoBERTa | 0.56 | 0.31 | 0.48 | 0.28 | 0.06 | 0.05 |
| ADV-RoBERTa | 0.59 | 0.34 | 0.52 | 0.32 | 0.03 | 0.02 |
| Variant | Accuracy | Macro-F1 | IG AUPRC | IG IOU-F1 | SHAP AUPRC | SHAP IOU-F1 | IG EFG | SHAP EFG | |||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Task-only (RoBERTa) | ✓ | ✗ | ✗ | 0.7480 | 0.7240 | 0.55 | 0.30 | 0.47 | 0.27 | 0.058 | 0.049 |
| Task + Rationale | ✓ | ✓ | ✗ | 0.7560 | 0.7320 | 0.58 | 0.33 | 0.50 | 0.30 | 0.052 | 0.043 |
| Task + Adversarial | ✓ | ✗ | ✓ | 0.7590 | 0.7350 | 0.56 | 0.31 | 0.49 | 0.29 | 0.036 | 0.028 |
| Fair-REF (Task + Rat + Adv) | ✓ | ✓ | ✓ | 0.7627 | 0.7394 | 0.59 | 0.34 | 0.52 | 0.32 | 0.030 | 0.020 |
| Test Accuracy | Test Macro-F1 | IG AUPRC | SHAP AUPRC | Mean EFG | |
|---|---|---|---|---|---|
| 0.1 | 0.7608 | 0.7371 | 0.57 | 0.50 | 0.048 |
| 0.3 | 0.7619 | 0.7383 | 0.58 | 0.51 | 0.037 |
| 0.5 | 0.7627 | 0.7394 | 0.59 | 0.52 | 0.030 |
| 1.0 | 0.7578 | 0.7332 | 0.60 | 0.53 | 0.024 |
Appendix figures & tables12 assets
Supplementary material from the paper’s appendix.
Appendix
| Group | BERT AUPRC | BERT IOU-F1 | RoBERTa AUPRC | RoBERTa IOU-F1 | ADV-RoBERTa AUPRC | ADV-RoBERTa IOU-F1 |
|---|---|---|---|---|---|---|
| Women | 0.58 | 0.28 | 0.61 | 0.34 | 0.63 | 0.37 |
| Arab | 0.54 | 0.29 | 0.60 | 0.33 | 0.62 | 0.36 |
| Homosexual | 0.53 | 0.26 | 0.59 | 0.32 | 0.61 | 0.35 |
| Caucasian | 0.51 | 0.26 | 0.56 | 0.31 | 0.60 | 0.35 |
| Islam | 0.50 | 0.25 | 0.58 | 0.32 | 0.61 | 0.35 |
| Jewish | 0.49 | 0.24 | 0.57 | 0.31 | 0.60 | 0.34 |
| Group | BERT AUPRC | BERT IOU-F1 | RoBERTa AUPRC | RoBERTa IOU-F1 | ADV-RoBERTa AUPRC | ADV-RoBERTa IOU-F1 |
|---|---|---|---|---|---|---|
| Women | 0.44 | 0.24 | 0.50 | 0.30 | 0.55 | 0.36 |
| Arab | 0.45 | 0.25 | 0.51 | 0.30 | 0.55 | 0.36 |
| Homosexual | 0.39 | 0.22 | 0.47 | 0.28 | 0.54 | 0.35 |
| Caucasian | 0.39 | 0.22 | 0.46 | 0.28 | 0.53 | 0.34 |
| Islam | 0.42 | 0.23 | 0.49 | 0.29 | 0.54 | 0.35 |
| Jewish | 0.37 | 0.21 | 0.45 | 0.27 | 0.52 | 0.33 |
| Best Val F1 | Test Accuracy | Test Macro-F1 | IG AUPRC | SHAP AUPRC | IG EFG | SHAP EFG | |
|---|---|---|---|---|---|---|---|
| 0.0 | 0.7788 | 0.7836 | 0.7537 | 0.55 | 0.48 | 0.061 | 0.052 |
| 0.1 | 0.7558 | 0.7847 | 0.7448 | 0.57 | 0.50 | 0.048 | 0.041 |
| 0.3 | 0.7699 | 0.7566 | 0.7252 | 0.58 | 0.51 | 0.037 | 0.031 |
| 0.5 | 0.7733 | 0.7675 | 0.7340 | 0.59 | 0.52 | 0.030 | 0.024 |
| 1.0 | 0.7603 | 0.7683 | 0.7327 | 0.60 | 0.53 | 0.024 | 0.019 |
| Category / Metric | Value |
|---|---|
| Core Dataset | |
| Total Unique Posts (df_posts) | 20,148 |
| Annotation-Level Rows (df_hx) | 60,444 |
| Exploded Annotation Rows (df_hx_exploded) | 53,161 |
| Final Fairness Evaluation Rows (df_exploded) | 27,566 |
| Dataset Splits |
Demographic Bias in Language Models
Demographic bias in language models studies how identity cues shape model outputs, decisions, and representations, and how to detect and reduce resulting disparities.
See all 135 papers