Simple-Sampling and Hard-Mixup with Prototypes to Rebalance Contrastive Learning for Text Classification
Mengyu Li, Yonghao Liu, Fausto Giunchiglia, Ximing Li, Xiaoyue Feng, Renchu Guan
Abstract
Text classification is a crucial and fundamental task in web content mining. Compared with the previous learning paradigm of pre-training and fine-tuning by cross entropy loss, the recently proposed supervised contrastive learning approach has received tremendous attention due to its powerful feature learning capability and robustness. Although several studies have incorporated this technique for text classification, some limitations remain. First, many text datasets are imbalanced, and the learning mechanism of supervised contrastive learning is sensitive to data imbalance, which may harm the model's performance. Moreover, these models leverage separate classification branches with cross entropy and supervised contrastive learning branches without explicit mutual guidance. To this end, we propose a novel model named SharpReCL for imbalanced text classification tasks. First, we obtain the prototype vector of each class in the balanced classification branch to act as a representation of each class. Then, by further explicitly leveraging the prototype vectors, we construct a proper and sufficient target sample set with the same size for each class to perform the supervised contrastive learning procedure. The empirical results show the effectiveness of our model, which even outperforms popular large language models across several datasets. Our code is available here.
Ask Lune
Know this paper in minutes, not an afternoon.
Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.
6 top-tier papers have cited it since. Know what they found before your reviewers do.
Lune can draw on
the full paper · the top-tier papers that cite it · related work
Free to start. No credit card required.
Lineage
- Enhancing Unsupervised Graph Few-shot Learning via Set Functions and Optimal Transport cites A Simple Graph Contrastive Learning Framework for Short Text Classification
- Enhancing Unsupervised Graph Few-shot Learning via Set Functions and Optimal Transport cites Boosting Short Text Classification with Multi-Source Information Exploration and Dual-Level Contrastive Learning
- Dual-level Mixup for Graph Few-shot Learning with Fewer Tasks cites Enhancing Unsupervised Graph Few-shot Learning via Set Functions and Optimal Transport
- Dual-level Mixup for Graph Few-shot Learning with Fewer Tasks cites A Simple Graph Contrastive Learning Framework for Short Text Classification
- Dual-level Mixup for Graph Few-shot Learning with Fewer Tasks cites Boosting Short Text Classification with Multi-Source Information Exploration and Dual-Level Contrastive Learning
- TRACE: Discovering Task-Specific Parameter via Adaptation-Aware Probing for Continual Fine-Tuning cites LoRA: Low-Rank Adaptation of Large Language Models
- TRACE: Discovering Task-Specific Parameter via Adaptation-Aware Probing for Continual Fine-Tuning cites Training language models to follow instructions with human feedback
- TRACE: Discovering Task-Specific Parameter via Adaptation-Aware Probing for Continual Fine-Tuning cites Boosting Short Text Classification with Multi-Source Information Exploration and Dual-Level Contrastive Learning
- Contrastive Learning with Hard Negative Samples cites A Simple Framework for Contrastive Learning of Visual Representations
- SimCSE: Simple Contrastive Learning of Sentence Embeddings cites A Simple Framework for Contrastive Learning of Visual Representations
- A Simple Graph Contrastive Learning Framework for Short Text Classification cites A Simple Framework for Contrastive Learning of Visual Representations
- A Simple Graph Contrastive Learning Framework for Short Text Classification cites SimCSE: Simple Contrastive Learning of Sentence Embeddings
- A Simple Graph Contrastive Learning Framework for Short Text Classification cites Training language models to follow instructions with human feedback
- A Simple Graph Contrastive Learning Framework for Short Text Classification cites Boosting Short Text Classification with Multi-Source Information Exploration and Dual-Level Contrastive Learning
- Boosting Short Text Classification with Multi-Source Information Exploration and Dual-Level Contrastive Learning cites SimCSE: Simple Contrastive Learning of Sentence Embeddings
- Boosting Short Text Classification with Multi-Source Information Exploration and Dual-Level Contrastive Learning cites Training language models to follow instructions with human feedback
Cited by top-tier papers6
- Dual-level Mixup for Graph Few-shot Learning with Fewer TasksYonghao Liu, Mengyu Li, Fausto Giunchiglia, Lan Huang et al.WWW 2025 · 8 citations
- A Simple Graph Contrastive Learning Framework for Short Text ClassificationYonghao Liu, Fausto Giunchiglia, Lan Huang, Ximing Li et al.AAAI 2025 · 6 citations
- Boosting Short Text Classification with Multi-Source Information Exploration and Dual-Level Contrastive LearningYonghao Liu, Mengyu Li, Wei Pang, Fausto Giunchiglia et al.AAAI 2025 · 6 citations
- TRACE: Discovering Task-Specific Parameter via Adaptation-Aware Probing for Continual Fine-TuningXiaosong Han, Ke Chen, Xindi Dai, Di Liang et al.KDD 2026 · 1 citation
- Enhancing Unsupervised Graph Few-shot Learning via Set Functions and Optimal TransportYonghao Liu, Fausto Giunchiglia, Ximing Li, Lan Huang et al.KDD 2025
Builds on19
- Training language models to follow instructions with human feedbackLong Ouyang, Jeffrey Wu, Xu Jiang, Diogo Almeida et al.NeurIPS 2022 · 24,707 citations
- A Simple Framework for Contrastive Learning of Visual RepresentationsTing Chen, Simon Kornblith, Mohammad Norouzi, Geoffrey E. HintonICML 2020 · 24,064 citations
- LoRA: Low-Rank Adaptation of Large Language ModelsEdward J. Hu, Yelong Shen, Phillip Wallis, Zeyuan Allen-Zhu et al.ICLR 2022 · 18,833 citations
- SimCSE: Simple Contrastive Learning of Sentence EmbeddingsTianyu Gao, Xingcheng Yao, Danqi ChenEMNLP 2021 · 2,496 citations
- Contrastive Learning with Hard Negative SamplesJoshua David Robinson, Ching-Yao Chuang, Suvrit Sra, Stefanie JegelkaICLR 2021 · 999 citations
Related papers
- DualCL: Principled Supervised Contrastive Learning as Mutual Information Maximization for Text ClassificationJunfan Chen, Richong Zhang, Yaowei Zheng, Qianben Chen et al.WWW 2024 · 4 citations
- Robust Representation Learning with Reliable Pseudo-labels Generation via Self-Adaptive Optimal Transport for Short Text ClusteringXiaolin Zheng, Mengling Hu, Weiming Liu, Chaochao Chen et al.ACL 2023 · 12 citations
- Subclass-balancing Contrastive Learning for Long-tailed RecognitionChengkai Hou, Jieyu Zhang, Haonan Wang, Tianyi ZhouICCV 2023 · 50 citations
- Exploring Balanced Feature Spaces for Representation LearningBingyi Kang, Yu Li, Sa Xie, Zehuan Yuan et al.ICLR 2021 · 296 citations
- Constructing contrastive samples via summarization for text classification with limited annotationsYangkai Du, Tengfei Ma, Lingfei Wu, Fangli Xu et al.EMNLP Findings 2021 · 13 citations
