CLAISep 12, 2021

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

arXiv:2109.05427v1667 citations
Originality Incremental advance
AI Analysis

This addresses the problem of subtle class distinctions in fine-grained text classification for NLP practitioners, offering an incremental improvement over existing contrastive methods.

The paper tackles fine-grained text classification by proposing a Label-aware Contrastive Loss that adaptively weights confusable negatives more heavily, outperforming previous contrastive methods on emotion classification and sentiment analysis tasks, particularly with larger or more confusable classes.

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.

Code Implementations1 repo
Foundations

The foundational work for this paper's niche, ranked by how specifically the neighbourhood builds on it — not by global fame.

Your Notes