Introduction
In Natural Language Processing (NLP), recurrent neural sequence models typically predict outputs one token at a time. Most of these models are "locally normalized," meaning that at each decoding step, the model must distribute a total probability of 1.0 across the entire vocabulary. While this approach is standard, it introduces structural constraints that may limit model performance.
This paper by Goyal et al. investigates whether "globally normalized" models—which assign a score to the entire sequence as a whole rather than step-by-step probabilities—can overcome common pitfalls like "label bias" and better handle search errors during inference.
The Challenge: Label Bias and Training-Test Mismatch
Sequence models face two primary hurdles:
- Label Bias: In locally normalized models, the requirement to sum to one at every step can force the model to assign high scores to suboptimal paths if no better local alternatives exist. This "stiffness" prevents the model from effectively revising its trajectory when future information contradicts early decisions.
- Training-Test Mismatch: Models are often trained using "Teacher Forcing," where the ground-truth previous word is provided. At test time, however, the model relies on its own potentially erroneous predictions. This discrepancy often leads to a compounding cascade of errors during beam search.
While high-capacity architectures like LSTMs were once thought to be immune to these issues, the authors demonstrate that the structural choice of normalization remains critical.
Methodology: Search-Aware Training
To compare these normalization schemes fairly, the authors introduce two key technical innovations:
Continuous Relaxation of Beam Search
Standard beam search involves a non-differentiable "hard" selection of the top-$k$ candidates. To enable backpropagation through the search process, the authors propose a soft-k-argmax operator. This creates a differentiable surrogate for beam search, allowing for search-aware training where the model is optimized specifically to perform well under the conditions it will face at test time.
Self-Normalization for Initialization
Training globally normalized models is computationally difficult because calculating the "partition function" (the sum of scores for all possible sequences) is mathematically intractable. The authors address this by "warm-starting" the global model using a self-normalized local model. By adding an L2 penalty that encourages local scores to sum to 1.0 (log Z ≈ 0), they provide a stable initialization that allows the global model to eventually relax these local constraints and optimize the sequence-level score freely.
Experimental Evaluation
The approach was tested on two tasks:
- CCG Supertagging: A syntactic task with 1,284 tags, used to study label bias in a controlled environment.
- Machine Translation (IWSLT 2014 German-English): A large-scale generation task with a 32,000-word vocabulary.
Key Findings
- Overcoming Label Bias: In CCG Supertagging with unidirectional encoders (where label bias is most prevalent), the globally normalized model achieved 85.50% accuracy, significantly outperforming its locally normalized counterpart (83.35%).
- Improved Translation Quality: On the IWSLT task, search-aware training provided a substantial boost over standard teacher-forcing, increasing BLEU scores from approximately 26 to 29. While global and local search-aware models showed similar top-line BLEU scores, the global model demonstrated superior robustness, producing more realistic sequence lengths and better high-order n-gram overlaps.
- Structural Flexibility: The authors characterize locally normalized models as "stiff." If a path is determined to be poor, the model must redistribute that probability mass locally. In contrast, globally normalized models are "flexible," allowing them to assign low scores to entire sequences without being forced to inflate the scores of other local candidates.
Conclusion
The study confirms that global normalization provides a valuable safety net against label bias and search errors, even in the era of deep neural networks. While search-aware training is computationally more intensive than standard cross-entropy, the resulting models are more robust and better at capturing long-range dependencies. Future work may explore more efficient approximations of the global partition function or the application of these techniques to larger Transformer-based architectures.
Summary updated