FlipDA: Effective and Robust Data Augmentation for Few-Shot Learning

Jing Zhou, Yanan Zheng, Jie Tang, Li Jian, Zhilin Yang

Abstract

Data augmentation (DA) is a critical strategy for few-shot learning, yet traditional text DA methods often struggle with complex natural language understanding (NLU) tasks. We present FlipDA, a novel framework that leverages generative models (T5) and classifier-based selection to create label-flipped data. Unlike conventional methods that prioritize label preservation, FlipDA intentionally generates "similar but different" examples to clarify decision boundaries. Our experiments on SuperGLUE show that FlipDA significantly improves performance and achieves superior robustness, with a MaxDrop of nearly zero across diverse tasks.

Introduction

In few-shot natural language understanding, the scarcity of data often limits model performance. While data augmentation is a standard solution, text-based DA faces unique challenges. Simple rule-based edits, such as synonym replacement or word deletion, frequently produce ungrammatical sentences or inadvertently alter meanings while retaining the original label. These "failure modes" are particularly pronounced in "hard" tasks like logical entailment when using large-scale pretrained models like DeBERTa. FlipDA addresses this gap by providing an effective and robust DA method tailored for complex NLU benchmarks.

Methodology

FlipDA moves beyond simple rule-based edits, employing a sophisticated generative pipeline designed to produce high-quality, label-aware candidates.

The FlipDA pipeline: (a) generating candidates via pattern-based cloze with T5, and (b) selecting data based on classifier confidence.

The process consists of four stages:

  1. Initial Training: A "teacher" classifier (e.g., DeBERTa or ALBERT) is trained on the small original dataset (typically 32 samples).
  2. Generation via Pattern-based Cloze: Using a T5 model, input sentences are transformed into "cloze" patterns. Prompts guide the model to fill in masks to generate samples for specific target labels, including both the original and flipped labels.
  3. Selection: The teacher classifier scores generated candidates. FlipDA selects samples where the classifier shows the highest confidence for each label, ensuring both quality and diversity.
  4. Final Training: The model is retrained on the augmented dataset, combining original and selected samples.

A core innovation of FlipDA is its focus on label-flipping. By generating examples that are semantically close to the original but belong to a different class, the model learns to identify "pivotal" linguistic features that define decision boundaries.

Experimental Results

We evaluated FlipDA on eight difficult tasks from the SuperGLUE benchmark (e.g., BoolQ, RTE, COPA) in a 32-shot setting.

Performance and Robustness

FlipDA consistently outperformed baseline methods and existing DA techniques like EDA or Back-Translation. On average, it improved performance by approximately 3 points for both ALBERT-xxlarge and DeBERTa-v2-xxlarge models.

Main results on SuperGLUE using ALBERT-xxlarge. FlipDA achieves the highest average score and a MaxDrop (MD) of 0.00.

A key metric introduced is MaxDrop (MD), which measures the maximum performance decrease caused by a DA method relative to the "no DA" baseline across all tasks. As shown in the results, FlipDA achieves a MaxDrop of 0.00 on ALBERT, indicating it never harms performance—a stark contrast to methods like MixUP, which can cause drops of up to 18 points.

Key Insights

  • The Power of the Flip: Label-flipped data proved more beneficial than label-preserved data. This suggests that "boundary" examples are more informative for few-shot generalization.
  • Generative Quality: The use of T5 for blank-filling ensures grammatical correctness and logical consistency, which rule-based methods often compromise.

Discussion and Conclusion

While FlipDA shows remarkable success, challenges remain. It struggled with the Winograd Schema Challenge (WSC), likely because T5 lacks the entity-specific reasoning required for subtle coreference swaps. Future work may involve integrating entity-centric pretrained models. Additionally, while computationally more intensive than simple edits, the gains in robustness and performance make FlipDA a powerful tool for few-shot NLU.

Summary updated

BibTeX
@inproceedings{zhou2022flipda,
  author = {Jing Zhou and Yanan Zheng and Jie Tang and Li Jian and Zhilin Yang},
  title = {{FlipDA: Effective and Robust Data Augmentation for Few-Shot Learning}},
  booktitle = {Annual Meeting of the Association for Computational Linguistics},
  year = {2022},
  doi = {10.18653/v1/2022.acl-long.592},
}
Figure