English

Addressing Data Imbalance in Transformer-Based Multi-Label Emotion Detection with Weighted Loss

Computation and Language 2026-02-05 v3

Abstract

This paper explores the application of a simple weighted loss function to Transformer-based models for multi-label emotion detection in SemEval-2025 Shared Task 11. Our approach addresses data imbalance by dynamically adjusting class weights, thereby enhancing performance on minority emotion classes without the computational burden of traditional resampling methods. We evaluate BERT, RoBERTa, and BART on the BRIGHTER dataset, using evaluation metrics such as Micro F1, Macro F1, ROC-AUC, Accuracy, and Jaccard similarity coefficients. The results demonstrate that the weighted loss function improves performance on high-frequency emotion classes but shows limited impact on minority classes. These findings underscore both the effectiveness and the challenges of applying this approach to imbalanced multi-label emotion detection.

Keywords

Cite

@article{arxiv.2507.11384,
  title  = {Addressing Data Imbalance in Transformer-Based Multi-Label Emotion Detection with Weighted Loss},
  author = {Xia Cui},
  journal= {arXiv preprint arXiv:2507.11384},
  year   = {2026}
}

Comments

10 pages, 1 figure, SemEval 2025

R2 v1 2026-07-01T04:02:30.179Z