[Paper Review] Improving Neural Language Modeling via Adversarial Training
Introduces adversarial MLE training by adding adversarial perturbations to output word embeddings in the softmax, improving generalization and achieving new state-of-the-art perplexities on PTB and WT2, and boosting Transformer-based MT BLEU scores.
Recently, substantial progress has been made in language modeling by using deep neural networks. However, in practice, large scale neural language models have been shown to be prone to overfitting. In this paper, we present a simple yet highly effective adversarial training mechanism for regularizing neural language models. The idea is to introduce adversarial noise to the output embedding layer while training the models. We show that the optimal adversarial noise yields a simple closed-form solution, thus allowing us to develop a simple and time efficient algorithm. Theoretically, we show that our adversarial mechanism effectively encourages the diversity of the embedding vectors, helping to increase the robustness of models. Empirically, we show that our method improves on the single model state-of-the-art results for language modeling on Penn Treebank (PTB) and Wikitext-2, achieving test perplexity scores of 46.01 and 38.07, respectively. When applied to machine translation, our method improves over various transformer-based translation baselines in BLEU scores on the WMT14 English-German and IWSLT14 German-English tasks.
Motivation & Objective
- Motivate regularization to combat overfitting in large neural language models.
- Propose a simple adversarial training mechanism focused on the softmax output embeddings.
- Derive a closed-form solution for optimal adversarial perturbations enabling a fast training algorithm.
- Theoretically show that the method promotes embedding diversity and robustness.
- Empirically validate improvements on language modeling benchmarks (PTB, WT2, WT103) and machine translation (WMT14 En-De, IWSLT14 De-En).
Proposed method
- Formulate adversarial MLE by maximizing the log-likelihood with respect to model parameters while minimizing over adversarial perturbations applied to output embeddings (Eq. 5).
- Compute the optimal perturbation per target word as a closed form delta_i* = -epsilon h / ||h||, leading to AdvSoft_epsilon that shifts the logit by -epsilon||h|| (Eq. 6–7).
- Iteratively update (theta, w) by standard gradient ascent on the adversarial objective and update delta using the closed-form solution.
- Tie input and output embeddings (weight tying) and use standard training tricks; epsilon adapts as epsilon = alpha * ||w_i|| with alpha a hyperparameter.
- Provide theoretical insights showing that the adversarial mechanism enforces diversity among output embeddings (epsilon-recognizability, distance separation).
- Evaluate on PTB, WT2, WT103 for language modeling and on WMT2014 En-De and IWSLT2014 De-En for translation, using base architectures like AWD-LSTM and Transformer, replacing softmax with AdvSoft.
Experimental results
Research questions
- RQ1Does adversarial perturbation on output embeddings improve generalization in neural language models?
- RQ2Can a closed-form adversarial perturbation yield a simple, efficient regularization without extra parameters?
- RQ3Does the method promote embedding diversity and robustness, and how does it impact perplexity and BLEU across benchmarks?
- RQ4How does adversarial MLE fare when applied to both language modeling and neural machine translation tasks?
Key findings
- Achieves new single-model state-of-the-art perplexities on PTB (46.01) and WT2 (38.07).
- On WT103, improves the QRNN baseline, reaching 28.0 test perplexity with dynamic evaluation.
- In translation, Transformer-based baselines gain BLEU improvements (En→De: 28.43/29.52; De→En: 33.61/35.18 for Small/Base configurations).
- Adversarial softmax outperforms baselines across PTB and WT2 when integrated with AWD-LSTM, MoS, and Partial Shuffled variants.
- Embedding diversity is enhanced: larger nearest-neighbor distances and more uniform singular value distribution in embeddings; model shows reduced overfitting in PTB/WT2 experiments.
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.