Simple Contrastive Representation Adversarial Learning for NLP Tasks
Not on the map. Why?
Abstract (arXiv)
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 representation ability. However, the construction of learning pairs over contrastive learning is much harder in NLP tasks. Previous works generate word-level changes to form pairs, but small transforms may cause notable changes on the meaning of sentences as the discrete and sparse nature of natural language. In this paper, adversarial training is performed to generate challenging and harder learning adversarial examples over the embedding space of NLP as learning pairs. Using contrastive learning improves the generalization ability of adversarial training because contrastive loss can uniform the sample distribution. And at the same time, adversarial training also enhances the robustness of contrastive learning. Two novel frameworks, supervised contrastive adversarial learning (SCAL) and unsupervised SCAL (USCAL), are proposed, which yields learning pairs by utilizing the adversarial training for contrastive learning. The label-based loss of supervised tasks is exploited to generate adversarial examples while unsupervised tasks bring contrastive loss. To validate the effectiveness of the proposed framework, we employ it to Transformer-based models for natural language understanding, sentence semantic textual similarity and adversarial learning tasks. Experimental results on GLUE benchmark tasks show that our fine-tuned supervised method outperforms BERTbase over 1.75%. We also evaluate our unsupervised method on semantic textual similarity (STS) tasks, and our method gets 77.29% with BERTbase. The robustness of our approach conducts state-of-the-art results under multiple adversarial datasets on NLI tasks.
Key facts. Cited by 4 papers in the map (data through 7 Oct 2026). Builds on 38 of its 49 references that are in the map. First posted on arXiv 26 Nov 2021.
Builds on
38 of 49 references.
References · 38
- 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,204
- 2019RoBERTa: A Robustly Optimized BERT Pretraining Approachcited by 13,266
- 2020A Simple Framework for Contrastive Learning of Visual Representationscited by 11,979
- 2019Sentence-BERT: Sentence Embeddings using Siamese BERT-Networkscited by 9,049
- 2019Momentum Contrast for Unsupervised Visual Representation Learningcited by 7,482
- 2014Explaining and Harnessing Adversarial Examplescited by 7,287
- 2017Towards Deep Learning Models Resistant to Adversarial Attackscited by 6,326
- 2013Intriguing properties of neural networkscited by 5,114
- 2020Bootstrap your own latent: A new approach to self-supervised Learningcited by 4,712
- 2015Domain-Adversarial Training of Neural Networkscited by 3,023
- 2020Exploring Simple Siamese Representation Learningcited by 2,853
- 2020Supervised Contrastive Learningcited by 2,803
26 more
- 2019XLNet: Generalized Autoregressive Pretraining for Language Understandingcited by 2,801
- 2020Improved Baselines with Momentum Contrastive Learningcited by 2,282
- 2021SimCSE: Simple Contrastive Learning of Sentence Embeddingscited by 2,168
- 2018Generating Natural Language Adversarial Examplescited by 422
- 2019How to Fine-Tune BERT for Text Classification?cited by 409
- 2019PAWS: Paraphrase Adversaries from Word Scramblingcited by 395
- 2017Adversarial Examples: Attacks and Defenses for Deep Learningcited by 350
- 2016Learning from Simulated and Unsupervised Images through Adversarial Trainingcited by 287
- 2016Adversarial Training Methods for Semi-Supervised Text Classificationcited by 280
- 2017Adversarial Examples for Semantic Segmentation and Object Detectioncited by 275
- 2020Supervised Contrastive Learning for Pre-trained Language Model Fine-tuningcited by 275
- 2018Adversarial Attacks and Defences: A Surveycited by 259
- 2019SMART: Robust and Efficient Fine-Tuning for Pre-trained Natural Language Models through Principled Regularized Optimizationcited by 253
- 2021ConSERT: A Contrastive Framework for Self-Supervised Sentence Representation Transfercited by 231
- 2020Robust Pre-Training by Adversarial Contrastive Learningcited by 144
- 2020Adversarial Self-Supervised Contrastive Learningcited by 138
- 2020Adversarial Training for Large Neural Language Modelscited by 109
- 2020InfoBERT: Improving Robustness of Language Models from An Information Theoretic Perspectivecited by 92
- 2020Contrastive Learning with Adversarial Examplescited by 91
- 2020AdCo: Adversarial Contrast for Efficient Learning of Unsupervised Representations from Self-Trained Negative Adversariescited by 90
- 2017Perceptual Generative Adversarial Networks for Small Object Detectioncited by 76
- 2020Contrastive Learning with Adversarial Perturbations for Conditional Text Generationcited by 56
- 2021CLINE: Contrastive Learning with Semantic Negative Examples for Natural Language Understandingcited by 50
- 2020The Curious Case of Adversarially Robust Models: More Data Can Help, Double Descend, or Hurt Generalizationcited by 39
- 2018Towards Robust Neural Machine Translationcited by 35
- 2021Adversarial Training with Contrastive Learning in NLPcited by 6
Built on by
Citing papers per year: 2022: 1; 2023: 1; 2024: 2.
4 papers.
- 2023LM-CPPF: Paraphrasing-Guided Data Augmentation for Contrastive Prompt-Based Few-Shot Fine-Tuningcited by 15
- 2022AD-DROP: Attribution-Driven Dropout for Robust Language Model Fine-Tuningcited by 4
- 2024Robust Interaction-Based Relevance Modeling for Online e-Commerce Searchcited by 3
- 2024RobustSentEmbed: Robust Sentence Embeddings Using Adversarial Self-Supervised Contrastive Learningcited by 2
- 2024Robust Interaction-Based Relevance Modeling for Online e-Commerce Search4 Jun 2024
- 2024RobustSentEmbed: Robust Sentence Embeddings Using Adversarial Self-Supervised Contrastive Learning17 Mar 2024
- 2023LM-CPPF: Paraphrasing-Guided Data Augmentation for Contrastive Prompt-Based Few-Shot Fine-Tuning29 May 2023
- 2022AD-DROP: Attribution-Driven Dropout for Robust Language Model Fine-Tuning12 Oct 2022