Skip to main content
QUICK REVIEW

[Paper Review] Does Data Augmentation Improve Generalization in NLP?

Rohan Jha, Charles Lovering|arXiv (Cornell University)|Apr 30, 2020
Topic ModelingComputer Science44 references13 citations
TL;DR

This paper investigates whether data augmentation with counterexamples improves generalization in NLP by testing models on synthetic tasks with competing weak and strong features. It finds that data augmentation often harms performance before helping, is less effective when strong features are hard to extract, and fails entirely when strong features are absent from training data.

ABSTRACT

Neural models often exploit superficial features to achieve good performance, rather than deriving more general features. Overcoming this tendency is a central challenge in areas such as representation learning and ML fairness. Recent work has proposed using data augmentation, i.e., generating training examples where the superficial features fail, as a means of encouraging models to prefer the stronger features. We design a series of toy learning problems to test the hypothesis that data augmentation leads models to unlearn weaker heuristics, but not to learn stronger features in their place. We find partial support for this hypothesis: Data augmentation often hurts before it helps, and it is less effective when the preferred strong feature is much more difficult to extract than the competing weak feature.

Motivation & Objective

  • To evaluate whether data augmentation with counterexamples helps models unlearn weak, superficial features and instead learn stronger, more general features.
  • To investigate the conditions under which data augmentation improves model generalization in NLP.
  • To isolate the impact of data augmentation from confounding factors present in real-world NLP tasks.
  • To assess whether models shift toward stronger features or instead adopt new, unintended weak features after augmentation.
  • To determine the role of feature extractability and data distribution in the success of data augmentation strategies.

Proposed method

  • Design a synthetic binary sequence classification task with a strong feature (perfectly predictive but hard to extract) and a weak feature (easy to extract but less reliable).
  • Use an LSTM-based model with an embedding layer, 1-layer LSTM, and a feedforward MLP with ReLU activation to classify sequences.
  • Generate counterexamples where only the strong feature or only the weak feature is present, to disrupt reliance on the weak heuristic.
  • Train models on varying levels of data augmentation (from 1% to 100% of training data) and evaluate on test sets with only strong features.
  • Measure model performance on examples that test reliance on the strong feature, using accuracy as the primary metric.
  • Use Minimum Description Length (MDL) to quantify the complexity of features, assessing how hard they are for the model to detect.

Experimental results

Research questions

  • RQ1Does data augmentation with counterexamples lead models to unlearn weak features and shift toward stronger, more general features?
  • RQ2How does the difficulty of extracting the strong feature affect the effectiveness of data augmentation?
  • RQ3Does data augmentation lead to temporary performance degradation before improvement, and if so, why?
  • RQ4Under what conditions does data augmentation fail to improve generalization, even when counterexamples are added?
  • RQ5Is data augmentation effective when the strong feature is absent or extremely rare in the training data?

Key findings

  • Data augmentation often harms model performance before improving it, with models initially shifting to new, unintended weak features when only a small number of counterexamples are added.
  • The effectiveness of data augmentation decreases significantly when the strong feature is harder for the model to extract, as measured by MDL complexity.
  • When the strong feature is absent or very rare in training data, data augmentation has no effect, even with substantial counterexample injection.
  • Models trained with low levels of augmentation (e.g., ≤1% of training data) fail to correctly classify examples that contain only the strong feature, indicating no shift toward the intended generalization.
  • The presence of counterexamples alone is insufficient to induce learning of the strong feature; the strong feature must already be sufficiently present in the data for augmentation to help.
  • Performance gains from data augmentation may be misleading if evaluation is limited to the targeted phenomenon, as models may exploit new heuristics rather than learning robust representations.

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.