Abstract
Modern sequence-to-sequence (seq2seq) models typically rely on token-level cross-entropy loss, which suffers from exposure bias and a mismatch between training objectives and evaluation metrics. This paper revisits "classical" structured prediction losses—such as Expected Risk Minimization and Margin-based objectives—adapting them for neural seq2seq learning. By optimizing for sequence-level metrics like BLEU or ROUGE using online candidate generation, the authors achieve state-of-the-art results on translation and summarization benchmarks, demonstrating that these well-established techniques can outperform more complex reinforcement learning and beam-search optimization methods.
Introduction
The standard training paradigm for neural sequence-to-sequence models is Token-level Negative Log Likelihood (TokNLL). While computationally efficient, TokNLL introduces two fundamental problems: exposure bias and metric mismatch. Exposure bias occurs because the model is trained on ground-truth prefixes but must generate from its own potentially erroneous predictions at inference. Metric mismatch arises because models are trained to maximize per-token probabilities, whereas they are evaluated on sequence-level metrics like BLEU or ROUGE.
To address these, researchers have recently explored Reinforcement Learning (RL) and specialized beam search optimization. However, these methods often introduce instability or significant complexity. This work investigates whether "classical" structured prediction losses, originally developed for linear models in NLP, can provide a more stable and effective alternative for modern neural architectures.
Methodology: Adapting Classical Losses
The authors adapt several sequence-level objectives for neural networks:
- Sequence NLL (SeqNLL): Minimizes the negative log-likelihood of the entire target sequence.
- Expected Risk Minimization (Risk): Minimizes the expected cost (e.g., $1 - \text{BLEU}$) over a set of candidate hypotheses.
- Margin-based Losses: Includes Max-Margin, Multi-Margin, and Softmax-Margin, which enforce a scoring gap between the ground truth (or best candidate) and other hypotheses.
Candidate Generation and Implementation
Since the output space for sequences is exponentially large, calculating these losses exactly is intractable. The authors approximate the expectations and margins using a small set of candidates (typically 16) generated during training.
A critical finding was the importance of online generation: generating new candidates at every training step significantly outperforms using a static "offline" set. Furthermore, the method of generation matters; as shown in Figure 1, using beam search to find candidates consistently yields higher BLEU scores than random sampling.
To ensure stability, the authors found that initializing models with token-level label smoothing (TokLS) before transitioning to sequence-level training was essential. This prevents the model from becoming overconfident in its initial, potentially incorrect, predictions.
Experimental Results
The proposed methods were evaluated on IWSLT’14 German-English translation, Gigaword abstractive summarization, and the large-scale WMT’14 English-French translation task.
Performance Comparison
As detailed in Figure 3, sequence-level losses—particularly Expected Risk—consistently outperform both token-level baselines and previous state-of-the-art methods like Actor-Critic or Beam Search Optimization (BSO). On the IWSLT’14 task, the "Risk" objective achieved 32.84 BLEU, a significant improvement over the 31.78 BLEU of the TokNLL baseline.
Scalability and Insights
The effectiveness of these classical losses scales to massive datasets. On WMT’14 English-French (35.5M pairs), sequence-level training reached 41.5 BLEU, proving the approach is not limited to small-scale benchmarks. The authors also noted that while the "Risk" objective is mathematically related to the REINFORCE algorithm used in RL, its use of a candidate set provides a more stable gradient estimate, leading to better convergence and final performance.
Conclusion
This research demonstrates that classical structured prediction losses remain highly relevant in the era of deep learning. By bridging the gap between training objectives and evaluation metrics, these methods provide a robust framework for improving sequence-to-sequence models. While the computational cost of online candidate generation remains a challenge, the significant gains in accuracy and stability make these "old" losses a compelling choice for modern NLP tasks.
Summary updated