Manuscript Offprint
arXiv:2610.22586Mitigating Demographic Disparities in Explanation-Human Alignment via Rationale Regularization
Abstract
We study explanation fairness in hate speech detection, where strong predictive performance does not guarantee equally plausible explanations across demographic groups. Using the HateXplain corpus, we introduce Plausibility-EFG, a group-level disparity metric that measures the worst-case gap in explanation plausibility via alignment between token attributions and human rationale annotations. We evaluate BERT, RoBERTa, and an adversarially trained variant, ADV-RoBERTa, using Integrated Gradients and SHAP. Results show that ADV-RoBERTa improves both classification performance and rationale alignment while substantially reducing subgroup explanation disparities under both attribution methods. These improvements remain consistent across demographic identities and stable across train, validation, and test splits. We further show that prediction-level debiasing alone does not eliminate explanation inequity, indicating that predictive fairness and explanation fairness are related but distinct objectives. Finally, fairness-performance ablations reveal a controlled tradeoff in which stronger adversarial regularization reduces Plausibility-EFG at the cost of modest macro-F1 degradation. Overall, the paper establishes explanation fairness as a measurable objective in hate speech moderation and presents Fair-REF as an effective mitigation strategy for reducing subgroup disparities in model explanations.
1 Introduction
Hate speech moderation is a high-stakes setting in which transformer classifiers are often evaluated primarily by predictive performance, even though their token-level explanations are used to support reviewer trust and borderline moderation decisions. This makes explanation quality practically consequential, not merely diagnostic. Recent work has already shown that explanation behavior can vary across demographic proxies in hate speech settings, and that such disparities may persist even when classification looks strong (Mathew et al., 2021), (Balagopalan et al., 2022), (Brandl et al., 2024). Consequently, predictive fairness does not imply explanation fairness, and explanation quality should be audited independently of output-level performance.
This paper studies a methodologically underexplored failure mode: explanations can be less plausible for some demographic groups than others. We introduce Plausibility-EFG, a worst-case group disparity metric for explanation–human alignment on HateXplain, where plausibility is measured by AUPRC over attribution scores and human rationales. This follows the faithfulness–plausibility distinction (Jacovi and Goldberg, 2020; DeYoung et al., 2020) and tests the orthogonality hypothesis that prediction-level fairness does not necessarily imply explanation-level fairness (Balagopalan et al., 2022; Brandl et al., 2024). The paper contributes Plausibility-EFG, the first subgroup rationale benchmark for HateXplain, a unified evaluation framework, and Fair-REF, a mitigation pipeline that improves explanation fairness while preserving strong task performance (Sundararajan et al., 2017; Lundberg and Lee, 2017).
HateXplain, where model attributions can be compared against human-annotated evidence spans (DeYoung et al., 2020), (Mathew et al., 2021). Rationale extraction models such as REF further move explanation generation into the training objective by jointly optimizing prediction and sparse token selection (Lei et al., 2016).
A key distinction in explanation evaluation is between faithfulness and plausibility: faithfulness asks whether an explanation reflects the model's decision process, while plausibility asks whether it matches human judgment or annotation. These criteria are not interchangeable and should be evaluated separately; in rationale-based NLP, token overlap with human evidence provides a natural plausibility signal (Jacovi and Goldberg, 2020; DeYoung et al., 2020). Fairness research in NLP has mostly focused on prediction-level disparities and label-level mitigation, but recent work shows that explanation quality can also differ across demographic groups. In particular, explanation fidelity varies across protected subgroups in non-NLP settings, and fairness and explainability do not necessarily co-improve in NLP, suggesting that explanation fairness is a distinct objective (Blodgett et al., 2020; Zhang et al., 2018; Balagopalan et al., 2022; Brandl et al., 2024).
Our work differs from prior explanation-fairness studies in several ways. First, we study plausibility rather than fidelity, asking whether attributions align with human rationales rather than approximate the model's internal logic (Balagopalan et al., 2022). Second, we use HateXplain, an NLP-native benchmark with token-level rationales and demographic target labels, to measure explanation-human alignment fairness directly (Mathew et al., 2021). Third, we go beyond auditing by proposing Fair-REF, a training-time mitigation objective that regularizes group-level rationale quality. This extends prior audits from diagnosis to mitigation and reflects the emerging view that prediction fairness and explanation fairness can be orthogonal (Brandl et al., 2024). Related work on fair explanations in moderation further shows that uneven explanation quality can have disparate impacts on content moderators, motivating our orthogonality hypothesis (Nguyen et al., 2023).
3 Theoretical Justification
Let denote a corpus of posts, class labels, demographic groups, and human rationale masks, where is a token sequence, , , and . The classifier induces logits and predictive distribution . The central hypothesis of this work is that hate-speech modeling should be optimized not only for predictive accuracy, but also for rationale alignment and subgroup-consistent explanation quality, which is well motivated by rationale-based NLP, benchmarked explanation evaluation, and recent work on fairness as decision-rationale alignment (Lei et al., 2016; DeYoung et al., 2020; Mathew et al., 2021).
We therefore define the training objective as a three-term multi-objective program:
with supervised task loss
rationale-alignment loss
and adversarial demographic loss
Here is a shared representation and is the group discriminator (adversary). Under gradient reversal, the effective optimization is
which follows the standard adversarial debiasing formulation of (Zhang et al., 2018) and the rationale-alignment framing of (Li et al., 2023).
For post hoc explanation, let denote a token attribution operator and let be the normalized non-negative attribution vector. In the case of Integrated Gradients, the attribution for token is
with numerical approximation
which follows the axiomatic attribution framework of (Sundararajan et al., 2017). For SHAP, the contribution of token t is defined by the Shapley-value estimator
following (Lundberg and Lee, 2017). Using both methods is theoretically important because gradient-path and coalition-based explainers can preserve model ordering while differing in attribution geometry and scale, a distinction that matters for fairness analysis (Dai et al., 2022; Brandl et al., 2024).
Given attribution vector and rationale mask , plausibility is evaluated by ranking-based and overlap-based criteria:
where and denotes the binarized rationale prediction.
This follows the standard evidence-plausibility setup used in ERASER and HateXplain, where human rationales are treated as evaluative evidence spans rather than absolute causal ground truth (DeYoung et al., 2020; Mathew et al., 2021; Jacovi and Goldberg, 2020).
To quantify subgroup fairness of explanations, let denote the subgroup-specific evaluation set and let . The group-wise mean plausibility is
We define the explanation fairness gap as the worst-case inter-group disparity
This is the central fairness quantity in the paper. It directly operationalizes the claim that explanations should be comparably plausible across demographic groups, and it is conceptually aligned with recent work showing that explanation quality can itself be unevenly distributed across subpopulations (Dai et al., 2022; Balagopalan et al., 2022; Nguyen et al., 2023; Brandl et al., 2024).
We further assess statistical heterogeneity across groups by the Kruskal–Wallis statistic
where is the sum of ranks of subgroup and , and practical disparity by Cohen’s effect size between the best and worst groups,
where and denote the best- and worst-performing demographic groups, respectively. The combination of EFG, significance testing, and effect size separates worst-case gap magnitude from rank-level distributional differences, which is important because subgroup imbalance can distort simple point estimates (Dai et al., 2022; Balkir et al., 2022).
The main theoretical claim of this work is that prediction fairness and explanation fairness are only partially aligned. In gradient form, this can be expressed as the fact that task gradients and fairness-oriented gradients need not be parallel or positively proportional,
for any fixed ,
so that improving classification risk or even output-level fairness does not guarantee improved explanation equity. This observation is consistent with recent analyses of the interplay between fairness and explainability in NLP and with explanation-quality disparity studies showing that post hoc explanations may remain biased even for strong models (Dai et al., 2022; Balagopalan et al., 2022; Balkir et al., 2022; Brandl et al., 2024).
Finally, we interpret Fair-REF as a conceptually constrained multi-objective program:
Because EFG is non-differentiable and attribution-dependent, we do not optimize it directly, but instead introduce as a representation-level surrogate that suppresses linearly decodable demographic information with the empirical aim of reducing attribution-level disparities. The implemented objective can be written as
This framing makes the fairness–utility tradeoff explicit and explains why the -sweep induces a Pareto frontier rather than a monotone improvement in every metric: increasing adversarial pressure generally reduces EFG but can moderately degrade Macro-F1, as observed empirically in our fairness ablations. The analytical properties of EFG, the variance behavior of subgroup estimators.
Core Analytical Statements
Proposition 1 (Basic properties of EFG). For any set of group means , EFG , is symmetric in the group indices, and equals zero if and only if for all . Proof in Appendix C.1.
Proposition 2 (Subgroup-scarcity variance effect). If has finite variance within each group , then ; hence low-support groups induce higher uncertainty in , EFG, and associated effect-size estimates. Proof in Appendix C.2.
Observation 1 (Partial orthogonality; empirical). Reducing or increasing predictive performance does not in general imply a reduction in EFG. The empirical evidence is that RoBERTa improves classification over BERT while subgroup gaps remain non-trivial, and explanation fairness improves substantially only under ADV-RoBERTa with Fair-REF. A sufficient explanation is that task gradients and explanation-fairness gradients need not be aligned in parameter space; Appendix C.3 provides an intuitive argument, but we treat this claim as primarily empirical.
Proposition 3 (Conditional tradeoff under fairness regularization). For sufficiently large on data distributions where demographic attributes correlate with task-relevant features, minimization of can reduce representation-level group information while also suppressing some task-relevant signals, yielding a non-trivial fairness–utility Pareto tradeoff. Proof sketch in Appendix C.4 highlights this as an empirically observed phenomenon rather than a universal law.
Observation 2 (Explainer-level ranking stability without value equivalence). Two normalized attribution methods can preserve model ordering while differing in absolute plausibility values. This explains why IG and SHAP can agree on comparative ranking but differ in metric scale, and motivates reporting both explainers when analyzing fairness. A formal argument is given in Appendix C.5.
4 Methodology
4.1 Problem Formulation
Let denote the HateX-plain corpus, where is the input post, is the majority-vote label, is the human rationale mask, and is the demographic target group. The label space is . The demographic groups are African, Islam, Women, Jewish, Homosexual, Refugee, Arab, and Caucasian. Our objective is to learn a classifier that jointly optimizes predictive accuracy, explanation plausibility through alignment with , and explanation fairness through uniform plausibility across demographic groups.
4.2 Model Setup
We evaluate BERT, RoBERTa, and ADV-RoBERTa. ADV-RoBERTa extends RoBERTa with a shared encoder , a task classification head , a demographic adversary , and a rationale prediction head (Zhang et al., 2018; Mathew et al., 2021). Given input x, the encoder produces hidden states and a pooled representation . The model predicts the class label, demographic group, and token-level rationale scores as
The rationale prediction head is a token-level linear classifier followed by a sigmoid activation; binary cross-entropy is computed independently for each token against the human rationale mask. During inference, rationale probabilities are converted into binary masks using the same median-threshold rule employed in plausibility evaluation. Figure 10 illustrates the Fair-REF (Fair Rationale Explanation Framework) architecture: a shared encoder feeding a task head, a rationale head, and a gradient-reversed adversarial head.
4.3 Training Objective
Training combines classification, adversarial debiasing, and rationale supervision in a single objective. The task loss, adversarial loss, and rationale loss are defined as
The full objective is
with and in the primary setting. These values are selected using a validation-based search that balances macro-F1 and Plausibility-EFG on the validation split; provides the best fairness–performance trade-off. For fairness ablations, we sweep while holding fixed.
Because Plausibility-EFG depends on post hoc attribution scores and involves a maximum over demographic groups, it is non-differentiable and attribution-method-dependent, and therefore cannot be optimized directly as a constraint. Following adversarial debiasing, we instead optimize a differentiable surrogate objective that suppresses demographic information in the shared representation via . Reducing demographic leakage is expected to reduce downstream explanation disparity, even though this surrogate does not provide a formal guarantee that EFG will be minimized. Component ablations isolating the contributions of rationale supervision and adversarial regularization are presented in Section 5.5.
4.4 Attribution Methods
To measure whether model evidence aligns with human rationales, we use Integrated Gradients (IG) and SHAP (Sundararajan et al., 2017; Lundberg and Lee, 2017). For IG,
For SHAP,
Integrated Gradients and SHAP capture complementary notions of attribution: IG measures path-integrated gradients relative to a baseline, whereas SHAP estimates marginal feature contributions through cooperative game theory. Agreement between both methods strengthens confidence that fairness conclusions are not artifacts of a single explainer; differences in scale highlight how attribution geometry can affect fairness measurements.
4.5 Plausibility and Fairness Metrics
Let denote the normalized attribution vector and the human rationale mask. We measure plausibility using AUPRC and IOU-F1:
AUPRC is the primary metric due to the strong token-level class imbalance induced by sparse rationales; IOU-F1 serves as a complementary discrete alignment score. For each group , mean subgroup plausibility is
where . We define Plausibility-EFG as
We further report Kruskal–Wallis significance, Cohen’s d, and bootstrap confidence intervals to separate worst-case gap magnitude from distributional differences across subgroups.
4.6 Orthogonality and Mitigation
Prediction fairness and explanation fairness are treated as related but distinct objectives. ADV-RoBERTa therefore combines adversarial debiasing and rationale supervision in Fair-REF (Fair Rationale Explanation Framework) as a direct mitigation strategy for subgroup explanation disparity. To study the fairness–performance frontier, we sweep and evaluate the resulting tradeoff between Plausibility-EFG and predictive utility.
5 Experiments and Results
5.1 Dataset and Evaluation Pipeline
Experiments are conducted on the HateXplain benchmark, which contains 20,148 unique social media posts annotated with post-level class labels, token-level rationales, and demographic target identities (Mathew et al., 2021). The original corpus is transformed into three derived views: an annotation-level corpus with 60,444 rows, an exploded subgroup corpus with 53,161 rows, and a final fairness evaluation set of 27,566 rationale-bearing subgroup instances (Appendix D.9). The benchmark is therefore evaluated at two levels: the post level for classification and general plausibility, and the exploded subgroup level for explanation fairness.
Appendix Table 10 summarizes the dataset statistics and evaluation splits. The corpus is imbalanced in both class labels and demographic representation, which motivates fairness-aware evaluation beyond overall accuracy. Figure 1 visualizes the post-level label imbalance, one reason macro-F1 and explanation-based metrics are more informative than accuracy alone.

Figure 1: Post-level label distribution in HateXplain.
The experimental pipeline follows the sequence: classification, attribution, plausibility scoring, subgroup benchmarking, explanation-fairness quantification, component ablation, and fairness-performance analysis. This structure ensures that predictive quality, explanation quality, and explanation equity are evaluated independently before being compared jointly.
5.2 Hate Speech Classification
We first evaluate the base task of three-way hate speech classification using BERT, RoBERTa, and ADV-RoBERTa. This establishes whether fairness-aware training affects predictive performance before explanation quality is considered. Table 1 shows that ADV-RoBERTa achieves the strongest overall results, outperforming both baselines in accuracy, macro-F1, and weighted-F1. Relative to BERT, it improves accuracy by 0.0891 and macro-F1 by 0.0675, indicating that fairness-aware optimization does not degrade the classification task and in fact improves the separation between normal, offensive, and hateful content. Appendix Figure 3 provides confusion matrices for all three models.
5.3 Explanation Plausibility
We next test whether model explanations align with human rationale annotations. Let denote the attribution vector for instance , and let denote the rationale mask. Plausibility is measured using
where is obtained by thresholding attribution scores at the per-instance median.
Table 2 reports Integrated Gradients plausibility at both the post and exploded levels. The main finding is a consistent ranking across models: BERT is weakest, RoBERTa improves upon it, and ADV-RoBERTa performs best on all plausibility metrics. At the post level, mean AUPRC increases from 0.52 to 0.59, and mean IOU-F1 rises from 0.26 to 0.34. At the exploded level, ADV-RoBERTa again leads with mean AUPRC 0.60 and mean IOU-F1 0.35. Train, validation, and test values remain close, suggesting that rationale supervision generalizes well rather than overfitting to the training set.
SHAP shows the same ordering (Appendix Tables 8–9), confirming that the gains are not specific to one attribution method: regardless of whether gradients or coalition values are used, explanations produced by ADV-RoBERTa align more closely with human rationales.
5.4 Quantifying Explanation Fairness
We next investigate whether improvements in explanation quality are distributed uniformly across demographic groups. For each group g, we compute mean subgroup plausibility
where is the plausibility score for instance i. This gives a group-level summary of how well explanations align with rationales. To summarize subgroup disparity in a single value, we use the explanation fairness gap
Table 1: 3-Way Hate Speech Classification Performance
| 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 |
Table 2: IG Plausibility Metrics
| 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 |
| Mean IOU-F1 | Posts | 0.26 | 0.31 | 0.34 |
| Mean IOU-F1 | Exploded | 0.27 | 0.32 | 0.35 |
| Train AUPRC | Posts | 0.53 | 0.57 | 0.60 |
| Train AUPRC | Exploded | 0.54 | 0.58 | 0.61 |
| Validation AUPRC | Posts | 0.53 | 0.56 | 0.59 |
| Validation AUPRC | Exploded | 0.55 | 0.58 | 0.60 |
| Test AUPRC | Posts | 0.51 | 0.55 | 0.58 |
| Test AUPRC | Exploded | 0.52 | 0.56 | 0.59 |
which measures the worst-case difference in explanation plausibility across groups.
Table 3 shows that subgroup disparities remain substantial for the baselines but are smaller under ADV-RoBERTa. Under IG, BERT has the widest spread, RoBERTa narrows it, and ADV-RoBERTa yields the smallest subgroup gap. The same pattern holds under SHAP. Table 4 summarizes plausibility and fairness metrics side by side: ADV-RoBERTa achieves the highest IG and SHAP plausibility scores and the lowest Plausibility-EFG, indicating that explanation quality and explanation equity improve together rather than trading off.
Figure 2 visualizes the EFG reduction across models and explainers. The reduction in Plausibility-EFG is accompanied by lower Cohen's d and non-significant Kruskal–Wallis statistics under SHAP, suggesting that subgroup disparities are substantially reduced rather than merely attenuated in a few groups.

Figure 2: Explanation Fairness Gap (EFG) across BERT, RoBERTa, and ADV-RoBERTa under Integrated Gradients and SHAP
These results illustrate that prediction fairness and explanation fairness are related but distinct: RoBERTa improves classification over BERT, yet the explanation gap remains non-trivial; explanation fairness improves substantially when the model is optimized to suppress demographic leakage and align explanations with rationales.
5.5 Component Ablation of Fair-REF
To disentangle the contributions of rationale supervision and adversarial debiasing, we perform a controlled component ablation over the three losses , , and . The following variants are evaluated on identical splits and hyperparameters:
-
Task-only (RoBERTa): standard RoBERTa classifier with only.
-
Task + Rationale (Rationale-only): RoBERTa with and no adversarial branch.
-
Task + Adversarial (Adversarial-only): RoBERTa with and no rationale supervision.
-
Fair-REF (Task + Rationale + Adversarial): ADV-RoBERTa with the full objective .
Table 5 reports the quantitative ablation results.
Component ablation shows that rationale supervision and adversarial debiasing play complementary roles. Rationale supervision mainly improves explanation plausibility, raising IG and SHAP AUPRC and IOU-F1 with only small changes in subgroup disparity. Adversarial debiasing mainly reduces explanation fairness gaps by suppressing demographic information in the shared representation. Combining both gives the best overall model, with the highest classification performance, strongest explanation alignment, and lowest Plausibility-EFG.
5.6 Fairness–Performance Tradeoff
We study the fairness–performance frontier by varying in the ADV-RoBERTa objective while keeping fixed. In this experiment, we vary only the weighting of the adversarial regularizer while
Table 3: Explanation Fairness Gap (EFG) Benchmarking
| 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 d | 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 |
| Worst Group AUPRC | 0.47 | 0.55 | 0.57 | 0.37 | 0.45 | 0.52 |
Table 4: Explainability and Explanation Fairness Comparison
| 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 |
keeping the full Fair-REF architecture (task, rationale, and adversarial heads) fixed; the setting (no adversarial regularization) is already represented by the Task + Rationale variant in Table 5 and Appendix Table 9. Table 6 summarizes accuracy, macro-F1, IG and SHAP plausibility, and mean EFG across the sweep.
The monotonic reduction in EFG confirms that stronger adversarial regularization progressively suppresses demographic leakage in shared representation. Excessive regularization eventually begins to affect discriminative information, leading to the decline in classification performance. The most practical operating region is in the moderate range, especially and , fairness improves substantially without a large collapse in macro-F1. The strongest fairness setting, , gives the lowest EFG but also a larger performance drop relative to the configuration.
These results illustrate a Pareto frontier between predictive performance and explanation fairness: moving along the frontier trades small amounts of accuracy and macro-F1 for large reductions in Plausibility-EFG.
5.7 Discussion
The experiments collectively suggest that fairness-aware training can improve both predictive and explanatory behavior because it reshapes the representation rather than just constraining outputs. Rationale supervision provides an additional supervised signal that encourages the encoder to attend to human-identified evidence, naturally supporting better generalization and higher plausibility scores. Adversarial debiasing suppresses lin- early decodable demographic information in the shared representation, reducing the extent to which subgroup-specific artifacts drive attribution patterns and thereby contracting explanation disparities.
The component ablation and sweep clarify that explanation fairness is not a passive byproduct of stronger encoders or higher task performance: it emerges when fairness objectives are explicitly optimized and tuned. This has implications for hate speech moderation, where uneven explanation quality can undermine trust and exacerbate perceived bias for marginalized communities. Our results support a view of explanation fairness as a distinct design axis in moderation systems, one that must be controlled via dedicated objectives rather than assumed from prediction-level debiasing alone. Training was performed on NVIDIA A100 40GB GPUs with a standardized optimization and preprocessing configuration.
6 Conclusion
This work establishes explanation fairness as a distinct optimization objective in hate speech detection, rather than an automatic byproduct of improved predictive accuracy. On HateXplain benchmark, ADV-RoBERTa improves classification performance and rationale alignment while reducing subgroup disparities in explanation quality, supporting the orthogonality hypothesis that predictive fairness and explanation fairness are related but not identical and must therefore be evaluated separately. Overall, Fair-REF demonstrates that explanation fairness can be explicitly measured and optimized, providing a practical framework for building more equitable hate speech moderation systems.
Table 5: Component Ablation of Fair-REF
| 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 |
Table 6: Fairness–Performance Tradeoff Analysis
| 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 |
References
Aparna Balagopalan, Haoran Zhang, Kimia Hamidieh, Thomas Hartvigsen, Frank Rudzicz, and Marzyeh Ghassemi. 2022. The road to explainability is paved with bias: Measuring the fairness of explanations. In Proceedings of the 2022 ACM conference on fairness, accountability, and transparency, pages 1194–1206.
Esma Balkir, Svetlana Kiritchenko, Isar Nejadgholi, and Kathleen C Fraser. 2022. Challenges in applying explainability methods to improve the fairness of nlp models. In Proceedings of the 2nd Workshop on Trustworthy Natural Language Processing (TrustNLP 2022), pages 80–92.
Su Lin Blodgett, Solon Barocas, Hal Daumé III, and Hanna Wallach. 2020. Language (technology) is power: A critical survey of “bias” in nlp. In Proceedings of the 58th annual meeting of the association for computational linguistics, pages 5454–5476.
Stephanie Brandl, Emanuele Bugliarello, and Ilias Chalkidis. 2024. On the interplay between fairness and explainability. In Proceedings of the 4th Workshop on Trustworthy Natural Language Processing (TrustNLP 2024), pages 94–108.
Jessica Dai, Sohini Upadhyay, Ulrich Aivodji, Stephen H Bach, and Himabindu Lakkaraju. 2022. Fairness via explanation quality: Evaluating disparities in the quality of post hoc explanations. In Proceedings of the 2022 AAAI/ACM Conference on AI, Ethics, and Society, pages 203–214.
Jacob Devlin, Ming-Wei Chang, Kenton Lee, and Kristina Toutanova. 2019. Bert: Pre-training of deep bidirectional transformers for language understanding. In Proceedings of the 2019 conference of the North American chapter of the association for computational linguistics: human language technologies, volume 1 (long and short papers), pages 4171–4186.
Jay DeYoung, Sarthak Jain, Nazneen Fatema Rajani, Eric Lehman, Caiming Xiong, Richard Socher, and Byron C Wallace. 2020. Eraser: A benchmark to evaluate rationalized nlp models. In Proceedings of the 58th annual meeting of the association for computational linguistics, pages 4443–4458.
Alon Jacovi and Yoav Goldberg. 2020. Towards faithfully interpretable nlp systems: How should we define and evaluate faithfulness? In Proceedings of the 58th annual meeting of the association for computational linguistics, pages 4198–4205.
Tao Lei, Regina Barzilay, and Tommi Jaakkola. 2016. Rationalizing neural predictions. In Proceedings of the 2016 conference on empirical methods in natural language processing, pages 107–117.
Tianlin Li, Qing Guo, Aishan Liu, Mengnan Du, Zhiming Li, and Yang Liu. 2023. Fairer: fairness as decision rationale alignment. In International Conference on Machine Learning, pages 19471–19489. PMLR.
Yinhan Liu, Myle Ott, Naman Goyal, Jingfei Du, Mandar Joshi, Danqi Chen, Omer Levy, Mike Lewis, Luke Zettlemoyer, and Veselin Stoyanov. 2019. Roberta: A robustly optimized bert pretraining approach. arXiv preprint arXiv:1907.11692.
Scott M Lundberg and Su-In Lee. 2017. A unified approach to interpreting model predictions. Advances in neural information processing systems, 30.
Binny Mathew, Punyajoy Saha, Seid Muhie Yimam, Chris Biemann, Pawan Goyal, and Animesh Mukherjee. 2021. Hatexplain: A benchmark dataset for explainable hate speech detection. In Proceedings of the AAAI conference on artificial intelligence, volume 35, pages 14867–14875.
Tin Nguyen, Jiannan Xu, Aayushi Roy, Hal Daumé III, and Marine Carpuat. 2023. Towards conceptualization of “fair explanation”: disparate impacts of anti-asian hate speech explanations on content moderators. In Proceedings of the 2023 Conference on Empirical Methods in Natural Language Processing, pages 9696–9717.
Mukund Sundararajan, Ankur Taly, and Qiqi Yan. 2017. Axiomatic attribution for deep networks. In International conference on machine learning, pages 3319–3328. PMLR.
Brian Hu Zhang, Blake Lemoine, and Margaret Mitchell. 2018. Mitigating unwanted biases with adversarial learning. In Proceedings of the 2018 AAAI/ACM Conference on AI, Ethics, and Society, pages 335–340.
Appendix
A Limitations
While ADV-RoBERTa improves both explanation plausibility and fairness compared to the baselines, several limitations remain.
First, fairness-aware regularization introduces a performance–fairness tradeoff. In the mitigation study, the adversarial regularization weight is varied as
while the rationale supervision weight is held fixed. The total training objective is
As increases from 0.1 to 1.0, Mean EFG decreases from 0.048 to 0.024, while Macro-F1 changes from 0.7448 to 0.7327, illustrating the fairness–performance tradeoff. This indicates that stronger adversarial regularization can over-regularize the shared representation, so fairness should be treated as a constrained objective rather than an unconstrained one.
Second, results are sensitive to the choice of attribution method. Although IG and SHAP agree on model ranking, they produce different absolute plausibility scores and EFG values:
For the proposed model, post-level plausibility is 0.59 under IG and 0.52 under SHAP, while the corresponding fairness gaps are 0.03 and 0.02. This makes it important to report multiple explainers, since single-method conclusions may not fully generalize.
Third, subgroup scarcity affects fairness estimation reliability. For each group g, subgroup plausibility is summarized as
Smaller groups such as Refugee and Caucasian have fewer instances, which leads to higher variance in group-level AUPRC and EFG estimates. As a result, fairness claims are stronger for well-represented groups such as Women and African than for underrepresented ones.
Finally, inherent ambiguity in human rationales limits the upper bound of explanation alignment. Plausibility is measured by
but some posts contain mixed or inconsistent annotations, making perfect alignment difficult even for strong models. Low rationale density further increases sensitivity to thresholding in IOU-F1. This means that low scores in some cases may reflect annotation ambiguity rather than a true explanation failure. Attribution methods are not ground-truth explanations, and plausibility should not be conflated with faithfulness to the model's underlying decision process. Therefore, higher rationale alignment reflects improved human-aligned explanation quality rather than guaranteed causal interpretability. Overall, the mitigation approach is promising but not universal. Explanation fairness requires careful tuning and should be optimized jointly with predictive utility rather than maximized in isolation. More robust multi-objective methods and larger-scale human validation remain important directions for future work.
B Additional Analysis
Across the performed experiments, the same three patterns hold: explanation plausibility improves across demographic groups, the pattern is stable under both Integrated Gradients and SHAP, and fairness-aware mitigation follows a controlled fairness–performance tradeoff.
Appendix Tables 7 and 8 extend the group-wise plausibility analysis beyond the compact summary in the main paper. The main takeaway is that ADV-RoBERTa improves explanation quality across the full demographic spectrum, not only on the strongest or most frequent groups. Under IG, the lower-performing groups move noticeably closer to the top group, which indicates reduced subgroup variance rather than a narrow gain on one identity category. The SHAP results show the same directional behavior, which strengthens the claim that the improvement is not method-specific but reflects a more robust explanation structure.
Figures 4 and 5 support this interpretation visually. Both plots show that the group-wise ranking remains broadly consistent while the gap between groups narrows under mitigation. That pattern is important because it suggests the model is not merely shifting scores upward uniformly; instead, it is reducing the disparity between advantaged and disadvantaged groups. In other words, the explanation-quality improvement is distributed across identities rather than concentrated in a few

Figure 3: Confusion matrices for BERT, RoBERTa, and ADV-RoBERTa on three-way hate speech classification. ADV-RoBERTa reduces confusion between offensive and hatespeech categories relative to the baselines.
Table 7: Group-wise IG plausibility metrics (AUPRC and IOU-F1) across demographic identities.
| 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 |
| African | 0.49 | 0.25 | 0.57 | 0.31 | 0.60 | 0.34 |
| Refugee | 0.47 | 0.24 | 0.56 | 0.30 | 0.60 | 0.34 |

Figure 4: Group-wise Integrated Gradients AUPRC across demographic identities for BERT, RoBERTa, and ADV-RoBERTa. ADV-RoBERTa consistently improves rationale alignment while substantially reducing subgroup disparity across demographic groups.

Figure 5: Group-wise SHAP AUPRC across demographic identities for BERT, RoBERTa, and ADV-RoBERTa. Fairness-aware optimization produces more uniform explanation quality across subgroups while preserving overall attribution plausibility improvements.
easy cases.
Appendix Table 9 and Figure 6 support the mitigation analysis by showing that increasing steadily reduces explanation disparity, with only a moderate cost in classification performance. The resulting curve is smooth rather than brittle, which indicates that the fairness objective behaves as a tunable regularizer rather than an unstable constraint. This is especially useful for interpreting the main mitigation result, since it shows that explanation fairness can be improved in a controlled way rather than through an all-or-nothing tradeoff.
Figures 7 and 8 provide additional context for why these subgroup results matter. The demographic distribution is visibly imbalanced, and the toxicity composition is not uniform across identities. That imbalance makes the fairness analysis necessary, because aggregate plausibility alone would hide meaningful variation across groups. The appendix therefore supports the main claim that subgroup-level evaluation is essential for assessing explanation fairness in hate speech detection.
Finally, Figure 9 consolidates the overall model comparison and confirms the broader pattern seen throughout the paper. ADV-RoBERTa remains strongest across classification, plausibility, and fairness metrics, which shows that the gains are not isolated to one evaluation axis. Taken together, the
Table 8: Group-wise SHAP plausibility metrics (AUPRC and IOU-F1) across demographic identities.
| 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 |
| African | 0.41 | 0.22 | 0.47 | 0.28 | 0.53 | 0.34 |
| Refugee | 0.43 | 0.24 | 0.49 | 0.29 | 0.54 | 0.35 |
Table 9: Fairness–performance tradeoff across settings.
| 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 |

Figure 6: Fairness–performance tradeoff curve across different settings. Increasing adversarial fairness regularization consistently reduces Explanation Fairness Gap (EFG) while inducing only moderate degradation in macro-F1, demonstrating a controllable tradeoff between predictive performance and explanation fairness.
appendix results strengthen confidence that the reported improvements are systematic, stable across attribution methods, and consistent with the paper's central fairness claim.
C Proofs and Derivations
C.1 Proof of Proposition 1 (Basic properties of EFG)
By definition,
Since each plausibility score , every subgroup mean satisfies for all .

Figure 7: Distribution of subgroup-specific rationale evaluation instances across demographic identities in the exploded fairness evaluation dataset, highlighting substantial subgroup imbalance in the HateXplain corpus.
Thus, for any pair ,
Taking the maximum over all pairs preserves this bound, so
Symmetry follows directly from the absolute value:
Finally, if and only if every pairwise difference is zero, which holds exactly when for all . This proves boundedness, symmetry, and the zero-iff-equal property.
Table 10: Complete dataset statistics and distribution summary.
| 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 | |
| Training Posts | 15,383 |
| Validation Posts | 1,922 |
| Test Posts | 1,924 |
| Rationale Statistics | |
| Posts with Rationales | 11,071 |
| Posts without Rationales | 9,185 |
| Average Rationale Density | 0.194 |
| Label Distribution | |
| Normal Posts | 8,153 |
| Hate Speech Posts | 6,234 |
| Offensive Posts | 5,761 |
| Identity Group Distribution | |
| African | 7,459 |
| Women | 3,489 |
| Islam | 3,214 |
| Arab | 3,102 |
| Jewish | 2,888 |
| Homosexual | 2,871 |
| Refugee | 1,294 |
| Caucasian | 1,249 |
| Explainability Evaluation | |
| IG Posts Scored | 10,963 |
| IG Exploded Rows Scored | 26,721 |
| SHAP Post Rows Scored | 1,000 |
| SHAP Exploded Rows Scored | 1,400 |
C.2 Proof of Proposition 2 (Subgroup-scarcity variance effect)
Fix a group and assume are i.i.d. with variance . Then the subgroup mean is
By the variance of the sample mean,
Thus, the variance decays only at rate . When is small, the subgroup mean is intrinsi- cally noisier. Since

Figure 8: Toxicity-class composition across demographic identity groups, showing that hate speech, offensive, and normal label distributions vary considerably across identities, motivating subgroup-level fairness evaluation.

Figure 9: Overall comparison of classification performance, explanation plausibility, and explanation fairness across BERT, RoBERTa, and ADV-RoBERTa. ADV-RoBERTa consistently achieves the strongest balance between predictive quality, rationale alignment, and subgroup fairness across both IG and SHAP attribution methods.
its estimate becomes more sensitive to low-support groups, especially under long-tailed subgroup distributions. The same reasoning applies to Cohen's , since both the numerator and pooled variance become unstable when one subgroup has limited support. This variance law provides the analytical basis for using bootstrap confidence intervals and cautious interpretation of sparse-group fairness estimates.
C.3 Formal argument for Observation 1 (Partial orthogonality)
Let denote a predictive objective, such as negative macro-F1 or cross-entropy risk, and let denote the explanation-fairness objective. Both are differentiable in a neighborhood of interest.
If the two objectives were perfectly aligned, one would expect the gradients to be proportional, i.e., there exists a scalar such that
In general, this does not hold. The predictive objective is driven primarily by class-separating features and outcome-level distributions, whereas the explanation-fairness objective depends on subgroup-conditioned attribution geometry induced by , rationale masks , and group-specific token interactions. Attributions are functions of gradients or coalition marginals,
and subgroup fairness depends on the distribution of
within each . The mapping is determined by prediction errors and label distribution, while is determined by how attribution scores align with rationales within and across groups. These two maps are structurally distinct and, for generic architectures and data, their level sets intersect transversely rather than coinciding. As a result, one can find directions in parameter space along which decreases while remains unchanged or increases. Therefore, the gradients are not proportional in general, and local descent for prediction need not automatically reduce explanation fairness gaps. This formalizes the partial orthogonality claim stated in the main text.
C.4 Proof sketch for Proposition 3 (Conditional tradeoff under fairness regularization)
Assume , , and are differentiable, and that demographic attributes are correlated with some task-relevant features in the representation .
Consider the objective
Differentiating with respect to gives
As increases, the adversarial term dominates whenever
In that regime, optimization strongly suppresses group-predictive information in the shared representation . If some of that information is entangled with task-relevant semantics, then suppressing it also attenuates useful classification signal. Hence, for sufficiently large , it is possible to reduce EFG while degrading predictive utility, yielding a non-trivial fairness–utility Pareto frontier rather than monotone improvement in all metrics. This behavior is observed empirically in our -sweep and matches prior analyses of adversarial fairness learning and explanation-based mitigation. We therefore present Proposition 3 as a conditional optimization intuition rather than a universal theorem.
C.5 Lemma and formal argument for Observation 2 (Explainer-level ranking stability)
Lemma (Monotonic transformation preserves ranking). Let be any scoring function and let be a strictly increasing (positive monotonic) function. For any ,
Thus, induces the same ranking over as .
Proof. By strict monotonicity, implies for all . Setting and yields , so the order of items induced by is preserved under .
Application to IG vs SHAP ranking. Let and be two attribution operators, and define normalized non-negative scores
Suppose there exists a latent importance ranking and two strictly increasing transformations , such that, coordinatewise,
Then by the lemma, both IG- and SHAP-based plausibility functionals and preserve the ranking over models induced by the latent importance scores, even though absolute values and metric scales may differ.
In practice, IG can be viewed as a path integral over gradients and SHAP as a coalition-value estimator, so they are not guaranteed to be strict monotonic transforms of each other. Nonetheless, our empirical results show that IG and SHAP agree on the comparative ordering of models (BERT < RoBERTa < ADV-RoBERTa) while differing in absolute plausibility scale and subgroup spread. This justifies interpreting cross-explainer agreement primarily in terms of ranking stability (which is preserved under monotonic transforms), rather than identical attribution magnitudes, and motivates reporting both explainers when analyzing explanation fairness.
D Implementation and Reproducibility Details
D.1 Baseline Justification
We evaluate BERT, RoBERTa, and ADV-RoBERTa rather than DeBERTa, HateBERT, or instruction-tuned large language models for three reasons. First, BERT provides a canonical transformer baseline whose classification and attribution behavior are well studied in the fairness and interpretability literature. Second, RoBERTa is the strongest general-purpose encoder in the same parameter regime and is widely used in NLP fairness research, making it the most appropriate comparative backbone for HateXplain. Third, ADV-RoBERTa isolates the effect of adversarial demographic debiasing by keeping the architecture fixed while modifying only the training objective.
We exclude DeBERTa and HateBERT because they introduce architectural or pretraining confounds that would make it difficult to attribute any improvement in explanation fairness specifically to debiasing. We also exclude instruction-tuned decoder-only LLMs because our plausibility framework relies on token-level gradients or coalition-based attributions over the input embedding space, which are not directly comparable to the encoder-based setting studied here without substantial methodological changes.
D.2 Detailed Model Architectures
BERT (Devlin et al., 2019) is a 12-layer bidirectional transformer encoder with hidden dimension and 12 self-attention heads. Given input , the encoder produces hidden states , and the [CLS] representation is projected through a linear classification head:
RoBERTa (Liu et al., 2019) uses the identical architecture but is pretrained with dynamic masking, larger batch sizes, longer training schedules, and removal of the next-sentence prediction objective. These modifications produce substantially stronger contextual representations. We use roberta-base with the same classification head structure.
ADV-RoBERTa extends RoBERTa with adversarial demographic debiasing and explicit rationale supervision. The architecture consists of a shared encoder , a task classification head , a demographic adversary , and a rationale prediction head . The rationale head allows the model to be directly supervised with human-annotated rationale masks, creating an explicit alignment signal between learned representations and human reasoning. This design is motivated by the adversarial invariance learning paradigm of (Zhang et al., 2018) and the rationale supervision approach established in the HateXplain benchmark (Mathew et al., 2021). Figure 10 illustrates the complete Fair-REF architecture.
D.3 Forward Pass and Loss Construction
Given input x, the encoder produces the contextual hidden states and the [CLS] representation:
The task head predicts the class distribution as . The adversary predicts the demographic target group from the gradient-reversed representation:
The rationale prediction head operates over the full token sequence to produce per-token rationality scores:
where is the sigmoid function.
The task loss is standard categorical cross-entropy:
The adversarial loss is categorical cross-entropy over the demographic prediction:
Figure 1: Fair-REF (Fair Rationale Explanation Framework) Architecture

Figure 10: Fair-REF (Fair Rationale Explanation Framework) architecture. A shared RoBERTa encoder feeds three task-specific branches: (i) a hate speech classification head optimized with the task loss ( ), (ii) a token-level rationale prediction head trained using binary cross-entropy rationale supervision ( ), and (iii) a gradient-reversal demographic adversary trained with adversarial loss ( ). The three objectives are jointly optimized according to , encouraging accurate prediction, faithful rationale generation, and improved explanation fairness across demographic groups.
The rationale supervision loss is token-level binary cross-entropy against the human rationale mask:
provides a direct supervision signal over which tokens the model should treat as salient, creating explicit alignment between the model's token-level rationality scores and the human-annotated evidence spans. Only instances with valid rationale annotations ( ) contribute to this term.
The full optimization objective for ADV-RoBERTa is
where controls adversarial suppression strength and controls the rationale alignment weight. We set and in all primary experiments, based on validation macro-F1 and Plausibility-EFG.
D.4 Gradient Reversal and Fairness Ablation
The Gradient Reversal Layer (GRL; Ganin et al., 2016) acts as the identity during the forward pass,
and multiplies the gradient by during back-propagation:
This coupling implements the inner maximization over implicitly, without requiring alternating optimization steps. The full min–max objective can be written as
The encoder is thereby trained simultaneously to minimize classification loss, minimize rationale prediction error, and maximize the demographic adversary’s prediction error, producing representations that are task-discriminative, rationale-aligned, and demographically invariant.
To characterize the fairness–performance trade-off, we introduce as the ablation variable for adversarial debiasing strength:
where and is held fixed. When , the adversarial branch is fully disabled and the model reduces to a RoBERTa encoder with rationale supervision only. As increases, the model places progressively stronger pressure on the encoder to suppress demographic information from the hidden state, yielding the fairness–utility Pareto frontier.
D.5 Training Dynamics and Stability
Adversarial training with gradient reversal can be unstable early in training, so we use five safeguards: linear warmup of over the first 10% of steps, gradient clipping at 1.0, dropout rate 0.1 on the [CLS] representation, checkpoint selection by validation macro-F1, and early stopping with patience on validation macro-F1. These choices help stabilize the inner adversarial game while preserving classification performance.
D.6 Attribution Details
Integrated Gradients (IG; Sundararajan et al., 2017) computes token attributions by integrating the gradient of the target-class output along a straight-line path from a zero-vector baseline to the actual input x. The attribution for token t is
Attributions are computed at the word embedding level, reduced to scalar scores via the -norm over the embedding dimension, normalized per instance to [0, 1], and clipped to zero for negative values, since negative attributions indicate features that suppress the predicted class and are not evidence for the rationale.
SHAP (Lundberg and Lee, 2017) estimates token importance via Shapley values. For token t,
We use a text masker with a maximum evaluation budget of 256 calls per sample, retaining only non-negative values and normalizing per instance to [0, 1]. IG and SHAP are then fed into the plausibility and fairness metrics defined in Section 4, providing two complementary views of attribution behavior.
D.7 Plausibility and Fairness Metrics
For completeness, we summarize the metrics used; full definitions are in Section 4. Let be the attribution vector and the human rationale mask. AUPRC evaluates the ranking quality of against , treating rationale tokens as positives:
IOU-F1 binarizes attribution scores at the per-instance median :
For demographic group , group-wise mean plausibility is
and Plausibility-EFG is the worst-case inter-group disparity:
We report Kruskal–Wallis H-statistics, Cohen’s d between best and worst groups, and bootstrap 95% confidence intervals over to quantify statistical and practical subgroup disparities.
D.8 Training and Hardware Configuration
All models are trained under identical preprocessing and optimization settings on a single NVIDIA A100 40GB GPU using PyTorch, HuggingFace Transformers, Captum, and the SHAP library. Each post is tokenized with the backbone-specific HuggingFace tokenizer, truncated or zero-padded to a maximum sequence length of 128 tokens, and passed with an attention mask. The optimization configuration is:
| Hyperparameter | Value |
|---|---|
| Optimizer | AdamW |
| Learning rate | |
| Batch size | 32 |
| Max sequence length | 128 |
| Weight decay | 0.01 |
| Dropout (CLS) | 0.10 |
| Gradient clipping | 1.0 |
| Warmup proportion | 10% of steps |
| Epochs (BERT/RoBERTa) | 10 |
| Epochs (ADV-RoBERTa) | 20 |
| Random seed | 42 |
| GPU | NVIDIA A100 40GB |
A linear warmup schedule runs over the first 10% of total optimization steps followed by linear decay. ADV-RoBERTa uses adversary warmup over the first 10% of steps to allow the adversarial objective to stabilize. The best checkpoint in all cases is selected by validation macro-F1. The fairness coefficient is swept over to study the fairness–performance tradeoff.
D.9 Dataset Construction Pipeline
To make the evaluation protocol reproducible, we explicitly describe the transformation from the raw HateXplain posts to the fairness-evaluation set. Starting from the 20,148-post HateXplain corpus, we apply the following deterministic pipeline:
-
Annotator expansion (20,148 → 60,444). Each post is expanded to one row per annotator; HateXplain provides approximately three annotator judgments per post, yielding 60,444 annotation-level rows.
-
Target-group explosion (60,444 → 53,161). Each annotation's target-group list is exploded to one row per (annotation, group). Annotations with no target group (chiefly normal-labeled posts) are dropped, which is why this step nets to a smaller count despite the explosion.
-
Rationale and group filtering (53,161 → 27,566). The exploded set is filtered to the eight canonical identity groups with a non-empty rationale mask, giving the final fairness-evaluation set used for AUPRC/IOU-F1 and Plausibility-EFG.
Posts with multiple annotated targets therefore appear in multiple group rows and contribute shared attribution scores to more than one subgroup's plausibility estimate. This design partially addresses multi-target posts but does not construct explicit intersectional categories; the limitations of this single-label taxonomy and the induced dependence structure are discussed in the main Limitations section.
D.10 Orthogonality and Mitigation Framing
The central empirical finding of this work is that prediction fairness and explanation fairness are only partially orthogonal: they are related, but improving one does not guarantee improvement in the other. In practice, stronger accuracy or debiasing can reduce Plausibility-EFG, but it does not eliminate explanation disparity, so explanation fairness must be treated as a first-class optimization target rather than a by-product of classification performance. The Fair-REF framework (ADV-RoBERTa with rationale supervision and adversarial debiasing) is therefore interpreted as a bounded mitigation strategy that directly lowers Plausibility-EFG through explicit rationale alignment and adversarial invariance, while higher values introduce a measurable performance cost. This reflects a Pareto tradeoff between explanation fairness and predictive utility, consistent with the conditional tradeoff intuition formalized in Proposition 3.
E Ethical Considerations
This work involves hate speech detection, identity-linked subgroup analysis, and explanation fairness, so the primary ethical concern is the potential for harm through misclassification or misinterpretation. False positives can suppress legitimate speech, while false negatives can fail to flag abusive content, so the system should be framed as a research tool rather than an automated moderation authority. The fairness analysis is intended to reduce disparate treatment across demographic groups, but subgroup labels themselves are sensitive and should be handled with care.
A second concern is that human rationales are not ground truth in an absolute sense; they are annotator-provided evidence spans that can reflect disagreement, ambiguity, or cultural context. For that reason, plausibility metrics should be interpreted as agreement with annotations rather than proof of explanation correctness. The use of subgroup explosion also increases the risk of overinterpreting small-group behavior, so results should be discussed with attention to sample imbalance and uncertainty. Finally, any deployment context should include human oversight, monitoring for bias drift, and clear limitations on using the model for high-stakes moderation decisions.