Skip to main content
QUICK REVIEW

[Paper Review] Mixup-Transformer: Dynamic Data Augmentation for NLP Tasks

Lichao Sun, Congying Xia|arXiv (Cornell University)|Oct 5, 2020
Multimodal Machine Learning ApplicationsComputer Science23 citations
TL;DR

This paper proposes Mixup-Transformer, a dynamic data augmentation method that applies mixup at the hidden representation level of transformer-based models like BERT, improving performance across diverse NLP tasks. By linearly interpolating final hidden states and corresponding labels during training, it achieves consistent accuracy gains—especially in low-resource settings—demonstrating mixup as a domain-independent, end-to-end trainable technique for pre-trained language models.

ABSTRACT

Mixup is the latest data augmentation technique that linearly interpolates input examples and the corresponding labels. It has shown strong effectiveness in image classification by interpolating images at the pixel level. Inspired by this line of research, in this paper, we explore i) how to apply mixup to natural language processing tasks since text data can hardly be mixed in the raw format; ii) if mixup is still effective in transformer-based learning models, e.g., BERT. To achieve the goal, we incorporate mixup to transformer-based pre-trained architecture, named "mixup-transformer", for a wide range of NLP tasks while keeping the whole end-to-end training system. We evaluate the proposed framework by running extensive experiments on the GLUE benchmark. Furthermore, we also examine the performance of mixup-transformer in low-resource scenarios by reducing the training data with a certain ratio. Our studies show that mixup is a domain-independent data augmentation technique to pre-trained language models, resulting in significant performance improvement for transformer-based models.

Motivation & Objective

  • To investigate whether mixup, effective in computer vision, can be adapted to natural language processing where raw text cannot be linearly interpolated.
  • To explore if mixup improves performance in state-of-the-art transformer-based models like BERT.
  • To develop an end-to-end trainable framework that applies mixup at the representation level rather than raw input or fixed embeddings.
  • To evaluate the effectiveness of mixup-Transformer in low-resource settings with reduced training data.
  • To demonstrate that mixup is a domain-independent data augmentation technique for pre-trained language models.

Proposed method

  • The method applies mixup at the final hidden layer of a pre-trained transformer, using interpolated representations $\hat{x} = \lambda \cdot T(x_i) + (1-\lambda) \cdot T(x_j)$, where $T(\cdot)$ is the transformer output.
  • Labels are also linearly interpolated as $\hat{y} = \lambda y_i + (1-\lambda) y_j$, with $\lambda \sim \text{Beta}(\alpha, \alpha)$ or fixed at 0.5.
  • The mixup layer is integrated into the fine-tuning process, maintaining end-to-end training without requiring external pipelines or auxiliary models.
  • The approach is evaluated on the GLUE benchmark across eight diverse NLP tasks, including text classification and regression.
  • Hyperparameter $\lambda$ is set to 0.5 due to insensitivity in ablation studies, and training uses standard BERT hyperparameters with 3 epochs.
  • The method is applied to both BERT-base and BERT-large, and tested under data-scarce conditions by reducing training data from 10% to 90%.

Experimental results

Research questions

  • RQ1Can mixup be effectively applied to NLP tasks despite the discrete, non-continuous nature of text data?
  • RQ2Does mixup improve performance when applied to transformer-based models like BERT, particularly at the hidden representation level?
  • RQ3Is mixup effective in low-resource NLP scenarios where annotated data is limited?
  • RQ4How does mixup compare to traditional data augmentation methods in terms of performance and robustness across diverse NLP tasks?
  • RQ5Is mixup a domain-independent technique that generalizes well across different NLP benchmarks and model architectures?

Key findings

  • Mixup-Transformer improved BERT-base performance on 14 out of 16 tasks in the GLUE benchmark, with average accuracy gain of approximately 1%.
  • The highest improvement was observed on the RTE task, where accuracy increased from 68.23% to 71.84% (+3.61%) with BERT-base.
  • On BERT-large, the Matthew’s correlation for CoLA improved from 59.71% to 62.39% (+2.68%) with mixup.
  • In low-resource settings, mixup-Transformer achieved a peak improvement of 4.90% on MRPC when only 40% of the training data was used.
  • Even with full training data, mixup-Transformer improved performance on BERT-large by 2.46% on MRPC, indicating consistent gains across data scales.
  • The method showed robustness across tasks, with only two minor performance drops (on STS-B and one MNLI setting), confirming its generalizability.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.