Improved Text Classification via Contrastive Adversarial Training
We propose a simple and general method to regularize the fine-tuning of Transformer-based encoders for text classification tasks. Specifically, during fine-tuning we generate adversarial examples by perturbing the word embeddings of the model and perform contrastive learning on clean and adversarial examples in order to teach the model to learn noise-invariant representations. By training on both clean and adversarial examples along with the additional contrastive objective, we observe consistent improvement over standard fine-tuning on clean examples. On several GLUE benchmark tasks, our fine-tuned BERT Large model outperforms BERT Large baseline by 1.7% on average, and our fine-tuned RoBERTa Large improves over RoBERTa Large baseline by 1.3%. We additionally validate our method in different domains using three intent classification datasets, where our fine-tuned RoBERTa Large outperforms RoBERTa Large baseline by 1-2% on average.
Code (0)
등록된 구현이 없습니다.
Tasks
ClassificationContrastive Learningintent-classificationIntent Classificationtext-classificationText ClassificationWord EmbeddingsMethods 이 논문이 사용한 방법론
Similar Papers 제목 키워드 기반
Improving Gradient-based Adversarial Training for Text Classification by Contrastive Learning and Auto-Encoder
Recent work has proposed several efficient approaches for generating gradient-based adversarial perturbations on embeddings and proved that the model's performance and robustness can be improved when they are trained wit…
Adversarial AttackContrastive LearningSentencetext-classification+1SCAT: Robust Self-supervised Contrastive Learning via Adversarial Training for Text Classification
Despite their promising performance across various natural language processing (NLP) tasks, current NLP systems are vulnerable to textual adversarial attacks. To defend against these attacks, most existing methods apply …
Contrastive Learningtext-classificationText ClassificationFACTUAL: A Novel Framework for Contrastive Learning Based Robust SAR Image Classification
Deep Learning (DL) Models for Synthetic Aperture Radar (SAR) Automatic Target Recognition (ATR), while delivering improved performance, have been shown to be quite vulnerable to adversarial attacks. Existing works improv…
Contrastive Learningimage-classificationImage ClassificationSimple Contrastive Representation Adversarial Learning for NLP Tasks
Self-supervised learning approach like contrastive learning is attached great attention in natural language processing. It uses pairs of training data augmentations to build a classification task for an encoder with well…
Contrastive LearningNatural Language UnderstandingSelf-Supervised LearningSemantic Textual Similarity+2Supervised Contrastive Prototype Learning: Augmentation Free Robust Neural Network
Transformations in the input space of Deep Neural Networks (DNN) lead to unintended changes in the feature space. Almost perceptually identical inputs, such as adversarial examples, can have significantly distant feature…
ClassificationContrastive Learning