Litcius/Paper detail

Not All Negatives are Equal: Label-Aware Contrastive Loss for Fine-grained Text Classification

Varsha Suresh, Desmond C. Ong

2021Proceedings of the 2021 Conference on Empirical Methods in Natural Language Processing73 citationsDOIOpen Access PDF

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.

Topics & Concepts

Computer scienceWeightingFocus (optics)Artificial intelligenceClass (philosophy)False positive paradoxNatural language processingPattern recognition (psychology)RadiologyMedicineOpticsPhysicsTopic ModelingNatural Language Processing TechniquesSentiment Analysis and Opinion Mining
Not All Negatives are Equal: Label-Aware Contrastive Loss for Fine-grained Text Classification | Litcius