Model and Inference EngineeringPost-training and alignmentPrincipal
When can asynchronous reinforcement learning safely use trajectories from older policy checkpoints?
By Amit Kumar3 min readWorked answer includedReviewed 28 Sept 2026
The question
Interview question
Rollout workers generate agent trajectories three policy updates behind the learner. Rewards still describe the outcomes that occurred, but the team wants to train on those trajectories without recording their origin. Explain the distribution mismatch, required provenance and likelihood checks, and the conditions under which data should be refreshed, rejected or used by an explicitly different objective.
Draft your approach first
Take a few minutes before you read the answer. Name the constraint that matters most, the failure you are designing for and how you would know it worked.
Reveal the worked answerWorked answer
The reward can remain a valid observation of what happened in an environment. The gradient estimator is a different question. A rollout was sampled from a particular behavior policy, with particular sampling settings, tool schema and environment state. If the learner treats those actions as if its current policy sampled them, it has changed the distribution in the objective without accounting for it. The size of the error depends on how far those policies differ, not on a fixed count of three checkpoints.
Each trajectory needs a policy version and the log probabilities of the sampled actions under that behavior policy, with prompt, masks, temperature and tokenization pinned. For an agent, also record tool and environment versions and the actual observations after actions. Compute the current-to-behavior probability ratio on the same eligible tokens and look at its distribution, not just its mean. Proximal policy optimization (PPO) uses importance ratios and a clipped training objective to reduce the incentive for some large likelihood-ratio changes. This is not a hard bound on actual policy movement, and clipping cannot make arbitrarily stale, low-support data equivalent to fresh on-policy samples. TRL's asynchronous GRPO documentation explicitly provides a way to tell workers the live policy version so they can tag or discard stale samples. Exact controls depend on the trainer.
For a hypothetical one-step example, let the behavior policy choose actions A and B with probabilities 0.9 and 0.1, while the current policy uses 0.1 and 0.9. The importance weight, current probability divided by behavior probability, is about 0.111 for A and 9 for B. The occasional B sample now carries much more weight. This reweighting can recover an expectation under suitable support assumptions, but it can have high variance. If sampling rules excluded B entirely, no weight can reconstruct a B outcome absent from the data. Record the actual behavior sampling distribution, not just untempered model probabilities. Multi-step corrections also depend on the chosen algorithm and state-distribution assumptions.
I would replay a small set of queued trajectories through the current policy to measure how much probability moved. If old actions now have tiny likelihood, their current-to-behavior ratios are small and they may contribute little to the current objective. The dangerous large weights occur in the other direction: the behavior policy rarely sampled an action that the current policy favors. A finite old dataset may contain too few such actions to estimate their contribution reliably. If the environment has changed, an old reward might not even answer today's task. Put bounds on age, ratio tails and environment compatibility, and quarantine data that fail them. The limit should come from pilot quality and variance, not “three steps is always safe.” Refresh workers or slow the learner if queue depth keeps exceeding the bound. Asynchronous throughput is useful only when the samples still support the chosen algorithm.
There is a second trap in multi-turn agent rollouts. The current policy's probability of later actions is conditioned on earlier observations that followed the old policy's actions. You cannot take a cached outcome from a different path and call it a counterfactual for the current policy. For a verifier reward, a stored trajectory may still be useful for an explicitly off-policy objective or for supervised distillation, with a separate evaluation. Name that algorithm honestly and validate it. Do not quietly feed old traces to a code path written for fresh rollouts.
For release evidence I would compare a tightly synchronized pilot with the asynchronous system at matched compute and environment tasks. Track policy lag in steps and probability space, effective sample contribution after clipping, reward and actual task success on fresh held-out rollouts. If the older data raise a training reward but fresh policy behavior gets worse, the queue has become a way of optimizing yesterday's policy.
Related questions
Keep practising model and inference engineering
Follow another question in this area, or search the complete library.
Get my essays on AI engineering and distributed systems by email. Subscribe to ArchCrux