Fine-Grained Emotion Detection on GoEmotions: Experimental Comparison of Classical Machine Learning, BiLSTM, and Transformer Models
Ani Harutyunyan, Sachin Kumar
TL;DR
Fine-grained emotion detection on the GoEmotions dataset is framed as a multi-label task with severe label imbalance. The authors compare three model families—TF-IDF logistic regression with Binary Relevance, a BiLSTM with Attention, and a BERT-based multi-label classifier—under a unified experimental setup using the official train/val/test splits and inverse-frequency weighting (with focal loss as a balance mechanism). They report that logistic regression achieves the highest Micro-F1 (0.51), while BERT delivers the strongest overall balance, with Macro-F1 0.49, Hamming Loss 0.036, and Subset Accuracy 0.36, highlighting the complementary roles of lexical cues and contextual representations for frequent versus rare emotions. These results illuminate practical trade-offs for imbalanced, multi-label emotion classification and suggest directions for threshold calibration, label-dependency modeling, and hybrid contextualization to further improve performance.
Abstract
Fine-grained emotion recognition is a challenging multi-label NLP task due to label overlap and class imbalance. In this work, we benchmark three modeling families on the GoEmotions dataset: a TF-IDF-based logistic regression system trained with binary relevance, a BiLSTM with attention, and a BERT model fine-tuned for multi-label classification. Experiments follow the official train/validation/test split, and imbalance is mitigated using inverse-frequency class weights. Across several metrics, namely Micro-F1, Macro-F1, Hamming Loss, and Subset Accuracy, we observe that logistic regression attains the highest Micro-F1 of 0.51, while BERT achieves the best overall balance surpassing the official paper's reported results, reaching Macro-F1 0.49, Hamming Loss 0.036, and Subset Accuracy 0.36. This suggests that frequent emotions often rely on surface lexical cues, whereas contextual representations improve performance on rarer emotions and more ambiguous examples.
