Not All Negatives are Equal: Label-Aware Contrastive Loss for Fine-grained Text Classification
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 (1)
Tasks
AllClassificationEmotion ClassificationSentiment Analysistext-classificationText ClassificationSimilar Papers 제목 키워드 기반
SEAL: Semantic-Aware Hierarchical Learning for Generalized Category Discovery
This paper investigates the problem of Generalized Category Discovery (GCD). Given a partially labelled dataset, GCD aims to categorize all unlabelled images, regardless of whether they belong to known or unknown classes…
Contrastive LearningSmoothed Graph Contrastive Learning via Seamless Proximity Integration
Graph contrastive learning (GCL) aligns node representations by classifying node pairs into positives and negatives using a selection process that typically relies on establishing correspondences within two augmented gra…
Contrastive LearningPositive-Negative Equal Contrastive Loss for Semantic Segmentation
The contextual information is critical for various computer vision tasks, previous works commonly design plug-and-play modules and structural losses to effectively extract and aggregate the global context. These methods …
Contrastive LearningSemantic SegmentationCAST: Contrastive Adaptation and Distillation for Semi-Supervised Instance Segmentation
Instance segmentation demands costly per-pixel annotations and large models. We introduce CAST, a semi-supervised knowledge distillation (SSKD) framework that compresses pretrained vision foundation models (VFM) into com…
Domain AdaptationInstance SegmentationKnowledge DistillationPseudo Label+2Empowering Collaborative Filtering with Principled Adversarial Contrastive Loss
Contrastive Learning (CL) has achieved impressive performance in self-supervised learning tasks, showing superior generalization ability. Inspired by the success, adopting CL into collaborative filtering (CF) is prevaili…
Collaborative FilteringContrastive LearningData AugmentationRecommendation Systems+1