Lune

ICLR2021Top-tier venue

CoDA: Contrast-enhanced and Diversity-promoting Data Augmentation for Natural Language Understanding

Yanru Qu, Dinghan Shen, Yelong Shen, Sandra Sajeev, Weizhu Chen, Jiawei Han

Abstract

Data augmentation has been demonstrated as an effective strategy for improving model generalization and data efficiency. However, due to the discrete nature of natural language, designing label-preserving transformations for text data tends to be more challenging. In this paper, we propose a novel data augmentation framework dubbed CoDA, which synthesizes diverse and informative augmented examples by integrating multiple transformations organically. Moreover, a contrastive regularization objective is introduced to capture the global relationship among all the data samples. A momentum encoder along with a memory bank is further leveraged to better estimate the contrastive loss. To verify the effectiveness of the proposed framework, we apply CoDA to Transformer-based models on a wide range of natural language understanding tasks. On the GLUE benchmark, CoDA gives rise to an average improvement of 2.2% while applied to the RoBERTa-large model. More importantly, it consistently exhibits stronger results relative to several competitive data augmentation and adversarial training base-lines (including the low-resource settings). Extensive experiments show that the proposed contrastive objective can be flexibly combined with various data augmentation approaches to further boost their performance, highlighting the wide applicability of the CoDA framework.

Ask Lune

Know this paper in minutes, not an afternoon.

Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.

8 top-tier papers have cited it since. Know what they found before your reviewers do.

Questions to start from

Lune can draw on

the full paper · the top-tier papers that cite it · related work

Get the answer

Free to start. No credit card required.

Lineage

  • Text Style Transfer with Contrastive Transfer Pattern Mining cites Supervised Contrastive Learning
  • COCO-LM: Correcting and Contrasting Text Sequences for Language Model Pretraining cites A Simple Framework for Contrastive Learning of Visual Representations
  • Hierarchical Topology Isomorphism Expertise Embedded Graph Contrastive Learning cites A Simple Framework for Contrastive Learning of Visual Representations
  • Why Does Dropping Edges Usually Outperform Adding Edges in Graph Contrastive Learning? cites A Simple Framework for Contrastive Learning of Visual Representations
  • Supervised Contrastive Learning cites A Simple Framework for Contrastive Learning of Visual Representations
  • Exploring Empty Spaces: Human-in-the-Loop Data Augmentation cites RandAugment: Practical Automated Data Augmentation with a Reduced Search Space
Builds onCited byLeft to right by year; the more cited, the higher.

Cited by top-tier papers8

  1. COCO-LM: Correcting and Contrasting Text Sequences for Language Model PretrainingYu Meng, Chenyan Xiong, Payal Bajaj, Saurabh Tiwary et al.NeurIPS 2021 · 231 citations
  2. Exploring Empty Spaces: Human-in-the-Loop Data AugmentationCatherine Yeh, Donghao Ren, Yannick Assogba, Dominik Moritz et al.CHI 2025 · 13 citations
  3. Hierarchical Topology Isomorphism Expertise Embedded Graph Contrastive LearningJiangmeng Li, Yifan Jin, Hang Gao, Wenwen Qiang et al.AAAI 2024 · 10 citations
  4. Text Style Transfer with Contrastive Transfer Pattern MiningJingxuan Han, Quan Wang, Licheng Zhang, Weidong Chen et al.ACL 2023 · 6 citations
  5. Why Does Dropping Edges Usually Outperform Adding Edges in Graph Contrastive Learning?Yanchen Xu, Siqi Huang, Hongyuan Zhang, Xuelong LiAAAI 2025 · 6 citations

Builds on14

  1. Language Models are Few-Shot LearnersTom B. Brown, Benjamin Mann, Nick Ryder, Melanie Subbiah et al.NeurIPS 2020 · 64,255 citations
  2. A Simple Framework for Contrastive Learning of Visual RepresentationsTing Chen, Simon Kornblith, Mohammad Norouzi, Geoffrey E. HintonICML 2020 · 24,064 citations
  3. Supervised Contrastive LearningPrannay Khosla, Piotr Teterwak, Chen Wang, Aaron Sarna et al.NeurIPS 2020 · 7,049 citations
  4. FixMatch: Simplifying Semi-Supervised Learning with Consistency and ConfidenceKihyuk Sohn, David Berthelot, Nicholas Carlini, Zizhao Zhang et al.NeurIPS 2020 · 5,129 citations
  5. RandAugment: Practical Automated Data Augmentation with a Reduced Search SpaceEkin Dogus Cubuk, Barret Zoph, Jonathon Shlens, Quoc LeNeurIPS 2020 · 4,453 citations

Related papers

  1. Improved Text Classification via Contrastive Adversarial TrainingLin Pan, Chung-Wei Hang, Avirup Sil, Saloni PotdarAAAI 2022 · 115 citations
  2. Supervised Contrastive Learning for Pre-trained Language Model Fine-tuningBeliz Gunel, Jingfei Du, Alexis Conneau, Veselin StoyanovICLR 2021 · 595 citations
  3. CoCoSoDa: Effective Contrastive Learning for Code SearchEnsheng Shi, Yanlin Wang, Wenchao Gu, Lun Du et al.ICSE 2023 · 45 citations
  4. Contrastive Visual Data AugmentationYu Zhou, Bingxuan Li, Mohan Tang, Xiaomeng Jin et al.ICML 2025
  5. KnowDA: All-in-One Knowledge Mixture Model for Data Augmentation in Low-Resource NLPYufei Wang, Jiayi Zheng, Can Xu, Xiubo Geng et al.ICLR 2023 · 2 citations
Dusk over the sea between two cliffs drawn in fine vertical lines