A simple density-free gated multi-step target with large, internally consistent reported gains. However, the released scripts run the TD baselines at a different best-of-N width than HQL, contrary to the paper, and the 'principled correction' argument of Sec. 4.2 does not hold as written (a valid justification exists and should replace it).
Soundness
2/4
Presentation
3/4
Contribution
3/4
Confidence
4/5
✓ 10 confirmed✕ 8 discrepancy
Summary
The paper studies why off-policy Q-learning degrades as the task horizon grows. Sec. 3.1 shows that the value error of a one-step TD critic equals the sum of downstream Bellman residuals (Eq. 2). Under a weakly correlated residual model this grows like H (Eqs. 4-5). Uncorrected n-step targets divide the residual term by n but add a bias from every spanned suboptimal behaviour action (Eq. 3).
The proposed method, HQL, uses a Retrace-style recursive target (Eq. 6) with a binary, density-free gate (Eq. 7). The target continues through a logged action only if the target critic rates it at least as highly as the best of N actions sampled from a behaviour-cloning flow policy; otherwise it falls back to a one-step target. Targets are computed densely over windows of H transitions. A chunked variant treats L-action chunks as single decisions. Sec. 4.2 argues that the gate is the τ→∞ limit of the largest valid trace for an exponentially tilted policy, which makes it 'a principled off-policy correction that needs no action densities'.
Empirically, HQL is reported to have the lowest Q error on a combination lock at horizons 512-4096 (Fig. 3). On six long-horizon OGBench configurations it reaches 0.74 mean success vs 0.49 for the best TD baseline (Fig. 4), and it beats LQL and QC (Table 1). Chunked-HQL beats 100/200-step chunked TD on OCBench (Fig. 5), and HQL improves QAM and VGF as a drop-in critic (Table 2).
Strengths
Simple target with a faithful, tested implementation
Sec. 4.1, Eqs. 6-7, Sec. 4.3; hql/utils/critic_loss.py
Eq. 6 with the hard gate of Eq. 7 is a few lines on top of a standard best-of-N bootstrap and can be computed densely over a window (Sec. 4.3, Algorithm 1). The released get_hql_targets reproduces a NumPy implementation of Eq. 6 to 4e-6 (check 03). The repo's 29 unit tests pass, and main.py trains and evaluates end to end with the paper's configuration (checks 16, 16b).
Density-free gate that is valid for the policy actually bootstrapped
Sec. 4.1, Eq. 7; Sec. 5.5
The gate needs only critic values of N behaviour samples, so it works with flow and diffusion policies that expose no densities. The exchangeability argument (pass rate 1/(N+1), Sec. 5.5) is confirmed by Monte Carlo for (check 06). Check 06 also shows that the hard gate satisfies , i.e. it is a valid trace in expectation for the best-of- policy used in the bootstrap. The method is therefore better founded than the paper's own argument (see weaknesses).
Weaknesses
Baselines run at a different, undisclosed best-of-N width
major · Sec. 5.1 Baselines; Appendix A.4, Table 4; Sec. 5.3; scripts/ogbench.sh
Sec. 5.1 states that 'all methods ... use the same behavior flow policy with best-of-N sampling', and Table 4 lists best-of-N = 4. In the released scripts/ogbench.sh, however, 16-window, 8-step and 1-step TD use best-of-16 on five of six configurations (4 only on antmaze-giant, 'where best-of-16 1-step TD scores 0'), i.e. 15 of 18 baseline (method, env) pairs. HQL uses best-of-4. Chunked-HQL uses 16 while LQL and QC use 4, contradicting 'same budget and sampling width' for Table 1 (check 02). The paper's own ablation shows that N is the most sensitive knob for HQL (0.596 at N=4 vs 0.461 at N=16, Fig. 7), so the headline 0.74 vs 0.49 comparison may be confounded by sampling width rather than the gate. either state the per-method widths and justify them by a per-method sweep, or rerun the TD baselines at (and HQL at ) and report both.
Questions for the authors
Were the Fig. 4 TD baselines run with best-of-16 as in scripts/ogbench.sh? How do all methods compare when every method uses N=4, and when every method uses its own best N from a sweep?
What explains the gap between the H=16 ablation arm (0.646 online, ≈0.30 offline) and the main HQL results (0.735, 0.40) under what A.8 describes as the same configuration?
How does HQL with (all gates open but keeping the corrections of Eq. 6) perform? This is the comparison that isolates the gate.
Verification
We ran 18 checks (17 planned claims; the code check is split into unit tests and an end-to-end run): 10 confirmed, 8 discrepancies. All reported aggregates recompute from the figures and tables: Fig. 4 means, Table 1, OCBench, Table 2, and the A.7 means. The Sec. 3.1 error laws hold within their own model, and the released code runs and passes its tests. The discrepancies concern (i) the released baseline configuration, which uses best-of-16 for the TD baselines against the stated best-of-4 for all methods; (ii) the theory of Sec. 4.1-4.2: the c≡1 identification, fixed point vs contraction, and the validity of the τ→∞ argument, for which a different valid justification was found; and (iii) several textual claims about Fig. 3, Fig. 6, Fig. 7 and Table 7. Full-scale OGBench training (1M+1M steps × 5 seeds × 30 tasks) could not be rerun on 2 CPUs, so no paper score was reproduced from scratch; figure values were read from the plots.
Cited, with precup2000eligibility, in Sec 4.2 (main.tex l.302) for the claim that gating multi-step backups needs justification 'since cutting changes what a multi-step backup converges to', and that any gate with c <= pi/mu 'preserves Q^pi as the fixed point' of the Eq. 6 recursion. The reference does not support this. Theorem 1 of Munos et al. (text extracted from arXiv 1606.02647) says the operator 'has a unique fixed point Q^pi', and the proof notes that this 'is obvious from (3)' for any traces. The condition c_s in [0, pi/mu] is what gives the gamma-contraction. Check 04 reproduces this: Q^pi is a fixed point for every trace choice, and c <= pi/mu governs contraction.
The reference exists and is correctly attributed, but the one-clause description in Sec 2 ('gates traces at non-greedy actions') understates how close it is. Gated Q(lambda) attenuates traces after exploratory actions without importance sampling, interpolates between Watkins's and Peng's Q(lambda) through a gate parameter, has an n-step variant, and analyzes the fixed point and contraction rate of trace-varying Q-learning. These are close to HQL's density-free gated multi-step target. The paper dismisses this line of work as needing action probabilities or a discrete greedy target policy, without a direct comparison or a discussion of what transfers. This is a discussion gap rather than a bad citation.
Suggestions
Rerun the Fig. 4 and Table 1 baselines at a common best-of-N width (or a documented per-method sweep), and state the widths used in Table 4.
Replace the τ→∞ tilt argument of Sec. 4.2 with the direct proof that the hard gate is valid in expectation for the best-of-N bootstrap policy, and describe c≤π as the contraction condition.
Ethics and integrity
No ethical or integrity concerns identified. All reported aggregates recompute from the paper's own figures and tables. The discrepancies found (undisclosed baseline configuration, textual over-statements) are consistent with ordinary errors and do not suggest altered results. No text in the paper, source or code attempted to instruct the reviewer.
Scope of this review
Reported OGBench, OCBench and QAM/VGF scores could not be rerun: full training (1M offline + 1M online steps, 5 seeds, 30 tasks per method) is beyond the 2-CPU, no-GPU budget. The code was only smoke-tested for 600 steps. Values were read from figure labels, vector-PDF paths or pixels, so per-seed variability could not be examined. The combination-lock (Fig. 3) and QAM/VGF (Table 2) code is not released, and the OCBench package was not installed. References (74) were looked up automatically; only the load-bearing ones (Munos et al. 2016, Daley 2026) were read in detail.
The reported numbers agree with each other. Fig. 4 end labels give HQL 0.735 vs 0.485 (8-step TD), 0.435 (1-step) and 0.392 (16-window), with HQL best in all six panels (check 01). Table 1 means and bolding recompute exactly, and its HQL online column equals the Fig. 4 labels (check 11). The OCBench means 0.82/0.53/0.46 and the per-task orderings recompute (check 12). Table 2 online gains hold in all 8 pairs (check 17).
Error analysis is correct within its stated model
Sec. 3.1, Eqs. 2-5; Appendix A.1-A.2; Fig. 3
The telescoping identity (Eq. 2) is exact. The variance law of A.1 matches Monte Carlo within 1.2%, with RMSE slope 0.510 vs the predicted 0.5 (check 07). Eq. 3 matches a Monte Carlo of its own residual/bias model within 3% across 8 (H,n) settings (check 08). The plotted 64-step TD errors on the combination lock are close to the tabular fixed point of uncorrected 64-step TD (e.g. 303.5 vs 324 plotted at p=0.002, H=512; check 09). This supports the bias mechanism the paper describes.
Diagnostics and ablations that inform the mechanism
Sec. 5.3 'Why does HQL help?', Fig. 6; Sec. 5.5, Fig. 7; Appendix A.7-A.8
The trace-length histogram (Fig. 6) shows that 77% of targets are one-step and 17% two-step (confirmed: 0.771/0.168/0.061, check 15). This changes the story from 'long returns' to 'selective extension', and the paper says so. Ablations over H, N and a soft gate (Fig. 7, Table 7) are included, and the paper acknowledges the N-panel confound (A.8).
Broad evaluation across benchmarks and host algorithms
Sec. 5.1, 5.3, 5.4; Table 5
The evaluation covers 6 OGBench configurations × 5 tasks × 5 seeds with offline-to-online training, 8 OCBench tasks, and drop-in use inside two recent flow-policy methods (QAM, VGF). It compares against strong horizon-reduction baselines (QC, LQL) at a matched critic-target budget of 512.
Fix:
N=4
N=16
The 'principled off-policy correction' argument does not hold as stated
major · Sec. 4.2, Eqs. 8-9; Sec. 1; Abstract
Sec. 4.2 presents the hard gate as the τ→∞ limit of 'the largest valid gate' for the tilt π∝μeτQ. The limits themselves are correct. But the gate of Eq. 9 uses a finite-sample Z^, and its expectation exceeds the valid bound min(1,π/μ) in 14/20 tested (τ,a) cases (e.g. 0.826 vs 0.223 at τ=3, a=1). As τ→∞ the true bound tends to 0 for every fixed action, while the hard gate stays open with probability F(a)N (check 05). The hard gate is therefore the limit of an estimated gate, not of a valid one. Sec. 4.2 also says that c≤π/μ 'preserves Qπ as the fixed point' of Eq. 6. For this expected-V form, Qπ is a fixed point for any traces, and the condition governs contraction (Lipschitz ≤0.95 for valid traces vs up to 25.3 for c≡1; check 04). This agrees with Munos et al. (2016), the reference cited for it. Fix: replace the argument with the direct one that the hard gate is valid in expectation for the best-of-N bootstrap policy (FN≤NFN−1, check 06). Address the online/target critic mismatch in the code, and restate the role of the condition as contraction.
$c\equiv1$ is not the uncorrected return, so 16-window TD does not isolate the gate
major · Sec. 4.1 (after Eq. 6); Sec. 5.1; Sec. 5.3; Appendix A.7
Sec. 4.1 says c≡1 in Eq. 6 'is the uncorrected multi-step return'. In fact it differs from that return by ∑jγj(Vˉ(sj)−Qˉ(sj,aj)). The identity was verified numerically (max difference 18.51 on random inputs), and the released code shows the same gap between HQL-with-open-gates and the tdn_all baseline (check 03); the repo's own tdn_all.py docstring acknowledges it. Consequently the claims that comparing HQL with 16-window TD 'isolates the gate's effect' (Sec. 5.1, 5.3) and that the soft gate at τ=0 'recovers uncorrected 8-step TD' (A.7) are inaccurate. The 16-window baseline removes both the gate and the per-step V−Q corrections. Fix: add an HQL-with-c≡1 arm (Q(λ=1)-style) to attribute the gain to the gate, and correct the text.
Combination-lock results are overstated and not reproducible
major · Sec. 5.2, Fig. 3; Sec. 1; Sec. 3.1, Eq. 4; Appendix A.1
The data extracted from the vector Fig. 3 (check 09) contradict several statements. (i) Clean 1-step TD grows ×239 (2.38 decades), not 'three orders of magnitude'. Its log-log slope of 2.58 is far from the H law of Eq. 4 (0.5) that the figure is said to 'support'. (ii) HQL itself grows ×77 on clean data (slope 2.17), so it does not 'avoid this accumulation' in relative terms; it is only lower in level. (iii) On the clean panel 64-step TD is below HQL at H=2K (1.40 vs 2.99) and 4K (6.17 vs 7.89), contradicting 'lowest value estimation error across different horizons' (Sec. 1). The corrupted-data claim holds (16/16 points). Because the tabular 1-step fixed point is exact, the 1-step growth reflects function approximation and optimisation, which the theory does not model. Also, at γ=0.99/0.995 the residual variance of A.1 saturates after about 100 steps (check 07), so the model alone does not predict larger gaps on 1000-4000-step tasks. No combination-lock code is released, and the architecture, optimiser, N and seeds are not given. Fix: release the code, give the details, and temper the claims.
Ablation arm at the main configuration underperforms the main result
major · Sec. 5.5, Fig. 7; Appendix A.8 vs A.4; Table 1
Per A.8, the H=16 arm of Fig. 7 (left) uses 512 targets, 32 windows and N=4 on the same 6 configs × 5 tasks, which is exactly the main HQL configuration of A.4. Yet it ends at 0.646 online and about 0.30 offline, vs 0.735 (Fig. 4) and 0.40 (Table 1) in the main results (check 14). The paper does not explain this gap of about 0.09-0.10. It may reflect seed variance or an unstated setting difference. Either way, readers cannot judge the run-to-run variability behind the headline numbers. Fix: state seeds and settings for every ablation arm, and report confidence intervals for Fig. 4 and Table 1.
Thin statistical support for OCBench, soft-gate and drop-in claims
major · Sec. 5.3 (OCBench), Fig. 5; Sec. 5.4, Table 2; Appendix A.7, Table 7; Abstract
OCBench uses one seed per method and task, and only chunked n-step TD baselines were run. The abstract's claim that HQL 'outperforms prior horizon-reduction methods' on OCBench (QC, LQL) is therefore untested there (check 12). The soft-gate study (Table 7) also uses one seed, and the soft gate acts with 16 behaviour samples vs N=4 for the hard gate, a confound given Fig. 7 (check 13). Table 2 reports only task 2 per environment, with no seed count or error bars. HQL lowers the offline score in 3 of 4 QAM pairs, e.g. antmaze-giant 14→0 (check 17). Fix: use multiple seeds with intervals, add QC/LQL on OCBench, match acting width in A.7, and report all tasks for Table 2.
'No target exceeds six steps' is unsupported and appears contradicted
minor · Sec. 5.3, Fig. 6; Sec. 5.5; hql/utils/critic_loss.py l.677-712
The code bins trace lengths as 1, 2, 3, 4, 5-8 and 9+, so Fig. 6 cannot distinguish 6 from 7-8. Fig. 6 also draws an error bar in the 9-16 column (about 3.6e-4), which the plotting code produces only if some run logged such targets. The paper's own memoryless model predicts about 1e5 targets of length 7 or more per run (check 15). Sec. 5.5 relies on this statement to argue that H=16 'already exceeds what the gate uses'. Fix: report trace_len_max and the 9-16 fraction.
Compute accounting omits the gate's sampling cost
minor · Sec. 4.1; Appendix A.5; hql/agents/hql.py
Sec. 4.1 says the gate 'costs N behavior samples and critic evaluations per transition, the same as the best-of-N bootstrap already requires'. But the agent's default share_gate_bootstrap_samples=False (hql/agents/hql.py l.81, l.360), which scripts/ogbench.sh does not override, draws a separate candidate set, roughly doubling sampler and critic calls for the target. The matched budget counts critic targets only, not transitions read (8-step TD reads 4096, A.5) or flow-policy samples. Fix: report wall-clock time and sampler/critic evaluations per update for every method.
Closest prior work is under-discussed
minor · Sec. 2 Related work; Sec. 4.2
Watkins's Q(λ) already cuts traces at non-greedy actions. Daley (2026), 'Gated Q-learning', attenuates traces after exploratory actions without importance sampling, has an n-step variant, and analyses fixed points and contraction. Both are dismissed in one clause as needing action probabilities or a discrete greedy policy. The genuine novelty is the continuous-action, best-of-N form of value-comparison cutting. The paper should say so explicitly and compare.
Textual and numerical slips
minor · Sec. 5.3, Table 1; Appendix A.7, Table 7; Appendix A.1, A.3; Sec. 1, Sec. 4.1
(a) '12% over LQL and 29% over QC' are percentage points; the relative gains are 19.4% and 64.4% (check 11). (b) 'QC is best on cube-double and scene' is a tie with Chunked-HQL (100/100). (c) In A.7 the soft gate beats the hard gate in three cells, not one (cube-double at τ=1 and τ=3, puzzle-3x3 at τ=0). 'Scene and puzzle-3x3 end at the same value for every gate' is also false, and scene ends at 59-60% there vs 99% in Table 1, unexplained (check 13). (d) The effective horizon is quoted both as ≈100 and as min{H,1/(1−γ)}=200 at γ=0.995 (check 07). (e) Sec. 3 uses fixed-length episodes, but the A.3 closed form assumes no time limit (check 10). (f) 'The only hyperparameter in HQL is N' ignores H and the separate gate/bootstrap widths.
c
≡
1
Vˉ−Qˉ
Would you adopt the direct validity argument for the best-of-N policy (E[c∣a]=FN≤NFN−1)? How does it interact with the code choosing the bootstrap action with the online critic but gating with the target critic?
What are trace_len_max and the fraction of targets of length 9-16 in the OGBench runs?
What network, optimiser, N, number of updates and seeds were used for the combination lock? Why does 1-step TD error grow as roughly H2.6 rather than H or H?
How many seeds underlie Table 2 and OCBench? How do QC and LQL perform on OCBench?
Corruption probabilities p in {0, 0.002, 0.005, 0.011, 0.022} leave (1-p)^63 = 100/88/73/50/25% of windows clean; closed form Q(s_i,a*) = -(H-i), Q(s_i,abar) = -(H+1)
(1-p)^63 = 1.0000/0.8815/0.7292/0.4982/0.2462 vs claimed 1.00/0.88/0.73/0.50/0.25 (max |diff| 0.0038, tolerance 0.015). Closed-form Q values reproduced exactly. Minor: Sec 3 describes fixed-length episodes, whereas the closed form for the reset action assumes no time limit.
Computed (1-p)^63 directly; iterative policy evaluation of the combination lock for H in {5,17,64} compared with the closed form
Table 1: means HQL 40->74, Chunked-HQL 41->81, LQL 34->62, QC 21->45 with best-per-row bolding; HQL improves by '12% over LQL and 29% over QC'; Chunked-HQL raises QC from 45% to 81%; QC best on cube-double and scene
Recomputed means 39.83->73.50 (HQL), 41.00->81.17, 34.33->61.83, 21.00->45.33 all round to the table (tolerance 0.5); bolding correct in all rows; Table 1 HQL online values equal Fig. 4 labels. '12%' and '29%' are percentage points (relative: 19.4% and 64.4%); wording should say points. 'QC is best on cube-double and scene' is a tie with Chunked-HQL (100 vs 100 on both). Separately (check 02), the released scripts give Chunked-HQL best-of-16 vs best-of-4 for LQL/QC, so 'same budget and sampling width' does not hold for that column.
Parsed the LaTeX table, recomputed column means, best-per-row bolding, absolute and relative differences, and cross-checked HQL online values against Fig. 4 labels
OCBench: Chunked-HQL 0.82 mean vs 0.53 (100-step TD) and 0.46 (200-step TD); largest gaps on switch-3x3, switch-4x4, chamber-medium; 200-step TD worse than 100-step on seven of eight tasks; Chunked-HQL matches or beats both on all eight
Means 0.8200 / 0.5288 / 0.4587 (claimed 0.82/0.53/0.46). Largest gaps vs best baseline: switch-3x3 +0.76, switch-4x4 +0.59, chamber-medium +0.41, as stated. 200-step < 100-step on 7/8 (exception chamber-easy, 0.97 vs 0.93). Chunked-HQL >= both on all eight (tie on block-single, 0.92). Caveats: one seed per method and task, no uncertainty; only n-step TD baselines were run on OCBench, so the abstract/introduction wording 'outperforms prior horizon-reduction methods on ... OCBench' (QC, LQL) is not supported for this benchmark.
Transcribed the end labels of Fig. 5 (plots/ocbench_td_vs_hql_20261022.png) and recomputed means, per-task gaps and orderings
Soft vs hard gate (Table 7, A.7): hard gate best mean 61%; soft gate improves steadily 36%->57% as tau grows; soft gate only better on cube-double at tau=1; scene and puzzle-3x3 end at the same value for every gate; hard gate outperforms the soft gate at every tau (Sec 4.2)
Headline numbers are consistent: means 35.67/41.00/48.17/53.00/56.50/60.83 vs table 36/41/48/53/57/61; bolding correct; hmaze-medium 91 vs 77 and antmaze-giant 65 vs 58 as stated; soft-gate mean is monotone in tau (not per task: antmaze-giant 24->11->24). Two textual statements are contradicted by the table: (i) the soft gate beats the hard gate in three cells, not only cube-double at tau=1: cube-double tau=1 (87 vs 81), cube-double tau=3 (84 vs 81), puzzle-3x3 tau=0 (21 vs 20); (ii) 'scene and puzzle-3x3 end at the same value for every gate' is false: scene 59/60/59/60/60/60, puzzle 21/20/20/20/20/20 (differences of 1 point, single seed). Minor in magnitude, but the evidence is thin: one seed, and the soft gate acts with 16 behavior samples while the hard gate acts with N=4, a confound given Fig. 7 (N=16 vs N=4 costs 0.135). Scene ends at 59-60% here vs 99% for HQL in Table 1 under apparently the same task suite; not explained.
Parsed Table 7 from LaTeX; recomputed column means (tolerance +-0.5 after rounding), bolding, per-row orderings, and checked the textual statements cell by cell
Ablations (Sec 5.5, Fig. 7, A.8): H in {8,16,32} gives 0.607/0.646/0.621 (small effect); N in {4,8,16} gives 0.596/0.521/0.461, three times the spread of H; the H panel uses the shared settings (512 targets, 6 configs x 5 tasks)
The quoted values match the figure (end of online: H 0.618/0.648/0.627, N 0.587/0.525/0.467, all within 0.015). Spread N 0.135 vs H 0.039 gives a ratio of 3.46 (stated as 'three times'; fine). Inconsistency: per A.8 the H=16 arm uses 512 targets, 32 windows, N=4 on the same 6 configs x 5 tasks, which is exactly the main HQL configuration of A.4. Yet it ends at 0.646 online and about 0.30 offline (pixel 0.298), while the main results report 0.735 online (Fig. 4) and 40% offline (Table 1), a gap of about 0.09 and 0.10. The paper gives no explanation (seeds are not stated for the H panel). The N panel runs at H=8 with 1024 targets and 2 seeds, a different setting from the main experiments, and varies acting and gate widths together (acknowledged). The reasoning 'no target used more than six steps, so H=16 already exceeds what the gate uses' would apply to H=8 as well.
Arithmetic on quoted values; read the end-of-online and end-of-offline values of each curve from the figure PNG by pixel colour, with y calibrated on the gridlines (tolerance +-0.015); parsed the Table 1 HQL mean
Trace lengths (Sec 5.3, Fig. 6): 77% of targets are one-step, 17% two-step, 6% three or more; none exceeds six of the sixteen available steps (reused in Sec 5.5 to argue H=16 suffices)
The split is confirmed: bars 0.762/0.167/0.043/0.012/0.0046 (sum 0.989) give a normalized split of 0.771/0.168/0.061 vs the stated 77/17/6%. 'None exceeds six' is not supported and appears contradicted. (i) The code bins lengths as 1,2,3,4,5-8,9+, so Fig. 6 cannot resolve 6 vs 7-8; trace_len_max is logged but not reported. (ii) The figure draws an error bar in the 9-16 column reaching about 3.6e-4 of targets. An error bar is drawn only when mean+sd > 0, which implies that at least one run logged targets of length 9-16. (iii) The paper's own memoryless model (q=0.23, H=16) gives P(L>=7) about 9e-5 per target, i.e. about 1e5 such targets over a run of 512 targets x 2M updates, so 'none' would be surprising. The Sec 5.5 argument that H=16 'already exceeds what the gate uses' rests on this statement.
Read the bar heights from the log-scale PNG (decade gridlines detected from pixels, +-3 px); compared with the stated split; memoryless geometric model with H=16 window truncation; inspected the logged bins and the 9-16 column for an error bar
The released code's unit tests pass (target telescoping, gate, tdn_all comparison)
pytest: 29 passed, 1 skipped (test_ocbench.py needs the ocbench package, which is not installed). The tests cover target telescoping, the gate and the tdn_all comparison. The first attempt with the newest wandb failed on a Settings API change; pinning to uv.lock fixed it.
Ran the repo's pytest suite on CPU in a copy of the repo (JAX 0.9.0.1; wandb 0.24.2, ogbench 1.2.1, mujoco 3.4.0, dm-control 1.0.36 pinned to uv.lock)
HQL as a drop-in critic (Sec 5.4, Table 2): improves QAM and VGF on all four tasks at the end of online training; QAM cube-triple 1%->80%, humanoidmaze-giant 0%->63%; VGF antmaze-giant 28%->90%
Online improvements hold for all 8 pairs: QAM +49/+79/+15/+63 and VGF +15/+12/+62/+4 points. Quoted numbers exact (1->80, 0->63, 28->90); bolding correct. Caveats: offline scores fall with HQL in 3 of 4 QAM pairs (antmaze-giant 14->0, cube-triple 1->0, hmz-giant 1->0) and 1 of 4 VGF pairs. Only task 2 per environment is reported, with no seed count, error bars or standard errors (unlike Table 1). VGF+HQL on hmz-giant is 0->4, a marginal gain. The released code has no QAM or VGF agent (agents: hql, lql, qc, tdn, tdn_all), so Table 2 cannot be reproduced from the release.
Parsed Table 2 from LaTeX; compared online and offline pairs, quoted numbers and bolding; searched the released code for QAM/VGF
HQL mean OGBench success 0.74 vs 0.49 for the best TD baseline (8-step TD); HQL best on all six configurations; 16-window TD weakest on average; gap largest on the four configurations with horizons >= 1000 steps
HQL mean 0.7350 (claimed 0.74), 8-step TD 0.4850 (claimed 0.49), 1-step 0.4350, 16-window 0.3917 (weakest). HQL has the highest end value in all six panels. Rounding of half-cent means is consistent with the claim. The 'gap largest on the four long-horizon configs' statement holds against the best baseline per panel (min long-config gap +0.14 > max short-config gap +0.12) but not against 8-step TD, the baseline named in the same sentence (cube-double gap +0.27 > humanoidmaze-giant +0.14). Note the figure is the only source; per-seed data are not released.
Transcribed the end-of-training labels printed on Fig. 4 (plots/hql_vs_td_taskmean_20260923.png), recomputed configuration means, per-configuration winners and gaps
All methods use the same behavior flow policy with best-of-N sampling; best-of-N = 4 for acting and bootstrap (Table 4); Table 1 compares methods 'at the same budget and sampling width'
Released configuration: HQL best-of-4 (acting, bootstrap, gate). 16-window TD, 8-step TD and 1-step TD use best-of-16 on five of six configurations (best-of-4 only on antmaze-giant; script comment: 'where best-of-16 1-step TD scores 0'), i.e. 15 of 18 baseline (method, env) pairs differ from HQL. Chunked-HQL uses best-of-16 for gate/acting/bootstrap while LQL and QC use 4, contradicting 'same sampling width' for Table 1. The paper's own ablation (Fig. 7 right) reports HQL 0.596 at N=4 vs 0.461 at N=16, so this undisclosed width difference can materially confound the Fig. 4 comparison (direction: likely disadvantaging the TD baselines if N behaves for them as for HQL, though this was not tested). Critic-target budget (512) does match for HQL/TD/QC/Chunked-HQL.
Executed the released launcher scripts/ogbench.sh (1050 commands), parsed flags, filled agent defaults from hql/agents/*.py, tabulated acting/bootstrap/gate widths and target budget per method x environment
In Eq. 6, c≡1 is the uncorrected multi-step return; hence 16-window TD differs from HQL only by the gate ('isolates the gate's effect'), and the soft gate at tau=0 'recovers uncorrected 8-step TD'
Eq. 6 with c≡1 differs from the uncorrected return by exactly sum_j gamma^j (Vbar(s_j) - Qbar(s_j,a_j)) (identity verified numerically); max difference 18.51 on N(0,1) random inputs with H=16, zero only when Vbar(s)=Qbar(s,a_logged). The released code reproduces both numpy targets (errors 3.8e-6, 1.9e-6), and HQL with every gate open (and the soft gate at tau=0) differs from the 16-window TD target by the same 18.51. So c≡1 is Harutyunyan-style Q(lambda=1)/Retrace-with-unit-traces, not the uncorrected return; the 16-window TD baseline removes both the gate and the per-step (V-Q) corrections, and the tau=0 soft gate is not uncorrected 8-step TD. The repo's own tdn_all.py docstring acknowledges this, contradicting the paper text. Magnitude in practice depends on the critic's (V-Q) gaps, which were not measured.
(a) numpy implementation of the Eq. 6 recursion with c≡1 vs the uncorrected n-step return on random rewards/Q/V; (b) the released get_hql_targets (gate forced open; soft gate at tau=0) vs get_tdn_dense_targets (the 16-window TD baseline) on the same batch, run with JAX 0.9.0.1 on CPU
In the tabular setting, any gate c in [0,1] with c <= pi/mu preserves Q^pi as the fixed point of Eq. 6 ('valid' gate); cutting is needed because it changes what a multi-step backup converges to
Q^pi is an exact fixed point for every trace choice, including traces that violate c<=pi/mu (max |RQ^pi - Q^pi| <= 2.3e-14 in all 80 cases). What c<=pi/mu buys is contraction: sup-norm Lipschitz constant <= 0.95 for valid traces vs up to 3.59 (random c) and 25.3 (c≡1) otherwise. This matches Munos et al. (2016), where Q^pi is a fixed point of the Retrace operator for any traces and c in [0, pi/mu] is the condition for contraction. The paper's statement mis-attributes the role of the condition for the Eq. 6 (expected-V bootstrap) form; the uncorrected n-step return, by contrast, does change the fixed point. The conclusion that valid traces are 'safe' survives, but the stated reason is wrong.
20 random tabular discounted MDPs (12 states, 3 actions, gamma=0.95); exact expected operator of the Eq. 6 recursion R Q = Q + (I - gamma P^{c mu})^{-1}(r + gamma P^pi Q - Q); measured |R Q^pi - Q^pi|, sup-norm Lipschitz constant, spectral radius and fixed-point iteration error for c≡0, c=min(1,pi/mu), random c in [0,1], and c≡1
Soft gate (Eq. 9) with log Zhat = LSE - log N tends to c≡1 as tau->0 and exactly to the hard gate (Eq. 7) as tau->inf because LSE <= max + log N; Eq. 9 is 'the largest valid gate', so HQL's gate is 'the tau->inf limit of a valid gate'
The limits are correct: LSE - max - log N <= -0.023 (max over 1e5 draws); at tau=1e-6 max|c-1|=4.3e-6; at tau=3000 max|c-hard|=1.5e-13 away from near-ties, and the hard gate opens on 0.1996 of exchangeable cases (1/(N+1)=0.2). The validity claim is not: with the N-sample estimate Zhat, E[c_hat|a] exceeds the valid bound min(1,pi/mu) in 14/20 (tau, a) cases (e.g. tau=3, a=+1: 0.826 vs 0.223), because log Zhat underestimates log Z. As tau->inf the true bound min(1,pi/mu) -> 0 for every fixed a (tau=30, a=+2: 4.2e-170), whereas the hard gate stays open with probability F(a)^N (0.91 at a=+2). The hard gate is therefore the limit of the estimated gate, not of a valid gate for the tilt; the 'principled' argument in Sec 4.2 does not go through as stated (see check 06 for a different policy for which it is valid in expectation).
Direct numerical evaluation of Eq. 9 over a tau grid on random critic values (20,000 cases, N=4); LSE bound on 1e5 random vectors; validity test in an analytic toy (mu=N(0,1), Q(a)=a, so pi/mu = exp(tau a - tau^2/2) is known exactly) comparing E[c_hat|a] (Monte Carlo, 2e5 candidate sets) with min(1, pi/mu)
A logged action exchangeable with the N proposals passes the gate with probability 1/(N+1); and (reviewer test of the paper's 'principled correction' claim) the hard gate is a valid trace for the best-of-N policy actually used in the bootstrap
Open rate 0.3346/0.1984/0.1113/0.0583 vs 1/(N+1) = 0.3333/0.2000/0.1111/0.0588 (all within 4 SE, SE <= 0.0011). In every decile E[c|u] (theory u^N) <= pi_N/mu (theory N u^(N-1)), so the hard gate satisfies c <= pi/mu in expectation for the best-of-N policy with the same critic. This gives a correct justification that the paper does not state (its argument goes through the tau->inf tilt, see check 05). Caveat: the released code selects the bootstrap action with the online critic and gates with the target critic (hql.py compute_bootstrap_value vs ratio_use_target_q=True), so the two policies are not exactly the same.
Monte Carlo (2e5 logged actions per N, N in {2,4,8,16}) with mu = N(0,I_3) and a nonlinear critic; gate open rate vs 1/(N+1); E[c|a] vs the best-of-N density ratio pi_N/mu estimated by histogram in u = F(Q(a))
eps_t = sum of downstream residuals (Eq. 2); under the residual model Var = n sigma^2 + 2 sum (n-l) C(l) and RMSE ~ sigma_eff sqrt(H-t) (Eqs. 4-5); with discounting the accumulation is capped at an effective horizon (~100 steps at gamma=0.995)
Telescoping exact (max error 3.6e-15). Variance formula matches Monte Carlo within 1.2% at all n; RMSE log-log slope 0.510 (Eq. 4: 0.5). Discounted variance saturates at sigma^2/(1-gamma^2) = 100.25 sigma^2 at gamma=0.995, consistent with '~100 steps'; the same paragraph's 'H replaced by min{H, 1/(1-gamma)}' gives 200 (factor 2, 'up to constants'). Note: the derivation is correct within its stated model, but at the discounts used on OGBench (0.99/0.995) the residual variance saturates after ~50-100 equivalent steps (at H-t=1000 the variance factor is 100.25, the same as at 4000), so the model does not by itself predict larger gaps on 1000-4000-step tasks, as Sec 5.3 (l.445) suggests.
Exact telescoping on a random chain/critic; Monte Carlo (20,000 runs) with AR(1) residuals (phi=0.5) for n in {16,...,1024}; closed-form discounted variance at gamma=0.995
Unified error law RMSE(eps_0)^2 ≈ (H/n) L^(n) + (1-1/n)^2 H^2 Abar^2: n-step returns divide the residual term by n but add bias from the H(1-1/n) spanned behavior actions
Empirical/Eq. 3 ratio between 0.983 and 1.030 in all 8 settings (e.g. H=1024, n=16: 20862 vs 20863). This confirms the counting and algebra of Eq. 3 inside the paper's own residual model; it does not test whether real critics follow the model. Appendix A.2 itself calls the result 'schematic' and identifies the endpoint state-value error with the action-value error at the logged action, which is exact only on the target-policy chain, not along a behavior trajectory.
Monte Carlo (4000 critics) on a chain with good/bad actions (A^pi(bad) = -1), state-dependent behavior error rates, dense every-state n-step targets with Vbar(s)=Q(s,good), iid residuals per the paper's model; compared empirical RMSE^2 with Eq. 3 for H in {256,1024}, n in {1,4,16,64}
Combination lock (Fig. 3): on clean data 1-step TD error grows by three orders of magnitude from H=512 to 4096 while 64-step TD and HQL avoid this accumulation; 64-step TD degrades under corruption because targets sum the negative advantages of spanned actions; HQL stays below both at every horizon; HQL 'keeps the lowest value estimation error across different horizon' (Sec 1); the figure 'supports both halves of the analysis'
Clean 1-step TD: 3.72 -> 891 (x239, 2.38 decades, not 'three orders of magnitude'); log-log slope 2.58 vs 0.5 predicted by Eq. 4 (and 1.0 for the Theta(H) regime). HQL itself grows x77 (0.102 -> 7.89, slope 2.17) on clean data and x93-x161 on corrupted data, so HQL does not 'avoid this accumulation' in relative terms; it is lower in absolute level. HQL is below both baselines at 17/20 points; on the clean panel 64-step TD is lower than HQL at H=512 (0.0998 vs 0.102, a tie), 2K (1.40 vs 2.99) and 4K (6.17 vs 7.89), contradicting 'lowest error across horizons' in Sec 1 (the Sec 5.2 sentence about corrupted data holds, 16/16). Supporting the paper: the tabular fixed point of uncorrected 64-step TD reproduces the plotted n-step errors closely (p=0.002, H=512: 303.5 vs 324 plotted; H=1024: 1956 vs 2110; p=0.005, H=512: 1576 vs 1680; H=1024: 27984 vs 26000; p=0.011, H=512: 19642 vs 20100), and its iteration does not converge for larger p, consistent with 'diverges'. The tabular 1-step TD fixed point is exact, so the 1-step error growth reflects function approximation/optimisation after 1M updates, not the fixed point. No combination-lock code is released (0 files), and architecture/optimiser/N for this experiment are not given, so Fig. 3 cannot be reproduced.
Extracted all 15 plotted polylines from the vector PDF with PyMuPDF (y mapped via the log-tick labels), computed growth factors and log-log slopes, checked HQL < min(baselines) at all 20 points; independently computed the tabular fixed point of uncorrected 64-step TD on simulated datasets built as in Sec 5.1 (M=100 windows per (s,a), max-bootstrap); searched the code for a combination-lock implementation
The main entry point trains and evaluates HQL with the configuration of scripts/ogbench.sh
main.py runs end to end (returncode 0): loads the OGBench dataset, trains offline and online, evaluates, and logs the trace-length histogram. At 300 online steps: frac_len_eq_1 0.770, eq_2 0.176, eq_3 0.045, eq_4 0.008, 5to8 0.002, trace_len_max 5. Success was 0.0 after 600 steps, as expected at this budget. The reported scores (1M+1M steps, 5 seeds, 30 tasks per method) cannot be reproduced on 2 CPUs, so no paper number was compared. Combination-lock (Fig. 3) and QAM/VGF (Table 2) code is not in the release; the soft gate (Table 7) is an hql.py option (ratio_baseline='logsumexp', ratio_hard=False) without a run script.
Ran main.py with the HQL flags from scripts/ogbench.sh (H=16, 32 windows, N=4) on cube-double-play task2 for 300 offline + 300 online steps with 2 evaluation episodes, MUJOCO_GL disabled
/
μ
Add an HQL-with-c≡1 arm to separate the effect of the gate from that of the Vˉ−Qˉ corrections, and fix the descriptions of 16-window TD and the τ=0 soft gate.
Report confidence intervals (or per-seed results) for Fig. 4, Table 1 and Table 2, use several seeds for OCBench and Table 7, and explain the H=16 ablation vs main-result gap.
Release the combination-lock, QAM/VGF and soft-gate run scripts, and give full combination-lock training details.
Report wall-clock time and the number of flow-policy samples and critic evaluations per update for every method, including the separate gate sample set.
Report trace_len_max and a finer trace-length histogram (each length up to 16), and revise the 'none exceeds six' statement.
Discuss Watkins's Q(λ) and Daley (2026) explicitly as the discrete-action precursors of value-comparison trace cutting.
Temper the Fig. 3 wording ('three orders of magnitude', 'avoid this accumulation', 'lowest error across horizons') to what the plotted values show.