Exposure Bias in Autoregressive Sequence Generation

792 concepts581 papers5 proposals

Imagine learning to drive a car on a track where an instructor instantly corrects your steering wheel the millisecond you drift an inch off-center. You would quickly learn how to stay perfectly centered on that specific path. However, if you were suddenly placed on the road alone and made a single slight steering error, you wouldn't know how to recover. Because you were never exposed to your own mistakes during training, a minor drift would quickly compound into a catastrophic crash.

This is the core intuition behind exposure bias (or the training-inference discrepancy), a fundamental challenge in autoregressive machine learning models. Whether generating text, synthesizing audio, or predicting molecular structures, models often fail not because they lack capacity, but because the environment they train in looks radically different from the environment they operate in during deployment.

The Mechanism: Teacher Forcing vs. Free Run

To understand why exposure bias occurs, we must look at how sequence models are trained. The standard paradigm is teacher forcing. During training, when a model predicts the next token in a sequence, it is always given the ground-truth prefix from the dataset as its history, regardless of whether its own previous prediction was correct.

Mathematically, the model learns to maximize the conditional probability:

$$P(x_t \mid x_{1}, x_{2}, \dots, x_{t-1})$$

where $x_{1}, \dots, x_{t-1}$ are flawless, human-validated tokens.

During inference, however, the safety net is removed. The ground truth is unavailable, so the model must generate tokens autoregressively by feeding its own previous outputs back into itself as context:

$$P(\hat{x}_t \mid \hat{x}_{1}, \hat{x}_{2}, \dots, \hat{x}_{t-1})$$

This creates a severe distribution shift. If the model makes a minor mistake at step $t$, the input distribution at step $t+1$ shifts away from the clean data distribution seen during training. As Nicolas Boulanger-Lewandowski et al. observed in early sequential modeling work like Audio Chord Recognition with Recurrent Neural Networks and High-dimensional sequence transduction, this discrepancy causes errors to accumulate rapidly over time, derailing autonomous sequence generation.

How Exposure Bias Manifests Across Domains

Exposure bias is not unique to text generation; it is a systemic issue wherever data is generated sequentially or hierarchically.

Hallucinations in Language Models

In Neural Machine Translation (NMT) and text summarization, exposure bias forces models into unfamiliar regions of the state space. When a model encounters its own erroneous tokens, it lacks the policy to recover. As a result, it may begin to ignore the source text entirely, leading to fluent but completely fabricated outputs. Chaojun Wang et al. demonstrate in On Exposure Bias, Hallucination and Domain Shift in Neural Machine Translation that exposure bias acts as a primary driver for these hallucinations, particularly when models are evaluated on out-of-domain data.

Cascading Errors in Multi-Stage and Hierarchical Models

The discrepancy compounds heavily in architectures that generate data in stages. For example, in Frido: Feature Pyramid Diffusion for Complex Scene Image Synthesis, Wan-Cyuan Fan et al. point out that while conditioning fine-grained features on ground-truth coarse features stabilizes training, it creates a distribution shift during inference. If the initial stage introduces noise, the downstream components—never trained on imperfect inputs—fail to produce high-fidelity results. The authors of BinauralGrad: A Two-Stage Conditional Diffusion Probabilistic Model for Binaural Audio Synthesis document a similar multi-stage degradation in audio synthesis.

Structural Breakdown in Constrained Spaces

In molecular optimization or structured prediction, outputs must conform to rigid syntactic or physical laws. When models are trained exclusively on perfect sequences, they fail to learn the boundaries of these constraints under noisy conditions. As Xixi Yang et al. note in GPMO: Gradient Perturbation-Based Contrastive Learning for Molecule Optimization, exposure bias frequently causes models to generate chemically invalid molecular structures because early structural deviations trigger a cascade of illegal token choices.

Strategies for Bridging the Gap

To eliminate exposure bias, researchers focus on two primary paradigms: exposing the model to its own mistakes during training, or optimizing for sequence-level success rather than token-level perfection.

1. Simulating Errors and Injecting Noise

If the problem is that the model never sees imperfect histories during training, the most direct solution is to intentionally inject errors.

2. Sequence-Level and Reinforcement Learning Objectives

An alternative approach abandons token-level maximum likelihood estimation (MLE) in favor of optimizing the entire generated sequence as a whole. This aligns the training objective directly with inference-time evaluation metrics (like BLEU or CIDEr).

  • Minimum Risk Training (MRT): Introduced to NMT by Maosong Sun et al. in Minimum Risk Training for Neural Machine Translation, MRT samples multiple candidate sequences from the model's own distribution during training. By minimizing the expected loss across these self-generated samples, the model naturally learns to optimize sequences even when it makes mistakes along the way.
  • Self-Critical Sequence Training (SCST): In Self-Critical Sequence Training for Image Captioning, Steven J Rennie et al. utilize the model's own inference-time decoding output as a baseline in a reinforcement learning framework. Because the reward is calculated based on how the model actually performs when generating autonomously, the training-inference discrepancy is entirely bypassed.

By shifting from rigid token-matching to error-resilient generation, these methods ensure that when a sequence model inevitably wobbles on the track, it possesses the policy required to steer itself back to safety.

History & citationVersion 2 · 2026-10-04

Current · Permanent link

  1. Version 2 (latest) · 2026-10-04 · 559 papers
  2. Version 1 · 2026-10-04 · 453 papers
Cite this direction

Latest version (a living page):

@misc{lacuna_exposure_bias_training_inference_discrep_a49068ed,
  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_a49068ed08764893b2d661a4df1ec77b},
  note = {Latest version of a living research direction; cite a version for a fixed text. Accessed 2026-11-23},
}

This exact version (version 2, frozen text):

@misc{lacuna_exposure_bias_training_inference_discrep_a49068ed_v2,
  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_a49068ed08764893b2d661a4df1ec77b/v/2},
  note = {Version 2, frozen 2026-10-04. Accessed 2026-11-23},
}
About

These directions overlap with this one through shared papers.

See something wrong? Report a mistake