Abstract
Standard training for Recurrent Neural Networks (RNNs) using Maximum Likelihood Estimation (MLE) often suffers from structural blindness and exposure bias. This paper proposes a dual-level smoothing approach—at both the individual token and the full sequence level—to reward models for semantic similarity to the ground truth. By leveraging word embeddings for token-level smoothing and optimized Reward Augmented Maximum Likelihood (RAML) for sequence-level smoothing, the authors demonstrate significant performance gains in image captioning and machine translation tasks.
Introduction
Most RNN language models are trained using Maximum Likelihood Estimation (MLE) with "teacher forcing." This approach has two major flaws. First, it exhibits structural blindness: MLE uses a "zero-one" loss that penalizes semantically similar mistakes (e.g., "cat" instead of "kitten") as harshly as complete nonsense. It ignores the semantic structure of the output space. Second, it suffers from exposure bias: because the model always sees correct previous words during training, it struggles at test time when it must rely on its own potentially erroneous predictions. A single early mistake can lead to a "compounding error" effect where the model goes completely off the rails. The authors aim to bridge this gap by making the loss function "smoother" and semantically aware.
Methodology
The authors propose a combined framework of Token-level and Sequence-level loss smoothing to address these issues.
Token-level Smoothing
Instead of a one-hot target (100% probability on the correct word), the authors create a distribution based on word embeddings (specifically GloVe). Words that are closer in the embedding space (using cosine similarity) receive higher target probabilities. This "Semantic Reward" ensures that if the model predicts "cat" when the ground truth is "kitten," it is not penalized as heavily as a completely unrelated word. Furthermore, they introduce a penalty for frequent words to prevent the model from over-relying on "safe" common words (like "a" or "the") and encourage the use of more descriptive, rare terms.
Sequence-level Smoothing
This builds on Reward Augmented Maximum Likelihood (RAML), where the model is trained on sequences sampled from a distribution "near" the ground truth. The authors contribute two key optimizations to make this practical. First, Restricted Vocabulary Sampling limits replacement words to a subset, such as words present in the current training batch, which acts as a helpful prior. Second, Lazy Evaluation solves the computational bottleneck by using the hidden states from the ground-truth pass to evaluate sampled sequences. This makes the training speed nearly identical to standard MLE, avoiding the need for multiple expensive forward passes.
Experimental Setup
The researchers evaluated their methods on two distinct tasks:
- Image Captioning: The MS-COCO dataset (82k training images, each with 5 human-annotated captions).
- Machine Translation:
- WMT’14 English-to-French: A large-scale dataset (12M sentence pairs).
- IWSLT’14 German-to-English: A smaller benchmark (150k sentence pairs).
Key Results
The combined smoothing approach (Tok-Seq) consistently outperformed standard MLE and previous smoothing techniques (like RAML) across all benchmarks.
Quantitative Performance
- Image Captioning (MS-COCO): On the non-attentive model, CIDEr scores jumped from 93.59 (MLE) to 99.92 (Tok-Seq). On the state-of-the-art attentive model, they improved from 101.63 to 103.81.
- Machine Translation: BLEU scores rose from 30.03 to 31.39 on WMT'14 En-Fr and from 27.55 to 28.74 on IWSLT'14 De-En.
Qualitative Improvements
Captions became more descriptive and accurate. As shown in the comparison below, the smoothed models (Tok and Tok-Seq) correctly identify specific objects like "cement blocks" or "carrots" where the baseline provides generic descriptions like "sidewalk" or "variety of foods."
Discussion and Limitations
The most significant finding is the complementarity of local (token) and global (sequence) smoothing. Token smoothing helps the model learn semantic relationships between words, while sequence smoothing helps it handle the structural flow and exposure bias. By rewarding the model for being "close" rather than just "correct," it learns a smoother manifold of language.
However, the approach has limitations. Token-level smoothing assumes context-independent word similarity, which is not always true in natural language. Additionally, performance is heavily dependent on the quality of pre-trained embeddings; the authors noted that GloVe performed significantly better than word2vec. Finally, while the study focuses on RNNs (LSTMs/GRUs), future work is needed to validate if these smoothing techniques provide similar gains for Transformer-based architectures.
Summary updated