Augmentation with Projection: Towards an Effective and Efficient Data Augmentation Paradigm for Distillation

Ziqi Wang, Yuexin Wu, Frederick Liu, Daogao Liu, Le Hou, Hongkun Yu, Jing Li, Heng Ji

TL;DR

AugPro (Augmentation with Projection) is a novel data augmentation framework that makes knowledge distillation more effective and efficient by bridging the gap between continuous representation interpolation and discrete token inputs. By projecting "virtual" interpolated embeddings back onto real vocabulary tokens, it prevents the decision boundary shifts that plague standard interpolation methods while maintaining high computational speed.

What Problem Does This Paper Address?

Knowledge Distillation (KD) is the go-to technique for shrinking massive language models (the "teachers") into lightweight versions (the "students") suitable for edge devices. However, KD is data-hungry. When task-specific data is scarce, researchers turn to data augmentation, which typically falls into three distinct paradigms:

Trade-offs in data augmentation methods
  1. Representation Interpolation (e.g., MixUp): Blending embeddings of two sentences. This is highly expressive but creates "virtual" data points that don't exist in real language, often confusing the model’s decision boundaries.
  2. Token Replacement: Swapping words for synonyms. This is safe and maintains decision boundaries but lacks expressive diversity.
  3. Model-based Augmentation: Using LLMs like GPT-3 to generate new text. This yields high-quality data but is incredibly slow and expensive.

The authors identify a "Goldilocks" problem: the field needs a method that is as expressive as interpolation, as stable as token replacement, and as cheap as simple math.

Methods

The authors introduce AugPro, which builds on top of existing interpolation backbones (like MixUp or adversarial perturbations) but adds a critical Projection step.

  1. Interpolation: The method starts by creating a "hallucinated" representation in the continuous embedding space (e.g., a 50/50 blend of the embeddings for "The cat sat" and "A dog ran").
  2. Projection: Instead of feeding this "blurry" embedding directly to the model, AugPro uses a nearest-neighbor search to map each vector in the hallucinated sequence back to the closest real token in the vocabulary.
  3. Teacher Labeling: This new, discrete sequence of tokens is fed to the teacher model to generate a "soft label," which the student then tries to mimic.

The authors implement two main variants: AugPro-Mix (based on MixUp) and AugPro-FGSM (based on adversarial perturbations). Because the projection step is a simple matrix multiplication followed by an argmax, it is highly parallelizable and adds negligible overhead compared to generating text with a generative model.

Datasets

The researchers evaluated AugPro using the GLUE (General Language Understanding Evaluation) benchmark, the standard battery for testing NLP models. Specifically, they tested on:

  • SST-2 (Sentiment)
  • CoLA (Linguistic Acceptability)
  • MNLI, QNLI, RTE (Natural Language Inference)
  • MRPC, QQP, STS-B (Paraphrasing and Similarity)

They used EncT5 (a modified T5 encoder) as the architecture for both teacher and student models to ensure the results were representative of modern, high-performing systems.

Key Insights and Ideas

The "Boundary Shift" Fix: The paper’s most intuitive insight is illustrated via a 2D SVM example.

2D SVM example showing how projection prevents decision boundary shifts

Standard interpolation creates data points in "no man's land." If the model tries to learn from these points, its decision boundary shifts away from the true distribution. Projecting these points back to the nearest "real" data (tokens) keeps the boundary anchored to reality.

Meaningless is Fine: Interestingly, the projected sentences are often ungrammatical or nonsensical to humans (e.g., "watch good video at home" becoming a mix of disjointed tokens). However, the authors show that for a machine learning model, these "hallucinated" sequences are still highly informative for defining the shape of the task's decision space.

Label Diversity: Unlike simple synonym swapping, AugPro allows the teacher to provide a completely new label for the augmented data. This provides the student with more nuanced information about how the teacher perceives "edge cases" in the data distribution.

Key Results

AugPro consistently outperformed vanilla KD and standard augmentation techniques across the board:

  • Performance Gains: On low-resource tasks like CoLA and RTE, AugPro-Mix improved scores by 5.97% and 9.02% respectively compared to standard MixUp.
  • Synergy: Combining AugPro-Mix and AugPro-FGSM yielded the best results, improving vanilla KD performance by 2% to 14% across different GLUE tasks.
  • Efficiency: AugPro is roughly 4x faster than back-translation (a common model-based augmentation) while delivering superior accuracy. It adds almost zero time cost compared to standard KD when run on modern hardware (TPUs/GPUs).
  • Data Scaling: AugPro is particularly effective when training data is extremely limited (e.g., using only 10% of the available labels), making it ideal for niche real-world applications.

Limitations and Future Work

  • Linguistic Coherence: As noted, the augmented sentences are often "gibberish" to humans. While this doesn't hurt the model, it makes the augmentation process a "black box" that is difficult for humans to audit for bias or specific errors.
  • Task Scope: The current study focuses on classification and regression tasks within GLUE. The authors haven't yet explored how this projection paradigm would work for generative tasks like summarization or translation.
  • Projection Heuristics: The method relies on cosine similarity for the nearest-neighbor projection. Future work could explore more sophisticated projection methods that might preserve more semantic meaning.

Summary updated

BibTeX
@inproceedings{wang2023augmentation,
  author = {Ziqi Wang and Yuexin Wu and Frederick Liu and Daogao Liu and Le Hou and Hongkun Yu and Jing Li and Heng Ji},
  title = {{Augmentation with Projection: Towards an Effective and Efficient Data Augmentation Paradigm for Distillation}},
  booktitle = {International Conference on Learning Representations},
  year = {2023},
  url = {https://openreview.net/forum?id=kPPVmUF6bM_},
}
Figure