mlsanityData to 7 Oct 2026

Simple Contrastive Representation Adversarial Learning for NLP Tasks

arXiv 2111.13301 ↗First posted 26 Nov 2021cs.CLcited by 4

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

  1. 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,204
  2. 2019RoBERTa: A Robustly Optimized BERT Pretraining Approachcited by 13,266
  3. 2020A Simple Framework for Contrastive Learning of Visual Representationscited by 11,979
  4. 2019Sentence-BERT: Sentence Embeddings using Siamese BERT-Networkscited by 9,049
  5. 2019Momentum Contrast for Unsupervised Visual Representation Learningcited by 7,482
  6. 2014Explaining and Harnessing Adversarial Examplescited by 7,287
  7. 2017Towards Deep Learning Models Resistant to Adversarial Attackscited by 6,326
  8. 2013Intriguing properties of neural networkscited by 5,114
  9. 2020Bootstrap your own latent: A new approach to self-supervised Learningcited by 4,712
  10. 2015Domain-Adversarial Training of Neural Networkscited by 3,023
  11. 2020Exploring Simple Siamese Representation Learningcited by 2,853
  12. 2020Supervised Contrastive Learningcited by 2,803
26 more
  1. 2019XLNet: Generalized Autoregressive Pretraining for Language Understandingcited by 2,801
  2. 2020Improved Baselines with Momentum Contrastive Learningcited by 2,282
  3. 2021SimCSE: Simple Contrastive Learning of Sentence Embeddingscited by 2,168
  4. 2018Generating Natural Language Adversarial Examplescited by 422
  5. 2019How to Fine-Tune BERT for Text Classification?cited by 409
  6. 2019PAWS: Paraphrase Adversaries from Word Scramblingcited by 395
  7. 2017Adversarial Examples: Attacks and Defenses for Deep Learningcited by 350
  8. 2016Learning from Simulated and Unsupervised Images through Adversarial Trainingcited by 287
  9. 2016Adversarial Training Methods for Semi-Supervised Text Classificationcited by 280
  10. 2017Adversarial Examples for Semantic Segmentation and Object Detectioncited by 275
  11. 2020Supervised Contrastive Learning for Pre-trained Language Model Fine-tuningcited by 275
  12. 2018Adversarial Attacks and Defences: A Surveycited by 259
  13. 2019SMART: Robust and Efficient Fine-Tuning for Pre-trained Natural Language Models through Principled Regularized Optimizationcited by 253
  14. 2021ConSERT: A Contrastive Framework for Self-Supervised Sentence Representation Transfercited by 231
  15. 2020Robust Pre-Training by Adversarial Contrastive Learningcited by 144
  16. 2020Adversarial Self-Supervised Contrastive Learningcited by 138
  17. 2020Adversarial Training for Large Neural Language Modelscited by 109
  18. 2020InfoBERT: Improving Robustness of Language Models from An Information Theoretic Perspectivecited by 92
  19. 2020Contrastive Learning with Adversarial Examplescited by 91
  20. 2020AdCo: Adversarial Contrast for Efficient Learning of Unsupervised Representations from Self-Trained Negative Adversariescited by 90
  21. 2017Perceptual Generative Adversarial Networks for Small Object Detectioncited by 76
  22. 2020Contrastive Learning with Adversarial Perturbations for Conditional Text Generationcited by 56
  23. 2021CLINE: Contrastive Learning with Semantic Negative Examples for Natural Language Understandingcited by 50
  24. 2020The Curious Case of Adversarially Robust Models: More Data Can Help, Double Descend, or Hurt Generalizationcited by 39
  25. 2018Towards Robust Neural Machine Translationcited by 35
  26. 2021Adversarial Training with Contrastive Learning in NLPcited by 6

Built on by

Cited by year

Citing papers per year: 2022: 1; 2023: 1; 2024: 2.

4 papers.