liveBook · Manning

Data drift

As explained in Reinforcement Learning from Human Feedback

Distribution mismatch is a discrepancy between the probability distribution that generated training data and the distribution of the policy being optimized.

Distribution mismatch occurs when training examples come from a different probability distribution than the policy being optimized. In policy optimization, samples from an older policy can become less representative as updates change the current policy; importance sampling reweights those samples to estimate expectations under the current policy. section 6.2.9

Equation 6.39
\[\label{eq:IS_identity} \mathbb{E}_{p}[f(x)] = \mathbb{E}_{q}\left[f(x) \frac{p(x)}{q(x)}\right],\]

The identity expresses an expectation under the target distribution using samples from a different sampling distribution, weighted by their probability ratio. section 6.2.9

Common sources of mismatch include:

  • Repeated gradient updates move the current policy away from the policy that generated a rollout batch. section 6.2.9
  • Asynchronous generation and training systems may use different model weights because of synchronization delays. section 6.2.9
  • Offline distillation can train on teacher-generated sequences that differ from the student’s own inference-time sequences. section 12.3.2

Token-level clipping in PPO and GRPO can give a token zero gradient when its importance ratio leaves the clipping range. GSPO instead uses sequence-level ratios; on-policy distillation addresses teacher-student mismatch by sampling completions from the student and comparing its predictions with the teacher’s. section 6.2.9 section 6.6 section 12.3.2

Distribution shift in evaluation

GeneralPoints changes face-card values between training and evaluation; V-IRL changes navigation actions from absolute to relative directions. These shifts test whether training transfers beyond the observed distribution. section 15.2.1

How Reinforcement Learning from Human Feedback covers it

How deep it goes
Derives importance-sampling correction and contrasts token- with sequence-level ratios, including clipping failure modes.
Examples
Uses stale-policy rollouts, asynchronous model weights, student-generated completions, and shifted task rules as examples.
What you can do after
Apply importance sampling to reweight samples from an older policy when estimating updates for the current policy.
How it connects
Connects distribution mismatch to importance sampling, PPO, GRPO, GSPO, asynchronous training, and on-policy distillation.

Also explained in

Compare how 7 books explain data drift →

Related concepts

This explainer was generated by Manning's knowledge graph from the text of Reinforcement Learning from Human Feedback. The section links point to the parts of the book it draws on.