Skip to content

Missing Old Logits in Asynchronous Agentic RL: Semantic Mismatch and Repair Methods for Off-Policy Correction

Skip →MoE Training Handbook (HF)
RL stage 2 #4corefrontierpaperrubric 10/122026 · ~60 min

Zhong Guan, Yongjian Guo, Haoran Sun, …, Hongke Zhao

Status

TL;DR. In asynchronous RL, every generated token involves three policies: the inference engine that sampled it (μ_old), the trainer’s copy of the same weights (π_old), and the policy being updated (π_θ). Decoupled PPO needs all three, but frameworks usually never compute π_old. When a trajectory spans several weight versions, π_old does not exist as a single model. The paper shows that common interpolation fixes only reshape clip thresholds. It then compares exact recovery methods with a cheaper revised PPO-EWMA reference.

Why it matters now. RL-trained search and deep-research agents spend most of their wall-clock time waiting on tools, so async training is the default for them. Async execution is not a new reward or a new objective. It changes which policy produced the data, so it changes what the importance ratio means. If you train a retrieval agent on verl, ROLL or slime (the frameworks the paper names) with partial rollouts, this bookkeeping problem is in your stack.

Write μ for the inference side (vLLM/SGLang) and π for the training side (Megatron/FSDP). The full off-policy ratio factorises:

r(θ)=πθμold=πoldμold⏟rd (train–infer discrepancy)⋅πθπold⏟rs (staleness)r(\theta) = \frac{\pi_\theta}{\mu_\text{old}} = \underbrace{\frac{\pi_\text{old}}{\mu_\text{old}}}_{r_d\ \text{(train–infer discrepancy)}} \cdot \underbrace{\frac{\pi_\theta}{\pi_\text{old}}}_{r_s\ \text{(staleness)}}

The two factors need different treatment. r_d should be close to 1 because the weights are identical, so large deviations signal numerical mismatch and those tokens are masked (IcePop-style). r_s is the genuine policy change, so it gets the PPO clip, whose active region depends on the sign of the advantage. Both need π_old: the trainer’s probabilities under the exact weights that generated the token.

π_old goes missing in two cases. Under partial rollouts, generation is interrupted for a weight update and then continues, so one trajectory mixes versions. Under delayed updates, the trainer has already moved on. Frameworks then substitute a proxy:

  • the asynchronous reference (as in decoupled PPO);
  • a linear mix, π_prox = αμ_old + (1−α)π_θ;
  • an EWMA of parameters, θ_prox,t = βθ_prox,t−1 + (1−β)θ_t.

Proposition 1 shows that the interpolation proxies add no information. For the log-linear proxy, r_d = r_θ^(1−α) and r_s = r_θ^α. The mask and clip on (r_d, r_s) are therefore just rescaled thresholds on the single ratio r_θ, with first-order radii ε1/(1−α) and ε2/α. Appendix A checks this empirically: a run with the rescaled thresholds and no interpolation tracks the log-linear run almost exactly.

The repairs fall into two groups.

  • Exact: keep parameter snapshots per version and recompute π_old; run a dedicated old-logit model; or interrupt rollouts at each update (a Ray resource switch) so no trajectory mixes versions.
  • Approximate (revised PPO-EWMA): use π_prox for both r_d and r_s. Set β ≈ W_stale/(W_stale+2), so that the EWMA’s centre of mass sits mid-window. Reset θ_prox ← θ whenever the fraction of active tokens ρ_t falls below τ = 0.9.
Missing old logits: three policies per token and the version mixing of partial rollouts Top: three boxes for one generated token. Mu old is the inference engine that sampled it and whose probability is logged. Pi old is the trainer with the same weights, which is usually never computed. Pi theta is the policy being updated. The ratio between pi old and mu old is the train-inference discrepancy and is masked; the ratio between pi theta and pi old is staleness and is clipped. Bottom left: a partial rollout whose tokens were generated by weight versions 1, 2 and 3 while the trainer is at version 4, so no single pi old exists. Bottom right: exact repairs (snapshots, a dedicated old-logit model, interrupt and recompute) and the approximate repair (PPO-EWMA with reset). One sampled token, three policies μ_old: inference engine logged at generation π_old: trainer, same θ usually never computed π_θ: current trainer policy being updated r_d = π_old / μ_old train–infer gap → mask r_s = π_θ / π_old staleness → PPO clip Partial rollout: one trajectory, many versions tokens by v1 tokens by v2 tokens by v3 weight update interrupts generation at each boundary trainer is already at v4 which π_old? none exists unless v1–v3 were saved or recomputed Repairs Exact: per-version snapshots Exact: dedicated old-logit model Exact: interrupt, then recompute Approx: PPO-EWMA proxy + reset linear / log-linear proxies only rescale the thresholds (Prop. 1)
Original sketch. One token's off-policy ratio splits into a train–infer discrepancy and a staleness term. Both need π_old, which is never computed and becomes ill-defined once a trajectory spans several weight versions.

The experiments use the ROLL framework with the maximum version gap capped at 3, on Qwen3-4B and Qwen3-30B-A3B. Evaluation is on τ²-Bench (retail, airline, telecom) and VitaBench (in-store, delivery). All numbers are paper-reported.

  • Table 2, Qwen3-4B, retail avg@4. Decoupled PPO 63.96, linear_prox 64.40, PPO-EWMA 65.72, snapshot 66.23. The paper marks snapshot as an idealised exact-reference setting. Treat it as a diagnostic reference rather than a guaranteed upper bound.
  • The VitaBench delivery gap is larger. Avg@2 is 19.56 for decoupled PPO, 19.10 for linear_prox, 25.88 for EWMA and 27.33 for snapshot.
  • 30B-A3B shows the same ordering. Retail avg@4 is 65.43 for decoupled PPO, 65.8 for linear_prox, 67.82 for EWMA and 69.70 for snapshot. No seed variance is reported.
  • Table 3a: cost of exact recovery. Snapshot needs about 40 GB (4B) and 76.4 GB (30B-A3B) of CPU storage, against 7.9 and 15.2 GB for EWMA.
  • Table 3b: a dedicated old-logit model. It is 6.8% faster than the single-pool baseline at a 1:2 resource ratio but 7.17% slower at 1:3, because the benefit depends on overlap.
  • Appendix E: decay and reset. β = 0.9 collapses the Train-Infer Mask to near zero. β = 0.75 without reset falls below 2% active tokens late in training. Reset fired only 3 times (τ = 0.9) and 2 times (τ = 0.8).
  • The models go up to 30B-A3B. The paper states that several-hundred-billion-parameter scale was not tested, and it calls its throughput numbers indicative.
  • The overhead figures are not fully consistent. Appendix G’s per-step snapshot stage (about 95 s and 178 s) is larger than the extra time in Table 3a (25 s and 150 s), and both Appendix G runs ended with Ray actor unavailability.
  • The β rule (W/(W+2)) and the chosen β = 0.75 do not match for a version cap of 3. The decay looks tuned rather than derived.
  • The evidence is on τ²-Bench and VitaBench, which are customer-service tool tasks. Long search trajectories with very slow tools may stress the version spread differently.

Questions to think through

These questions have no single right answer. Write or say your answer before you open the hints. Mark a question once you could defend your answer in a reading group.

  1. Derive / compute

    In the paper's experiments the discrepancy mask on r_d is [0.990, 1.010] and the PPO clip on r_s is [0.997, 1.004]. Take a log-linear proxy with behaviour weight α = 1/(n+1) at version gap n = 3. Derive the active region on the total ratio r_θ = π_θ/μ_old for A ≥ 0 and for A < 0, and say which constraint binds on each side.

    What a strong answer covers
    • Log-linear proxy, log π_prox = α log μ_old + (1−α) log π_θ, gives r_d = r_θ^(1−α) and r_s = r_θ^α. With n = 3, α = 1/4, so 1−α = 3/4.
    • Mask on r_d: 0.99^(4/3) ≤ r_θ ≤ 1.01^(4/3), about 0.9867 ≤ r_θ ≤ 1.0134. Clip on r_s: lower 0.997^4 ≈ 0.9881, upper 1.004^4 ≈ 1.0161.
    • For A ≥ 0 only the upper clip matters: the region is [0.9867, min(1.0134, 1.0161)] = [0.9867, 1.0134]. The discrepancy mask binds on both sides.
    • For A < 0 only the lower clip matters: the region is [max(0.9867, 0.9881), 1.0134] = [0.9881, 1.0134]. The clip binds below and the mask binds above.
    • This is Proposition 1: the proxy adds no new reference information. It only reshapes the thresholds on one ratio, and the reshaping depends on α (a first-order radius of ε1/(1−α) for the mask and ε2/α for the clip).
  2. Mechanism

    Explain why decoupled PPO needs a training-side π_old at all. Why can't it just use the inference engine's logged μ_old for both the off-policy correction and the PPO trust region, and why does π_old go missing under partial rollouts?

    What a strong answer covers
    • μ_old comes from vLLM or SGLang kernels and π_old comes from the Megatron or FSDP trainer. With the same weights they still differ numerically, so r_d = π_old/μ_old measures engine mismatch, not policy change.
    • r_s = π_θ/π_old is the real policy-change ratio that the PPO trust region should clip. Using π_θ/μ_old mixes both effects, so tokens can be clipped or masked because of kernel noise rather than staleness.
    • Under partial rollouts or delayed updates, one trajectory is generated by several weight versions. The trainer has moved on, so no single training-side model matches the version that produced each token.
    • Frameworks therefore substitute whatever is available (the current or an asynchronous reference), which silently changes what each ratio means. The paper calls this a semantic mismatch.
  3. Derive / compute

    The paper sets the EWMA decay as β ≈ W/(W+2) by matching the EWMA centre of mass to the middle of the staleness window W. Derive this rule, evaluate it for the experiments' maximum version gap of 3, and explain how it squares with the β = 0.75 the paper calls theoretically motivated.

    What a strong answer covers
    • θ_prox,t = β θ_prox,t−1 + (1−β) θ_t puts weight (1−β)β^k on the version k steps back. The mean lag is the sum of k(1−β)β^k, which equals β/(1−β).
    • Setting β/(1−β) = W/2 gives β = W/(W+2).
    • With W = 3 the rule gives β = 0.6 (mean lag 1.5 versions). β = 0.75 has a mean lag of 3, which corresponds to W = 6.
    • Possible reconciliations: W counts something other than the version cap (for example the gap plus queueing), or 0.75 was tuned empirically. The paper does not state which. Treat the choice as empirical and probe it with a sweep near 0.6.
  4. What if…

    Appendix E compares β = 0.9, 0.75 and 0.5 with and without automatic reset. Describe what each setting does to the Train-Infer Mask and to early task success, and argue why the reset (re-centre θ_prox on θ when the active-token fraction drops below τ) fixes the failure.

    What a strong answer covers
    • β = 0.9: long memory, so π_prox stays tied to early versions. r_d drifts away from 1 and the Train-Infer Mask collapses to near zero, meaning almost no tokens are trained.
    • β = 0.75 without reset: fastest early gains, but the mask minimum falls below 2% late in training (about 3% at the end).
    • β = 0.5: a short memory keeps the mask healthier but learns more slowly early on.
    • Reset: when ρ_t < τ, setting θ_prox ← θ clears stale history. It fired only 3 times at τ = 0.9 and 2 times at τ = 0.8, which keeps most of the early gain of β = 0.75.
    • Caveat: these are training-curve diagnostics from a small number of runs; the mask fraction is a proxy for how much signal survives, not a measure of bias.
  5. Design

    You are training a 4B deep-research agent with GRPO-style RL on an asynchronous stack. Search calls are slow, so trajectories routinely span 3–4 weight versions. Choose between snapshot tracking, a dedicated old-logit model, interrupt-and-recompute, and revised PPO-EWMA, and justify the choice with the paper's cost numbers.

    What a strong answer covers
    • Snapshot tracking is exact but costly. Table 3a reports about 40 GB of CPU memory for 4B and 76 GB for 30B-A3B, against about 8 and 15 GB for EWMA. Appendix G reports up to 5 resident snapshots and long historical forward passes.
    • A dedicated old-logit model only pays off when its compute overlaps training. Table 3b shows −6.8% at a 1:2 resource ratio and +7.2% at 1:3.
    • Interrupt-and-recompute removes version mixing but wastes in-flight generation. Long tool calls make the waste worse.
    • Revised PPO-EWMA with reset was close to snapshot on Table 2 at a fraction of the memory, so it is the default choice for an academic GPU budget.
    • Whatever you choose, log the version gap per token, the mask fraction and the r_d statistics, and check against an exact reference on a small run.
  6. Research idea

    Propose an experiment that separates the training–inference discrepancy from policy staleness in a retrieval-agent setting, and say what result would show that fixing the discrepancy (for example batch-invariant kernels) matters more than handling staleness.

    What a strong answer covers
    • Arm 1: synchronous on-policy training (staleness 0) with standard kernels, so only r_d varies. Arm 2: matched kernels or FP32 logits (r_d ≈ 1) with the async version gap at 1, 2 and 3.
    • Measure the distribution of log r_d and log r_s per token, the fraction masked or clipped, task success and seed variance.
    • If arm 1 already shows masking and degraded learning while arm 2 is flat across version gaps, the discrepancy is the bigger lever.
    • Control for trajectory length and tool latency, because both change the version spread inside one trajectory.

Done with this page?

Status