MixPro: Simple yet Effective Data Augmentation for Prompt-based Learning

Bohan Li, Longxu Dou, Yutai Hou, Yunlong Feng, Honglin Mu, Wanxiang Che

TL;DR

This paper introduces MIXPRO, a novel data augmentation technique for prompt-based learning that enhances performance and efficiency in few-shot scenarios. By applying a three-level Mixup strategy to both input text and templates, MIXPRO generates more robust virtual examples, leading to significant improvements over existing methods.

What Problem Does This Paper Address?

Prompt-based learning has shown great promise, especially in few-shot learning where models are trained on limited data. This approach reformulates downstream tasks as cloze questions using predefined templates. However, the effectiveness of these models is highly sensitive to the choice of templates and input text. Existing methods often rely on model ensembles, which can be computationally expensive and slow down inference. Furthermore, the limited number of training samples and templates in few-shot settings restricts model performance. This paper addresses these limitations by proposing a data augmentation strategy that enriches both the input text and templates, aiming to improve performance and efficiency without resorting to complex ensembles.

Methods

The core of MIXPRO is a three-level Mixup strategy applied to prompt-based learning:

  • Token-level Mixup: This interpolates the word embeddings of the original and augmented prompts. It takes the token, segment, and position embeddings of both inputs and creates a new mixed embedding.
  • Sentence-level Mixup: This interpolates the hidden vectors at the [MASK] positions within the prompt representations. These hidden states are crucial for the model's prediction of task labels. The interpolated hidden vectors are then fed into an MLP for final prediction.
  • Template-level Mixup: This strategy involves using multiple templates during training. Instead of training a separate model for each template (as in some existing methods), MIXPRO randomly samples a template from a set for each training epoch. This allows a single model to learn from a diverse range of prompt structures, improving its generalization and reducing sensitivity to any single template.

MIXPRO also utilizes label-preserving and label-flipping augmented prompts, generated using a T5 model, to further enrich the training data.

Datasets

The experiments were conducted on five Natural Language Understanding (NLU) datasets from the FewGLUE benchmark:

  • CB (CommitmentBank)
  • RTE (Recognizing Textual Entailment)
  • BoolQ (Boolean Questions)
  • WSC (Winograd Schema Challenge)
  • MultiRC (Multi-Sentence Reading Comprehension)

Key Insights and Ideas

  • Augmenting the entire prompt is crucial: The paper emphasizes that augmenting both the vanilla input text and the templates is essential for significant performance gains. Augmenting only one part yields less impressive results.
  • Three-level Mixup contributes synergistically: Each level of the Mixup strategy (token, sentence, template) contributes to the overall performance improvement, suggesting that a multi-dimensional augmentation approach is more effective than single-level methods.
  • Template-level Mixup boosts efficiency: By training a single model on multiple templates, MIXPRO significantly reduces inference time compared to methods that require ensembling models trained on individual templates.
  • Robustness to templates: MIXPRO's approach of training with multiple templates makes the model less sensitive to the choice of any single template, a key challenge in prompt-based learning.

Key Results

  • Performance Improvement: MIXPRO achieved an average performance improvement of 5.08% across five datasets compared to the backbone PET model.
  • Outperforming Baselines: MIXPRO consistently outperformed other augmentation baselines, including FlipDA, which was previously the strongest baseline.
  • Efficiency Gains: MIXPRO offers significant inference efficiency improvements, with a time cost of only 1/n of the backbone PET approach, where n is the number of templates.
  • Reduced Fluctuation: MIXPRO demonstrated more stable performance across different seeds compared to the backbone PET, indicating improved robustness.

Limitations and Future Work

  • Hyperparameter Tuning: The paper notes that hyperparameter tuning, particularly for the Mixup ratio ($\lambda$), plays a crucial role and can influence model performance. However, they found this tuning to be relatively straightforward and feasible.
  • WSC Task Performance: While MIXPRO performed well across most datasets, its performance on the WSC task slightly lagged behind some baselines. This is attributed to the complexity of WSC, which requires disambiguation of multi-token word senses, a challenge for T5 in generating similar entities for label-flipping prompts.
  • Future Work: The authors suggest improving the model architecture by performing Mixup at the self-attention layer of PLMs for deeper information interaction. They also plan to conduct more experiments applying data augmentation to both manually annotated and automatically generated prompts.

Summary updated

BibTeX
@article{li2023mixpro,
  author = {Bohan Li and Longxu Dou and Yutai Hou and Yunlong Feng and Honglin Mu and Wanxiang Che},
  title = {{MixPro: Simple yet Effective Data Augmentation for Prompt-based Learning}},
  journal = {Int. J. Mach. Learn. Cybern.},
  year = {2023},
  url = {https://openreview.net/forum?id=KInObn5J9B},
}
Figure