Standard sequence-to-sequence (seq2seq) models are typically trained using Maximum Likelihood Estimation (MLE), a process often called "teacher forcing." During training, the model predicts the next token given the ground-truth prefix. However, at inference time, the model must predict the next token based on its own previously generated (and potentially erroneous) tokens. This discrepancy, known as exposure bias, causes errors to compound, leading to the "drift" often observed in long-form generation.
To address this, researchers have developed a suite of techniques that move beyond simple token-level matching toward global coherence, bidirectional agreement, and robust data augmentation.
Bridging the Training and Inference Gap
The fundamental issue with teacher forcing is that the model never learns how to recover from its own mistakes. Wen Zhang 0009 and colleagues in Bridging the Gap between Training and Inference for Neural Machine Translation proposed a strategy to bridge this gap by sampling "oracle" words. Instead of always feeding the ground truth as the next input, the model occasionally samples from its own predictions that optimize sentence-level quality. This forces the model to navigate the space of its own outputs during training, making it more resilient at test time.
A different approach to this "sensitivity" was explored by Tianyu He and Xu Tan in Hard but Robust, Easy but Sensitive: How Encoder and Decoder Perform in Neural Machine Translation. They identified an asymmetry: while encoders extract robust representations, decoders are highly sensitive because they rely too heavily on the conditional information of preceding tokens. This sensitivity is exactly what exposure bias exploits.
Enforcing Bidirectional Agreement
If a translation is truly accurate, it should be equally valid whether generated from left-to-right (L2R) or right-to-left (R2L). Zhirui Zhang and Shujie Liu leveraged this intuition in Regularizing Neural Machine Translation by Target-bidirectional Agreement. By introducing a regularization term that minimizes the divergence between L2R and R2L decoders, they force the model to reach a consensus on the underlying semantic structure of the sentence, rather than just memorizing local token patterns.
Augmentation through Semantic Noise
Data augmentation in NLP is challenging because discrete word swaps can easily destroy the syntax of a sentence. However, recent work suggests that "noisy" training can actually improve robustness.
- Discrete Switching: Xinyi Wang and Graham Neubig introduced SwitchOut, which randomly replaces words in both source and target sentences. This simple perturbation prevents the model from over-relying on specific word alignments.
- Soft Distributions: Fei Gao and Lijun Wu took this further with Soft Contextual Data Augmentation. Instead of replacing a word with a single random token, they replace it with a probability distribution over the entire vocabulary provided by a language model. This "soft word" allows the model to learn from a weighted mixture of semantically related alternatives.
- Adversarial Interpolation: Lu Jiang and Yong Cheng developed AdvAug, which creates "virtual" training sentences by interpolating between the embeddings of authentic and adversarial sentence pairs. This creates a smoother manifold for the model to learn from, increasing its resistance to input perturbations.
Modeling the Future
Standard decoders are "short-sighted," choosing the most likely next word without regard for the long-term cost. To fix this, researchers are integrating "look-ahead" mechanisms into the training objective.
In Modeling Future Cost for Neural Machine Translation, Chaoqun Duan introduced a mechanism that estimates the "future cost" of a translation—essentially a preview of how difficult the rest of the sentence will be to generate given the current choice. Similarly, in the visual domain, Yu Qin and Jiajun Du developed the LBPF framework for image captioning. By "Looking Back" at past attention and "Predicting Forward" multiple words at once, the model maintains better linguistic coherence and avoids the drift associated with step-by-step generation.
Beyond Example-to-Example Matching
Finally, some researchers argue that the standard "one-to-one" mapping of training pairs is too restrictive. Shujie Liu and Wenhu Chen proposed S2S-DM, which treats every training pair as a representative of a local latent distribution. By using neural augmenters to explore the "neighborhood" of a training example, the model learns to match distributions rather than just individual points, significantly alleviating data sparsity.
By combining these strategies—bidirectional agreement, future-aware decoding, and distributional matching—the field is moving toward sequence models that are not just statistically accurate at the token level, but semantically robust and globally coherent.