Introduction
Deep learning models, particularly in Natural Language Processing (NLP), are notoriously data-hungry. While unlabeled text is abundant, high-quality labeled data remains expensive and time-consuming to produce. In scenarios with limited labeled data, models often overfit, memorizing training examples rather than learning generalizable semantic patterns. Traditional data augmentation techniques like Easy Data Augmentation (EDA) often disrupt grammatical structures or alter meanings by deleting or swapping words in raw text.
To address these challenges, the authors introduce MSMix (Manifold Swap Mixup), a novel data augmentation technique that creates virtual training samples by swapping specific dimensions of hidden neural representations between different sentences. Unlike standard Mixup methods that rely on linear interpolation, MSMix performs discrete feature replacement to better respect the inherent structure of textual data.
The MSMix Approach
The core innovation of MSMix is the Manifold Swap Mixup operation. Instead of calculating a weighted average of two hidden vectors, MSMix takes two samples, passes them through a neural network to a randomly selected layer $k$, and then partially replaces dimensions of one vector with corresponding dimensions from the other.
The authors propose three distinct strategies for dimension selection:
- MSMix-base: Randomly selects dimensions to swap based on a probability $\lambda$ drawn from a Beta distribution.
- MSMix-A: Swaps dimensions with the largest products of absolute values from both samples, targeting the most "significant" features.
- MSMix-B: Replaces "weak" features (small absolute value) in the first sample with "strong" features from the second.
While features are swapped discretely, the labels are linearly interpolated, forcing the model to learn smoother decision boundaries across the semantic space.
Experimental Evaluation
The researchers evaluated MSMix on three Chinese intent recognition datasets:
- YiwiseIC: A business-scenario dataset with 134 classes.
- SMP2017-ECDT: A human-machine dialogue evaluation dataset.
- CrossWOZ-IC: A large-scale cross-domain dialogue dataset.
Testing was conducted in both full-sample and small-sample (Few-Shot) configurations to simulate data-scarce environments.
Performance and Analysis
MSMix consistently outperformed baselines (Simbert), EDA, and standard interpolation methods like TMix. On the YiwiseIC dataset, MSMix improved classification accuracy by 2.51 percentage points over the baseline in the full-sample setting.
Key insights from the experiments include:
- Discrete vs. Continuous: Swapping finite dimensions preserves the integrity of local text meaning better than linear interpolation, effectively "swapping concepts" rather than averaging them.
- The "Middle Layer" Sweet Spot: Augmentation at middle layers yields better results than at the final layer, as different layers capture varying levels of linguistic information (syntax vs. semantics).
- Few-Shot Dominance: Improvements were most significant in small-sample scenarios. For instance, on the SMP2017-ECDT_FS dataset, MSMix-B achieved 91.45% accuracy, outperforming the baseline by 1.64 points.
Conclusion
MSMix provides a robust solution for NLP data scarcity by leveraging discrete manifold swaps. While the "smart" selection strategies (A and B) show promise, they still exhibit some instability across different test cases. Future work will focus on developing more stable dimensional replacement strategies and exploring the method's applicability to other NLP tasks such as sequence labeling and text generation.
Summary updated