Melola Discovery

← Melola Discovery

Open access Journal SINTA 1

HAXE: Attention–Rationale Alignment Framework for Explainable Hate Speech Detection in Transformer Models

Journal of Information Systems Engineering and Business Intelligence · Vol. 12 No. 2 (2026) · pp. 414–427

DOI
10.20473/jisebi.12.2.414-427
ISSN
2443-2555, 2598-6333
Published
2026-07-07
Publisher
Universitas Airlangga
Language
eng
License
creativecommons.org/licenses/by/4.0

Abstract

Background: The surge of social media content in the modern era required an automated content moderation system to filter out hate speech and inappropriate content. Transformer-based models have been the main approach to this problem. However, it is important to ensure explainability and fairness, as the decision may not align with human reasoning and can create unintended bias. Objective: This study aims to investigate whether integrating transformer-based models with human-annotated rationales can drive the model to create better explainability and fairness in its output. Methods: We propose HAXE, a ranking-based attention-rational alignment framework that supervises attention with relative-importance constraints to prevent rationale distortion. Experiments were conducted on the HateXplain data using BERT, DistilBERT, and DeBERTa as the transformer models. Model performance is evaluated in the classification, explainability, and fairness domains, as well in the attention entropy analysis. Results: HAXE improves explainability across all models, as evidenced by the increased plausibility and faithfulness metrics score, with the largest gains observed in DistilBERT and DeBERTa. However, we observed that fairness effects are architecture-dependent, where DistilBERT and DeBERTa improved, whereas BERT showed degradation. Attention entropy analysis shows that BERT undergoes the largest entropy reduction, approximately 16%, compared with DistilBERT and DeBERTa, which is 10–13% greater sensitivity to attention collapse under the HAXE training objective. Conclusion: The results demonstrate that attention-rationale alignment strengthens explanation quality, but its fairness effects differ between model architectures. These trade-offs are required for supervision strategies that can adapt and be robust to different architectures. Future work should explore ER alignment, other supervision strategies, and evaluation across different datasets. Keywords: Explainable AI, Fairness in NLP, Hate Speech Detection, Attention Supervision, Transformer Models

Collaboration network of the authors

3 authors · 3 co-authorship links

Hover or tap a name to highlight its co-authors. Double-click to open the author's page.

  • Binus University
  • Different organisations
  • Same organisation
  • Affiliation unknown
  • Thicker line = more joint articles · bigger circle = more articles
Show as table
Co-authorOrganisationJoint articles

Affiliations come from OpenAlex; journal OAI-PMH metadata carries none. Authors without an OpenAlex ID are matched by name, which can merge or split people.

Metadata source: OAI-PMH (metadata jurnal) https://e-journal.unair.ac.id/JISEBI/oai, first harvested 29 Oct 2026, last seen 29 Nov 2026.
Original metadata (oai_dc)
<oai_dc:dc xmlns="http://www.openarchives.org/OAI/2.0/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:oai_dc="http://www.openarchives.org/OAI/2.0/oai_dc/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.openarchives.org/OAI/2.0/oai_dc/  http://www.openarchives.org/OAI/2.0/oai_dc.xsd">
	<dc:title xml:lang="en-US">HAXE: Attention–Rationale Alignment Framework for Explainable Hate Speech Detection in Transformer Models</dc:title>
	<dc:creator>Dhanardi, James Alvin</dc:creator>
	<dc:creator>Purnomo, Fredy</dc:creator>
	<dc:creator>Prasetyo, Anang</dc:creator>
	<dc:description xml:lang="en-US">Background: The surge of social media content in the modern era required an automated content moderation system to filter out hate speech and inappropriate content. Transformer-based models have been the main approach to this problem. However, it is important to ensure explainability and fairness, as the decision may not align with human reasoning and can create unintended bias.
Objective: This study aims to investigate whether integrating transformer-based models with human-annotated rationales can drive the model to create better explainability and fairness in its output.
Methods: We propose HAXE, a ranking-based attention-rational alignment framework that supervises attention with relative-importance constraints to prevent rationale distortion. Experiments were conducted on the HateXplain data using BERT, DistilBERT, and DeBERTa as the transformer models. Model performance is evaluated in the classification, explainability, and fairness domains, as well in the attention entropy analysis.
Results: HAXE improves explainability across all models, as evidenced by the increased plausibility and faithfulness metrics score, with the largest gains observed in DistilBERT and DeBERTa. However, we observed that fairness effects are architecture-dependent, where DistilBERT and DeBERTa improved, whereas BERT showed degradation. Attention entropy analysis shows that BERT undergoes the largest entropy reduction, approximately 16%, compared with DistilBERT and DeBERTa, which is 10–13% greater sensitivity to attention collapse under the HAXE training objective.
Conclusion: The results demonstrate that attention-rationale alignment strengthens explanation quality, but its fairness effects differ between model architectures. These trade-offs are required for supervision strategies that can adapt and be robust to different architectures. Future work should explore ER alignment, other supervision strategies, and evaluation across different datasets.
 
Keywords: Explainable AI, Fairness in NLP, Hate Speech Detection, Attention Supervision, Transformer Models</dc:description>
	<dc:publisher xml:lang="en-US">Universitas Airlangga</dc:publisher>
	<dc:date>2026-07-07</dc:date>
	<dc:type>info:eu-repo/semantics/article</dc:type>
	<dc:type>info:eu-repo/semantics/publishedVersion</dc:type>
	<dc:format>application/pdf</dc:format>
	<dc:format>text/xml</dc:format>
	<dc:identifier>https://e-journal.unair.ac.id/JISEBI/article/view/86390</dc:identifier>
	<dc:identifier>10.20473/jisebi.12.2.414-427</dc:identifier>
	<dc:source xml:lang="en-US">Journal of Information Systems Engineering and Business Intelligence; Vol. 12 No. 2 (2026):  June; 414-427</dc:source>
	<dc:source>2443-2555</dc:source>
	<dc:source>2598-6333</dc:source>
	<dc:language>eng</dc:language>
	<dc:relation>https://e-journal.unair.ac.id/JISEBI/article/view/86390/38917</dc:relation>
	<dc:relation>https://e-journal.unair.ac.id/JISEBI/article/view/86390/39294</dc:relation>
	<dc:rights xml:lang="en-US">Copyright (c) 2026 The Authors. Published by Universitas Airlangga.</dc:rights>
	<dc:rights xml:lang="en-US">http://creativecommons.org/licenses/by/4.0</dc:rights>
</oai_dc:dc>