Adversarial Training Methods for Semi-Supervised Text Classification

Takeru Miyato, Andrew M. Dai, Ian Goodfellow
5/25/2016
stat.MLcs.LG

Official code: tensorflow/models (77,659 stars, last commit 2026-04-29).

Abstract

Adversarial training provides a means of regularizing supervised learning algorithms while virtual adversarial training is able to extend supervised learning algorithms to the semi-supervised setting. However, both methods require making small perturbations to numerous entries of the input vector, which is inappropriate for sparse high-dimensional inputs such as one-hot word representations. We extend adversarial and virtual adversarial training to the text domain by applying perturbations to the word embeddings in a recurrent neural network rather than to the original input itself. The proposed method achieves state of the art results on multiple benchmark semi-supervised and purely supervised tasks. We provide visualizations and analysis showing that the learned word embeddings have improved in quality and that while training, the model is less prone to overfitting. Code is available at https://github.com/tensorflow/models/tree/master/research/adversarial_text.

View on arXivView PDF

Code Implementations(1)

tensorflow/modelsOfficial100%

Models and examples built with TensorFlow

77,65944,853C++, CSSFeb 5, 20165 months agoNOASSERTION

Similar Papers

Cite this paper

@article{miyato2016adversarial,
  title  = {Adversarial Training Methods for Semi-Supervised Text Classification},
  author = {Takeru Miyato and Andrew M. Dai and Ian Goodfellow},
  year   = {2016},
  eprint = {1605.07725},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/1605.07725}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/1605.07725.svg)](https://codeofpaper.com/paper/1605.07725)

Discussion