Training-Time Explainability for Multilingual Hate Speech Detection: Aligning Model Reasoning with Human Rationales

arXiv cs.CL Papers

Summary

This paper proposes a training-time explainability framework for multilingual hate speech detection, aligning model reasoning with human rationales to improve classification performance and interpretability, evaluated on English and Hinglish datasets.

arXiv:2608.26125v1 Announce Type: new Abstract: Online hate against Muslim communities often appears in culturally coded, multilingual forms that evade conventional AI moderation. Such systems, though accurate, remain opaque and risk bias, over-censorship, or under-moderation, particularly when detached from sociocultural context. We propose a \emph{training-time} explainability framework that aligns model reasoning with human-annotated rationales, improving both classification performance and interpretability. Our approach is evaluated on HateXplain (English) and BullySent (Hinglish), reflecting the prevalence of anti-Muslim hate across both languages. Using LIME, Integrated Gradients, Grad X Input, and attention, we assess accuracy, explanation quality, and cross-method agreement. Results show that gradient- and attention-based regularization improve F-scores, enhance plausibility and faithfulness, and capture culturally specific cues for detecting implicit anti-Muslim hate, offering a path toward multilingual, culturally aware content moderation.
Original Article
View Cached Full Text

Cached at: 08/28/26, 09:18 AM

# Training-Time Explainability for Multilingual Hate Speech Detection: Aligning Model Reasoning with Human Rationales
Source: [https://arxiv.org/html/2608.26125](https://arxiv.org/html/2608.26125)
M\.D\.M Qureshi† Technological University Dublin D22124696@mytudublin\.ie &Sannaan Khan† National University of Sciences and Technology mkhan\.msse24sines@student\.nust\.edu\.pk&M\. Atif Qureshi Technological University Dublin atif\.qureshi@tudublin\.ie &Wael Rashwann Maynooth University wael\.rashwan@mu\.ie

###### Abstract

Online hate against Muslim communities often appears in culturally coded, multilingual forms that evade conventional AI moderation\. Such systems, though accurate, remain opaque and risk bias, over\-censorship, or under\-moderation, particularly when detached from sociocultural context\. We propose a*training\-time*explainability framework that aligns model reasoning with human\-annotated rationales, improving both classification performance and interpretability\. Our approach is evaluated on HateXplain \(English\) and BullySent \(Hinglish\), reflecting the prevalence of anti\-Muslim hate across both languages\. Using LIME, Integrated Gradients, Grad×\\timesInput, and attention, we assess accuracy, explanation quality, and cross\-method agreement\. Results show that gradient\- and attention\-based regularization improve F\-scores, enhance plausibility and faithfulness, and capture culturally specific cues for detecting implicit anti\-Muslim hate, offering a path toward multilingual, culturally aware content moderation\.

## 1Introduction

Online hate against Muslim communities often appears in subtle, implicit, or culturally coded forms, frequently expressed in multilingual or code\-switched language such as Hinglish\. These complexities challenge moderation systems, risking both*under\-moderation*, which allows harmful narratives to persist, and*over\-moderation*, which suppresses legitimate religious or cultural expressionGillespie \([2018](https://arxiv.org/html/2608.26125#bib.bib8)\); Nobataet al\.\([2016](https://arxiv.org/html/2608.26125#bib.bib7)\)\. Given its prevalence in both English and South Asian online spaces, tackling such content is essential for Muslim and Global digital safety and inclusivity\.

While transformer\-based systems achieve high accuracy, they remain opaque and risk reinforcing biasesUdupaet al\.\([2023](https://arxiv.org/html/2608.26125#bib.bib6)\); Siapera \([2022](https://arxiv.org/html/2608.26125#bib.bib10)\), especially when divorced from sociocultural context\. For Muslim communities, like other underrepresented groups, these shortcomings can amplify harm and erode trust in AI moderation\.

Explainable AI \(XAI\) offers transparencyAbdulet al\.\([2018](https://arxiv.org/html/2608.26125#bib.bib49)\), but post\-hoc methods applied after training rarely influence how models learn, limiting their ability to produce faithful, culturally aware explanationsFloridiet al\.\([2018](https://arxiv.org/html/2608.26125#bib.bib48)\); Sambasivanet al\.\([2021](https://arxiv.org/html/2608.26125#bib.bib50)\); Qureshiet al\.\([2023](https://arxiv.org/html/2608.26125#bib.bib32),[2025](https://arxiv.org/html/2608.26125#bib.bib4)\)\.

We address this gap with a multilingual, training\-time XAI regularization framework that aligns model reasoning with human rationales\. Using RoBERTa and XLM\-R classifiers, and four explanation strategies \- LIMERibeiroet al\.\([2016](https://arxiv.org/html/2608.26125#bib.bib19)\), Integrated GradientsSundararajanet al\.\([2017](https://arxiv.org/html/2608.26125#bib.bib20)\), Grad×\\timesInputShrikumaret al\.\([2016](https://arxiv.org/html/2608.26125#bib.bib21)\), and attentionBahdanauet al\.\([2014](https://arxiv.org/html/2608.26125#bib.bib22)\)\-we guide models toward linguistically and culturally meaningful features\. Our evaluation on HateXplain \(English\) and BullySent \(Hinglish\) demonstrates cross\-linguistic generalization for detecting implicit anti\-Muslim hate\.

Contributions:\(1\) a training\-time XAI regularization framework aligning reasoning with human rationales; \(2\) comparative evaluation of four integrated XAI methods; \(3\) extension to a multilingual, code\-switched setting; \(4\) analysis of plausibility, faithfulness, and cross\-method agreement, highlighting improved detection of implicit, culturally coded anti\-Muslim hate; and \(5\) evidence that gradient\- and attention\-based regularization offer the best balance of accuracy, explanation quality, and efficiency\.111Code and Data at https://github\.com/DeedahwarMazhar/NeurIPS\-MulsimsInML\-TrainingTimeReg

## 2Methodology

### 2\.1Datasets and Pre\-processing

We evaluate on two culturally and linguistically distinct datasets to test monolingual and multilingual performance\.

HateXplainMathewet al\.\([2021](https://arxiv.org/html/2608.26125#bib.bib18)\)contains∼\\sim20k English social media posts \(Twitter, Gab\) labeled as Hate, Offensive, or Normal, with multi\-annotator token\-level rationales\. Following prior work, Hate and Offensive are merged into a*Detrimental Content*class, including15% posts explicitly targeting Muslims\.

BullySentis a Hinglish \(Hindi–English code\-switched\) cyberbullying dataset from Indian social media, comprising∼\\sim6\.5kposts\. While it does not explicitly mark anti\-Muslim hate, it labels religion\-based hate, serving as a relevant proxy for South Asian contexts where Hinglish is the dominant medium of informal online discourseBhange and Kasliwal \([2020](https://arxiv.org/html/2608.26125#bib.bib3)\)\. For comparability, all labels are unified into overarching categories:*Detrimental*\(e\.g\., Hate, Offense, Bullying\) vs\.*Non\-Detrimental*content\.

### 2\.2Model Architectures

We employ two transformer encoders to match the linguistic characteristics of each dataset: RoBERTa\-base for HateXplain \(English\) and XLM\-RoBERTa\-base for BullySent \(Hinglish\)\. Each encoder is followed by a Dense ReLU layer, a dropout of 0\.3, and a sigmoid output\. Models are optimized using Adam with a learning rate of2×10−52\\times 10^\{\-5\}\.

### 2\.3Training\-Time Explanation\-Based Regularization

Our training augments binary cross\-entropy loss with an explanation alignment term, applied only when the gold label is*Detrimental Content*\.

The classification loss is:

L​o​s​sB​C​E=−1N​∑i=0Nyt​log⁡\(yp\)−\(1−yt\)​log⁡\(1−yp\)Loss\_\{BCE\}=\-\\frac\{1\}\{N\}\\sum^\{N\}\_\{i=0\}y\_\{t\}\\log\(y\_\{p\}\)\-\(1\-y\_\{t\}\)\\log\(1\-y\_\{p\}\)\(1\)whereyty\_\{t\}is the true label andypy\_\{p\}the predicted probability\.

Letr​a​t​\(i\)rat\(i\)ande​x​p​\(i\)exp\(i\)denote normalized rationale and explanation scores for each termiiin the text input\. We aggregate explanation score at word level to ensure compatibility with human\-annotated rationales\. The explanation loss is:

L​o​s​sE​X​P​\(r​a​t∥e​x​p\)=∑ir​a​t​\(i\)​log⁡\(r​a​t​\(i\)e​x​p​\(i\)\)Loss\_\{EXP\}\(rat\\parallel exp\)=\\sum\_\{i\}rat\(i\)\\log\\left\(\\frac\{rat\(i\)\}\{exp\(i\)\}\\right\)\(2\)
The total loss is:

L​o​s​sC​O​M​P=L​o​s​sB​C​E\+λ​L​o​s​sE​X​P​\(r​a​t∥e​x​p\)Loss\_\{COMP\}=Loss\_\{BCE\}\+\\lambda Loss\_\{EXP\}\(rat\\parallel exp\)\(3\)withλ∈\{0\.001,0\.005,0\.01,0\.05,0\.1,0\.5,1,5,10\}\\lambda\\in\\\{0\.001,0\.005,0\.01,0\.05,0\.1,0\.5,1,5,10\\\}tuned by validation F1\-score and early stopping\.

Algorithm[1](https://arxiv.org/html/2608.26125#algorithm1)summarizes the process\. We use the non\-regularized model as our baseline for comparison\.

Input:Training setD=\{\(xi,yi,r​a​ti\)\}i=1ND=\\\{\(x\_\{i\},y\_\{i\},rat\_\{i\}\)\\\}\_\{i=1\}^\{N\}, XAI methodEE, regularization weightλ\\lambda

Output:Trained model

fθf\_\{\\theta\}
1

2for*each epoch*do

3for*each batch\(x,y,r​a​t\)\(x,y,rat\)inDD*do

yp←fθ​\(x\)y\_\{p\}\\leftarrow f\_\{\\theta\}\(x\);

//Forward pass

4

L​o​s​sB​C​E←BinaryCrossEntropy​\(y,yp\)Loss\_\{BCE\}\\leftarrow\\text\{BinaryCrossEntropy\}\(y,y\_\{p\}\)
5if*y==1y==1*then

e​x​p←E​\(fθ,x\)exp\\leftarrow E\(f\_\{\\theta\},x\);

//Generate explanation

6if*e​x​pexpis token\-level*then

e​x​p←ConvertTokenToWord​\(e​x​p\)exp\\leftarrow\\text\{ConvertTokenToWord\}\(exp\);

//Aggregate word scores

7

L​o​s​sE​X​P←KL​\(r​a​t∥e​x​p\)Loss\_\{EXP\}\\leftarrow\\text\{KL\}\(rat\\parallel exp\);

//Explanation loss

8

9

10

L​o​s​sC​O​M​P←L​o​s​sB​C​E\+λ⋅L​o​s​sE​X​PLoss\_\{COMP\}\\leftarrow Loss\_\{BCE\}\+\\lambda\\cdot Loss\_\{EXP\}
θ←θ−η⋅∇θL​o​s​sC​O​M​P\\theta\\leftarrow\\theta\-\\eta\\cdot\\nabla\_\{\\theta\}Loss\_\{COMP\};

//Backpropagation

11

12if*early stopping criterion met on validation set*then

13break

14

Algorithm 1Training with Explanation\-Based Regularization
### 2\.4XAI Methods

We compare four complementary explanation strategies, covering both model\-agnostic and model\-specific paradigms:

- •LIMERibeiroet al\.\([2016](https://arxiv.org/html/2608.26125#bib.bib19)\): Model\-agnostic and perturbation\-based; fits a sparse linear surrogate by masking tokens\. We limitn​\_​s​a​m​p​l​e​sn\\\_samplesto 128 for efficiency\.
- •Integrated Gradients \(IG\)Sundararajanet al\.\([2017](https://arxiv.org/html/2608.26125#bib.bib20)\): Integrates gradients from a zero embedding baseline to the input over 15 steps, capturing non\-linear dependencies\.
- •Grad×\\timesInput \(GXI\)Shrikumaret al\.\([2016](https://arxiv.org/html/2608.26125#bib.bib21)\): Multiplies token embeddings with their gradients to estimate local feature sensitivity in one backward pass\.
- •AttentionBahdanauet al\.\([2014](https://arxiv.org/html/2608.26125#bib.bib22)\): Uses averaged final\-layer attention weights across heads as token importance; not always faithful but internally consistent for regularization\.

### 2\.5Post\-Hoc Explanation Evaluation

We evaluate XAI methods by comparing post\-hoc attributions to human\-annotated rationales\. Scores are normalized to probability distributions over tokens, and subword attributions \(IG, GXI, Attention\) are merged to word\-level before alignment\. Word scores are binarized into rationale masks using:

1. 1\.Top\-KK:highestK∈\{3,5,7,10,15,20,25\}K\\in\\\{3,5,7,10,15,20,25\\\}tokens \(LIME:K≤10K\\leq 10\)\.
2. 2\.Thresholding:tokens with scores\>θ∈\{0\.001,0\.005,0\.01,0\.05,0\.1,0\.5\}\>\\theta\\in\\\{0\.001,0\.005,0\.01,0\.05,0\.1,0\.5\\\}\.

Human rationales are aggregated via the*Union*strategy\.

We report:

- •Plausibility:*IoU*\(overlap proportion\) and*Token\-F1*\(token\-level precision–recall\) vs\. human rationales\.
- •Faithfulness:*Prediction Drop*—confidence decrease when identified tokens are removed\.

This token\-level alignment captures fine\-grained linguistic/contextual cues, and comparing Top\-KKvs\. thresholding highlights trade\-offs between fixed\- and variable\-length rationales\.

## 3Results and Discussion

Table 1:Combined classification and XAI performance\. HX = HateXplain, BS = BullySent\. Perf\. = Accuracy, F1\. IoU and Token\-F1 measure plausibility; Drop measures faithfulness\. Best scores per metric \(HX and BS\) are in bold\.Table[1](https://arxiv.org/html/2608.26125#S3.T1)reports classification \(Acc, F1\), plausibility \(IoU, Token\-F1\), and faithfulness \(Prediction Drop\) for HateXplain \(HX\) and BullySent \(BS\)\.

Classification\.Attention achieves the best overall F1 \(HX:0\.84, BS:0\.85\) and highest BS accuracy \(0\.86\)\. LIME and IG perform competitively on HX, while G×\\timesI is efficient but slightly less accurate\.

Plausibility\.On HX, Attention leads in IoU/Token\-F1 \(0\.38/0\.60\), with IG second\. On BS, LIME attains the best Top\-K plausibility \(IoU0\.27, Token\-F10\.45\), suggesting perturbations capture Hinglish cues better than attention or gradients\.

Faithfulness\.IG yields the largest drops on both datasets \(HX:0\.72/0\.74; BS:0\.82\), indicating strong causal linkage\. G×\\timesI performs well on BS, while LIME’s drops remain low\. Gradient\-based methods transfer faithfulness more robustly across languages, while plausibility varies by dataset and binarization strategy\.

![Refer to caption](https://arxiv.org/html/2608.26125v1/meth_heatmap.png)\(a\)Method Agreement Heatmap for XAI methods with Kendall’s Agreement Correlation \(τ\\tau\)\.
![Refer to caption](https://arxiv.org/html/2608.26125v1/example_hate.jpg)\(b\)Qualitative comparison of token\-level attributions from four XAI methods across two code\-switched hate speech examples\. While gradient\-based methods \(Attention, G×\\timesI, IG\) frequently assign salience to subword fragments, LIME operates at the word level and often misses parts of compound slurs\.

Figure 1:Kendall’sτ\\tauagreement between XAI methods \(left\), showing higher correlation among gradient\-based approaches and divergence from LIME\. Qualitative token\-level attributions for two representative code\-switched hate speech examples \(right\) illustrate method\-specific highlighting patterns\.Inter\-Method Agreement:We measure similarity via Kendall’sτ\\tau, suitable for comparing ordered token attributions\. Figure[1\(a\)](https://arxiv.org/html/2608.26125#S3.F1.sf1)shows highest alignment between Attention and G×\\timesI \(≈0\.45\\approx 0\.45\), with moderate scores for Attention–IG and G×\\timesI–IG, and near\-zero or negative correlations for LIME due to its word\-level attributions\.

Qualitative Comparison\.Figure[1\(b\)](https://arxiv.org/html/2608.26125#S3.F1.sf2)visualizes token\-level highlights for a representative post with different XAI methods\. Gradient\-based approaches often mark subword units within compounds, enabling finer\-grained detection of culturally specific or offensive expressions\. In contrast, perturbation\-based methods tend to operate at the whole\-word level and can overlook embedded cues\.

## 4Conclusion

We present a training\-time explainability framework that embeds human\-aligned rationales into hate speech classifiers, improving both plausibility and faithfulness across English and Hinglish datasets\. Results show that gradient\- and attention\-based regularization generalize well across languages, capturing culturally specific cues often missed by perturbation\-based methods, and offering a path toward more accountable multilingual moderation\.

## Acknowledgemets

This publication has emanated from research conducted with the financial support of Research Ireland \(RI\) Center for Research Training in Machine Learning \(ML\-Labs\), under Grant number 18/CRT/6183\. For Open Access, the author has applied a CC BY public copyright license to any Author Accepted Manuscript version arising from this submission\.

## References

- \[1\]A\. Abdul, J\. Vermeulen, D\. Wang, B\. Y\. Lim, and M\. Kankanhalli\(2018\)Trends and trajectories for explainable, accountable and intelligible systems: an hci research agenda\.InProceedings of the 2018 CHI conference on human factors in computing systems,pp\. 1–18\.Cited by:[§1](https://arxiv.org/html/2608.26125#S1.p3.1)\.
- \[2\]D\. Bahdanau, K\. Cho, and Y\. Bengio\(2014\)Neural machine translation by jointly learning to align and translate\.arXiv preprint arXiv:1409\.0473\.Cited by:[Appendix A](https://arxiv.org/html/2608.26125#A1.p2.1),[§1](https://arxiv.org/html/2608.26125#S1.p4.1),[4th item](https://arxiv.org/html/2608.26125#S2.I1.i4.p1.1)\.
- \[3\]E\. Balkir, I\. Nejadgholi, K\. C\. Fraser, and S\. Kiritchenko\(2022\)Necessity and sufficiency for explaining text classifiers: a case study in hate speech detection\.arXiv preprint arXiv:2205\.03302\.Cited by:[Table 2](https://arxiv.org/html/2608.26125#A1.T2.2.5.5.1.1.1)\.
- \[4\]M\. Bhange and N\. Kasliwal\(2020\)Hinglishnlp: fine\-tuned language models for hinglish sentiment detection\.arXiv preprint arXiv:2008\.09820\.Cited by:[§2\.1](https://arxiv.org/html/2608.26125#S2.SS1.p3.1)\.
- \[5\]S\. Carton, S\. Kanoria, and C\. Tan\(2021\)What to learn, and how: toward effective learning from rationales\.arXiv preprint arXiv:2112\.00071\.Cited by:[Appendix A](https://arxiv.org/html/2608.26125#A1.p3.1)\.
- \[6\]A\. Conneau, A\. Baevski, R\. Collobert, A\. Mohamed, and M\. Auli\(2020\)Unsupervised cross\-lingual representation learning for speech recognition\.arXiv preprint arXiv:2006\.13979\.Cited by:[Appendix A](https://arxiv.org/html/2608.26125#A1.p1.1)\.
- \[7\]T\. Davidson, D\. Warmsley, M\. Macy, and I\. Weber\(2017\)Automated hate speech detection and the problem of offensive language\.InProceedings of the international AAAI conference on web and social media,Vol\.11,pp\. 512–515\.Cited by:[Appendix A](https://arxiv.org/html/2608.26125#A1.p1.1)\.
- \[8\]J\. Devlin, M\. Chang, K\. Lee, and K\. Toutanova\(2019\)Bert: pre\-training of deep bidirectional transformers for language understanding\.InProceedings of the 2019 conference of the North American chapter of the association for computational linguistics: human language technologies, volume 1 \(long and short papers\),pp\. 4171–4186\.Cited by:[Appendix A](https://arxiv.org/html/2608.26125#A1.p1.1)\.
- \[9\]L\. Floridi, J\. Cowls, M\. Beltrametti, R\. Chatila, P\. Chazerand, V\. Dignum, C\. Luetge, R\. Madelin, U\. Pagallo, F\. Rossi,et al\.\(2018\)AI4People—an ethical framework for a good ai society: opportunities, risks, principles, and recommendations\.Minds and machines28,pp\. 689–707\.Cited by:[§1](https://arxiv.org/html/2608.26125#S1.p3.1)\.
- \[10\]T\. Gillespie\(2018\)Custodians of the internet: platforms, content moderation, and the hidden decisions that shape social media\.Yale University Press\.Cited by:[§1](https://arxiv.org/html/2608.26125#S1.p1.1)\.
- \[11\]B\. Hancock, M\. Bringmann, P\. Varma, P\. Liang, S\. Wang, and C\. Ré\(2018\)Training classifiers with natural language explanations\.InProceedings of the conference\. Association for Computational Linguistics\. Meeting,Vol\.2018,pp\. 1884\.Cited by:[Table 2](https://arxiv.org/html/2608.26125#A1.T2.2.4.4.1.1.1)\.
- \[12\]A\. Jacovi and Y\. Goldberg\(2020\-07\)Towards faithfully interpretable NLP systems: how should we define and evaluate faithfulness?\.InProceedings of the 58th Annual Meeting of the Association for Computational Linguistics,D\. Jurafsky, J\. Chai, N\. Schluter, and J\. Tetreault \(Eds\.\),Online,pp\. 4198–4205\.External Links:[Document](https://dx.doi.org/10.18653/v1/2020.acl-main.386)Cited by:[Appendix A](https://arxiv.org/html/2608.26125#A1.p3.1)\.
- \[13\]D\. Kiela, M\. Bartolo, Y\. Nie, D\. Kaushik, A\. Geiger, Z\. Wu, B\. Vidgen, G\. Prasad, A\. Singh, P\. Ringshia,et al\.\(2021\)Dynabench: rethinking benchmarking in nlp\.arXiv preprint arXiv:2104\.14337\.Cited by:[Appendix A](https://arxiv.org/html/2608.26125#A1.p1.1)\.
- \[14\]S\. M\. Lundberg and S\. Lee\(2017\)A unified approach to interpreting model predictions\.Advances in neural information processing systems30\.Cited by:[Appendix A](https://arxiv.org/html/2608.26125#A1.p2.1)\.
- \[15\]B\. Mathew, P\. Saha, S\. M\. Yimam, C\. Biemann, P\. Goyal, and A\. Mukherjee\(2021\)Hatexplain: a benchmark dataset for explainable hate speech detection\.InProceedings of the AAAI conference on artificial intelligence,Vol\.35,pp\. 14867–14875\.Cited by:[Table 2](https://arxiv.org/html/2608.26125#A1.T2.2.2.2.1.1.1),[Appendix A](https://arxiv.org/html/2608.26125#A1.p3.1),[§B\.1](https://arxiv.org/html/2608.26125#A2.SS1.p1.1),[§2\.1](https://arxiv.org/html/2608.26125#S2.SS1.p2.1)\.
- \[16\]C\. Nobata, J\. Tetreault, A\. Thomas, Y\. Mehdad, and Y\. Chang\(2016\)Abusive language detection in online user content\.InProceedings of the 25th international conference on world wide web,pp\. 145–153\.Cited by:[§1](https://arxiv.org/html/2608.26125#S1.p1.1)\.
- \[17\]C\. Qian, F\. Feng, L\. Wen, C\. Ma, and P\. Xie\(2021\)Counterfactual inference for text classification debiasing\.InProceedings of the 59th Annual Meeting of the Association for Computational Linguistics and the 11th International Joint Conference on Natural Language Processing \(Volume 1: Long Papers\),pp\. 5434–5445\.Cited by:[Appendix A](https://arxiv.org/html/2608.26125#A1.p2.1)\.
- \[18\]M\. D\. M\. Qureshi, M\. A\. Qureshi, and W\. Rashwan\(2023\)Toward inclusive online environments: counterfactual\-inspired xai for detecting and interpreting hateful and offensive tweets\.InWorld Conference on Explainable Artificial Intelligence,pp\. 97–119\.Cited by:[§1](https://arxiv.org/html/2608.26125#S1.p3.1)\.
- \[19\]M\. D\. M\. Qureshi, M\. A\. Qureshi, and W\. Rashwan\(2025\)Explainable ai for hate speech moderation: a stakeholder\-centered and socially grounded review\.Authorea Preprints\.Cited by:[§1](https://arxiv.org/html/2608.26125#S1.p3.1)\.
- \[20\]M\. T\. Ribeiro, S\. Singh, and C\. Guestrin\(2016\)"Why should i trust you?": explaining the predictions of any classifier\.KDD ’16,New York, NY, USA,pp\. 1135–1144\.External Links:ISBN 9781450342322,[Document](https://dx.doi.org/10.1145/2939672.2939778)Cited by:[Appendix A](https://arxiv.org/html/2608.26125#A1.p2.1),[§1](https://arxiv.org/html/2608.26125#S1.p4.1),[1st item](https://arxiv.org/html/2608.26125#S2.I1.i1.p1.1)\.
- \[21\]L\. Rieger, C\. Singh, W\. Murdoch, and B\. Yu\(2020\)Interpretations are useful: penalizing explanations to align neural networks with prior knowledge\.InInternational conference on machine learning,pp\. 8116–8126\.Cited by:[Appendix A](https://arxiv.org/html/2608.26125#A1.p3.1)\.
- \[22\]A\. S\. Ross, M\. C\. Hughes, and F\. Doshi\-Velez\(2017\)Right for the right reasons: training differentiable models by constraining their explanations\.InProceedings of the Twenty\-Sixth International Joint Conference on Artificial Intelligence, IJCAI\-17,pp\. 2662–2670\.External Links:[Document](https://dx.doi.org/10.24963/ijcai.2017/371)Cited by:[Table 2](https://arxiv.org/html/2608.26125#A1.T2.2.3.3.1.1.1),[Appendix A](https://arxiv.org/html/2608.26125#A1.p3.1)\.
- \[23\]N\. Sambasivan, S\. Kapania, H\. Highfill, D\. Akrong, P\. Paritosh, and L\. M\. Aroyo\(2021\)“Everyone wants to do the model work, not the data work”: data cascades in high\-stakes ai\.Inproceedings of the 2021 CHI Conference on Human Factors in Computing Systems,pp\. 1–15\.Cited by:[§1](https://arxiv.org/html/2608.26125#S1.p3.1)\.
- \[24\]I\. Sen, M\. Samory, C\. Wagner, and I\. Augenstein\(2022\)Counterfactually augmented data and unintended bias: the case of sexism and hate speech detection\.arXiv preprint arXiv:2205\.04238\.Cited by:[Appendix A](https://arxiv.org/html/2608.26125#A1.p2.1)\.
- \[25\]S\. Serrano and N\. A\. Smith\(2019\-07\)Is attention interpretable?\.InProceedings of the 57th Annual Meeting of the Association for Computational Linguistics,A\. Korhonen, D\. Traum, and L\. Màrquez \(Eds\.\),Florence, Italy,pp\. 2931–2951\.External Links:[Document](https://dx.doi.org/10.18653/v1/P19-1282)Cited by:[Appendix A](https://arxiv.org/html/2608.26125#A1.p2.1)\.
- \[26\]A\. Shrikumar, P\. Greenside, A\. Shcherbina, and A\. Kundaje\(2016\)Not just a black box: learning important features through propagating activation differences\.arXiv preprint arXiv:1605\.01713\.Cited by:[§1](https://arxiv.org/html/2608.26125#S1.p4.1),[3rd item](https://arxiv.org/html/2608.26125#S2.I1.i3.p1.1)\.
- \[27\]E\. Siapera\(2022\)AI content moderation, racism and \(de\) coloniality\.International journal of bullying prevention4\(1\),pp\. 55–65\.Cited by:[Appendix A](https://arxiv.org/html/2608.26125#A1.p1.1),[§1](https://arxiv.org/html/2608.26125#S1.p2.1)\.
- \[28\]M\. Sundararajan, A\. Taly, and Q\. Yan\(2017\)Axiomatic attribution for deep networks\.InProceedings of the 34th International Conference on Machine Learning \- Volume 70,ICML’17,pp\. 3319–3328\.Cited by:[§1](https://arxiv.org/html/2608.26125#S1.p4.1),[2nd item](https://arxiv.org/html/2608.26125#S2.I1.i2.p1.1)\.
- \[29\]S\. Udupa, A\. Maronikolakis, and A\. Wisiorek\(2023\)Ethical scaling for content moderation: extreme speech and the \(in\) significance of artificial intelligence\.Big Data & Society10\(1\),pp\. 20539517231172424\.Cited by:[Appendix A](https://arxiv.org/html/2608.26125#A1.p1.1),[§1](https://arxiv.org/html/2608.26125#S1.p2.1)\.
- \[30\]B\. Vidgen and L\. Derczynski\(2020\)Directions in abusive language training data, a systematic review: garbage in, garbage out\.Plos one15\(12\),pp\. e0243300\.Cited by:[Appendix A](https://arxiv.org/html/2608.26125#A1.p1.1)\.
- \[31\]Z\. Waseem, S\. Lulz, J\. Bingel, and I\. Augenstein\(2021\)Disembodied machine learning: on the illusion of objectivity in nlp\.arXiv preprint arXiv:2101\.11974\.Cited by:[Appendix A](https://arxiv.org/html/2608.26125#A1.p1.1)\.
- \[32\]S\. Wiegreffe, A\. Marasović, and N\. A\. Smith\(2021\-11\)Measuring association between labels and free\-text rationales\.InProceedings of the 2021 Conference on Empirical Methods in Natural Language Processing,M\. Moens, X\. Huang, L\. Specia, and S\. W\. Yih \(Eds\.\),Online and Punta Cana, Dominican Republic,pp\. 10266–10284\.External Links:[Document](https://dx.doi.org/10.18653/v1/2021.emnlp-main.804)Cited by:[Appendix A](https://arxiv.org/html/2608.26125#A1.p3.1)\.
- \[33\]S\. Wiegreffe and Y\. Pinter\(2019\-11\)Attention is not not explanation\.InProceedings of the 2019 Conference on Empirical Methods in Natural Language Processing and the 9th International Joint Conference on Natural Language Processing \(EMNLP\-IJCNLP\),K\. Inui, J\. Jiang, V\. Ng, and X\. Wan \(Eds\.\),Hong Kong, China,pp\. 11–20\.External Links:[Document](https://dx.doi.org/10.18653/v1/D19-1002)Cited by:[Appendix A](https://arxiv.org/html/2608.26125#A1.p2.1)\.

## Appendix ARelated Work

AI\-based content moderation has evolved from keyword matching and simple classifiers\[[7](https://arxiv.org/html/2608.26125#bib.bib46)\]to transformer\-based models such as BERT\[[8](https://arxiv.org/html/2608.26125#bib.bib45)\]and multilingual encoders\[[6](https://arxiv.org/html/2608.26125#bib.bib42)\]\. While these improve accuracy, they still struggle with sarcasm, implicit hate\[[30](https://arxiv.org/html/2608.26125#bib.bib44)\], and culturally coded language, often producing opaque or biased decisions across linguistic and cultural boundaries\[[31](https://arxiv.org/html/2608.26125#bib.bib41)\]\. Human\-in\-the\-loop approaches\[[13](https://arxiv.org/html/2608.26125#bib.bib40)\]highlight that moderation requires cultural and political context\[[29](https://arxiv.org/html/2608.26125#bib.bib6),[27](https://arxiv.org/html/2608.26125#bib.bib10)\], especially for communities facing targeted hostility\.

Explainable AI \(XAI\) offers interpretability via methods such as LIME\[[20](https://arxiv.org/html/2608.26125#bib.bib19)\], SHAP\[[14](https://arxiv.org/html/2608.26125#bib.bib23)\], attention\[[2](https://arxiv.org/html/2608.26125#bib.bib22)\], and counterfactuals\[[24](https://arxiv.org/html/2608.26125#bib.bib34),[17](https://arxiv.org/html/2608.26125#bib.bib33)\]\. However, post\-hoc explanations can be unfaithful\[[33](https://arxiv.org/html/2608.26125#bib.bib24),[25](https://arxiv.org/html/2608.26125#bib.bib51)\]and often lack integration with domain knowledge, which is critical for detecting subtle, culturally specific hate speech against marginalized groups\.

Training\-time XAI regularization, enabled by datasets like HateXplain\[[15](https://arxiv.org/html/2608.26125#bib.bib18)\], aligns model explanations with human rationales\[[22](https://arxiv.org/html/2608.26125#bib.bib52),[21](https://arxiv.org/html/2608.26125#bib.bib55),[5](https://arxiv.org/html/2608.26125#bib.bib29)\], but most work uses a single XAI method and monolingual data\. Few evaluate both plausibility and faithfulness\[[12](https://arxiv.org/html/2608.26125#bib.bib53),[32](https://arxiv.org/html/2608.26125#bib.bib54)\]or assess consistency across explanation methods\. This gap is pronounced in multilingual and code\-switched contexts like Hinglish, where implicit anti\-Muslim hate is prevalent\. Our work addresses this by integrating multiple XAI methods into training, applying them to both English and Hinglish datasets, and jointly evaluating cultural relevance, explanation quality, and cross\-method agreement \(Table[2](https://arxiv.org/html/2608.26125#A1.T2)\)\.

Related StudiesMultiple XAI MethodsXAI\-based RegularizationExplanation OptimizationXAI EvaluationsMathew et al\.\[[15](https://arxiv.org/html/2608.26125#bib.bib18)\]✓✓Ross et al\.\[[22](https://arxiv.org/html/2608.26125#bib.bib52)\]✓✓Hancock et al\.\[[11](https://arxiv.org/html/2608.26125#bib.bib31)\]✓✓Balkir et al\.\[[3](https://arxiv.org/html/2608.26125#bib.bib13)\]✓✓Our Study✓✓✓✓Table 2:Comparison of selected related studies with our work\.
## Appendix BExtended Methodology

### B\.1Datasets

We evaluate on two datasets with token\-level human rationales:HateXplain\[[15](https://arxiv.org/html/2608.26125#bib.bib18)\]contains∼\\sim19k social media posts from Twitter and Gab, annotated forHate,Offensive, orNormalcontent, along with rationales from multiple annotators\. Following prior work, we mergeHateandOffensiveinto a singleDetrimental Contentlabel\.

BullySentis a Hinglish \(Hindi–English code\-switched\) dataset of∼\\sim6\.4k posts annotated for abusive content, also with token\-level rationales\. Compared to HateXplain, BullySent contains greater lexical variation, frequent spelling inconsistencies, and transliteration noise, making rationale alignment more challenging\.

For evaluation, we aggregate annotator rationales using theUnionstrategy to ensure inclusive coverage of all highlighted tokens\.

Table 3:Dataset distribution across both corpora\.
### B\.2Training Pipeline

Figure[2](https://arxiv.org/html/2608.26125#A2.F2)outlines our training procedure\. For HateXplain, we fine\-tune a RoBERTa encoder, while for BullySent \(Hinglish\), we use XLM\-R to better handle multilingual and code\-switched text\. Both models employ a binary classification head and are optimized with a composite loss combining standard binary cross\-entropy with an explanation\-alignment term\. For correctly predicted detrimental\-content examples, we generate token\-level importance scores using a given XAI method, normalize them, and align them with human rationales via KL divergence\.

The regularization weightλ\\lambdacontrols the trade\-off between accuracy and explanation alignment, tuned separately for each dataset\. The optimal value wasλ=5\\lambda=5for HateXplain andλ=0\.05\\lambda=0\.05for BullySent, suggesting that in the multilingual, noisier BullySent setting, heavy regularization can hurt performance, whereas HateXplain benefits from stronger alignment pressure\.

This approach is applied consistently across all four XAI methods studied: Attention, Gradient×\\timesInput, Integrated Gradients, and LIME\.

![Refer to caption](https://arxiv.org/html/2608.26125v1/pipeline.png)Figure 2:Training pipeline with integrated explanation regularization\.

## Appendix CExtended Explainability Analysis Across Datasets

To assess the generality of our findings, we evaluate explanation plausibility and faithfulness on both HateXplain and BullySent using the same four XAI methods \(Attention, Gradient×\\timesInput, Integrated Gradients, and LIME\) and two rationale selection strategies \(Top\-K and Thresholding\)\. For each dataset, we plot metric trends over varyingKKandτ\\tauvalues, with all curves using identical scales to enable direct visual comparison\. Figures[3](https://arxiv.org/html/2608.26125#A3.F3)present all twelve plots \(six per dataset\), while the following discussion synthesizes the results across datasets\.

### C\.1Intersection over Union

Across both datasets, Attention consistently achieves the highest IoU values under both selection strategies, indicating strong alignment with human rationales\. Integrated Gradients \(IG\) follows closely, especially under thresholding, where it benefits from capturing non\-linear token dependencies\. Gradient×\\timesInput lags in plausibility on both datasets, while LIME exhibits the lowest IoU scores, particularly for higherKKvalues\. Notably, BullySent scores are generally lower than HateXplain across methods, suggesting that shorter, noisier, and more code\-switched inputs make exact token overlap harder to achieve\.

### C\.2Token\-F1

Token\-level F1 patterns are remarkably consistent across datasets: attention explanations best match individual human\-annotated tokens, followed by IG\. Thresholding continues to outperform Top\-K for most methods, reflecting that selecting tokens above a score threshold better preserves rationale boundaries—especially beneficial for HateXplain’s longer texts\. On BullySent, all methods show reduced F1 scores relative to HateXplain, likely due to higher annotation sparsity and linguistic variability, but the relative ranking of methods remains stable\.

### C\.3Prediction Drop

Prediction Drop trends reaffirm IG as the most faithful method in both datasets: masking its top\-ranked tokens produces the largest confidence decreases, indicating strong causal alignment with the model’s decision process\. Attention also yields substantial drops, though with more variability acrossKKandτ\\tau\. LIME maintains low prediction drop values across datasets, reinforcing critiques of its faithfulness in high\-dimensional, context\-dependent NLP settings\. Interestingly, BullySent exhibits smaller overall drop values compared to HateXplain, which may be due to its shorter, more direct statements where a few key tokens suffice for classification\.

![Refer to caption](https://arxiv.org/html/2608.26125v1/ioutopk.png)

![Refer to caption](https://arxiv.org/html/2608.26125v1/iout.png)

![Refer to caption](https://arxiv.org/html/2608.26125v1/f1topk.png)

![Refer to caption](https://arxiv.org/html/2608.26125v1/f1th.png)

![Refer to caption](https://arxiv.org/html/2608.26125v1/peddroptopk.png)

![Refer to caption](https://arxiv.org/html/2608.26125v1/preddropth.png)

![Refer to caption](https://arxiv.org/html/2608.26125v1/bullysent_iou_topk.png)

![Refer to caption](https://arxiv.org/html/2608.26125v1/bullysent_iou_thresh.png)

![Refer to caption](https://arxiv.org/html/2608.26125v1/bullysent_f1_topk.png)

![Refer to caption](https://arxiv.org/html/2608.26125v1/bullysent_f1_thresh.png)

![Refer to caption](https://arxiv.org/html/2608.26125v1/bullysent_drop_topk.png)

![Refer to caption](https://arxiv.org/html/2608.26125v1/bullysent_drop_thresh.png)

Figure 3:Variation of IoU, Token\-F1, and Prediction Drop across Top\-K and Threshold values for HateXplain \(top two rows\) and BullySent \(bottom two rows\)\. LIME’s Top\-K curves terminate atK=10K\{=\}10due to sampling constraints\.

Similar Articles

Applied Explainability for Large Language Models: A Comparative Study

arXiv cs.CL

A comparative study evaluating three explainability techniques (Integrated Gradients, Attention Rollout, SHAP) on fine-tuned DistilBERT for sentiment classification, highlighting trade-offs between gradient-based, attention-based, and model-agnostic approaches for LLM interpretability.