Introduction
Deep learning models for Natural Language Processing (NLP) often struggle with overfitting due to the high dimensionality of text data and the relative scarcity of large-scale annotated datasets. While computer vision has long benefited from simple data augmentation techniques like image rotation or flipping, NLP lacks such straightforward, domain-independent methods. Changing even a single word can radically alter a sentence's meaning, making rule-based augmentation (e.g., synonym replacement) fragile and often domain-specific.
This study explores the adaptation of Mixup—a successful regularization technique from computer vision—to the domain of sentence classification. By performing linear interpolation in the embedding space, the authors provide a "plug-and-play" method to enhance model generalization without relying on handcrafted linguistic rules.
Methodology: wordMixup and senMixup
The core principle of Mixup is to generate synthetic training examples by taking a weighted average of two random samples $(x_i, y_i)$ and $(x_j, y_j)$. The authors propose two distinct strategies for applying this to text:
- wordMixup: Interpolation is performed at the word embedding level. Sentences are zero-padded to a uniform length, and the vectors for each corresponding word position are blended.
- senMixup: Interpolation occurs at the sentence embedding level. The model (CNN or LSTM) first encodes the input into a fixed-length hidden state, and the interpolation is applied to these representations just before the final classification layer.
In both approaches, the labels are also blended proportionally, forcing the model to predict a "soft" distribution that reflects the mix of the two original classes.
Key Insights
- Smoothing Decision Boundaries: Traditional training often leads to models that "memorize" specific training points, resulting in sharp decision boundaries. Mixup encourages the model to behave linearly between samples, leading to smoother boundaries and better out-of-sample performance.
- Continuous Training Signal: A common issue in training deep classifiers is that training loss often drops to zero very quickly, halting further optimization. Mixup maintains a non-zero training loss, providing a continuous signal that allows the network to continue refining its parameters throughout the training process.
- Universal Regularization: Unlike synonym-based methods, Mixup is entirely domain-independent. It operates in vector space, making it applicable to any language or vocabulary without requiring external resources like WordNet.
- Embedding Trainability: The benefits of Mixup are most significant when word embeddings are allowed to be updated during training. This flexibility allows the model to better accommodate the synthetic, interpolated vectors.
Empirical Results
The authors evaluated their methods across five standard benchmarks: TREC (question classification), MR (movie reviews), SST-1/SST-2 (sentiment analysis), and Subj (subjectivity detection).
The results demonstrate consistent performance gains for both CNN and LSTM architectures. For instance, on the TREC dataset, senMixup improved CNN accuracy from 90.2% to 92.1%. The improvements for LSTM models were even more pronounced, as shown in the table below.
On the TREC dataset, wordMixup boosted LSTM accuracy from 86.5% to 90.5%, representing a significant relative improvement. The study also confirmed that Mixup serves as a powerful regularizer, often outperforming or effectively complementing standard techniques like Dropout and L2 regularization.
Conclusion and Future Directions
Mixup provides a simple yet effective way to regularize text classification models. By operating in the embedding space, it bypasses the complexities of discrete natural language manipulation. Future work may explore "Manifold Mixup," which involves interpolating at random intermediate layers, or "AdaMixup," which attempts to mitigate potential conflicts between synthetic and real samples in the feature space.
Summary updated