A clean, exactly decomposed and largely reproducible formulation whose arithmetic, statistics and agent-side footprint all check out. However, the headline "beats the agent" result compares against an edit with 1.6× less dose, uses a recipe tuned after reading the agent's logs, and comes from a single seed with no side-effect evaluation, so it shows a cheaper way to apply a known fix rather than a better repair method.
Soundness
3/4
Presentation
3/4
Contribution
3/4
Confidence
4/5
✓ 17 confirmed✕ 1 discrepancy
Summary
The paper revisits the weight-space programming demo of Takehi et al., where a GPT-6 Astra agent repaired the reasoning loops of Qwen3.5-0.8B by rewriting 64 columns of down_proj in layers 15 and 19. It recasts that repair as a sparse discrete optimisation over the native BF16 weights. The allowed moves are sign flips and power-of-two rescalings that keep every 64-weight group's shared exponent and every mantissa unchanged. These moves are expressed in a lossless BF16 "state tree". The objective uses forward statistics only. It has a linear dose term along u=uloop−βu on loop tokens, a quadratic term on protected tokens, and an penalty. With the candidate columns and per-weight moves fixed, it splits exactly into one dense 512-spin QUBO per output row, and these are solved on a GPU by simulated annealing (SA) or simulated bifurcation (SB).
Strengths
Explicit, exactly decomposed objective
Sec. 3.3–3.4, Eqs. (4)–(7); Sec. 4.5; App. B; App. C
The paper turns the agent's implicit three phases (choose layers, choose a direction and dose, search) into an explicit dose/collateral/sparsity energy. Given fixed candidate columns and preselected moves, this energy splits row by row into QUBOs. We checked the decomposition (Eq. 6), the Ising mapping (Eq. 7) and the App. B Qiskit Hamiltonian numerically, and all hold to ≤1.6×10−14 relative error, as does the released code's energy (check 06). The rank-one closed-form minimiser of the continuous problem (Sec. 4.5) also matches a numerical optimum to 2.8× (check 07). The App. C one-hot penalty bound is sufficient (check 17). Together these make the method a reusable template, not a one-off trick.
Weaknesses
Head-to-head with the agent is not dose-matched and the recipe was tuned after reading the agent's logs
major · Abstract; Sec. 3.3; Sec. 4.2; Table 5; App. A tab:dose
Tree-Ising targets 1.6× the agent's dose (tab:dose: targets −2.183/−3.056 against agent doses of −1.364/−1.910). It reuses the agent's layers, and its recipe was designed after reading the agent's logs. No 1.0× dose-matched edit is evaluated. On the screen, the selected configuration beats the agent edit by only 73 vs 67 of 128 problems (unpaired z≈0.75, check 16), and the 1.2× dose is equally good with 31% fewer weights. The +2.9/+3.4-point MATH-500@4 advantage may therefore come from a stronger push along the agent's own direction rather than from a better repair method. The abstract's "outperforming the agent's edit" needs that qualification. Fix: report a dose-matched (1.0×) Tree-Ising edit on the full benchmarks, and, conversely, the agent edit scaled to 1.6× dose. That would separate the effect of dose from that of the method.
No measurement of side effects outside math reasoning
major · Sec. 3.3 (collateral), Sec. 4, Sec. 8
The collateral term protects only tokens from the 384 math practice problems, and every evaluation is a math benchmark. Instruction following, general language modelling and non-math tasks are not measured, although the original work reports IFEval (21.0 → 62.3, quoted in Table 3 and verified in check 13). An edit with 1.6× the agent's dose is exactly the case where off-distribution damage is plausible. Sec. 5 already shows a small cost in-domain: on 2B, accuracy among answers that terminate falls from 97.9% to 94.7% (check 08). Fix: evaluate IFEval and a perplexity or general benchmark (e.g. MMLU-style) for the base, agent and Tree-Ising checkpoints in the same harness.
Single seed, base model not rerun, and mixed harnesses in the headline
· Abstract; Table 3; Sec. 4.2; Sec. 8
Questions for the authors
What MATH-500@4 and GSM8K accuracy does a dose-matched (1.0× agent dose) Tree-Ising edit reach? Conversely, what does the agent edit reach when scaled to 1.6×? If the 1.0× edit falls to or below 51.7%, the comparative claim reduces to 'more dose helps'.
How do the base, agent and Tree-Ising checkpoints compare on IFEval and on a non-math benchmark or held-out perplexity in your harness?
How much do MATH-500@4 and GSM8K vary across generation seeds for each checkpoint? Is the +2.9-point SA gain larger than the seed-to-seed spread?
On Qwen3.5-2B, how does the edit compare with simply applying the recommended sampling or a repetition/presence penalty to the base model, and what does it do on MATH-500?
Can you release the SA/SB edited checkpoints, or the edit deltas, and the activation statistics? With them, Table 4's Tree-Ising rows and the escape-membership guarantee could be verified without a GPU.
On the real 512-spin row instances, how close are the SA and SB energies to the best energy found (for example, by long-run SA or exact solves on reduced K)? How sensitive is accuracy to K?
Verification
We ran 18 checks with self-contained scripts: 17 confirmed and 1 discrepancy. The arithmetic and statistics checks covered Tables 2–6, the dose table, the footprint ratios, every reported p-value and the held-out-400 analysis. The mathematics checks covered the QUBO/Ising decomposition, the App. B Hamiltonian, the closed-form rank-one minimiser and the App. C penalty bound. From the public checkpoints we reproduced the agent row of Table 4 exactly and tested the move set on the real layer-15/19 weights. We also checked the paper against the released agent logs and evaluation files, ran the released code's tests and solvers, and checked the QPU statistics. Everything we could recompute agrees with the paper to its displayed precision. The one discrepancy is textual: Sec. 4.2 says SB is closer to the target doses, but this is false for layer 19. It does not touch any main result, so it is a minor weakness and does not cap the score. Side findings that did not change an outcome are reported as minor weaknesses. They are the code's admissibility mask not excluding escaped weights, a caption claim about escape membership that is false for the agent edit, an uncredited nominally significant AMC23 difference, and 'requests' vs passes in the cost accounting. The headline Tree-Ising benchmark accuracies and footprint rows could not be regenerated. They require GPU vLLM generation at 32k tokens and activation statistics that are not released.
17Confirmed
1Discrepancy
✓ConfirmedSec. 4.2, Table 3 (tab:main) and footnote; Sec. 4.2 Solver Choice
ali2026everyweight (Ali & Lefkimmiatis, arXiv:2610.31931)
The arXiv ID resolves, but the arXiv title is 'Every Weight Is a Path of Shared Discrete Decisions', not the cited 'Every Weight Is a Path: Representing Neural Networks as Trees of Discrete Decisions', and the second author is listed as 'Stamatis', not 'Stamatios'. This is a self-citation: Ammar Ali is a co-author of the paper under review. It is load-bearing because the whole state-tree representation is built on it, and it was posted three weeks before this paper with no peer review.
khaliq2026repro (Khaliq, 'Independent re-run ...', HF model card)
This is not a standalone work. It is a section of the agent checkpoint's own model card (huggingface.co/RikiyaT/Qwen3.5-0.8B-weight-space-programming), hosted under the original authors' RikiyaT account and built by akhaliq with HF 'ML Intern'. The numbers it supports do match: 1020/2000 = 51.0% and a 31.6% cut share in eval/scores_edited_math500.json. However, it evaluates the multimodal checkpoint with vLLM 0.33.0 on an H200, and the paper presents it as an 'independent reproduction' without these caveats.
The paper says the base model loops 'on 93% of MATH-500 problems'. The cited source (logs eval/unedited/merged.json math500.cut_share = 0.93; blog and model card 'Hit token limit 93.0') reports the share of answers or completions cut at the cap, not the share of problems.
takehi2026logs (agent forward passes)
The paper cites the logs for '50 forward-pass requests'. The logs record 69 forward-pass requests in runs/p50c (state.json 'requests': 69; tool_calls.jsonl), of which 50 succeeded and consumed the pass budget. The 12.2 GPU-h total matches only when the 19 failed requests (3.06 h) are included. The other figures (158 turns, 89.7M/80.3M/2.9M tokens, 1.8 h, 20.3 h) are supported.
koch2007transmon, dwave_hybrid, dwave_models
These are in the bibliography but never cited in the text. They are harmless, but they should be removed or cited.
Suggestions
Add a dose-matched (1.0×) Tree-Ising edit and a 1.6×-scaled agent edit to Table 3. Reword the abstract's comparative claim according to the result.
Evaluate IFEval and at least one non-math benchmark or held-out perplexity for base, agent and Tree-Ising in the same harness.
Rerun the base model in your harness and report ≥3 generation seeds per benchmark with seed-level spread. Avoid setting numbers from different harnesses side by side in the abstract.
For the 2B transfer, add MATH-500 under the recommended sampling and a decoding-penalty baseline, and report the rank-one continuous edit for comparison.
Fix the admissibility mask in solver.py to exclude escaped weights (D≥15), and correct the Table 4 caption: the agent edit does change escape membership for 44 weights.
Release the edited checkpoints (or sparse edit deltas) and the activation statistics, so the Tree-Ising rows of Table 4 can be checked without a GPU.
Report the cost comparison as GPU-only and total separately, and state that the agent's 12.2 GPU-h includes 19 failed requests.
Ablate K and the move-preselection step, for example against the App. C joint-move QUBO. Report optimality gaps of SA and SB on real row instances.
Correct the textual slips: the solver-dose sentence in Sec. 4.2, '93% of problems' (should be completions), AMC23 nominal significance, the tab:impl 'per row' wording, the 'dense fix' caption, the Conclusion's code-availability sentence, the reference titles, and the uncited bibliography entries.
Ethics and integrity
No ethical or integrity concerns. We found no instruction-like text aimed at reviewers in the LaTeX source, the code or the request. The core state-tree representation rests on a very recent, unreviewed self-citation (ali2026everyweight). This is legitimate, but it should be disclosed as such. The 'independent reproduction' cited in support of the authors' harness is hosted by the original authors, and the paper should describe it accurately.
Scope of this review
We had no GPU. As a result, we could not regenerate the Tree-Ising benchmark accuracies (Tables 3 and 6), which need vLLM generation at up to 32,768 tokens, nor the Tree-Ising rows of Table 4, which need the unreleased activation statistics or edited checkpoints. Those results were checked for internal consistency only (GRIM, paired-statistics feasibility, ratios). We did not recompute the agent's API prices (291/485) because no offline price list was available. We did not rerun the QPU experiment, and the ideal QAOA rates could not be checked because the 8-variable QUBO coefficients are not released. The agent-side numbers were checked against the public checkpoints and the released logs.
In the paper's own evaluation harness, the SA/SB edits reach 54.6% / 55.1% on MATH-500@4, against 51.7% for the agent's edit. They are ahead on all five math benchmarks and significant after Bonferroni correction on MATH-500@4 and GSM8K. The edits change 13–17% fewer weights and need 2.2–2.3× fewer BF16 bit flips. The run uses 4 forward passes, no LLM tokens and about $0.90 of GPU time. The authors state that the recipe was designed after reading the agent's logs, reuses the agent's layers and applies 1.6× the agent's dose.
A transfer experiment on Qwen3.5-2B picks layers and dose from the base model alone and raises greedy GSM8K accuracy from 21.6% to 69.4%. An 8-variable subproblem is run with QAOA on IBM Heron as a proof of concept, with no claim of quantum advantage.
10−9
Format-native move set verified on real weights
Sec. 3.1; Table 4 (tab:footprint)
Using the public base and agent checkpoints, we reproduced every column of the agent row of Table 4 exactly: 130,188 changed weights, 621,388 BF16 bit flips, 720,586 state-tree bits, 1,261 shared exponents and 129,668 mantissas changed, with exactly 64 changed columns per matrix (check 04). We also applied every paper-admissible single move to layers 15/19, plus joint edits touching ~2.8M weights per layer. These produced 0 shared-exponent, 0 mantissa and 0 escape changes, and the 0.125 worked example reproduces (check 05). The bit-accounting claims behind the footprint comparison therefore rest on a correct and verifiable foundation.
Careful, internally consistent statistics
Sec. 4.2, Table 3 and footnote; paragraph 'Problems never used during development'
Table 3 comes with paired tests, exclusive-solve counts, an explicit Bonferroni threshold (0.05/12), and a held-out analysis that drops the 100 MATH-500 problems used during development. Every cell of Table 3 corresponds to an attainable count, and the footnote counts match those counts exactly (e.g. GSM8K 930−865 = 65 = 155−90). All ten reported p-values reproduce, and exactly four comparisons pass the correction (checks 01–03). The held-out result for SA (+2.9±1.1, p≈0.009, 87/58) reproduces exactly. The paper also admits that SB's 0.5-point lead over SA comes entirely from the development problems, which our subtraction confirms.
Unusually candid scoping
Sec. 1 (p. 2), Sec. 3.2, Sec. 4.3, Sec. 6, Sec. 8
The paper states, in the introduction and again in Sec. 4.3 and Sec. 8, several things that weaken its own claims. The recipe was designed after reading the agent's logs. The dose is 1.6× the agent's. The cost comparison sets finding a fix against applying a recipe. The base model was not rerun. The final-layer exclusion rule was fixed after seeing the 0.8B scores. The layer-scan agreement may be architectural. The QAOA result is no advantage. Our layer-scan check (check 15) supports the architectural caveat: in 2B, full-attention layers average 0.449 against 0.175 for linear-attention layers.
Ablations that isolate the objective from the solver
Table 5; Sec. 4.2 'Solver choice'; Sec. 4.5
Table 5 includes a continuous closed-form minimiser of the same objective. It reaches the same screen accuracy (57.8) but rewrites 96% of weights, 62× more than the discrete edit (ratios reproduced in check 10). SA and SB edits are statistically indistinguishable on every benchmark. Together these support the paper's view that the objective, not the solver, carries the accuracy, while the discrete formulation buys sparsity. All 28 Table 5 entries are exact k/128 counts (check 16).
Released, runnable code and careful use of external logs
Code availability; Table 2; Sec. 4.3
The TreeIsing package installs. Its 35 CPU tests pass, all three experiment configs validate, and SA, SB with float64 descent, and greedy SA recover exact optima on small row QUBOs (check 18). The agent-cost figures (158 turns, 89.7M tokens, 12.2 GPU-h, 15.6 h) match the released agent logs (check 12). The reported base and agent numbers match the original merged.json (check 13). The cost arithmetic in Table 2 holds (check 11).
Agent-free transfer to a second model
Sec. 5; Table 6
On Qwen3.5-2B, layers and dose are chosen from the base model alone, and greedy GSM8K accuracy rises from 21.6% to 69.4%: 669 problems fixed against 38 broken, McNemar p≈4×10−150. The gain holds outside the 200-problem probe (69.6% vs 21.6%). All 23 quantities in Table 6 and Sec. 5 reproduce (check 08). This is the strongest evidence that the recipe does not depend on the agent.
major
Each benchmark uses a single sampling seed at T=0.6. The agent edit scores 51.7% in the authors' harness against 48.1% as originally reported, a 3.6-point harness effect larger than the claimed +2.9-point gain. Yet the abstract sets 54.6% beside a base-model 7.9% that was never rerun in this harness. The paper's evidence that its harness is sound is the khaliq2026repro "independent reproduction", which is hosted on the agent authors' own model card and uses a different checkpoint and vLLM version (see References). Only MATH-500@4 and GSM8K survive correction, and the SB−SA ordering is driven by the development problems (check 03). Fix: rerun the base model in the same harness, and report ≥3 seeds per benchmark with seed-level spread for all three edited checkpoints.
2B transfer is evaluated only in a setting chosen because the base model fails worst there
major · Sec. 5; Table 6; Fig. 4 (right)
Greedy decoding with an 8,192-token cap was chosen after a 200-problem probe showed the base model was worst under it. The paper acknowledges this selection, but the evaluation is GSM8K only. There is no MATH-500 and no recommended sampling setting, and no comparison with cheap decoding-side remedies such as repetition or presence penalties and the recommended sampling parameters. The continuous rank-one edit is not run on 2B either. The 'stronger' 9× variant was picked after the screen sweep. Greedy-decoding loops are partly a decoding artefact, so the 21.6% → 69.4% gain overstates how much the weights needed repair. Fix: add MATH-500 under the recommended sampling, plus a decoding-penalty baseline and the rank-one edit, on 2B.
Text misstates which solver lands closer to the target doses (discrepancy, check 09)
minor · Sec. 4.2 'Solver choice'; App. A tab:dose
Sec. 4.2 says simulated bifurcation "lands marginally closer to the target doses". The numbers in the same sentence show that this holds only for layer 15. In layer 19, annealing is closer: ∣−3.075+3.056∣=0.019 against ∣−3.083+3.056∣=0.027 for SB. SB is closer only in the summed gap (0.033 vs 0.061). The error does not affect any benchmark result, but the sentence should be corrected.
Code does not enforce the escape rule that the paper and the Table 4 caption assert
minor · Sec. 3.1; Table 4 caption; TreeIsing/solver.py `solve_layer`
Sec. 3.1 restricts admissible moves to those that change only the sign and the 4-bit state. In TreeIsing/solver.py (solve_layer, the admissibility mask), the mask computes gap = E - e without excluding escaped weights (D≥15). Growth moves are therefore allowed for all 400 (layer 15) and 338 (layer 19) escaped weights, and 193–284 of them per factor would leave the escape list (check 05). This probably does not matter in practice, because escaped weights are tiny. Still, the guarantee holds for the released edit only empirically and could not be verified without the edited checkpoint. Separately, the Table 4 caption says "neither edit alters escape membership", but the agent edit moves 44 weights across the escape boundary because it changes 1,261 group maxima (check 04).
Cost comparison is headline-prominent but mostly an API-bill ratio
minor · Abstract; Table 1; Table 2; Sec. 4.3
The '~350× cheaper' figure in the abstract, Table 1 and Table 2 comes almost entirely from the agent's $291 API bill. Counting GPU time only, the ratio is 23×, and it rises to 562× under long-context pricing (check 11). The comparison also sets finding a fix against applying a known recipe, which the paper acknowledges. The agent logs show 69 forward-pass requests (50 successful, 19 failed). The 12.2 GPU-h figure includes 3.06 h from the failed requests, so the '50 forward-pass requests' and '12.5× fewer requests' wording is inconsistent with the GPU-hour accounting (check 12). Present GPU-only cost alongside total cost, and define 'request' consistently.
Reporting slips in significance and looping statistics
minor · Sec. 1; Sec. 4.2; Table 3 footnote; App. B tab:qpu
(i) The AMC23 SB-vs-agent difference (+3.0±1.5, 16 better/7 worse) gives z≈2.0, p≈0.046 for every attainable pattern. It is therefore nominally significant, like OlympiadBench SA, but the text implies only OlympiadBench SA is (checks 01–02). (ii) Sec. 1 says the base model loops on '93% of MATH-500 problems'. The source reports 93% of completions cut at the cap, and the Table 3 footnote itself says completions (check 13). (iii) For the SB held-out result, the displayed SE (1.1) and p (0.007) cannot both be correct after rounding (check 03). (iv) The Wilson upper bound for 21/1024 is 3.11, not 3.12 (check 14).
Heuristic components of the pipeline are not separately ablated
minor · Sec. 3.4–3.5; Table 5; App. A tab:impl; App. C; Sec. 3.2
The exact decomposition holds only conditionally (check 06). The approximations sit in three heuristic steps: the choice of K=512 candidate columns shared across rows, single-move preselection at the current γ,λ, and the outer γ-bisection and λ-doubling. Table 5 varies the move set and the solver. It does not vary K and does not compare against the joint-move formulation of App. C. The paper also gives no measure of how far the SA/SB solutions sit from the row optimum on the real 512-spin instances. Our small synthetic instances were easy even for greedy search (check 18). Separately, App. A tab:impl says 'K=512 of 6,144 per row' for 2B, while the method and code use the same columns for every row. The gradient-attribution layer ranking (14, 21, 18, 16) in Sec. 3.2 is asserted without a table.
Citation framing and stale or inaccurate text
minor · Sec. 4.2; Sec. 3.1; Fig. 1 caption; Sec. 9; bibliography
The paper presents khaliq2026repro as an 'independent reproduction', but it is a section of the agent checkpoint's own Hugging Face card and uses a different setup. The load-bearing state-tree reference (ali2026everyweight) is a three-week-old, unreviewed self-citation, and its title and second-author name are cited incorrectly. Three bibliography entries are never cited. The Fig. 1 caption says the agent 'writes a dense fix', although it edits 64 columns. The Conclusion says the code 'will be made publicly available shortly', but it is already released.
All ratios reproduce after rounding: 13.49%, 16.79%, 2.229x, 2.318x, 3.980x (SB 4.135x), 1.534%, 95.64%, 62.3x, 102.95x, 31.26%. Tables 1, 4 and 5 agree. Accounting is consistent: SA has 12,678 sign-only moves out of 57,704 sign flips, 1.23 state bits per state change and 2.21 exponent bits per state change; SB is similar. 2B rows are plausible.
Recomputed every ratio from Table 4 counts, cross-checked Table 5 rounded rows, and checked accounting identities (sign-only moves <= sign flips; state bits per state change in [1,4]; exponent bits >= state changes)
Cost: 21.8 GPU-min, 30.6 min wall, 0.90vs312, 12.5x fewer requests, 34x less GPU time, ~30x faster, ~350x cheaper, S_max 1.40
All arithmetic holds: 5.7+5.1+11.0 = 21.8; +8.8 = 30.6; 30.6 min x 1.76/h=0.898; 12.2 h x 1.76 = 21.47;291+21=312;50/4=12.5;732/21.8=33.6;936/31=30.2;312/0.90=347;Sm291, or up to $485 at long-context rates, which gives 562x); GPU-only it is 23x. The 0.8B recipe skips the layer scan by reusing the agent layers; the 2B run sums to 26.0 min. The agent figures themselves are taken from external logs (check 12).
Recomputed sums, prices at $1.76/h, and ratios from the stage runtimes in tab:impl
Agent-run statistics from released logs: 158 turns, 89.7M tokens (80.3M cached, 2.9M output), 50 forward passes, 12.2 GPU-h, 1.8 h responses, 15.6 h / 20.3 h wall clock, $291 API cost
All checked figures match. State.json has 158 turns and 50 passes. The plain per-turn usage sum is 89.69M tokens (80.29M cached input, 2.91M output). Summed turn wall_s is 1.83 h. First-to-last turn spans 20.35 h, including a 5.01 h gap at turn 154; subtracting 4.7 h gives 15.65 h. Forward-pass durations sum to 12.16 h. Caveats: (a) the log has 69 forward-pass requests, 50 successful and 19 failed; the failed ones still account for 3.06 h of the 12.2 h, so the paper's '50 forward-pass requests' and '12.5x fewer requests' really mean passes. (b) The 291/485 API prices were not recomputed because no offline price list was available. (c) The logs README says Codex usage accumulates within a conversation and should not be summed, but the per-turn values are not monotone, and the paper's 89.7M equals the plain sum.
Downloaded exp8_math/runs/p50c state.json, all 158 turns/tNNN/run.json and tool_calls.jsonl from RikiyaT/lm_understand-logs; recounted turns, token usage, response wall time, timestamps and forward-pass durations (result['s'])
External numbers: Takehi et al. base 7.9 / agent 48.1 on MATH-500 and the other reported rows of Table 3 (IFEval 21.0 -> 62.3); independent reproduction 51.0% with 31.6% cut; base loops on 93% of MATH-500 problems
All ten reported Table 3 entries and IFEval 21.0 -> 62.3 match the released merged.json after rounding. The HF re-run has 1020 of 2000 correct (51.0%) and a 31.6% cut share. It was built by akhaliq (Ahsen Khaliq) and is hosted on the agent authors' RikiyaT HF repo; it is a third-party run, but it lives on the original authors' card and used a multimodal checkpoint with vLLM 0.33.0. Wording issue: the 93% figure is the share of completions cut at the cap (cut_share 0.93), not the share of problems as Sec. 1 states. The original evaluation's agent cut share was 33.05%.
Downloaded exp8_math/eval/{unedited,p50c}/merged.json from the released logs and the HF model card plus eval/scores_*_math500.json; recomputed accuracies, cut shares and the re-run accuracy from per-problem results
QPU statistics: optimum rates and Wilson 95% intervals for 33/110/55 and 4/4/7 of 1024, diagnostic 21 and 6 of 1024, Fig. 5 error bars, 1/256, bitstring 11010011, 130,816 couplings, 16,384 submissions
All eight rates and seven of eight Wilson intervals reproduce exactly, and the Fig. 5B bars equal the Wilson bounds. For the diagnostic 21/1024 the upper bound is 3.1148, which the paper prints as 3.12 rather than 3.11, a last-digit double-rounding slip. 1/256 = 0.39%; x* gives 11010011 in x7..x0 order; 512511/2 = 130,816; 20488 = 16,384; 6 x 1024 = 6,144 shots; the Fig. 5A CZ labels sum to 119. The Fig. 5A variable labels for x5-x7 differ from tab:mapping 'Readout, p=1', which is fine because they come from different runs. The ideal QAOA rates and energies were not checkable because the 8-variable QUBO coefficients are not released in the paper or code.
Recomputed Wilson score intervals (z=1.96), compared them with the table and the Fig. 5B error-bar coordinates, and checked the bit-order conversion and combinatorics
Layer scan: on 0.8B layers 19 and 15 each score at least twice any other non-final layer and the rule selects 15, 19; on 2B the ranking is 23, 19, 15, 14; the top-3 layers are full-attention blocks in both models
0.8B: ranking 23 (0.334), 19 (0.332), 15 (0.213), 21 (0.104); 15 and 19 are 2.04x and 3.18x the best other layer, so 'at least twice' holds, though only barely for layer 15. 2B: ranking 23, 19, 15, 14 (0.357), with 14 ahead of 16 (0.346) by only 3.4%. The rule selects 15 and 19 in both models. The top 3 are full-attention in both, and in 2B the full-attention layers average 0.449 against 0.175 for linear-attention layers, which supports the paper's own caveat that the agreement may follow from the shared architecture. The config comments (0.8B: 23, 19, 15, 21; 2B: 23, 19, 15, 14) match.
Parsed the 24 bar heights per model from figures/fig_layerscan.tex; ranked them, applied the selection rule, and computed ratios
Ablation table and screen figure are internally consistent (k/128), screen SE ~4.4, 1.2x dose marginally higher with 31% fewer weights; selected config well above agent; annealing/SB outperform greedy
All 28 Table 5 values and all 14 Fig. 4-right values are exact k/128 counts. 2B base: 65/384 and 319/384. SE = 4.38 at p = 0.57. Fig. 4 cut reduction is 65.7% (about two thirds), and the 2B stage times sum to 26.0 min. Resolution caveats: selected vs agent is 73 vs 67 problems (+6, unpaired z = 0.75; even the best-case paired p is 0.031), so 'well above that of the agent edit' is weak. SA and SB 'outperform' greedy by 4 and 3 problems, which cannot reach p < 0.1 under any pairing; the paper does note the screen lacks resolution. The 1.2x dose is ahead by 1 problem.
GRIM at n=128 (and 384) for every table/figure value; binomial SE; exact best-case McNemar p for the stated differences
App. C: any rho > max_i(|A_i| + sum_k |B_ik|) makes every one-hot-violating assignment suboptimal; the joint-move QUBO reproduces the objective on feasible assignments
With rho above the bound, none of the 300 minimisers violates the one-hot constraint. With rho = 0, 84/300 minimisers violate it, so the penalty matters. With rho = bound/4 there are still 0 violations, so the bound is sufficient but loose, as stated. On feasible states the QUBO matches the direct objective (max relative difference 1.8e-13).
Exhaustive search over 4096 states for 300 random instances (4 weights x 3 moves) with rho just above the bound, rho = 0 and rho = bound/4; compared the QUBO with the direct dose + collateral + sparsity objective on feasible states
Released code is runnable and its solvers behave as described: CPU tests pass, --list validates configs, SA and SB+descent recover exact optima of small row QUBOs of the paper's form; headline numbers need GPU + vLLM
35/35 tests pass. All three configs list successfully (24, 16 and 8 experiments). SA, greedy SA and SB + float64 single-flip descent all hit the exact optimum in 12/12 rows, and SA's returned energies match recomputation. These PSD-derived instances are easy, since greedy also solves them. The main repair and benchmark pipeline (vLLM generation, activation statistics, evaluation) needs a CUDA GPU and the unreleased activation statistics, so the Table 3/4 SA/SB numbers could not be regenerated here. The agent-edit footprint was reproduced from public checkpoints instead (check 04).
Installed pytest/pyyaml/safetensors into a venv with CPU torch; ran pytest and python -m TreeIsing --config <cfg> --list for all three configs; ran solver.sa (R=16, 300 sweeps, plus greedy) and solver.sb_rows on 12 random K=16 row QUBOs built with the paper's coefficients and compared them with brute force over 65,536 states
Table 3 accuracies, cut rates and paired-comparison footnote are internally consistent (GSM8K 155 vs 90, MATH-500@4 +2.9+-1.0 z=2.94 with 108/73, SB +3.4+-1.0 z=3.47 with 113/65, AMC23 +0.6/+3.0, Minerva +1.9/+1.5, SB-vs-SA +0.45 and 115 vs 111)
All 36 accuracy/cut cells are attainable fractions. @1 settings have unique counts that match the footnote exactly (e.g. GSM8K agent 865, SA 930, SB 934: 930-865=65=155-90, 934-865=69=156-87, 934-930=4=115-111; MATH-500@1 256/270/272 -> 14=57-43, 16=52-36; OlympiadBench 144/164/162 -> 20=55-35, 18=55-37). MATH-500@4 joint counts are unique: agent 1034, SA 1092, SB 1101 (of 2000); SA-agent 2.90 pts, SB-agent 3.35 pts (reported 3.4), SB-SA 0.45. Reported SE/z pairs are attainable: SA z=2.94 needs sum of squared quarter-differences 396 (feasible with 108 better/73 worse); SB z=3.467-3.474 feasible. AMC23 and Minerva SE values are attainable. Side observation: the AMC23 SB-vs-agent difference (+3.0+-1.5, 16 better/7 worse) implies z2.0, p0.043-0.05 for every feasible pattern, i.e. nominally significant like OlympiadBench SA (p=0.045), whereas the text lists only OlympiadBench SA as nominally significant.
GRIM over n_problems x k completions (MATH-500 500, GSM8K 1319, AMC23 40x16, Minerva 272x4, OlympiadBench 674); exclusive-count differences vs correct-count differences; exact DP over per-problem difference patterns with the reported better/worse counts to test whether the reported SE and z are attainable under the code paired_test formula
All 10 reported p-values reproduce to their displayed precision (e.g. GSM8K SA 3.94e-5 vs 4e-5; OlympiadBench SA 0.0446 vs 0.045; SB-vs-SA GSM8K 0.842 vs 0.84). Exactly SA/SB MATH-500@4 and SA/SB GSM8K pass p<0.00417. Two comparisons are nominally significant without surviving correction: OlympiadBench SA (p=0.045, stated) and AMC23 SB (+3.0+-1.5, z2.0, p0.046; not stated in the text, which calls the remaining differences noise).
Normal two-sided p = erfc(|z|/sqrt2) and exact two-sided binomial McNemar p exactly as in TreeIsing/evaluation.py::mcnemar_p; Bonferroni over the 12 agent comparisons
Held-out 400 MATH-500 problems: SA 53.8% vs agent 50.8%, +2.9+-1.1, z=2.62, p0.009 (87/58); SB 53.6%, +2.8+-1.1, p0.007 (85/52); cut 31.2% -> 24.0%; SB-over-SA lead on the full set comes entirely from the 100 development problems
Unique held-out counts: agent 813, SA 860, SB 858 of 1600 (50.81/53.75/53.63%), giving SA-agent +2.94 and SB-agent +2.81 as in the config. SA: SE 1.121, z=2.621, p=0.0088 attainable with 87/58 (matches exactly). SB: the pair (SE rounds to 1.1, p rounds to 0.007) is not strictly attainable; SE=1.053 gives p=0.0076, and p<=0.0074 requires SE<=1.049 (displayed 1.0); a rounding-level inconsistency only (tolerance |dp|<=0.001 accepted). Dev-100 counts by subtraction: agent 221, SA 232, SB 243 of 400; SB-SA is +9 completions overall, -2 on held-out, +11 on dev, confirming that SB lead comes entirely from the dev problems; SA-agent is +2.90 overall vs +2.94 held-out.
GRIM over 1600 completions; joint solution with full-set counts from check 01; exact DP over per-problem difference patterns with the stated better/worse counts to test attainability of SE/z/p under the code paired_test formula
Agent edit footprint (Table 4 agent row: 130,188 changed weights, 621,388 BF16 bit flips, 720,586 state-tree bit flips, 19,299 sign flips, 146,981 state changes, 1,261 shared exponents, 129,668 mantissa changes) and 64 rewritten columns per matrix
Every column matches exactly: changed 130188, BF16 bits 621388, tree bits 720586, sign 19299, state 146981 (unclamped D; 146973 with D clamped at 15), shared exponents 1261, mantissa 129668. Exactly 64 columns changed in each matrix (99.6% / 99.1% of entries within those columns). Caveat found: the Table 4 caption says neither edit alters escape membership, but the agent edit moves 44 weights across the escape boundary (25 in layer 15, 19 in layer 19), because it changes 1,261 group maxima.
HTTP range-downloaded layer-15/19 down_proj tensors from the pinned base (2fc0636) and agent (d1671a1) checkpoints; reimplemented edit_footprint (TreeIsing/evaluation.py) in numpy
Admissible tree-local moves are exact in BF16, never change a shared exponent or mantissa, change only the sign bit and 4-bit state, never create an escape; worked example 0.125 (E=127, D=3) x2 -> D=2, one bit; and the released admissibility mask enforces the rules
Worked example reproduces (exponent 124, D=3 -> D=2, 1 state bit). 0 violations over all paper-admissible single moves (e.g. 3,392,471 admissible x2 moves in layer 15); joint edits changing ~2.8M weights per layer produce 0 shared-exponent, 0 mantissa, 0 escape-membership changes. No zeros or subnormals exist in these matrices. Code-vs-paper gap: the solver.py mask uses gap=E-e without excluding escaped weights (D>=15), so growth moves (x2, x4, -2, -4) are admitted for all 400 (layer 15) and 338 (layer 19) escaped weights, and 193-284 of them per factor would leave the escape list; the paper-level guarantee and Table 4 caption (no escape membership change) therefore hold only empirically for the released edit, not by construction in the code. Practically unlikely to matter (escaped weights are >=2^15 smaller than their group max, so their linear field is ~lambda>0), but not verifiable without the edited checkpoint.
On the real base layer-15/19 down_proj weights (7.34M weights), applied every factor singly and 5 random joint admissible edits per layer via the code float32 path W+(f-1)W then RNE rounding to BF16; recomputed sign/exponent/mantissa/group max/state/escape; replicated the code mask
The objective decomposes exactly into per-row QUBOs (Eq. 6, h_a and ordered-pair J_ab), the Ising form Eq. (7) holds with H_a = h_a/2 + sum_b J_ab/2, I_ab = J_ab/2, the App. B Qiskit Hamiltonian with offset E0 reproduces E_B on all 256 states, and the code energy matches
Max relative error 4.0e-16 (decomposition), Ising spread 1.6e-14 with constant equal to sum h/2 + sum J/4, App. B Hamiltonian max rel error 1.1e-14, code energy 1.4e-16 and code flip-delta 1.2e-14. The decomposition is exact as stated; note it is exact only conditional on the fixed candidate columns and preselected moves, which the paper says explicitly.
Random float64 instance (6 rows, 40 columns, 10 candidates, preselected factors from the 8 moves, C_P from 500 samples): compared full objective with row-QUBO sum over 200 random edits; enumerated all 1024 / 256 states for Ising and Pauli-Z forms; replicated the code lin, Qoff, SA energy and flip delta
Without sparsity and discrete moves, Eq. (5) has the closed-form minimiser Delta = -(gamma/2) u (C_P^{-1} mu_R)^T (rank one)
Numeric minimiser matches the closed form to 2.8e-9 relative (same objective value -71.6355266248), rank 1; all 2000 random equal-dose edits have collateral >= the closed form (it is the minimum-collateral edit at its dose); the code cont_opt shape with ridge 1e-3 mean diag has cosine 0.99999999 with the exact form on this instance.
L-BFGS minimisation of gamma u^T D mu + sum_r D_r C D_r^T on a random SPD C (non-unit u) vs the closed form; 2000 random equal-dose edits; cosine with the code ridge-regularised shape
Qwen3.5-2B transfer arithmetic (Table 6, Sec. 5): 669/38/247 -> 69.4% vs 21.6% (+47.8), 687/25/260 -> 71.8% (+50.2), strong vs recipe 171/140 p=0.09, McNemar p<1e-100, 38/285 lost (13%), outside-probe 571/34/208 -> 69.6% vs 21.6%, 1,028 cut (77.9%), completed-answer accuracy 97.9% -> 94.7%, patch 1.2% of weights, 1.7x tree bits
All 23 quantities reproduce: base 285/1319=21.61%, recipe 916=69.45%, stronger 947=71.80%, gains 47.84/50.19, strong-recipe 31=171-140 with McNemar p=0.0888, recipe/strong vs base p=4.2e-150 / 8.3e-169, 38/285=13.3%, outside probe 779/1119=69.62% vs 242/1119=21.63%, base completed accuracy 285/291=97.94%, recipe 916/967=94.73% (352 cut = 26.7%), 292,845/25.17M=1.16%, tree-bit ratio 1.665, practice 65/384=16.9% correct and 319 cut. Minor: the implied base accuracy on the 200-problem probe region is 43/200=21.5%, while the config comment for the probe run says 21.0% (42); probably a separate generation run, not stated in the paper.
Recomputed accuracies, gains, ratios and exact two-sided McNemar p (mpmath, same formula as evaluation.py) from the paired counts; GRIM for cut rates and practice rates
Dose table: targets 1.6x agent dose (-2.183, -3.056) = 6.7x/6.1x own write; achieved/own 6.8, 6.2 (SA), 6.7, 6.2 (SB), 6.6, 6.6 (2B); overshoot 0.3-2.3% (SB 0.3 and 0.9%); per-layer counts sum to 112,630 / 108,327 / 292,845 within budget; Sec. 4.2: SB lands marginally closer to the target doses
All table arithmetic is consistent (e.g. 1.6 x [1.3635,1.3645] -> [2.1816,2.1832] contains 2.183; 2B layer 15 achieved/own lies in [6.6478,6.6497] and rounds to 6.6 only because own must equal 6.730/6.5=1.0354; overshoots 1.92/0.62/0.27/0.88/2.29/1.03%; 51,754+60,876=112,630, 48,860+59,467=108,327, 111,211+181,634=292,845; SB 3.8% fewer weights than SA, stated as 4%). Minor discrepancy in the text: Sec. 4.2 says SB lands closer to the target doses, but in layer 19 annealing is closer (|-3.075+3.056|=0.019 vs SB |-3.083+3.056|=0.027); SB is closer only in layer 15 and in summed gap (0.033 vs 0.061).
Interval arithmetic over the rounding intervals of every displayed value; sums; distance-to-target comparison