[Paper Review] Adversarial Training Methods for Semi-Supervised Text Classification
The authors extend adversarial and virtual adversarial training to text by perturbing word embeddings in RNNs, achieving state-of-the-art results on multiple semi-supervised and supervised text tasks. 5.91% test error on IMDB demonstrates strong performance.
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.
Motivation & Objective
- Motivate robust regularization for semi-supervised text classification.
- Adapt adversarial training to high-dimensional, sparse text inputs by perturbing embeddings rather than discrete tokens.
- Demonstrate empirical performance gains on diverse text classification benchmarks.
- Analyze how adversarial training influences word embeddings and model generalization.
Proposed method
- Perturb word embeddings with bounded norm to create adversarial examples on text inputs.
- Define r_adv on sequences of normalized embeddings using gradients of log p(y|s;θ).
- Define r_vadv via KL divergence to encourage local output distribution smoothness using unlabeled data.
- Pretrain embeddings and LSTM with a recurrent language model on both labeled and unlabeled data.
- Train with a combined objective including standard loss plus L_adv and/or L_vadv.
- Evaluate on multiple datasets (IMDB, Elec, Rotten Tomatoes, DBpedia, RCV1) with both unidirectional and bidirectional LSTMs.
Experimental results
Research questions
- RQ1Does adversarial training improve generalization and robustness in text classifiers?
- RQ2Can virtual adversarial training extend benefits to semi-supervised text classification using unlabeled data?
- RQ3What impact do adversarial perturbations have on learned word embeddings and model representations?
- RQ4How does the proposed method compare against state-of-the-art supervised and semi-supervised text classification methods across diverse datasets?
Key findings
- On IMDB, virtual adversarial training achieves 5.91% test error, approaching state-of-the-art while using a unidirectional LSTM.
- Adversarial training alone reduces overfitting and improves robustness over the baseline; combined adversarial and virtual adversarial training yields competitive results.
- On Elec and RCV1, the method reaches or surpasses state-of-the-art performance, with Adversarial+Virtual Adversarial achieving 5.40% on Elec and 6.68–6.97% on RCV1 depending on configuration.
- On Rotten Tomatoes, adversarial approaches improve over baseline (16.6–16.8% vs. 17.9%), while virtual adversarial training alone can underperform due to short labeled data.
- On DBpedia, adversarial and virtual adversarial training yield improvements (0.79% and 0.76% error) over the baseline 0.90%.
- Embeddings learned with adversarial/virtual adversarial training show improved semantic separation (e.g., ‘good’ and ‘bad’ neighbors) compared with baseline and random perturbations.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.