mlsanityData to 24 Nov 2026

On the Effectiveness and Limitations of Open-Weight LLMs for Low-Resource Offensive Language Detection in Danish

arXiv 2611.09506 ↗Submitted 6 Nov 2026cs.CLcited by 0

Not on the map. Why?

Abstract (arXiv)

We study the effectiveness and robustness of open-weight large language models (LLMs) for Danish offensive language detection, an underexplored low-resource task. We evaluate four model families (Llama, Mistral, Gemma, and Qwen) across eleven prompting strategies spanning five design categories, cross-prompt generalization, Danish orthographic variation, and robustness under balanced and naturally imbalanced class distributions. We compare against three BERT-family baselines with distinct pre-training strategies, evaluated via both masked language model prompting and supervised fine-tuning. Even without task-specific fine-tuning, LLMs can surpass all three fine-tuned BERT baselines, and lightweight finetuning yields substantial further gains. No single model or prompt category dominates, underscoring that prompt design interacts with model pre-training in ways that cannot be predicted a priori. Semantically grounded prompts transfer more robustly, while format-constrained patterns consistently fail to generalize. ASCII transliteration of Danish-specific characters (ae, o, aa) generally degrades performance, indicating these characters encode meaningful signal. At the same time, the gap between a balanced test set (best F1 of 0.84) and the corpus's natural class skew (0.62 trained on skewed data, 0.70 trained on balanced data) -- relative drops of 26.2% and 16.7% -- shows that class imbalance remains a critical open challenge. Our code and configurations are available at https://github.com/PASHAADC/Danish-LLM-HateSpeech.

Key facts. No citing papers in the map yet (data through 24 Nov 2026). Builds on 16 of its 23 references that are in the map. Submitted 6 Nov 2026.

Builds on

16 of 23 references.

References · 16

  1. 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 41,272
  2. 2024The Llama 3 Herd of Modelscited by 16,113
  3. 2021LoRA: Low-Rank Adaptation of Large Language Modelscited by 15,591
  4. 2022Chain-of-Thought Prompting Elicits Reasoning in Large Language Modelscited by 12,963
  5. 2023Mistral 7Bcited by 3,489
  6. 2024Qwen2 Technical Reportcited by 2,293
  7. 2024Gemma 2: Improving Open Language Models at a Practical Sizecited by 2,225
  8. 2023A Prompt Pattern Catalog to Enhance Prompt Engineering with ChatGPTcited by 644
  9. 2023Probing LLMs for hate speech detection: strengths and vulnerabilitiescited by 54
  10. 2019Offensive Language and Hate Speech Detection for Danishcited by 52
  11. 2024Don't Go To Extremes: Revealing the Excessive Sensitivity and Calibration Limitations of LLMs in Implicit Hate Speech Detectioncited by 28
  12. 2023Transfer to a Low-Resource Language via Close Relatives: The Case Study on Faroesecited by 17
4 more
  1. 2024HateDay: Insights from a Global Hate Speech Dataset Representative of a Day on Twittercited by 16
  2. 2025A Modular Taxonomy for Hate Speech Definitions and Its Impact on Zero-Shot LLM Classification Performancecited by 8
  3. 2024HateCOT: An Explanation-Enhanced Dataset for Generalizable Offensive Speech Detection via Large Language Modelscited by 6
  4. 2025DaKultur: Evaluating the Cultural Awareness of Language Models for Danish with Native Speakerscited by 4

Built on by

Not cited yet.