HyperAIHyperAI

Command Palette

Search for a command to run...

5 months ago

Dual Contrastive Learning: Text Classification via Label-Aware Data Augmentation

Qianben Chen; Richong Zhang; Yaowei Zheng; Yongyi Mao

Dual Contrastive Learning: Text Classification via Label-Aware Data Augmentation

Abstract

Contrastive learning has achieved remarkable success in representation learning via self-supervision in unsupervised settings. However, effectively adapting contrastive learning to supervised learning tasks remains as a challenge in practice. In this work, we introduce a dual contrastive learning (DualCL) framework that simultaneously learns the features of input samples and the parameters of classifiers in the same space. Specifically, DualCL regards the parameters of the classifiers as augmented samples associating to different labels and then exploits the contrastive learning between the input samples and the augmented samples. Empirical studies on five benchmark text classification datasets and their low-resource version demonstrate the improvement in classification accuracy and confirm the capability of learning discriminative representations of DualCL.

Code Repositories

hiyouga/dual-contrastive-learning
Official
pytorch
Mentioned in GitHub
hiyouga/hiyouga
tf
Mentioned in GitHub

Benchmarks

BenchmarkMethodologyMetrics
sentiment-analysis-on-sst-2-binaryRoBERTa+DualCL
Accuracy: 94.91
subjectivity-analysis-on-subjRoBERTa+DualCL
Accuracy: 97.34
text-classification-on-trec-6RoBERTa+DualCL
Error: 2.60

Build AI with AI

From idea to launch — accelerate your AI development with free AI co-coding, out-of-the-box environment and best price of GPUs.

AI Co-coding
Ready-to-use GPUs
Best Pricing
Get Started

Hyper Newsletters

Subscribe to our latest updates
We will deliver the latest updates of the week to your inbox at nine o'clock every Monday morning
Powered by MailChimp
Dual Contrastive Learning: Text Classification via Label-Aware Data Augmentation | Papers | HyperAI