Mitigating the Negative Transfer in Multi‐Task Learning for Harmful Language Detection in Spanish and Arabic
ABSTRACT Negative transfer continues to limit the benefits of multi‐task learning (MTL) in harmful language detection, where related tasks must share representations without diluting task‐specific nuances. We introduce task awareness (TA), a methodological framework that explicitly conditions MTL models on the task they must solve. TA is instantiated through two complementary mechanisms: Task‐aware input (TAI), which augments textual inputs with natural‐language task descriptions, and task embedding (TE), which learns task‐specific transformations guided by a task identification vector. Together they enable the encoder to disentangle shared and task‐dependent signals, reducing interference during joint optimisation. We integrate TA with BETO and AraBERT encoders and evaluate on six Spanish and Arabic datasets covering sexism, toxicity, offensive language, and hate speech. Across cross‐validation and official train‐test splits, TA consistently mitigates negative transfer, surpasses single‐task and conventional MTL baselines, and yields new state‐of‐the‐art scores on EXIST‐2021, HatEval‐2019, and HSArabic‐2023. The proposed methodology therefore combines a principled architectural innovation with demonstrated practical gains for multilingual harmful language detection. The resources to reproduce our experiments are publicly available at https://github.com/AngelFelipeMP/Arabic‐MultiTask‐Learning .
Authors
- Angel Felipe Magnossão de Paula (ORCID: https://orcid.org/0000-0001-8575-5012)
- Imene Bensalem (ORCID: https://orcid.org/0000-0002-2462-5967)
- Damiano Spina
- Paolo Rosso
Institutions
- University Frères Mentouri Constantine 1 (DZ)
- École Normale Supérieure de Constantine (DZ)
- Artificial Intelligence Research Institute (ES)
- Université Constantine 2 (DZ)
- Universitat Politècnica de València (ES)
- RMIT University (AU)
Publication Details
- Journal
- Expert Systems
- Published
- 2026-01-04
- DOI
- https://doi.org/10.1111/exsy.70182
- Primary Topic
- Hate Speech and Cyberbullying Detection
- Type
- article
- Field-Weighted Citation Impact
- 0.00
Funders
- European Commission
- Agencia Estatal de Investigación