NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Virtual Adversarial Training: A Regularization Method for Supervised and Semi-Supervised Learning

Takeru Miyato, Shin‐ichi Maeda, Masanori Koyama, Shin Ishii

TL;DR

This paper introduces Virtual Adversarial Training (VAT), a novel regularization technique that improves model generalization by making the output distribution locally smooth. Unlike previous methods, VAT doesn't require labeled data for its core regularization, making it highly effective for semi-supervised learning and achieving state-of-the-art results on several benchmarks.

What Problem Does This Paper Address?

The paper tackles the persistent challenge of overfitting in machine learning models, particularly in the context of supervised and semi-supervised learning. Overfitting occurs when a model learns the training data too well, including its noise and specific quirks, leading to poor performance on unseen data. Traditional regularization methods aim to mitigate this by introducing additional information or constraints. However, existing methods like adversarial training, while effective, often require full label information and can be computationally expensive. The authors highlight that standard smoothing techniques (e.g., adding random noise) can leave models vulnerable to specific "adversarial directions" in the input space where small perturbations can drastically alter predictions. They aim to address this by developing a regularization method that specifically targets and smooths the model's behavior in these sensitive directions, even without explicit labels.

Methods

The core innovation is Virtual Adversarial Training (VAT). Instead of relying on true labels to define the "adversarial direction" (as in traditional adversarial training), VAT uses the model's own current prediction as a "virtual label." This allows the method to define an adversarial direction even on unlabeled data.

Here's a breakdown of the key techniques:

  • Virtual Adversarial Direction: This is the direction in the input space that maximally perturbs the model's output distribution (measured by a divergence metric like KL divergence). VAT finds this direction by maximizing the divergence between the current output distribution and a perturbed version of it.
  • Local Distributional Smoothness (LDS): This metric quantifies how "smooth" the model's output distribution is around a given input point. VAT aims to minimize LDS, effectively encouraging the model to produce similar predictions for nearby inputs.
  • Approximation for Efficiency: Calculating the exact virtual adversarial direction can be computationally intensive. The paper proposes an efficient approximation using the power iteration method to find the dominant eigenvector of the Hessian of the divergence function. This allows VAT to be computed with only a small increase in computational cost (roughly 2-3 forward/backward passes per data point).
  • Entropy Minimization Enhancement: For semi-supervised learning, an optional enhancement is introduced: minimizing the conditional entropy of the model's predictions. This encourages sharper predictions on labeled data, which can further boost performance when combined with VAT.

Datasets

The paper evaluates VAT on several standard benchmark datasets:

  • MNIST: A dataset of handwritten digits, used for both supervised and semi-supervised learning.
  • CIFAR-10: A dataset of 32x32 color images of 10 object categories, used for supervised and semi-supervised learning.
  • SVHN (Street View House Numbers): A dataset of house numbers, used for semi-supervised learning.

The paper does not introduce new benchmark datasets.

Key Insights and Ideas

  • Label-Free Regularization: The most significant insight is that effective regularization can be achieved without relying on ground truth labels for the regularization term itself. By using the model's own predictions as "virtual labels," VAT can smooth the model's behavior in sensitive directions even on unlabeled data, making it a powerful tool for semi-supervised learning.
  • Targeted Smoothing: VAT's strength lies in its ability to identify and smooth the most sensitive directions in the input space, rather than applying uniform smoothing. This targeted approach is more effective than isotropic smoothing (like random noise) for improving generalization.
  • Computational Efficiency: The proposed approximation method for finding the virtual adversarial direction is crucial. It makes VAT computationally feasible for large-scale deep learning tasks, comparable to standard training with some regularization.
  • Robustness to Adversarial Perturbations: Models trained with VAT demonstrate improved robustness against adversarial examples, meaning they are less likely to be fooled by small, carefully crafted perturbations.

Key Results

  • State-of-the-Art Performance: VAT achieved state-of-the-art results on semi-supervised learning tasks for SVHN and CIFAR-10, often outperforming previous methods, especially when combined with entropy minimization.
  • Competitive Supervised Performance: For supervised learning on MNIST, VAT achieved competitive results, outperforming many standard methods and rivaling more complex architectures like ladder networks.
  • Hyperparameter Simplicity: VAT has only two main hyperparameters (perturbation size $\epsilon$ and regularization coefficient $\alpha$), and experiments showed that optimizing $\epsilon$ alone was often sufficient for good performance, simplifying the tuning process.
  • Reduced Variance: The paper demonstrates that VAT can lead to a lower normalized standard deviation of the gradient compared to Random Perturbation Training (RPT), suggesting a more stable learning process.

Limitations and Future Work

  • Computational Cost (Still Higher): While VAT is computationally efficient compared to some adversarial methods, it still incurs a higher cost than standard training without regularization (approximately 2-3x).
  • Hyperparameter Tuning: While simpler than some methods, hyperparameter tuning (especially $\epsilon$) is still necessary for optimal performance. The paper suggests that prioritizing $\epsilon$ tuning is a good empirical strategy.
  • Interaction with Generative Models: The authors note that their method is complementary to generative model-based approaches, which focus on modeling the input distribution $p(x)$. They suggest that combining VAT with these methods could be a promising avenue for future work.
  • Generalization of Power Iterations: While one power iteration was sufficient for many tasks, the paper acknowledges that for some datasets or models, more iterations (K > 1) might be necessary for optimal performance, though improvements diminish rapidly.

Summary updated

BibTeX
@article{miyato2018virtual,
  author = {Takeru Miyato and Shin‐ichi Maeda and Masanori Koyama and Shin Ishii},
  title = {{Virtual Adversarial Training: A Regularization Method for Supervised and Semi-Supervised Learning}},
  journal = {IEEE Transactions on Pattern Analysis and Machine Intelligence},
  year = {2018},
  doi = {10.1109/tpami.2018.2858821},
}
Figure