Exposing shortcut sensitivity in English–Norwegian hate speech detection via neutral stability analysis
Ehtesham Hashmi, Muhammad Tayyab Mazhar, sule yildirim yayilgan, Rajendra Akerkar, Mehtab Afzal
Norwegian University of Science and Technology · Vestlandsforsking
Key points
From the paper's conclusion- These findings demonstrate that standard accuracy metrics alone are insufficient and highlight the importance of stability-aware training and evaluation when deploying hate speech detection systems in real-world moderation tasks.
Abstract
Abstract The spread of hate speech has become a serious issue in online communities, negatively influencing user interaction and platform integrity. Although major social media companies have devoted substantial effort to developing automated detection systems, reliably classifying hateful content continues to be difficult. One key reason is shortcut learning, where models rely on frequent or sensitive words instead of understanding sentence meaning and context. Many hate speech detection systems achieve high accuracy while relying on surface-level lexical cues rather than robust semantic understanding. This shortcut-based behavior can lead to unstable predictions, particularly for neutral texts containing identity-related terms. In this paper, we analyze the prediction stability of transformer-based hate speech models when classifying neutral content. We construct a bilingual dataset of English and Norwegian social media posts annotated for binary hate speech detection and evaluate several Norwegian-specific and multilingual transformer models under identical training conditions. To mitigate shortcut learning, we introduce a neutral only stability regularization objective that encourages consistent predictions under stochastic perturbations. In post-training, we assess residual instability by applying controlled masking-based input variations through random token masking and measuring prediction variability. Our results show that Norwegian-specific models, especially Nor-BERT $$_{\text {base}}$$ , produce more stable predictions for neutral content while maintaining competitive classification performance. In contrast, the best-performing multilingual model, mm-BERT $$_{\text {base}}$$ , achieves the highest overall accuracy of 86%, outperforming the Norwegian-specific models in aggregate classification accuracy. However, all models exhibit high worst-case instability, indicating that shortcut-based behavior is not fully resolved. These findings demonstrate that standard accuracy metrics alone are insufficient and highlight the importance of stability-aware training and evaluation when deploying hate speech detection systems in real-world moderation tasks.
Read the paper
Discussion
Science Skim's AI key points, plus readers' public thoughts
Readers' thoughts
No reader thoughts yet.
Related papers
- CoR-Hate: counterfactual retrieval and fairness-regularized hate-speech detectionComplex & Intelligent Systems · 2026
- Mitigating Demographic Disparities in Explanation-Human Alignment via Rationale RegularizationarXiv · 2026
- Global Security Blind Spots: Translation as a Safety Bypass in Low-Resource LanguagesarXiv · 2026
- When Safety Speaks a Language: A Mechanistic Analysis of Safety-Language Identity Entanglement in LLMsarXiv · 2026
- A context-aware hybrid multimodal transformer framework for hate speech detection via contrastive annotation and graph-based semantic ExpansionDiscover Computing · 2026
- Mitigating regional bias in Vietnamese hate speech detection via contrastive learning with adversarial fairness.PloS one · 2026