Skip to main content
QUICK REVIEW

[Paper Review] MixUp Training Leads to Reduced Overfitting and Improved Calibration for the Transformer Architecture

Wancong Zhang, Ieshan Vaidya|arXiv (Cornell University)|Feb 22, 2021
Topic ModelingComputer Science11 references7 citations
TL;DR

This paper proposes Input, Manifold, and CLS-level MixUp methods for fine-tuning BERT on NLU tasks, using convex interpolation of embeddings to improve generalization. It demonstrates that MixUp reduces test loss and calibration error by up to 50% across diverse NLU tasks, especially benefiting simpler tasks like sentiment classification under low-data regimes.

ABSTRACT

MixUp is a computer vision data augmentation technique that uses convex interpolations of input data and their labels to enhance model generalization during training. However, the application of MixUp to the natural language understanding (NLU) domain has been limited, due to the difficulty of interpolating text directly in the input space. In this study, we propose MixUp methods at the Input, Manifold, and sentence embedding levels for the transformer architecture, and apply them to finetune the BERT model for a diverse set of NLU tasks. We find that MixUp can improve model performance, as well as reduce test loss and model calibration error by up to 50%.

Motivation & Objective

  • To extend MixUp—a computer vision data augmentation technique—to the natural language understanding (NLU) domain for transformer models.
  • To address the challenge of directly interpolating text inputs by proposing embedding-level MixUp methods at input, manifold, and CLS levels.
  • To evaluate MixUp's impact on model performance, test loss, and calibration across diverse NLU tasks and data regimes.
  • To investigate whether MixUp improves generalization and uncertainty estimation in BERT, particularly under low-resource conditions.

Proposed method

  • Proposes Input MixUp, which interpolates BERT token-level hidden representations using convex combinations with a beta-distributed mixing coefficient λ.
  • Introduces Manifold MixUp, which applies MixUp to hidden representations at a specific transformer layer k, using the same λ for both representations and labels.
  • Applies CLS MixUp, a variant that mixes only the [CLS] token representations and their one-hot labels.
  • Uses a beta distribution (λ ~ β(α, α)) to sample mixing coefficients during each mini-batch, with α controlling interpolation balance.
  • Trains BERT models using standard cross-entropy loss with augmented data, while keeping all other hyperparameters and architecture identical to baseline.
  • Evaluates performance on five NLU tasks: IMDb (sentiment), AGNews (multi-class), CoLA (acceptability), RTE (NLI), and BoolQ (QA), across full and low-resource settings.

Experimental results

Research questions

  • RQ1Can MixUp be effectively applied to the BERT transformer architecture for diverse NLU tasks despite the difficulty of interpolating raw text?
  • RQ2How do different MixUp variants—Input, Manifold, and CLS-level—compare in terms of performance, test loss, and calibration across varying task complexities?
  • RQ3Does MixUp reduce overfitting and improve model calibration in BERT, particularly under low-data training regimes?
  • RQ4For which types of NLU tasks (e.g., sentiment vs. syntactic reasoning) is each MixUp variant most effective?

Key findings

  • Manifold MixUp reduced calibration error by up to 50% and improved test loss significantly, even outperforming the full-data baseline when trained on only 32 samples for IMDb.
  • For simpler tasks like IMDb and AGNews, Input and Manifold MixUp improved accuracy and reduced test loss more than baseline, especially under low-resource conditions.
  • On complex syntactic tasks like CoLA, RTE, and BoolQ, Input and Manifold MixUp underperformed the baseline, while CLS MixUp maintained performance and reduced calibration error.
  • All MixUp variants reduced model overfitting, as evidenced by flatter test loss curves during training, with Manifold MixUp showing the most consistent improvement in calibration.
  • CLS MixUp improved calibration without sacrificing performance on complex tasks, though it did not improve predictive accuracy on GLUE tasks, unlike prior work.
  • The study confirms that MixUp enhances model robustness and uncertainty estimation, particularly in low-data regimes, by smoothing decision boundaries and reducing overfitting.

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.