Not All Negatives are Equal: Label-Aware Contrastive Loss for Fine-grained Text Classification
Varsha Suresh, Desmond C. Ong
Abstract
Fine-grained classification involves dealing with datasets with larger number of classes with subtle differences between them. Guiding the model to focus on differentiating dimensions between these commonly confusable classes is key to improving performance on fine-grained tasks. In this work, we analyse the contrastive fine-tuning of pre-trained language models on two fine-grained text classification tasks, emotion classification and sentiment analysis. We adaptively embed class relationships into a contrastive objective function to help differently weigh the positives and negatives, and in particular, weighting closely confusable negatives more than less similar negative examples. We find that Label-aware Contrastive Loss outperforms previous contrastive methods, in the presence of larger number and/or more confusable classes, and helps models to produce output distributions that are more differentiated.
Ask about this paper
Your agent reads all of it.
Lune indexed this paper to the last equation, along with the top-tier papers that cite it. Ask a question and the answer quotes them.
Cited by top-tier papers14
- Conditional Information Bottleneck Approach for Time Series ImputationMinGyu Choi, Changhee LeeICLR 2024 · 24 citations
- Facilitating Contrastive Learning of Discourse Relational Senses by Exploiting the Hierarchy of Sense RelationsWanqiu Long, Bonnie WebberEMNLP 2022 · 15 citations
- CPL: Counterfactual Prompt Learning for Vision and Language ModelsXuehai He, Diji Yang, Weixi Feng, Tsu-Jui Fu et al.EMNLP 2022 · 13 citations
- Contrastive Representation Regularization for Vision-Language-Action ModelsTaeyoung Kim, Jimin Lee, Myungkyu Koo, Dongyoung Kim et al.ICML 2026 · 13 citations
- Simple-Sampling and Hard-Mixup with Prototypes to Rebalance Contrastive Learning for Text ClassificationMengyu Li, Yonghao Liu, Fausto Giunchiglia, Ximing Li et al.WWW 2026 · 7 citations
Builds on16
- A Simple Framework for Contrastive Learning of Visual RepresentationsTing Chen, Simon Kornblith, Mohammad Norouzi, Geoffrey E. HintonICML 2020 · 24,064 citations
- Supervised Contrastive LearningPrannay Khosla, Piotr Teterwak, Chen Wang, Aaron Sarna et al.NeurIPS 2020 · 7,049 citations
- SimCSE: Simple Contrastive Learning of Sentence EmbeddingsTianyu Gao, Xingcheng Yao, Danqi ChenEMNLP 2021 · 2,496 citations
- ELECTRA: Pre-training Text Encoders as Discriminators Rather Than GeneratorsKevin Clark, Minh-Thang Luong, Quoc V. Le, Christopher D. ManningICLR 2020 · 541 citations
- SKEP: Sentiment Knowledge Enhanced Pre-training for Sentiment AnalysisHao Tian, Can Gao, Xinyan Xiao, Hao Liu et al.ACL 2020 · 265 citations
Related papers
- Retrofitting Light-weight Language Models for Emotions using Supervised Contrastive LearningSapan Shah, Sreedhar Reddy, Pushpak BhattacharyyaEMNLP 2023 · 4 citations
- A Generic Method for Fine-grained Category Discovery in Natural Language TextsChang Tian, Matthew B. Blaschko, Wenpeng Yin, Mingzhe Xing et al.EMNLP 2024 · 2 citations
- Adversarial Metric Learning for Fine-Grained Emotion ClassificationJunfan Chen, Sizhe Wu, Richong Zhang, Chunming HuACL 2026
- Reducing Sentiment Bias in Pre-trained Sentiment Classification via Adaptive Gumbel AttackJiachen Tian, Shizhan Chen, Xiaowang Zhang, Xin Wang et al.AAAI 2023 · 5 citations
- A Triple-View Framework for Fine-Grained Emotion Classification with Clustering-Guided Contrastive LearningJunqing Gong, Binhan Yang, Wei ShenACL 2025
