Introduction
Semi-supervised learning (SSL) has become a cornerstone of modern Natural Language Processing (NLP), leveraging vast amounts of unlabeled data to augment limited labeled datasets. A prominent technique in this domain is consistency training, which encourages a model to produce invariant predictions for an input and its perturbed version. However, the effectiveness of this approach hinges on the quality of the perturbations. Traditional methods often rely on simple word swaps or back-translation, which may fail to challenge the model's current decision boundaries.
The Challenge of Discrete Perturbations
While Virtual Adversarial Training (VAT) has seen great success in computer vision by adding continuous noise, applying similar principles to discrete text data is non-trivial. Random perturbations (like EDA) are often "too easy," falling well within the model's existing confidence zones and providing minimal learning signal. To address this, researchers have introduced VAT-D (Virtual Adversarial Discrete Perturbation), a method that strategically identifies "hard" discrete examples to sharpen model robustness.
Methodology: VAT-D
VAT-D identifies adversarial tokens through a multi-step process:
- Candidate Generation: A pre-trained Masked Language Model (MLM) identifies the top-$k$ semantically similar replacement candidates for each token.
- Distribution Sharpening: In an SSL setting where ground-truth labels are absent, the gradient of the consistency loss is often zero. VAT-D applies a "sharpening" function to the model's current predictions, creating a non-zero gradient.
- Adversarial Search: Using these gradients, the method selects the specific word replacements from the MLM candidates that maximize the divergence between the original and perturbed predictions.
- Consistency Training: The model is then trained to minimize this divergence, effectively learning a more robust decision boundary.
Results and Analysis
VAT-D demonstrates significant improvements in both performance and robustness. On the AG News dataset with only 10 labels per class, VAT-D achieved 86.2% accuracy, significantly outperforming standard BERT (79.4%) and other augmentation techniques like UDA (83.8%). Furthermore, on the Adversarial NLI (ANLI) benchmark, VAT-D improved RoBERTa-Large performance by 8 points.
As shown in the figures above, VAT-D maintains a higher consistency loss throughout training compared to uniform or argmax sampling. This indicates that the adversarial search successfully identifies perturbations that the model finds difficult, providing a stronger regularization signal. Additionally, the top-$k$ distribution reveals that VAT-D explores a broader range of candidates rather than simply picking the most probable word from the MLM.
Conclusion and Future Work
VAT-D offers a powerful framework for generating informative discrete perturbations for NLP. By focusing on adversarial examples near the decision boundary, it significantly enhances semi-supervised learning and model robustness. While the method currently incurs a higher computational cost (~2.5x standard training), future work focusing on entity preservation and grammatical filtering could further refine its utility for complex knowledge-intensive tasks.
Summary updated