Mitigating Exposure Bias in Autoregressive Sequence Generation

75 concepts75 papers1 proposal

Autoregressive models are the backbone of modern sequence generation, powering everything from machine translation to image captioning. These models generate sequences token-by-token, predicting the next token based on the history of previously generated tokens.

However, a fundamental flaw lies in how these models are traditionally trained versus how they are used in the real world. This discrepancy is known as exposure bias.

The Core Problem: Teacher Forcing vs. Autonomous Generation

During training, autoregressive models typically use a technique called teacher forcing. When predicting the next token $t$, the model is given the perfect, gold-standard ground-truth tokens from step $1$ to $t-1$ as its history.

At inference time, however, the ground truth is missing. The model must rely entirely on its own previously generated tokens to predict the next one.

Training (Teacher Forcing):
Ground Truth:  The -> cat -> sat -> on -> the -> mat
Model Input:   The -> cat -> sat -> on -> the
Model Predicts:       cat    sat    on    the    mat

Inference (Autonomous):
Model Input:   The -> dog -> ran -> into -> the -> yard
Model Predicts:       dog    ran    into    the    yard

This creates a severe training-inference distribution shift. Imagine learning to play a complex piano piece with a teacher who instantly nudges your hands back to the correct keys every time you hit a wrong note. If you only practice this way, what happens during a live performance when you make a minor mistake? You have never practiced recovering from a flawed state. Your hands are out of position, the mistake cascades, and the entire performance falls apart.

As noted by Ferdous Sohel et al. in A Comprehensive Survey of Deep Learning for Image Captioning, this distribution shift causes the model's internal states to drift away from realistic data distributions, leading to a rapid accumulation of errors and a loss of global coherence.

The Cascading Effect Across Domains

Exposure bias manifests uniquely across different modalities, but the underlying mechanism—compounding error propagation—remains identical:

To solve this, researchers have developed several distinct strategies to bridge the training-inference gap.

Strategy 1: Exposing the Model to its Own Mistakes

The most direct way to eliminate exposure bias is to force the model to practice generating text from its own imperfect histories during the training phase.

In Scheduled Sampling Based on Decoding Steps for Neural Machine Translation, Fandong Meng proposes an approach that schedules the difficulty of training based on the specific word position in a sentence. By gradually increasing the probability of feeding the model's own predictions rather than ground-truth tokens as a sentence progresses, the training process better simulates real-world error accumulation.

To align entire sequences rather than individual token steps, Jianqiao Li et al. introduce Student-Forcing Optimal Transport (SFOT). Instead of step-by-step token matching, SFOT uses optimal transport to align the global distribution of model-generated sequences with ground-truth references during training, explicitly penalizing structural drift.

In adversarial text generation, Jonathan Sauder et al. propose Best Student Forcing (BSF) in Best Student Forcing: A Simple Training Mechanism in Adversarial Language Generation. BSF selects the highest-quality generated sequence in a batch (as judged by a discriminator) and uses it as a pseudo-ground-truth prefix for standard supervised training, stabilizing the model against the distribution collapse often seen when transitioning from teacher forcing to autonomous generation.

Strategy 2: Sequence-Level Optimization

Standard Maximum Likelihood Estimation (MLE) optimizes for one-step-ahead prediction, making it inherently blind to whole-sequence quality. Sequence-level objectives bypass token-level teacher forcing by optimizing the entire generated output as a single unit.

In Classical Structured Prediction Losses for Sequence to Sequence Learning, Sergey Edunov et al. demonstrate that classical structured prediction losses—such as Expected Risk Minimization over whole-sequence metrics like BLEU or ROUGE—significantly outperform token-level MLE by optimizing the global sequence distribution directly.

Similarly, Dhananjay Ram et al. introduce Contrastive Preference Optimization (CPO) in Sequence-level Large Language Model Training with Contrastive Preference Optimization. CPO utilizes sequence-level negative samples to train models to prefer high-quality autonomous rollouts over flawed ones, directly bridging the gap between token-level prediction and sequence-level generation.

This sequence-level perspective is deeply tied to reinforcement learning. In Teacher Forcing Recovers Reward Functions for Text Generation, Yongchang Hao et al. prove that standard teacher forcing is mathematically equivalent to Inverse Reinforcement Learning (IRL). By leveraging this connection, the authors derive a dense, step-wise reward function directly from pre-trained models, allowing for effective reinforcement learning on non-parallel datasets to mitigate exposure bias without requiring manual reward engineering.

Strategy 3: Post-Hoc Correction and Reranking

Rather than altering the training distribution, another line of research accepts that autoregressive models will make mistakes and introduces secondary mechanisms to correct or filter the output during or after generation.

In Neural Machine Translation with Error Correction, Kaitao Song et al. introduce an Error Correction Mechanism (ECM). By adapting a two-stream self-attention architecture, the authors enable the decoder to explicitly revise and fix erroneous representations of previously generated tokens before using them to predict the next word, preventing early mistakes from cascading.

Standard Autoregressive:
[Token 1 (Error)] ---> [Token 2 (Compounded Error)] ---> [Token 3 (Drift)]

With Error Correction (ECM):
[Token 1 (Error)] ---> [ECM: Fix Representation] ---> [Token 2 (Corrected)]

Alternatively, energy-based frameworks can act as a global filter. Qiujia Li et al. introduce Residual Energy-Based Models (R-EBMs) in Residual Energy-Based Models for End-to-End Speech Recognition. R-EBMs run alongside a standard autoregressive model to evaluate whole-sequence confidence, effectively "correcting" the system by scoring and filtering out paths that exhibit exposure-bias-driven drift.

For text summarization, Mathieu Ravaut et al. develop SummaReranker in SummaReranker: A Multi-Task Mixture-of-Experts Re-ranking Framework for Abstractive Summarization. This framework bypasses step-by-step error accumulation by generating a diverse pool of candidate summaries via beam search and using a multi-task mixture-of-experts architecture to re-rank and select the highest-quality global sequence.

Strategy 4: Eliminating the Autoregressive Bottleneck

The most radical solution to exposure bias is to abandon autoregressive generation entirely. If a model generates all tokens in parallel rather than sequentially, there is no historical dependency, and exposure bias is eliminated by design.

In A Set Prediction Network For Extractive Summarization, Xiaoxia Cheng et al. introduce SetSum, which treats extractive summarization as a non-autoregressive set prediction task. By utilizing learnable queries and a bipartite matching loss, the model extracts a complete set of summary sentences in parallel, completely bypassing the training-inference gap.

Similarly, in the audio domain, Kainan Peng introduces ParaNet in Non-Autoregressive Neural Text-to-Speech. ParaNet is a fully convolutional, non-autoregressive text-to-speech model that generates mel-spectrograms in parallel. By distilling attention from an autoregressive teacher layer-by-layer, it eliminates word skipping and repetition artifacts entirely while achieving massive generation speedups.

Key Foundational Work

Sequence Prediction with Unlabeled Data by Reward Function Learning (2017) — contributed 1 concept elements to this direction.
History & citationVersion 1 · 2026-10-04

Current · Permanent link

View frozen version 1

Cite this direction

Latest version (a living page):

@misc{lacuna_exposure_bias_training_inference_discrep_b7f45e9f,
  title = {exposure bias (training-inference discrepancy)},
  author = {{Lacuna}},
  howpublished = {Lacuna research direction},
  year = {2026},
  url = {https://lacuna.tiptreesystems.com/direction/exposure-bias-training-inference-discrepancy/rdr_b7f45e9f5b9c42028dbb18f1e3951e4d},
  note = {Latest version of a living research direction; cite a version for a fixed text. Accessed 2026-11-26},
}

This exact version (version 1, frozen text):

@misc{lacuna_exposure_bias_training_inference_discrep_b7f45e9f_v1,
  title = {exposure bias (training-inference discrepancy)},
  author = {{Lacuna}},
  howpublished = {Lacuna research direction},
  year = {2026},
  url = {https://lacuna.tiptreesystems.com/direction/exposure-bias-training-inference-discrepancy/rdr_b7f45e9f5b9c42028dbb18f1e3951e4d/v/1},
  note = {Version 1, frozen 2026-10-04. Accessed 2026-11-26},
}
About

These directions overlap with this one through shared papers.

See something wrong? Report a mistake