基于原型的简单采样与硬混合以平衡对比学习用于文本分类
Simple-Sampling and Hard-Mixup with Prototypes to Rebalance Contrastive Learning for Text Classification
AI总结:
本文提出SharpReCL模型,通过原型向量和硬混合技术解决文本分类中的数据不平衡问题,提升对比学习效果。
摘要:
文本分类是网络内容挖掘中的关键和基础任务。与之前的基于交叉熵损失的预训练和微调学习范式相比,最近提出的监督对比学习方法由于其强大的特征学习能力和鲁棒性而受到广泛关注。尽管已有研究将此技术应用于文本分类,但仍存在一些局限性。首先,许多文本数据集是不平衡的,而监督对比学习的学习机制对数据不平衡敏感,这可能会损害模型性能。此外,这些模型利用独立的分类分支,使用交叉熵和监督对比学习分支,没有明确的相互指导。为此,我们提出了一种新的模型,称为SharpReCL,用于不平衡文本分类任务。首先,我们通过平衡分类分支获得每个类别的原型向量,用作每个类别的表示。然后,通过进一步利用原型向量,我们构建了一个与每个类大小相同的目标样本集,以执行监督对比学习过程。实证结果表明了我们模型的有效性,甚至在多个数据集上超过了流行的大型语言模型。我们的代码可在此处获取。
英文摘要:
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.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。