Simple-Sampling and Hard-Mixup with Prototypes to Rebalance Contrastive Learning for Text Classification

Fuente: arXiv
Saved in:
Bibliographic Details
Main Authors: Li, Mengyu, Liu, Yonghao, Giunchiglia, Fausto, Li, Ximing, Feng, Xiaoyue, Guan, Renchu
Format: Preprint
Published: 2024
Subjects:
Online Access:
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866911392587579392
author Li, Mengyu
Liu, Yonghao
Giunchiglia, Fausto
Li, Ximing
Feng, Xiaoyue
Guan, Renchu
author_facet Li, Mengyu
Liu, Yonghao
Giunchiglia, Fausto
Li, Ximing
Feng, Xiaoyue
Guan, Renchu
contents 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.
format Preprint
id arxiv_https___arxiv_org_abs_2405_11524
institution arXiv
publishDate 2024
record_format arxiv
spellingShingle Simple-Sampling and Hard-Mixup with Prototypes to Rebalance Contrastive Learning for Text Classification
Li, Mengyu
Liu, Yonghao
Giunchiglia, Fausto
Li, Ximing
Feng, Xiaoyue
Guan, Renchu
Computation and Language
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.
title Simple-Sampling and Hard-Mixup with Prototypes to Rebalance Contrastive Learning for Text Classification
topic Computation and Language
url https://arxiv.org/abs/2405.11524