TPU Builders study

Async vs sync RL on TPU v6e

Async vs sync RL fine-tuning of Qwen3.5-2B on AIME math problems, on Google TPU v6e with TorchTPU + vLLM.

Follow-up on the same stack: Multi-teacher on-policy distillation (MOPD) on TPU v6e →

TL;DR

  • Async at lag 1 is about 1.7× faster than sync, with no loss of accuracy, over 60 steps. With IS it took 186.6 s per training step against 321.1 s for sync (1.72×; 3.0–3.2 h vs 5.3–5.4 h per run). Step-60 pass@1 was 20.2% against 18.5% for sync, a difference of +1.7 pp (95% CI −1.3 to +4.9), not significant.
  • Lag 1 is as fast as lag 2, because the learner is the bottleneck. Training a batch (187–194 s) takes longer than generating one (154–158 s), so a second version of lag buys nothing. Accuracy at lag 1 and lag 2 is equivalent within ±3 pp.
  • Async + IS matched or beat sync at every checkpoint. With the 60-step sync baseline, lag 1 + IS − sync is +0.5 pp at step 20 (equivalent at ±3 pp), +1.2 pp at step 40 and +1.7 pp at step 60. Every CI includes zero. In the 20-step rounds, both async arms were also within noise of sync and 1.73–1.86× faster.
  • Keep the importance-sampling (IS) correction. Over 60 steps, the arm with truncated IS reached 20.2% pass@1, against 15.4% without it (−4.9 pp, 95% CI −9.2 to −1.0) and 18.5% for sync. No IS − sync was −3.2 pp (95% CI −6.8 to +0.1).
  • Without IS there was no collapse, but the arm stopped improving after step 40. Policy drift came in one short, self-limiting episode per seed, and train reward kept rising. Eval accuracy, though, went from 16.2% at step 40 to 15.4% at step 60, while the IS arm went from 16.7% to 20.2%.
  • Total cost: about $204.0 over five budgets: first study ≈ $22.1, lag-2 round $64.08, lag-1 20-step round $21.45, lag-1 60-step round $54.91, 60-step sync baseline $41.54.

Results at a glance

pass@1 is on 136 problems × 16 samples; the base model scores 9.47%. All rows use 6,144-token answers. s/step is the arm's mean steady-state seconds per training step.

ArmStepspass@1 [95% CI]s/stepSpeed-up vs sync
sync2011.49% [7.93, 15.51]359.71×
async lag 2 + IS2012.41% [8.57, 16.52]205.81.86× same VM (1.75× pooled)
async lag 2, no IS2012.98% [8.46, 18.34]198.51.83× same VM
async lag 1 + IS2012.80% [8.66, 17.58]208.5≈ 1.73× (across VMs)
async lag 1, no IS2014.50% [9.74, 19.90]207.4≈ 1.73× (across VMs)
sync6018.54% [13.65, 23.74]321.11×
async lag 1 + IS6020.24% [14.82, 26.29]186.61.72× (same VM type and zone)
async lag 1, no IS6015.35% [10.29, 21.05]178.81.80× (same VM type and zone)

The 60-step speed-ups compare the 60-step rows with each other. Sync ran on a Flex v6e-4 in europe-west4-a, the same VM type and zone as the lag-1 runs, one day later. Steps get faster over a long run as answers get shorter, so 60-step s/step is not comparable with the 20-step rows.

pass@1 at steps 0, 20, 40 and 60 for sync and lag 1 with and without IS, and paired differences
pass@1 at steps 0, 20, 40 and 60 for sync and for lag 1 with and without IS (95% CI; x = seeds), and the paired differences (no IS − IS, IS − sync, no IS − sync) at each eval.
Seconds per step and idle fractions for all ten 20-step runs
Seconds per step and idle fractions for all ten 20-step runs, grouped by VM pair. Async at lag 1 and lag 2 lands at about the same speed.
Policy versions behind per step, and KL between sampler and trainer
Left: policy versions behind per step (sync 0, lag 1, lag 2). Middle and right: KL(sampler‖trainer) per step for the no-IS arms and for the IS arms and sync.

What we tested

The training loop
We fine-tune the model with GRPO (group relative policy optimization). For each of 16 problems per step it samples 8 answers. An answer earns reward 1 if its final \boxed{} answer matches exactly, else 0. Answers that beat their group's average are made more likely, and the rest less likely. Training problems are AIME 1983–2023. Each run uses two TPU chips: one runs the generator (vLLM, which samples answers) and one runs the learner (TorchTPU, which computes the update).
Sync
The two sides take turns. The generator samples a batch, the learner trains on it, the new weights are loaded into the generator, and only then does the next batch start. Each side waits while the other works.
Async with lag k
The generator keeps sampling while the learner trains. It may use weights up to k versions old, so batch b can start as soon as weights version b−k exist. Sync is the same code with k = 0.
Lag 1 vs lag 2
At lag 1 the generator can run one batch ahead of the learner; at lag 2, two. More lag means more overlap, but each batch is sampled by an older policy, which makes the data more "off-policy".
IS (importance sampling) correction
The learner recomputes each sampled token's probability under its current weights. It then reweights the token by the ratio of that probability to the probability under the policy that sampled it: w = min(exp(logp_current − logp_sampler), 2). The weight is truncated at 2 so that no single token can dominate. vLLM returns the sampler's log-probs for free, so the correction adds no compute.
No IS
The generator sends tokens only. The learner treats its own recomputed probabilities as the sampling ones (ratio ≡ 1), so no correction is applied, however stale the data is.
pass@1 and the eval set
pass@1 is the fraction of sampled answers that are correct, averaged over problems. The eval set has 136 problems (AIME 2024, 2025 and 2026; BRUMO 2025; HMMT Feb 2025 and 2026), with 16 samples per problem at temperature 0.6 and up to 6,144 tokens. The first study used a smaller set: 60 AIME 2024–2025 problems × 8 samples, up to 3,072 tokens.
KL drift
We track the KL divergence between the sampling policy (vLLM) and the learner's current policy, measured on the sampled tokens. Even sync runs sit at about 3.6e-4, because vLLM's fp8 KV cache and kernels differ numerically from the bf16 learner. A rise well above that floor means the learner is moving away from the policy that generated its data.

Round 1

First study: 40 steps, lag 2, 3,072 tokens

Sync vs async at lag 2 with IS, 2 seeds each, on one Flex-start v6e-4.

Async took 79.5 s/step against 128.1 s/step for sync, 1.61× faster. The generator's idle time fell from 39.5% to 1.7%. Here generation (76 s per batch) was the slow side and training (47 s) the fast one, so async hid the learner behind generation.

Step-40 pass@1 was 9.38% for sync and 8.96% for async (base 7.08%), a difference of −0.4 pp (95% CI −3.9 to +2.9). With answers capped at 3,072 tokens, the learning signal was weak, so this round shows speed clearly and accuracy only as "no detectable difference".

Wall-clock to N steps, first study
Wall-clock to N steps. Async reaches step 40 when sync is around step 25.
Eval pass@1, first study
Eval pass@1 at steps 0, 20 and 40 (60 AIME problems × 8 samples).

Round 2

20 steps at lag 2: sync vs async-IS vs no-IS

Three arms with 2 seeds each, 6,144-token answers, on two Spot v6e-4 VMs. Each VM ran two runs at once, so speed is compared within a VM.

VM pairComparisons/stepRatio
p1 (europe-west4-a)sync vs async-IS359.6 vs 193.51.86×
p2 (asia-south1-c)sync vs no-IS360.0 vs 196.81.83×
p3 (asia-south1-c)async-IS vs no-IS218.2 vs 200.31.09×

With longer answers the learner became the bottleneck, and async still ran 1.86× faster than sync on the same VM. All three arms beat the base model, and async-IS is equivalent to sync within ±3 pp (+0.9 pp, 95% CI −1.0 to +2.9). Dropping IS cost no accuracy over 20 steps, but one of the two no-IS seeds began drifting from step 11: its KL grew 27× and its max IS ratio (logged, not applied) reached 26.6.

Seconds per step and idle fractions by VM pair, lag 2 round
Seconds per step and idle fractions, grouped by VM pair.
Step-20 pass@1 per arm and paired differences, lag 2 round
Step-20 pass@1 per arm (dots = seeds) and paired differences with 95% CIs.
KL, entropy, gradient norm and staleness per step, lag 2 round
KL(sampler‖trainer), entropy, gradient norm and staleness per step. The orange solid line is the no-IS seed that drifted.

Round 3

20 steps at lag 1

The same setup at lag 1, with and without IS, 2 seeds each, on one Flex-start v6e-4.

Lag 1 is as fast as lag 2: the four runs took 204–211 s/step, inside the 193–218 s/step spread at lag 2. Lag 1 + IS is equivalent to lag 2 + IS within ±3 pp (+0.4 pp, 95% CI −2.4 to +3.2), and neither lag-1 arm differs detectably from sync. Lag 1 delayed the no-IS drift but did not stop it: the seed that drifted at lag 2 stayed flat through step 16, then rose to 1.5e-3 by step 20 (8.1e-3 at lag 2).

Step-20 pass@1 for all five arms and paired differences
Step-20 pass@1 for all five arms (dots = seeds) and paired differences with 95% CIs.
KL, entropy, gradient norm and staleness per step for all ten runs
KL(sampler‖trainer), entropy, gradient norm and staleness per step for all ten 20-step runs.

Round 4

60 steps: sync vs lag 1 + IS vs lag 1, no IS

The two lag-1 arms for 60 steps, 2 seeds each, on one Flex-start v6e-4, with evals at steps 20, 40 and 60. A sync baseline was added afterwards: the same 60 steps, evals and settings, with plan90's sync config, 2 seeds, on a Flex-start v6e-4 in the same zone.

ArmStep 20Step 40Step 60
sync12.98%15.53%18.54%
lag 1 + IS13.51%16.70%20.24%
lag 1, no IS11.47%16.22%15.35%
IS − sync+0.5 pp [−1.3, +2.5]+1.2 pp [−1.3, +3.6]+1.7 pp [−1.3, +4.9]
no IS − sync−1.5 pp [−3.5, +0.4]+0.7 pp [−1.5, +3.1]−3.2 pp [−6.8, +0.1]
no IS − IS−2.0 pp [−4.0, −0.2]−0.5 pp [−3.1, +2.1]−4.9 pp [−9.2, −1.0]

Without IS the drift did not become instability. Both no-IS seeds had one KL excursion at steps 32–40 (peaks 4.6e-3 and 1.8e-3), recovered within about 5 steps, and went past the gradient clip on only 3 of 120 steps. But the no-IS arm plateaued after step 40, while the IS arm kept gaining, reaching +10.8 pp over base. Keep truncated IS.

Sync learned steadily, reaching 18.5% at step 60 (+9.1 pp over base) with a flat KL (3.5–4.7e-4), slightly behind lag 1 + IS at every checkpoint, though never significantly. It took 321 s/step against 187 s/step for lag 1 + IS: 5.3–5.4 h per run against 3.0–3.2 h, 1.72× faster for async.

KL, max IS ratio and gradient norm per step over 60 steps
KL(sampler‖trainer), max IS ratio and pre-clip gradient norm per step (dotted: clip at 1.0). Grey = sync, blue = IS, red = no IS; solid = seed 0, dashed = seed 1.
Seconds per step and wall-clock to N steps, 60-step runs
Seconds per step and wall-clock to N steps for all six 60-step runs. The four lag-1 runs shared one VM; the two sync runs ran a day later on a VM of the same type in the same zone.

Details

Caveats
  • Few seeds, short runs. Every arm has 2 seeds. Rounds 2 and 3 ran 20 steps; round 2 was planned for 60 and cut to 20 to fit its $90 cap. Even 60 steps is short: the IS arm was still improving at step 60.
  • Run-to-run noise is larger than the bootstrap assumes. No-IS seed 0 scored 16.4% at step 20 in round 3 and 11.0% in round 4, from identical inputs. Read the step-60 contrast (−4.9 pp, same sign in both seeds) as strong evidence, not as a precise effect size.
  • Drift is not tied to a seed. In round 3, no-IS seed 0 began drifting at step 17; in round 4 it was flat until step 31, and seed 1, which never drifted in 20 steps, drifted at steps 32–40.
  • Truncation weakens the reward signal. 87% of base-model samples hit the 6,144-token cap in the pilot profile, and 67–75% of round-2 training rollouts were truncated and earned zero reward.
  • Answer length is a confounder. By step 60, no-IS seed 0's eval answers averaged 2,601 tokens (14% truncated), against 5,258 tokens (73%) at step 40, and its pass@1 fell from 16.0% to 13.5%. IS seed 0 also shortened (4,492 tokens, 19% truncated) but gained accuracy (17.8% to 21.9%). The eval cannot tell "learned to be concise" from "learned to stop early".
  • Speed across VMs. Round 2 ran on Spot VMs in two regions; rounds 3 and 4 on one Flex VM on other days. The 60-step sync baseline ran a day after round 4 on a Flex VM of the same type and zone, so the 60-step sync vs async speed-up crosses machines; its sync s/step at steps 1–20 (about 350 s) matches round 2's sync (360 s) within 3%. Speed is compared within a VM wherever possible. The lag-1 vs sync ratio (≈ 1.73×) crosses VMs. The two sync runs agreed to 0.1% across regions (359.6 vs 360.0 s/step), so the VM effect looks small.
  • Async run-to-run noise. async-IS seed 1 was 9% slower than its no-IS partner on the same VM. IS adds no compute, and that run trained 4% more tokens, so treat 9% as the noise floor for async s/step.
  • First study. Its zone was asia-northeast1-b because the preferred zones had no capacity. About 88% of samples hit the 3,072-token cap, and only 3–4 of 16 prompt groups per batch carried gradient. The eager learner ran at about 1,650 tok/s (about 3% MFU), because torch.compile failed on a view-stride error in Qwen3.5's Gated DeltaNet layers.
  • Sampling seeds. vLLM on TorchTPU has no per-request seeds, so runs are reproducible only up to batch-scheduling nondeterminism.
Cost per round
RoundMachinesVM-hoursCostCap
1. First studyFlex-start v6e-4, asia-northeast1-b, $5.40/h4.09≈ $22.1$60
2. 20 steps, lag 2 (plan90)Spot v6e-4: asia-south1-c $6.25/h, europe-west4-a $7.13/h5.65 + 3.76$64.08$90
3. 20 steps, lag 1 (plan25k1)Flex-start v6e-4, europe-west4-a, $5.40/h3.89$21.45$25
4. 60 steps, lag 1 (plan65k1long)Flex-start v6e-4, europe-west4-a, $5.40/h10.16$54.91$65
4b. 60 steps, sync baseline (plan55sync60)Flex-start v6e-4, europe-west4-a, $5.40/h7.68$41.54$55
Total≈ $204.0

Rounds 2–4 come from each round's GCS spend ledger. Create-to-delete times give $21.33 for round 3, $54.89 for round 4 and $41.49 for the sync baseline. Capacity requests that were never granted cost $0. Everything was deleted except the compile-cache bucket (about $0.08/month).

  • Round 1: setup, smoke tests, debugging and learner benchmarks ≈ $4.8; 4 training runs plus 9 eval passes ≈ $17.0. Per 40-step run on 2 chips: sync ≈ $3.9, async ≈ $2.5.
  • Round 2: asia-south1-c VM $35.32 (pilot and base eval ≈ $8.3, OOM restart ≈ $0.9, pair p2 ≈ $14.4, pair p3 ≈ $11.7); europe-west4-a VM $26.79 (waiting for the pilot and the OOM restart ≈ $10.0, pair p1 ≈ $16.8); aborted early boots $0.98; GKE fallback cluster $0.97; CPU dry run $0.02.
  • Round 3: Flex VM 3.89 h, $21.03 (setup ≈ $0.8, pair pA ≈ $9.9, pair pB ≈ $10.3); a Spot VM deleted by the budget guard before setup finished, $0.29.
  • Round 4: Flex VM 10.16 h, $54.89 (setup ≈ $0.9, pair pA ≈ $25.6 over 4.73 h, pair pB ≈ $27.7 over 5.13 h, gaps and teardown ≈ $0.7). Each pair includes 60 steps plus 3 evals per run.
  • Round 4b (sync baseline): Flex VM 7.68 h, $41.49 (setup ≈ $1.2; pair ≈ $39.9 over 7.38 h, which is 5.4 h of training, then 1.2–2.0 h for each run's 3 evals; teardown ≈ $0.4). The cost model priced the pair at a P90 of $44.75 before launch.
Methods
ModelQwen/Qwen3.5-2B, non-thinking chat template
StackContainer vllm/vllm-torchtpu:v0.32.0: torch 2.13.0, torch_tpu 0.2.0, vllm 0.32.0, transformers 5.19.0, libtpu 0.0.50
LayoutOne v6e-4 (4 chips) per VM. Each run used 1 chip for vLLM and 1 for the learner; two runs shared a VM on chips 0/1 and 2/3, at the same time.
DataTrain: AIME 1983–2023 (gneubig/aime-1983-2024, 919 problems). Rounds 2–4 filter training prompts with a pilot profile: informative prompts plus 20% zero-pass prompts.
AlgorithmGRPO with group mean/std advantages, exact \boxed{} reward, no KL penalty, AdamW lr 1e-6 (constant), one optimizer step per batch.
Batch16 prompts × 8 samples = 128 sequences per step, temperature 1.0. Max new tokens 3,072 (round 1) or 6,144 (rounds 2–4).
LossTruncated IS, w = min(exp(logp_current − logp_behavior), 2), detached, loss −w·A·logp, token-mean over sequences with nonzero advantage. No-IS arms use --behavior-logprobs none (w ≡ 1).
Async ruleBatch b is trained at step b by policy version b; generation of batch b may start once version ≥ b−k is published. Lag is fixed with --staleness k --staleness-mode fixed. Weights go through safetensors on /dev/shm and are reloaded in place into vLLM in about 1.8 s.
Learnerbf16 params and grads on the TPU, fp32 master weights and AdamW on the host, gradient checkpointing, eager mode. Rounds 2–4 add --gdn-chunk 256 --mb-tokens 8192. The first round-2 attempt at --mb-tokens 16384 ran out of HBM on its first train step; only the restarts at 8,192 are reported.
EvalTemperature 0.6, top-p 0.95. Round 1: 60 AIME 2024–2025 problems × 8 samples, steps 0/20/40. Rounds 2–3: 136 problems × 16 samples, step 20. Round 4: the same, steps 20/40/60.
TimingSteady state, from the first generation to the last weight publish. Engine startup (about 125–130 s with a warm compile cache) is excluded.

Statistics. 95% CIs come from a hierarchical bootstrap that resamples problems, seeds and samples (10,000 draws). Contrasts are paired by problem. "Equivalent at ±3 pp" is a two-one-sided test: the 90% CI lies inside ±3 pp.

Lag check. A CPU test confirmed the lag-1 flags: steps train at staleness 0, 1, 1, 1, …. Every lag-1 run trained at lag 1 on all but its first step; lag-2 runs were at lag 2 on 18 of 20 steps.

Detailed results: rounds 2 and 3 (20 steps)

Step-20 contrasts

ContrastDifference95% CI90% CIEquivalent at ±3 pp?
async-IS − sync (lag 2)+0.9 pp[−1.0, +2.9][−0.7, +2.6]yes
no-IS − async-IS (lag 2)+0.6 pp[−2.6, +4.0][−2.2, +3.5]no (CI too wide)
no-IS − sync (lag 2)+1.5 pp[−1.6, +4.9][−1.2, +4.3]no (CI too wide)
lag-1 IS − sync+1.3 pp[−1.4, +4.2][−1.0, +3.7]no (CI too wide)
lag-1 IS − lag-2 IS+0.4 pp[−2.4, +3.2][−2.0, +2.8]yes
lag-1 no-IS − lag-1 IS+1.7 pp[−2.0, +5.5][−1.4, +4.9]no (CI too wide)
lag-1 no-IS − lag-2 no-IS+1.5 pp[−2.8, +5.7][−2.1, +5.0]no (CI too wide)

Gains over base (9.47%) at step 20: sync +2.0 pp [+0.2, +4.0], lag-2 IS +2.9 pp [+0.7, +5.1], lag-2 no-IS +3.5 pp [+0.4, +7.2], lag-1 IS +3.3 pp [+0.3, +6.5], lag-1 no-IS +5.0 pp [+1.7, +8.6]. Per seed (s0, s1): sync 11.72, 11.26; lag-2 IS 12.96, 11.86; lag-2 no-IS 14.84, 11.12; lag-1 IS 14.25, 11.35; lag-1 no-IS 16.36, 12.64.

Per run

RunPairWall to 20s/stepGen s/batchTrain s/stepRollout idleLearner idleRollouts truncatedTrain reward 1–5 → 16–20Step-20 pass@1
sync-s0p1119.9 min359.6157.6197.355.7%44.3%71.7%0.222 → 0.27311.72%
async-s0p164.5 min193.5154.4181.619.5%4.7%67.1%0.219 → 0.29112.96%
sync-s1p2120.0 min360.0156.8198.456.0%44.1%72.0%0.200 → 0.27811.26%
no-IS-s0p265.6 min196.8154.8184.520.2%4.7%68.4%0.219 → 0.33414.84%
async-s1p372.7 min218.2159.3206.526.4%4.0%74.0%0.186 → 0.27711.86%
no-IS-s1p366.8 min200.3158.9188.620.0%4.4%75.4%0.208 → 0.27211.12%
k1-IS-s0pA70.0 min210.0154.5193.925.7%6.3%64.5%0.227 → 0.35014.25%
k1-noIS-s0pA68.0 min204.0153.7187.324.0%6.8%64.2%0.228 → 0.38116.36%
k1-IS-s1pB69.0 min207.1158.2190.322.7%6.7%72.8%0.186 → 0.24211.35%
k1-noIS-s1pB70.2 min210.7157.4192.924.2%7.1%70.5%0.197 → 0.29512.64%

Pairs p1–p3 are round 2 (lag 0 or 2); pA and pB are round 3 (lag 1). About 9 of 16 prompt groups per batch carried gradient (3.5 in round 1). Pooled across VMs, async-IS is 1.75× faster than sync (95% CI 1.65–1.86).

KL drift

RunKL steps 1–5KL steps 16–20Max KL (step)Max IS ratioGrad norm mean (max)
sync-s0 / s13.7e-4 / 3.6e-43.6e-4 / 3.6e-4–2.10 / 9.450.62 / 0.62
lag-2 IS-s0 / s13.9e-4 / 3.8e-45.2e-4 / 4.3e-46.2e-4 (17) for s03.06 / 2.370.66 / 0.63
lag-2 no-IS-s03.9e-47.4e-31.1e-2 (19)26.60.77 (1.27)
lag-2 no-IS-s13.8e-44.3e-45.0e-4 (15)2.540.65
lag-1 IS-s03.9e-46.6e-48.2e-4 (20)3.020.63 (0.89)
lag-1 IS-s13.7e-43.8e-44.2e-4 (11)1.990.62 (0.75)
lag-1 no-IS-s03.8e-48.1e-41.5e-3 (20)3.330.67 (0.91)
lag-1 no-IS-s13.6e-43.6e-44.5e-4 (15)1.880.63 (0.84)

For no-IS runs the IS ratio is a diagnostic only: computed, not applied. Lag-2 no-IS-s0's gradient norm passed the 1.0 clip on 3 of its last 5 steps. Learner idle is slightly higher at lag 1 (6–7% vs 4–5%) because the in-place weight load sits closer to the critical path.

Detailed results: round 4 (60 steps)

pass@1 with CIs

ArmStep 20Step 40Step 60
sync12.98% [9.03, 17.39]15.53% [11.14, 20.34]18.54% [13.65, 23.74]
…seeds (s0, s1)13.56, 12.4116.08, 14.9818.89, 18.20
…gain over base+3.5 pp [+1.4, +5.7]+6.1 pp [+3.8, +8.6]+9.1 pp [+6.2, +12.2]
lag 1 + IS13.51% [9.44, 18.29]16.70% [12.04, 21.76]20.24% [14.82, 26.29]
…seeds (s0, s1)14.11, 12.9117.83, 15.5821.88, 18.61
…gain over base+4.0 pp [+1.8, +6.5]+7.2 pp [+4.4, +10.5]+10.8 pp [+7.2, +14.9]
lag 1, no IS11.47% [7.88, 15.26]16.22% [11.60, 21.21]15.35% [10.29, 21.05]
…seeds (s0, s1)11.03, 11.9015.99, 16.4513.51, 17.19
…gain over base+2.0 pp [+0.1, +3.9]+6.8 pp [+4.3, +9.5]+5.9 pp [+2.3, +9.5]

90% CIs for no IS − IS: [−3.7, −0.5] at step 20, [−2.7, +1.7] at step 40 (equivalent at ±3 pp), [−8.5, −1.6] at step 60. Per seed at step 60: −8.4 pp (seed 0), −1.4 pp (seed 1). 90% CIs for IS − sync: [−1.0, +2.1] at step 20 (equivalent at ±3 pp), [−0.9, +3.2] at step 40, [−0.8, +4.3] at step 60. 90% CIs for no IS − sync: [−3.2, +0.1] at step 20, [−1.2, +2.6] at step 40 (equivalent at ±3 pp), [−6.2, −0.3] at step 60.

Stability per run

RunKL 1–1011–2021–4041–60Max KL (step)KL at 60Max IS ratio (step)Clip hits / 60Max grad normEntropy 1–10 → 41–60Train reward 1–10 → 41–60
lsync-s03.7e-43.5e-43.7e-43.7e-44.7e-4 (60)4.7e-44.90 (60)00.910.359 → 0.3480.263 → 0.455
lsync-s13.7e-43.7e-43.6e-43.6e-44.0e-4 (7)3.6e-42.94 (25)2 (47, 48)1.250.363 → 0.3230.228 → 0.391
lk1is-s03.8e-43.9e-43.9e-44.7e-45.7e-4 (44)5.2e-42.85 (4)00.960.361 → 0.3820.252 → 0.499
lk1is-s13.7e-43.7e-43.4e-43.6e-44.2e-4 (46)3.6e-46.80 (59)00.820.351 → 0.2560.216 → 0.416
lk1nois-s03.8e-43.7e-41.0e-35.1e-44.6e-3 (37)8.6e-411.8 (37)2 (36, 37)1.310.358 → 0.2820.234 → 0.432
lk1nois-s13.7e-43.8e-47.1e-43.6e-41.8e-3 (35)3.3e-412.4 (40)1 (48)1.050.353 → 0.2910.235 → 0.449

A clip hit is a step whose pre-clip gradient norm exceeded 1.0. Over its last 8 steps lk1nois-s0's KL climbed again, from 3.9e-4 to 8.6e-4. Sync trains on fresh data (lag 0), so its KL is the numerics floor; its IS ratio is applied (truncated at 2), as in plan90's sync arm.

Answer length

RunTrain truncated 1–10 → 21–40 → 51–60Tokens/seq 1–10 → 51–60Eval truncated, tokens at 20 / 40 / 60
lsync-s071% → 54% → 35%5,284 → 4,11375%, 5,412 / 69%, 5,276 / 57%, 4,953
lsync-s175% → 56% → 46%5,431 → 4,59176%, 5,432 / 65%, 5,093 / 69%, 5,235
lk1is-s073% → 43% → 18%5,326 → 4,04271%, 5,304 / 57%, 5,126 / 19%, 4,492
lk1is-s178% → 56% → 55%5,463 → 5,03277%, 5,418 / 73%, 5,387 / 71%, 5,448
lk1nois-s073% → 49% → 21%5,359 → 3,39473%, 5,301 / 73%, 5,258 / 14%, 2,601
lk1nois-s175% → 52% → 37%5,442 → 3,97476%, 5,377 / 71%, 5,174 / 62%, 4,926

Speed

Arms/step, mean (seeds)Steps 1–1011–2021–4041–60Gen s/batchTrain s/stepRollout idleLearner idle
sync321.1 (321.9, 320.2)381320–322313–319296–297146.5169.653.8%46.2%
lag 1 + IS186.6 (181.8, 191.5)236–239184–193174–184160–175147.6176.420.0%3.8%
lag 1, no IS178.8 (173.8, 183.8)245–249173–183164–181149–154143.4167.018.6%4.6%

Every run trained at lag 1 on 59 of 60 steps. Within each pair the no-IS run was about 4% faster because it trained fewer tokens per step (293–299k vs 322–339k over steps 41–60). Sync trained at lag 0 on all 60 steps. Wall-clock to 60 steps: sync 321.9 and 320.2 min, lag 1 + IS 181.8 and 191.5 min, lag 1 no IS 173.8 and 183.8 min. A sync step pays generation plus training (146.5 + 169.6 s); lag 1 overlaps them, so each side idles 46–54% under sync and 4–20% under lag 1.

Step-20 replication vs the 20-step rounds

Arm20-step round60-step runDifference (95% CI)
sync (vs round 2)11.49% (11.72, 11.26)12.98% (13.56, 12.41)+1.5 pp [−0.4, +3.6]
lag 1 + IS12.80% (14.25, 11.35)13.51% (14.11, 12.91)+0.7 pp [−2.1, +3.6]
lag 1, no IS14.50% (16.36, 12.64)11.47% (11.03, 11.90)−3.0 pp [−6.3, 0.0]
Detailed results: round 1 (first study)
RunWall to 40s/stepGen tok/sRollout idleLearner idleGen s/batchTrain s/step
sync seed084.8 min127.22,91639.3%60.7%75.747.2
sync seed186.0 min129.02,88839.8%60.1%75.948.5
async k=2 seed053.0 min79.54,7121.8%39.4%76.544.4
async k=2 seed152.9 min79.44,6831.6%33.4%76.349.7
Checkpointpass@1AIME 2024AIME 2025Truncated
base7.08%5.00%9.17%87.7%
sync s0 step 20 / 409.17% / 8.54%7.50% / 5.42%10.83% / 11.67%82% / 80%
sync s1 step 20 / 408.13% / 10.21%4.58% / 9.58%11.67% / 10.83%84% / 69%
async s0 step 20 / 408.13% / 7.92%6.25% / 7.08%10.00% / 8.75%85% / 77%
async s1 step 20 / 4010.63% / 10.00%10.00% / 7.08%11.25% / 12.92%80% / 75%

Mean of 2 seeds: sync 8.65% / 9.38%, async 9.38% / 8.96% at steps 20 / 40. async − sync: +0.7 pp at step 20 (−2.8 to +4.7), −0.4 pp at step 40 (−3.9 to +2.9). Trained − base: +1.9 pp at step 20 (−0.1 to +4.1), +2.1 pp at step 40 (−0.2 to +4.5).

Mean staleness was 1.10 and 1.07 for the two async seeds (cap 2). The sampler-vs-learner KL was the same in sync and async (3.4–3.7e-4), so that floor comes from numerics, not lag.

Secondary charts
Round 2: train reward vs step and wall-clock
Round 2: train reward vs step and vs wall-clock; wall-clock to N steps.
Round 3: train reward vs step and wall-clock, all five arms
Round 3: train reward vs step and vs wall-clock; wall-clock to N steps, all five arms.
Round 4: train reward, entropy, trained tokens and lag per step
Round 4: train reward (5-step smoothed), policy entropy, trained tokens per step, and policy versions behind.
Round 1: idle fractions
Round 1: idle fractions.
Round 1: timeline of the first 15 minutes
Round 1: first 15 minutes of each run (green = generate, purple = train, orange = weight sync).
Round 1: reward curves
Round 1: train reward vs step and vs wall-clock.
Round 1: staleness histogram
Round 1: staleness under lag 2.
Provenance and reproduction
  • Code: rl/ in the GitHub repository (Apache-2.0; qrl/ for rollout, learner, eval, analysis and stats; rl/tpu/ for drivers).
  • Round 1: results commit 2cea2a9; data in rl/results/qwen35-2b-aime/. Flex-start v6e-4 ct6e-standard-4t, asia-northeast1-b.
  • Round 2 (plan90): results commit df381ca; data in rl/results/plan90/. VMs qrl-bc4a-s-ew4a (europe-west4-a, pair p1) and qrl-bc4a-s-as1c (asia-south1-c, pairs p2 then p3). Analysis: qrl.report_plan90.
  • Round 3 (plan25k1): results commit 2f9ce9b; data in rl/results/plan25k1/. VM qrl-bc4a-x2-ew4a (europe-west4-a). Analysis: qrl.report_plan25k1.
  • Round 4 (plan65k1long): results commit 5c22a8e; data in rl/results/plan65k1long/. VM qrl-bc4a-x2-ew4a (europe-west4-a). Analysis: qrl.report_long.
  • Round 4b (plan55sync60, sync baseline): results commit d54271e; data in rl/results/plan55sync60/, with the combined three-arm report in report.json. VM qrl-bc4a-x2-ew4a (europe-west4-a, Flex). Analysis: qrl.report_long --root rl/results/plan65k1long/raw rl/results/plan55sync60/raw.
  • Cleanup: every qrl-bc4a-* VM, queued request, GKE cluster, Cloud Run job and Scheduler job was deleted after each round. Only the compile-cache bucket gs://qrl-bc4a-compile-cache-tpu-builders-509006 is kept.
# on a v6e-4 VM with the vllm/vllm-torchtpu:v0.32.0 container named `qrl`
bash rl/tpu/launch_pair.sh 0 40   # sync on chips 0/1, async k=2 on chips 2/3
bash rl/tpu/chain.sh sync 40 & bash rl/tpu/chain.sh async 40 &
python -m qrl.analyze <run dirs>
python -m qrl.plots --runs <run dirs> --evals <eval jsons> --out <dir>
Related work
  • Miles — Yuan, Yueming. "Miles: RL post-training for the new era of scale and workloads." PyTorch Conference 2026. Slides · Blog
  • TorchStore — Pasqualin, Pintz, Wang, Afzali. "TorchStore: What We Learned Building Distributed Storage Solutions for AsyncRL." PyTorch Conference Europe 2026. Session · GitHub
  • torchforge — PyTorch Blog, 23 Oct 2025. Post
  • HF AsyncGRPO — AsyncGRPOTrainer in huggingface/trl: background vLLM rollouts with a staleness bound and behavior log-probs.

This study is a small, instrumented A/B of the same idea on one TPU host: overlap generation and training with bounded staleness, and correct with behavior log-probs.