A clean, verified theoretical unification (SC = logits replay) and a convincing small-scale hidden-state-replay effect, but the large-scale gains are within ~1.3–1.6 SE with 3 seeds, the main 'SC' baseline is a weaker top-k approximation, and the MoE 'ATW is crucial' result is confounded with routing replay.
Soundness
2/4
Presentation
3/4
Contribution
3/4
Confidence
4/5
✓ 12 confirmed✕ 4 discrepancy◐ 1 inconclusive
Summary
The paper reframes train-inference mismatch (TIM) in RLVR: the object worth training is the sampler (a quantized, stale or otherwise cheaper inference engine), and the trainer is only a differentiable device for approximating the sampler's gradient. From this view it proposes Sampler Replay (SR): a straight-through operator Fπ(x)+sg(F that forces the sampler's hidden states (at every layer input and the final norm), logits and MoE routing into the trainer's forward pass, so that backpropagation runs through the trainer's Jacobians evaluated at the sampler's activations.
Strengths
Correct, short proof that Score Centering is logits replay
Sec. 3.1, Theorem 1
Theorem 1 holds exactly: both the full-vocabulary SC gradient and the replayed-logit PG gradient equal −A(ey−q) to 6×10 over 200 random instances (V up to 50,000), and the authors' own JAX reproduces the equivalence to float32 rounding (check 01). The toy transformer in check 03 independently found logit replay and full SC identical at every layer. This gives a principled lens that unifies SC, R3 routing replay and keep-sampling-mask.
Weaknesses
MoE 'ATW is crucial' conclusion is confounded with routing replay
major · Sec. 4.4, Fig. 5; App. B Table 7; configs/intellect_math/*
In the released configs the SR+ATW arm sets enable_rollout_routing_replay: true (and τ=0.3), while the SR arm has routing replay off and no ATW (check 08); App. B Table 7 lists 'hidden states + logits + expert routing' only for SR+ATW, but Sec. 4.4 attributes the stability difference to ATW alone. Since R3 is presented in the paper as a known stabiliser, the comparison cannot isolate ATW. Moreover SR without ATW does not collapse to zero (peak 0.290 at step 434, final 0.203), and SR+ATW only matches SC's final reward (0.291 vs 0.285) while needing about twice the steps to reach 0.27 (637 vs 319). Fix: run SR + routing replay without ATW (and SC + routing replay), or rephrase the claim.
Main 'SC' baseline is top-k SC, which is substantially weaker than the exact SC the theorem concerns
major · Sec. 3.1; Sec. 4.1–4.4; App. A.3, Fig. 13
Theorem 1 covers full-vocabulary SC, but the SC baseline in almost every figure is top-128 (top-32 in GSM8K staleness) SC, which is not gradient-equivalent (relative deviation 0.6–1.8% per token, check 01). In App. A.3, exact SC (= logits replay) reaches 0.406 on GSM8K INT4-KV vs 0.245 for top-128 SC and 0.595 for SR, so about 46% of SR's headline advantage there comes from removing the top-k approximation rather than from hidden-state replay (check 06); in the Fig. 7 noise panel logit replay beats top-128 SC by 0.031 (check 14). No logits-only/exact-SC arm is reported for DAPO, Sokoban or MoE. Fix: include exact SC (logits replay) as the reference baseline in all main comparisons, and state in the main text which SC variant is used.
Large-scale improvements are not statistically established
major · Sec. 4.2, Fig. 3; Sec. 4.3, Fig. 4
Questions for the authors
Can you run the MoE experiment with Sampler Replay + routing replay but without ATW (and SC + routing replay)? If SR+R3 is stable, the 'ATW is crucial' conclusion in Sec. 4.4 should be revised.
How do DAPO and Sokoban results change when the SC baseline is exact (full-vocabulary) SC, i.e. logits replay? On GSM8K (Fig. 13) exact SC recovers about half of SR's advantage over top-128 SC.
Is the late drop of SR without ATW in DAPO W4A8 (train-reward SE 0.12 over steps 451–500) caused by a single seed collapsing? Please show per-seed curves.
How sensitive is SR+ATW to τ? Values range from 10−4 to 1.0; a sweep on at least one setting, and the fraction of tokens zeroed per setting, would show how much tuning ATW requires.
For staleness, does an SR or SC arm with the learning rate reduced to match ATW's or TIS's average effective weight still fail?
What is the end-to-end throughput gain of the W8A8+KV4 sampler over BF16 in your Sokoban/DAPO setup, given that the BF16-sampler TIS run reached step 600 only 4–10% later yet scored 63.3% vs 55.9%?
Verification
Seventeen checks were run, all with scripts in work/verify/: 12 confirmed, 4 discrepancies, 1 inconclusive. The theory is sound: Theorem 1 and the exact head-gradient statement hold to machine precision, including with the authors' own JAX loss. Plot-level numbers, recovered from the vector figures and the plotted data shipped in the repository (which agree exactly), match every value quoted in the text (Fig. 9 cosines/norm ratios, Sokoban 55.9/45.6, Fig. 13 endpoints, MoE final rewards), and the storage arithmetic is exact. But the checks also show that the large-scale gaps are only 1.3–1.6 SE with 3 seeds, that about half of SR's GSM8K advantage over 'SC' comes from the top-k approximation, that the MoE SR+ATW arm also enables routing replay (confounding the 'ATW is crucial' claim), that the ablation's 'combining is more effective' holds in one of two panels, and that App. B tables and the App. A.4 TIS equation contain documentation errors. A toy CPU reproduction of the gradient-alignment mechanism reproduced the direction of the effect but not its early-layer concentration or norm-ratio behaviour, so it is inconclusive for Fig. 9's magnitudes. No GPU training runs were repeated.
park2026kv4rl (Park et al. 2026, arXiv:2610.14448)
Exists, but the cited title omits the subtitle: actual title is 'KV4-RL: Unlocking Faster Asynchronous Rollouts for RLVR with INT4 KV Cache Quantization'. Cited in Sec. 6.2 for the KV4 format (rotated keys, unrotated values, FP16 scale and offset per vector); the abstract describes calibration-free INT4 KV with selective INT8 protection of attention sinks and recent context, which the paper's KV4 baseline does not mention using; the encoding details could not be confirmed from the abstract.
gu2026qarl (Gu et al. 2026, arXiv:2604.07853)
Exists, but the cited title is truncated: actual title is 'QaRL: Rollout-Aligned Quantization-Aware RL for Fast and Stable Training under Training-Inference Mismatch'. Citation context (quantize the trainer the same way as the sampler) matches the abstract.
qi2025defeating (Qi et al. 2025, arXiv:2510.26788)
Cited in Sec. 7 among approaches that 'make training and inference arithmetic bit-wise identical'; the abstract proposes switching BF16 to FP16 to reduce the mismatch, not bit-wise identical arithmetic. Mild misattribution.
espeholt_impala_2018 (IMPALA)
Cited in App. A.4 as a source of train-inference mismatch due to 'data'; IMPALA concerns policy lag in distributed actor-learner training (off-policy correction with V-trace), so the attribution is loose.
Blog posts, documentation pages or Notion notes without DOI/arXiv ID; existence and content could not be verified automatically. TIS (yao2025offpolicy) and the staleness setup (liu2026driftdistance) are load-bearing, so stable archival citations would help.
all arXiv-ID references
tools/check_refs.py could not query the arXiv API (HTTP 429 on two attempts); titles were instead verified from arxiv.org/abs pages in work/verify/16_refs.py: all 22 arXiv IDs and the 4 Crossref DOIs resolve to the cited works (title similarity 1.0 except the two truncated titles above).
Suggestions
Use exact (full-vocabulary) SC, i.e. logits replay, as the primary baseline in all main figures, and report top-k SC separately; this isolates the contribution of hidden-state replay.
Add an MoE arm with SR + routing replay without ATW, or remove the 'ATW is crucial' claim from Sec. 4.4.
Increase seeds (or the number of evaluation problems, e.g. pooled AIME + other math sets) for DAPO and Sokoban and report confidence intervals or paired tests at the reported checkpoints.
Report a τ sensitivity sweep for ATW and the fraction of tokens it zeroes in each setting.
Add a BF16-sampler reference and measured sampler throughput for each quantized setting so the accuracy–efficiency trade-off motivating severe TIM is quantified.
For staleness, add learning-rate-matched SR/SC controls to separate ATW's filtering effect from its step-size reduction.
Fix the App. A.4 TIS equation (min, ∇logπ), reconcile App. B tables with the configs (reward scale, steps, sync interval, top-k, MoE lr), and clarify that Countdown experiments use the JAX trainer.
Release configs for the Fig. 13 arms (logits-only, SC+ATW, shuffled and p/q-order ATW) and lift the code restriction that prevents ATW with SC.
Ethics and integrity
No ethical concerns. The paper discloses that CUDA kernels for the INT4 KV cache were developed with an AI assistant (Sec. 6.2). No instructions aimed at reviewers were found in the paper source or repository. The documentation mismatches found (App. B vs configs) are consistent with ordinary errors; nothing suggests altered results – the plotted data in the repository reproduce the figures exactly.
Scope of this review
No GPU was available, so no RL training run was repeated; empirical claims were checked against the plotted data released with the code (docs/figures/data.js) and the vector figures, which agree with each other but cannot by themselves confirm that the underlying runs produce those curves. The gradient-alignment mechanism was tested only on a small random-init toy transformer. App. A.4 Fig. 14 correlation analysis and the ~2× KV4 kernel throughput claim could not be checked without the rollout data and hardware. Six references are blogs/documentation without identifiers and were not verified automatically; the arXiv API was rate-limited, so arXiv titles were verified from the abstract pages instead.
Theorem 1 shows that full-vocabulary Score Centering (SC) has exactly the same logit gradient as policy gradient with replayed sampler logits, so SC is the logits-only special case of SR; Section 5 shows the LM-head gradient becomes exact when both logits and head input are replayed. A heuristic token filter, Activation Trust Weighting (ATW), down-weights tokens whose per-layer hidden-state cosine distance exceeds a threshold τ.
Experiments (3 seeds each) cover Countdown and GSM8K with Qwen3-0.6B (INT8/INT4-KV samplers, weight noise, 64-step staleness), DAPO math and Sokoban with Qwen3-4B (W4A8/W8A8 + INT4 KV), and a Qwen3-30B-A3B MoE, plus a gradient-alignment analysis against the exact sampler gradient (Fig. 9), layerwise mismatch (Fig. 10), and an engineering section on streaming the ~185 KiB/token of hidden states needed for replay.
−16
loss_fn_rl
Exact LM-head gradient under combined replay
Sec. 5, Eqs. (11)–(14)
The Sec. 5 argument that logits + head-input replay give gTreplay=gTμ=−A(ey−q)(hT−1μ)⊤ regardless of head-weight mismatch is verified to 3×10−17 (check 02), whereas logits-only or no replay leave ~10% relative error. It is a neat, concrete justification for replaying hidden states, not only logits.
Mechanistic evidence, not only reward curves
Sec. 5.1, Fig. 9; Sec. 4.6, Fig. 7
Fig. 9 measures alignment with the true sampler gradient in a controlled weight-perturbation setting; the quoted layer-0 cosines 0.76/0.49/0.43/0.37 and norm ratios 0.97/0.65 match the plotted data within 0.01 (check 04). Fig. 10 complements this with layerwise forward mismatch. The hidden-state replay effect over logits-only replay (+0.04 to +0.06 late training reward on Countdown, check 14) is robust in both ablation panels.
Breadth of mismatch sources and scales
Sec. 4.1, 4.5; Figs. 2, 6
Weight, activation and KV quantization, multiplicative weight noise, 64-step staleness and MoE routing are all tested, from 0.6B to 30B-A3B, with three seeds and SE bands. On the small-scale settings the advantage is clear: Countdown INT8 late reward 0.752 (SR) vs 0.693 (SC); GSM8K INT4-KV 0.595 vs ~0.23 (check 10); staleness GSM8K only SR+ATW improves (check 09).
Substantial, well-documented engineering with released artefacts
Sec. 6.1, App. A.1–A.2, Fig. 12; repository
The storage arithmetic is exact (37 × 2560 × 2 B = 185 KiB/token → 370.0 GiB for 256 × 8,192 tokens; 5 KiB vs 296.75 KiB per token for final hidden vs logits; check 11), and the streaming design keeps SR within ~5–6% of SC wall-clock on Sokoban (check 17). Code, per-figure configs and the plotted data (docs/figures/data.js, which matched the vector figures exactly) are released; ATW in both code bases implements Eqs. (6)–(7) (check 12).
Candid limitations
Sec. 4.4, Sec. 4.5, Sec. 8
The paper itself flags that the MoE setup is unrealistic (KV4 without rotation drops base accuracy 37%→4%), that ATW/TIS also shrink the effective SGD learning rate under staleness, and that ATW lacks a theoretical justification.
With 3 seeds, none of the SR+ATW vs SC gaps at scale reaches two standard errors: DAPO step-500 AIME z = 1.32–1.63 across the four panels (W8A8 gap ≈2 AIME points, ~0.6 of 30 problems; check 07); Sokoban step-600 validation 55.9% vs 45.6% has z = 1.33 (SC SE 7.2 pp; SR without ATW vs SC z = 0.87; check 05). The orderings stated in the text are correct, but 'achieves the best performance' and 'more stable across seeds' need more seeds, confidence intervals, or more evaluation problems to be supported.
Late instability of SR without ATW is not discussed; ATW threshold is tuned per setting
major · Sec. 3.2; Sec. 4.2, 4.4, 4.5; Figs. 3, 5, 6
In DAPO W4A8, SR (no ATW) train reward drops by 0.06 in the last 100 steps with SE 0.12 vs 0.03 for the other arms, and AIME SE 0.057 at step 500 – consistent with one seed collapsing (check 07); in MoE it declines from 0.290 to 0.203 (check 08); in Countdown staleness it drops to 0 by step 64 (check 09). Yet the text describes SR as stable. ATW's τ ranges from 10−4 to 1.0 across experiments with no sensitivity study, and at τ=10−4 the float32/BF16 noise floor is ~1% of τ (check 12). Since ATW is the component that is consistently needed at scale, its tuning burden matters for the practical claim.
The efficiency motivation is not quantified, and the BF16 reference is better
major · Sec. 4.3, Fig. 4; App. A.2, Fig. 12; Sec. 6.2
The only BF16-sampler reference (Sokoban TIS) reaches 63.3% validation, 7.4 pp above the best quantized run, while taking only 4–10% more wall-clock to step 600 (25.4 h vs 23.0–24.4 h; checks 05, 17). The paper calls it a 'sanity check' but does not discuss that, in this setting, quantization saves little time relative to the accuracy it costs. The ~2× KV4 attention throughput (Sec. 6.2) is not benchmarked. A cost–accuracy comparison against a BF16 sampler is needed to support the premise that one should accept severe TIM for efficiency.
Ablation claim 'combining is more effective' holds in only one of two panels
minor · Sec. 4.6, Fig. 7
In the INT8 panel, hidden+logits replay ends at 0.752 vs 0.754 for hidden-only (−0.002) and logits-only equals SC (0.692 vs 0.693); combining helps only under weight noise (+0.019), a gap near the seed SE of ~0.006–0.013 (check 14). The robust finding is that hidden-state replay helps; the benefit of additionally replaying logits is not demonstrated. Fix: soften the statement or add seeds.
Staleness results are confounded with learning-rate reduction
minor · Sec. 4.5, Fig. 6; App. B Tables 8–9
The paper acknowledges that ATW and TIS lower the effective SGD step, but no lr-matched SR or SC arm is run or released (check 09). The Countdown staleness 'replay' arms also replay hidden states only, without logits, which differs from the SR definition used elsewhere.
Fig. 13-right and some GSM8K arms cannot be reproduced from the released code
minor · App. A.3, Fig. 13; score-centering/train_rl.py; verl/sampler_replay/replay.py
No released config exists for the exact-SC (logits-only), SC+ATW, shuffled-ATW or p/q-order arms; the JAX trainer asserts not score_center when ATW is on and the verl ATW path is restricted to bypass-mode REINFORCE (check 06). These arms support the claims that ATW also helps SC and that its token assignment matters.
Hyperparameter tables disagree with the released configs
minor · App. B Tables 1, 2, 7, 8, 9
263 of 292 field comparisons match (check 13). Mismatches: Countdown tables state 0/1 rewards but the JAX trainer maps outcomes to ±1 before centering (twice the advantage, hence twice the effective SGD step at lr 0.01); Table 8 says 1,152 steps and sync every 65 steps while Sec. 4.5 says 64 minibatches / 0–63 stale and configs run 1,200 steps with lag 0–64 (check 09); MoE Table 7 says lr 0.01 and 800 steps vs configs lr 0.02 (with 0/1 reward) and 1,000 steps; Table 9 says SC top-128 vs top-32 in the configs.
Equation and notation slips
minor · App. A.4; Sec. 3.2; Sec. 4.1, 4.3; Sec. 6.1; App. A.1
The App. A.4 TIS estimator is written with max(π/μ,C) and ∇θπ; it should be min(⋅,C) and ∇θlogπ (as written, weights are unbounded above and carry an extra factor π(yt); check 15) – the code and later text use min. T denotes a layer set in Sec. 3.2, sequence length elsewhere and the layer count in Sec. 5. 'KV-4 reduces KV cache size four times' ignores the FP16 scale and offset per vector (3.76×; check 11). App. A.1 quotes 387 GiB for the configuration Sec. 6.1 sizes at 370 GiB, and refers to a 'Qwen3-4B Countdown profile' although Countdown uses Qwen3-0.6B. 'SC stalls at 0.65' (Sec. 4.1) – SC averages 0.661 after step 1,500 and is still rising slowly to 0.694 (check 10).
Countdown experiments use a separate JAX trainer not described in the main text
minor · Sec. 4.1, Sec. 6; score-centering/ in the repository
Sec. 6 describes a verl/vLLM implementation, but all Countdown results (Figs. 2, 6–9) come from a reduced JAX score-centering trainer with fake-quantized sampling. The two implementations differ in details (reward mapping, ATW layer set). This should be stated in Sec. 4.1 so that readers know which system produced which figure.
Countdown INT8: SR consistently above SC; SC+TIS improves on SC but stays below SR. Weight perturbation: 'SC stalls at 0.65', SR minimally affected. GSM8K INT4 KV: SC and SC+TIS collapse, SR keeps improving.
INT8: SR above SC at every step >= 500; late means SR 0.752, SR+ATW 0.742, SC+TIS 0.710, SC 0.693 (gaps 0.04-0.06, SE about 0.01); TIS alone collapses to 0. Noise: SC mean over steps >= 1,500 is 0.661 (claimed 0.65, tolerance 0.03), still rising slowly to 0.694 at step 2,940 rather than strictly stalling; SR 0.760 vs 0.752 in INT8, i.e. minimally affected. GSM8K: SC peaks 0.349 at step 321 and ends at 0.228 (SE 0.11), SC+TIS 0.258 -> 0.203, SR 0.595 at step 1,000. 'Collapse' here is a decline to about 0.2, not to zero. The plotted curves are smoothed (step-to-step SD about 0.002-0.004), so the 'incredibly noisy' description of SC under noise cannot be assessed from the figure. The GSM8K SC endpoint differs slightly between Fig. 2 (0.228) and Fig. 13 (0.245) for what appears to be the same run, probably different smoothing.
Plotted Fig. 2 data from docs/figures/data.js (mean and SE over 3 seeds); late-window means (last 10% of steps), plateau mean over steps >= 1,500, peak-to-final drops.
Storage: 37 BF16 vectors per token; 5 KiB/token final hidden vs 297 KiB logits (Qwen3-4B); 370 GiB for 256 responses x 8,192 tokens; 197 GiB (4,096 tokens) and 387 GiB (8,192) measured; KV-4 'reduces KV cache size four times'.
Final hidden 5.00 KiB/token (claimed 5); BF16 logits 296.75 KiB (claimed 297); 37 x 2560 x 2 B = 185 KiB/token, giving exactly 370.0 GiB for 256 x 8,192 (claimed 370). The App. A.1 disk measurements are 6.5% (197 vs 185 GiB) and 4.6% (387 vs 370 GiB) above the payload, plausibly prompt tokens or file overhead; the paper quotes both 370 and 387 GiB for the same configuration without reconciling them. KV-4 with an FP16 scale and offset per 128-dim vector (Sec. 6.2) gives 2048/544 = 3.76x, not exactly four times (minor). Also minor: App. A.1 refers to a 'Qwen3-4B Countdown profile (Section 6.1)', but the paper's Countdown experiments use Qwen3-0.6B.
Recomputed from the Qwen3-4B / Qwen3-4B-Instruct-2507 config.json fetched from Hugging Face (hidden 2560, 36 layers, vocab 151,936, head_dim 128).
ATW as implemented computes Eqs. (6)-(7): d_t = max over layers of 1 - cos(h^mu, h^pi), w_t = max(0, 1 - d_t/tau), with d in [0, 2].
verl: max |d - d_eq| = 2.3e-7 (float32 cosine), max |w - w_eq| = 2.3e-7 to 1.8e-6 for tau >= 0.1 and 1.2e-3 at tau = 1e-4 (float32 rounding / tau); antiparallel token d = 2.000, w = 0; identical token d = 1.2e-7. JAX: max |w - w_eq| = 1.4e-7. Implementation detail not stated in the paper: h^pi is the trainer's layer output computed from the replayed sampler input (a one-layer comparison), the embedding/layer-0 input is skipped, and the final-norm input is included. At tau = 1e-4 (Countdown staleness) the float32 cosine floor (~1e-7) and BF16 storage put a noise floor on d of about 1% of tau.
Extracted the two verl functions via ast and executed them with stubs; ran the JAX atw_weights; inputs were 1,000 synthetic tokens x 8 layers with known cosines (including an antiparallel and an identical token) at tau in {1e-4, 0.1, 0.3, 1}, compared with a direct float64 implementation of Eqs. (6)-(7).
The App. B hyperparameter tables (Tables 1-9) describe the released run configurations.
263 of 292 comparisons match; the mismatches are documentation-level and fall into five groups. (1) All Countdown tables (1, 2, 8) state reward 0/1 with advantage r - mean_group(r), but the JAX trainer's default reward_mode 'group_centered' maps outcomes to +1/-1 before centering, so the advantages (and the effective SGD step at lr 0.01) are twice what the tables imply. (2) Table 8: 1,152 training steps vs stop.steps 1,200 in all staleness configs. (3) Table 7 (MoE): lr 0.01 and 800 steps vs configs lr 0.02 (with 0/1 reward; the config comments explain the equivalence) and 1,000 steps for three of four arms. (4) Table 9 (GSM8K staleness): SC top-128 vs topk_log_probs 32 in the SC and SC+TIS configs. (5) Table 7's asymmetric routing replay between the SR arms (see check 08). Values for GSM8K INT4 KV, DAPO and Sokoban (prompts, n, lengths, AdamW lr 1e-6, steps, tau, top-k, TIS cap 2, eval avg@k) all match.
Resolved hydra defaults chains for the verl YAMLs and merged the JAX YAMLs over train_rl.py DEFAULT_CFG; 292 field comparisons (prompts/step, responses/prompt, lengths, optimizer and lr, steps, eval samples, tau, SC top-k, TIS cap, reward scale).
Ablation: 'both Logit Replay and Hidden State Replay help, but combining them is more effective'; SC and Logits Replay have empirically similar curves.
INT8: hidden+logits 0.752, hidden-only 0.754, logits-only 0.692, SC 0.693, SC+TIS 0.710: combining gives no gain over hidden-only (-0.002), and logit replay does not help over SC (-0.000), although the two are indeed similar. Noise: hidden+logits 0.760 > hidden-only 0.741 > logits-only 0.702 > SC 0.671: combining helps (+0.019), and logit replay beats top-128 SC by 0.031, so 'similar curves' holds only loosely; the gap matches the top-k vs exact SC difference seen in Fig. 13. The hidden-state replay effect (+0.04 to +0.06 over logits-only) is robust in both panels; the claim that combining is more effective holds in the noise panel only. Single-panel late-mean differences of 0.02 are near the seed SE (about 0.006-0.013 in Fig. 2 for the same runs).
Recovered the 10 curves from the vector paths of figures/countdown_replays.pdf with legend colours mapped from the legend text; late means over steps >= 2,700; each sub-statement tested per panel with a 0.01 margin.
TIS as written in App. A.4: g = E sum_t A_t max(pi(y_t)/mu(y_t), C) grad_theta pi_theta(y_t|x,y_<t).
The equation uses max(pi/mu, C), which gives weight >= C to every token and is unbounded above (r = 50 -> 50), i.e. the opposite of truncation; truncated IS (Yao et al.) and the implementation use min(r, C): the config has is = {level: token, high: 2.0, outside: clamp}, and the same appendix later says 'truncated IS uses min(p/q,2)'. The equation also multiplies grad_theta pi rather than grad_theta log pi; grad pi = pi * grad log pi (checked: norm ratio 0.0352 = pi(y)), so as written it would add an extra pi(y_t) factor. Typo-level in the presentation, with no effect on the experiments, but the equation is wrong as stated.
Parsed the LaTeX equation and the later text; read the TIS config of the code (score-centering/configs/06b-int8-tis-sc.yaml); evaluated max(r, C) vs min(r, C) on sample ratios; autograd check of grad pi vs grad log pi.
The 34 cited references exist and the load-bearing ones (Score Centering, R3, KV4-RL, TIS, Drift and Distance) support what they are cited for.
27 of 34 references resolve to the cited works (title similarity 1.0, except KV4-RL 0.77 and QaRL 0.57, whose cited titles omit their subtitles). 7 references are blogs/docs/book with no identifier (incl. TIS = yao2025offpolicy and Drift and Distance), not checkable automatically. Abstracts support the main attributions: Score Centering (drift-cancelling additive correction, 0.6B-30B, quantization), R3 (records and replays inference routing), FP16 paper (TIM from BF16 rounding). Minor attribution issues are listed in work/ref_issues.json (Qi et al. cited as 'bit-wise identical' arithmetic; IMPALA cited for 'data' mismatch; KV4-RL encoding details not confirmable from the abstract).
Ran tools/check_refs.py (Crossref ok; arXiv API returned HTTP 429 twice), then fetched arxiv.org/abs pages for all 22 arXiv IDs and Crossref records for 4 DOIs (work/verify/16_refs.py), fuzzy title match, and read abstracts of load-bearing references.
Sampler Replay keeps pace with Score Centering in end-to-end wall-clock (Sokoban, 600 steps, 4 H100s); the replay overhead is small.
Hours to step 600: SC 23.00, SR 24.03 (+4.5%), SR+ATW 24.37 (+5.9%), SC+TIS 24.20 (+5.2%): within 10% of SC (SR is within the spread among baselines). Context the paper does not discuss: the BF16-sampler TIS reference reached step 600 at 25.40 h, only 4-10% slower than the quantized-sampler runs, yet it scored 63.3% vs 55.9% validation (check 05). In this setting the quantized sampler saves little end-to-end time relative to the accuracy it costs. Wall-clock also depends on generated lengths, so this is indicative, not a controlled speed benchmark; the ~2x KV4 attention throughput claim (Sec. 6.2) is not benchmarked in the paper.
Read wall-clock hours at step 600 per arm from the plotted Fig. 12 data in docs/figures/data.js (x axis = wall-clock hours, 4x H100).
Theorem 1: gradient wrt trainer logits of full-vocabulary Score Centering equals that of the PG loss with sampler logits replayed (both = -A(e_y - q)).
Max abs deviation from -A(e_y-q): 6.4e-16 (full SC) and 4.4e-16 (logit replay). Authors' JAX code: max |g_SC - g_replay| = 1.0e-8 at gradient scale 0.23 (float32 rounding), vs 7.9e-2 for plain PG. The top-k SC approximation (tail modelled as rho*p, k=32/128) is not exact: relative L2 deviation from the exact gradient median 6.1e-3, max 1.8e-2 on random logits, so the theorem covers exact SC only, not the top-128 SC baseline used in most experiments.
float64 torch autograd on 200 random instances (V = 5..50,000) comparing both gradients with the closed form; additionally ran the authors' JAX loss_fn_rl (score-centering/losses.py) with score_center=True (full vocab) vs replay_logits=True; also measured the top-k SC variant used in experiments.
With logits replay and head-input replay the trainer's LM-head weight gradient equals the sampler's exactly, -A(e_y-q)(h^mu_{T-1})^T, even when head weights differ.
Max abs difference 2.8e-17 with both replays. Contrast: logits-only replay relative error 0.10, hidden-only 3.7e-3, no replay 0.10 (with 5% head noise, 10% hidden noise).
Replaying hidden states plus logits brings the trainer's per-layer gradient much closer to the sampler's true gradient than logit replay / SC / SC+TIS, especially in early layers, and keeps the norm ratio near 1.
Direction reproduced: hidden+logit replay lowers layer-0 gradient misalignment (1-cos) relative to logit replay in all 5 settings (ratio 0.59-0.91). Logit replay equals full-vocabulary SC at every layer (max cosine difference 2e-16), a second confirmation of Theorem 1. Not reproduced in the toy: the relative gain from hidden replay is smallest at layer 0 and grows with depth (e.g. 13% at layer 0 vs 35% at layer 5 for noise 0.2), and SR's layer-0 norm ratio is not closer to 1 than logit replay's (0.88 vs 0.92 at noise 0.2; 0.48 vs 0.65 at noise 0.5). The toy model is untrained and much smaller than Qwen3-0.6B, so this neither confirms nor refutes the magnitudes in Fig. 9; it shows that the early-layer and norm-ratio effects are not generic consequences of the replay operator.
Independent CPU reproduction on a toy random-init pre-norm causal transformer (6 layers, d=64, V=64): sampler = trainer + 0.05/0.2/0.5 x eps x theta0 weight noise, or INT8 / INT4 RTN fake-quantized weights; reference = REINFORCE gradient at the sampler weights on the sampler's own trajectories; per-block cosine and norm ratio for PG, full SC, top-8 SC, SC+TIS, logit replay and hidden+logit replay; 3 seeds x 2 batches of 256.
Final-20-step mean layer-0 gradient cosine 0.76 (Sampler Replay), 0.49 (logit replay), 0.43 (SC), 0.37 (SC+TIS); layer-0 norm ratio 0.65 (SC+TIS) vs 0.97 (Sampler Replay).
Cosine: SR 0.757 (claimed 0.76), logit replay 0.487 (0.49), SC 0.422 (0.43), SC+TIS 0.368 (0.37). Norm ratio: SC+TIS 0.656 (0.65), SR 0.961 (0.97). All within 0.01 (tolerance 0.015); SC cosine and SR norm ratio would round to 0.42 and 0.96, a rounding-level difference. Also SR's layer-0 norm ratio over the last 20 steps ranges 0.95-1.05 across layers, supporting 'close to one'.
Recovered the 14 layer curves per panel from the vector paths of figures/grad_check_layers.pdf (axes calibrated from tick labels, exact linear fit), identified layer 0 as the darkest colour (bottom colorbar bin labelled 0), averaged steps 80-99.
Sokoban (Qwen3-4B-Instruct, W8A8+INT4 KV): at step 600 Replay+ATW scores 55.9% on validation vs 45.6% for SC; Replay variants beat SC and SC+TIS.
Step 600 validation: SR+ATW 55.89% (claimed 55.9), SC 45.57% (claimed 45.6); PDF and data.js agree exactly (tolerance 0.5 pp). SR 52.3%, SC+TIS 33.0%. Ordering holds, but the headline gap 10.3 pp has combined SE 7.8 pp (SC SE 7.2 pp; z = 1.33; SR without ATW vs SC z = 0.87): with 3 seeds it is not statistically distinguishable at one evaluation point. Train reward over steps 551-600 shows the same ordering (0.626 / 0.604 / 0.521 / 0.445). The BF16-sampler TIS reference reaches 63.3% validation, 7.4 pp above the best quantized-sampler run.
Recovered validation and train curves from the vector paths of figures/sokoban_4b.pdf; cross-checked against the plotted data shipped in the repo (docs/figures/data.js, with per-point SE over 3 seeds); z-score of the step-600 gap.
GSM8K INT4-KV at step 1,000: exact SC (logit replay) ~0.40 vs top-128 SC 0.24 vs Sampler Replay 0.60; SC+ATW raises SC from ~0.24 to 0.41; shuffled and p/q-order ATW weights are lower.
Last point: exact SC (Only-Logits) 0.406 (claimed ~0.40), top-128 SC 0.245 (0.24), SR 0.595 (0.60), SC+ATW 0.416 (0.41); shuffled 0.198, p/q order 0.059, SC+TIS 0.203 - all lower than SC+ATW, as stated. Exact SC alone recovers 0.162 of the 0.350 gap between SR and top-128 SC (46%), so about half of SR's advantage over the 'SC' baseline here comes from the top-k approximation rather than hidden-state replay. Code availability: the released GSM8K configs contain no logits-only (exact SC) run and no SC+ATW, shuffled or p/q-order runs, even though the README lists Fig. 13 (left) configs; the JAX trainer explicitly refuses ATW with score centering ('assert not score_center') and verl's ATW is restricted to bypass-mode REINFORCE, so the Fig. 13-right arms cannot be reproduced with the released code.
Recovered all seven curves from the vector paths of figures/gsm8k_kv4_match.pdf with legend colours mapped from the legend text; compared last plotted point (step 1,000) and the mean of steps 951-1000 (tolerance 0.03). Searched the released configs and code for the Fig. 13 arms.
DAPO (Qwen3-4B-Base): Sampler Replay + ATW performs best in both W4A8 and W8A8; SR alone beats SC in W4A8 but underperforms it in W8A8; SC+TIS learns slower than SC.
Step-500 AIME avg@32, SR+ATW vs SC: W4A8 AIME24 0.130 vs 0.089 (z=1.63), AIME25 0.137 vs 0.084 (z=1.56); W8A8 AIME24 0.250 vs 0.228 (z=1.32), AIME25 0.227 vs 0.210 (z=1.62). SR+ATW is highest in all four eval panels, and the SR-vs-SC sign pattern (positive in W4A8, negative in W8A8) holds; SC+TIS is lowest or near-lowest in all four. Caveats: no SR+ATW vs SC gap reaches z = 2 with 3 seeds; in W8A8 the gap is about 2 points of AIME (about 0.6 of 30 problems). SR without ATW in W4A8 has train-reward SE 0.12 over steps 451-500 (vs 0.03 for the others) and its mean drops by 0.06 relative to steps 351-400, and AIME SE 0.057 at step 500 - consistent with one seed collapsing late, which the text does not mention.
Plotted data from docs/figures/data.js (mean and SE over 3 seeds), spot-checked against vector paths of figures/dapo_4b.pdf (all 16 step-500 eval values agree to 1e-4); final AIME values, gap z-scores, late train-reward behaviour.
MoE (Qwen3-30B-A3B): SR+ATW and SC reach the same final performance (SC earlier); 'ATW is crucial to stabilize Sampler Replay and prevent collapse'.
Final-performance part holds: mean train reward over steps 751-800 is 0.291 (SR+ATW) vs 0.285 (SC); SC first reaches 0.27 at step 319 vs 637 for SR+ATW; SC+TIS stays at 0.048. But the two Sampler Replay arms differ in two factors, not one: the SR arm has enable_rollout_routing_replay=False with no ATW, while the SR+ATW arm has enable_rollout_routing_replay=True and tau=0.3 (the App. B table also lists 'hidden states + logits + expert routing' only for SR+ATW). The Sec. 4.4 text attributes the stability difference to ATW alone and does not mention routing. SR without ATW is not a collapse to zero: it peaks at 0.290 (step 434) and declines to 0.203. The 'ATW is crucial' conclusion is therefore confounded with routing replay (R3), which the paper itself presents as a known stabiliser. Also: the configs set lr 0.02 with 0/1 rewards and 1,000 steps for three arms vs the table's lr 0.01, -1/1 reward and 800 steps (the config comment says the two are equivalent; plots stop at 800).
Merged and parsed the four released arm configs over base_w8a8_kv4.yaml; extracted the hparams table rows; recovered the Fig. 5 curves from figures/qwen3_30b.pdf.
Staleness (sampler generates 64 minibatches at a time, data 0-63 steps stale): on Countdown SR+ATW (tau=1e-4) and SC+TIS succeed while SR and SC fail; on GSM8K only SR+ATW (tau=1e-3) improves reward.
Countdown, mean of last 6 points: SR+ATW 0.667, SC+TIS 0.670, SC 0.218, SR 0.000 (SR drops to 0 by the first sync point, step 64). GSM8K: SR+ATW ends at 0.601 from 0.410; SR, SC and SC+TIS fall to 0 (their curves end at steps 192, 832 and 1,216). Setup inconsistencies (minor): the JAX trainer refreshes the sampler when step % (staleness+1) == 0, i.e. every 65 steps with lag 0-64 (Table 8 says 65; Sec. 4.5 says 64 minibatches, 0-63 stale); Countdown configs run 1,200 steps vs 1,152 in Table 8 (18 x 64), and the plot stops at 1,088. The Countdown SR arms replay hidden states only (no logits). The learning-rate confound acknowledged in the text is not controlled: no lr-matched SR/SC arm is released.
Plotted Fig. 6 data from docs/figures/data.js (mean of the last 6 sync points for Countdown, last point for GSM8K); parsed staleness configs; read the refresh rule in score-centering/train_rl.py and simulated the lag.