Carefully engineered and unusually reproducible: every released cost and accuracy figure re-executes exactly. But the abstract's '33.3% cheaper at the same accuracy' comes from a recombined API run registered after the same design failed on RESERVED, and the Claude Code cascade loses accuracy on the post-cutoff set (0 wins, 7 losses). The tests that call these losses 'not significant' are too weak to show equivalence.
Soundness
2/4
Presentation
3/4
Contribution
3/4
Confidence
4/5
✓ 15 confirmed✕ 2 discrepancy◐ 1 inconclusive
Summary
The paper presents LuthorSQL, a 7B text-to-SQL model (OmniSQL-7B with LoRA adapters). It does not decode SQL token by token. Instead it scores the slots of a bounded query-plan grammar in one forward pass. Filter literals point into a set of candidate database values, and joins are derived as a Steiner tree over the foreign-key graph. A lazy k-best search lists up to 32 plans, which are compiled and executed, and a second adapter (VALHARD) picks one of the candidates that run. On its own the system reaches 68.03% EX on BIRD's hidden test set, 59.39% on dev, and 0.84 s per question. Translated through sqlglot, it runs on five other SQL engines.
The main application is a cascade. The model answers a question locally when the validator's score margin between its top two result groups is at least 3.0; otherwise it hands the question, with its candidates, to a Claude Opus 5.5 agent. In pre-registered experiments on held-out BIRD-train databases, two external sets and 227 post-cutoff questions, the paper reports agent-cost savings of 16–34% (Claude Code harness) and 33.3% (plain API, fresh set) with no significant accuracy loss. A third contribution is a set of contamination probes. Opus reproduces 48–92% of public gold queries verbatim without the schema, yet its accuracy with tools holds on renamed schemas and on the post-cutoff set.
The release is unusually complete: per-question answers, usage logs, System 1 outputs, registration files and split hashes. This made it possible to re-execute almost every headline accuracy and cost figure for this review.
Strengths
A clean, well-motivated one-pass design
Sec. 3.2–3.6, Fig. 1, Table 16
The closed plan grammar makes hallucinated literals impossible by construction, because filter values are pointers into L(q,D). FK Steiner-tree joins remove a common error source. Factorised slot scores (score(p)=∑log) allow a lazy k-best search from a single forward pass. The validator reads only schema, question, evidence and SQL. The paper states the cost of this design: grammar coverage is 1,297/1,534 = 84.6% of BIRD dev, and 670/796 = 84.2% of DECISION (both recomputed in check 08).
Weaknesses
The abstract's '33.3% at the same accuracy' rests on a post-hoc, recombined API experiment
major · Abstract; Sec. 1; Sec. 6.3; App. G.5; Table 15
The figure reproduces exactly: 0.01087 → 0.00725 $/q, 95.15 vs 95.59, p = 1.0 (check 01). Its provenance is weaker than the abstract suggests, for four reasons. (i) On RESERVED, the registered plain-API cascade, which passes candidates, cost 18.3% more than Opus alone [2.3, 31.3] and was 2.3 points less accurate. The question-only variant, computed afterwards on RESERVED, saved 35.3% but lost 2.01 points, exact sign-flip p = 0.031 (6 of 8 DBs negative, none positive; check 03). So the only test of this design on BIRD data shows a significant accuracy loss. The fresh-set registration was made after that result (Table 15: 13:15 vs 12:44). (ii) The fresh-set cascade is not a separate run. It recombines one Opus-alone run with System 1 picks. In 5 of 8 databases the question that paid the schema cache write is kept locally, and charging that write to the cascade lowers the saving to 29.84%. (iii) The pre-written threshold rule picks t = 5.0, not 3.0, at the plain-API per-call price (check 09). (iv) 'Nearly half' answered locally is 44.9% on this set (check 06). Fix: run the question-only cascade live on fresh data with t chosen by the rule at API prices, and state in the abstract that the result is significantly negative on RESERVED.
'No significant loss' is a non-rejection by tests too weak to detect the losses that matter
major · Table 2; Sec. 6.3–6.4; Sec. 7; Sec. 5 (test design)
With 8 database clusters the smallest attainable p is 2/2^8. On the fresh set only 5 clusters are non-zero, so p = 0.0625 is the smallest possible value. On that set the Claude Code cascade never beats Opus: 0 wins, 7 losses, exact McNemar p = 0.0156, and 5 of 8 DBs are negative with none positive. The CI is [−6.02, 0.00], far below the −2.5 non-inferiority margin registered for RESERVED (checks 04, 15). Four of the 7 losses are on questions System 1 keeps and 3 are on routed questions, so the handoff also costs accuracy. CI endpoints of exactly 0.0 (fresh; RES run 1 C−B0 [0.00, 3.00]) are an artefact of inverting the sign-flip test when most clusters are zero. The renamed-schema 'accuracy holds' has a CI of [−7.14, +6.02] (check 11). The conclusion's 'with no significant loss' and the abstract's 'holds' should be restated as non-inferiority results with explicit margins, adding question-level McNemar tests and power statements.
Most Claude Code savings are measured against the harness overhead, not against Opus itself
· Abstract; Sec. 1 (p.1); Fig. 2; Sec. 7; App. G.5
Questions for the authors
Can you run the question-only plain-API cascade as a live, separate run on the fresh set, with the schema cache-write cost charged to whichever arm pays it? Would the saving remain near 33% (the reallocation in our check gives 29.8%)?
Given that the threshold rule picks t = 5.0 at plain-API prices, what are the plain-API savings and accuracy at the threshold the rule would actually select?
On the fresh set the Claude Code cascade has 0 wins and 7 losses (McNemar p = 0.016). What smallest accuracy loss could your 8-cluster design detect with 80% power, and would you still describe the result as 'the same accuracy'?
When were the RES run 1 and RES runs 2–3 registrations written relative to their results, and is there any timestamp outside your repository (e.g. a push to a remote, an email) that fixes it?
Do you have any hypothesis for the +19.17-point moderate-difficulty test–dev gap, e.g. overlap between the hidden-test databases and the training sources (Spider, SynSQL)?
Which System 1 snapshot generated the A1 and cascade columns of Table 12, and can the frozen pool and candidate chunks be released so the table can be rebuilt?
Which model produced the majority-'wrong' verdicts that removed 13 fresh-set items, and will you release those items?
Verification
18 checks were run, all with scripts under work/verify/: 15 confirmed, 2 discrepancies (both minor slips in Appendix F) and 1 inconclusive. Using the released answer files and databases downloaded from the official sources and Hugging Face, every arm of the RESERVED, fresh-set and plain-API experiments was re-executed. Accuracy, costs, savings, bootstrap intervals and sign-flip tests reproduce exactly. External-set aggregates, Table 1/5/9–13 arithmetic, split hashes, the threshold rule and the memorisation probes are also consistent, and the statistics code matches an independent implementation. The re-analysis is less favourable than the framing. The question-only API design shows a significant loss on RESERVED (p = 0.031). The fresh-set Claude Code cascade loses 7 and wins 0 against Opus (McNemar p = 0.016). The headline 33.3% saving drops to 29.8% when cache writes are charged to the cascade. Not rerun: System 1 inference itself (no GPU or weights here), the hidden-test score, dialect runs, and the A1/cascade columns of Table 12, which depend on unreleased intermediate files.
15Confirmed
2Discrepancy
1Inconclusive
✓ConfirmedAbstract; Sec. 1; Sec. 6.3; App. G.5; experiments/plain_api/result_fresh_q.json
✕DiscrepancyFig. 3 (inputs/source/figures/fig_bands.tex:8-18); App. F text (app_results.tex:185); experiments/sonnet_crosscheck/result.json models.sonnet.bands
Bibliography entries for arXiv preprints give no venue, URL or arXiv identifier (entry text ends in '. .'); each title does resolve on arXiv via tools/check_refs.py (work/refs_checked.json), so the works exist, but the reference list alone does not identify them. Cosmetic, not a support problem.
birdsql2025dev
Dataset entry ('BIRD Team. 2025. BIRD-SQL Dev Set, 2025-11-06 Revision. .') gives no URL or host; the release exists (Hugging Face birdsql/bird_sql_dev_20251106), but the citation does not say where. Cosmetic.
Suggestions
Rewrite the abstract's cascade sentence to report both plain-API outcomes: 33.3% saving on the fresh set, and a 2.0-point significant loss for the same design on RESERVED. Also report the local share as 44.9%.
Make the plain-API Opus agent the primary cost baseline in Fig. 2 and the conclusion, and present Claude Code savings as harness-specific.
State non-inferiority margins and add question-level McNemar tests next to the 8-cluster sign-flip tests. Avoid reporting CI endpoints of exactly 0.0 that come from the test's discreteness.
Run the fresh-set plain-API cascade live instead of recombining it, and choose t with the pre-written rule at the actual per-call price.
Add more held-out databases (or clusters) so that a ±2.5-point non-inferiority claim has meaningful power.
Release the frozen System 1 pool and A1 candidate chunks used for Table 12, the per-question dialect candidates, and the 13 removed fresh-set items.
Fix the Appendix F slips (330 vs 400, 'tokens' vs tool calls, '12–15 on dev') and unify the GPU price constants.
Register future confirmatory experiments with an external, timestamped registry.
Ethics and integrity
The VALHARD training data includes BIRD-Platinum labels that carry no license. The paper acknowledges this ('research use only'), but the released adapters are trained on it, so redistribution terms should be clarified. The authors disclose that an AI assistant wrote much of the code and helped prepare the manuscript. No prompt-injection or reviewer-directed text was found in the paper, source or repository. Nothing indicates fabrication: every released number we could re-execute reproduced exactly.
Scope of this review
System 1 itself could not be rerun: it needs a GPU with ≥48 GB (or the HF weights for the 8-bit path), and this environment has no GPU, so latency (0.84 s), the 8-bit claim and the candidate generation are unverified. The BIRD hidden-test score is externally reported and only its arithmetic was checked. The 27 KaggleDBQA/Spider-Realistic databases were not downloaded, so external-set accuracies were checked as aggregates, not re-executed. Dialect engines, Opus's DECISION answers, agent transcripts, the 400-question handoff sample and the 13 removed fresh-set items are not released. Opus itself was not queried.
Externally scored hidden-test result that is internally consistent
Table 1, Sec. 6.2, App. C (Table 5)
The BIRD team scored both variants on the hidden test. Every per-difficulty figure is integer-consistent: 733+360+124 = 1,217/1,789 = 68.03, and the single adapter gets 1,220/1,789 = 68.19. The single adapter ties the published Arctic-ExCoT-32B score of 68.19 exactly (check 07). The paper reports the unexplained +8.64 test–dev gap openly instead of hiding it.
Exceptionally reproducible cascade experiments
Sec. 6.3, Table 2, Fig. 2, App. G; repo experiments/
From the released answer files and usage logs, re-execution against gold on the downloaded databases reproduced every arm of all three RESERVED Claude Code runs, the fresh-set run and the plain-API runs exactly (e.g. fresh B0 221/227 = 97.36, C 214/227 = 94.27; API Q 216/227 = 95.15). All 11 Fig. 2 savings and their bootstrap intervals reproduce to 0.01 points. Logged dollars equal tokens × list price within 4×10−7 (checks 01–04, 15, 16). Few cost-saving papers can be audited this deeply.
Sound statistical machinery and honest reporting of failures
Sec. 5, App. B (Table 4), App. E, Table 13, Limitations
The paper uses exact database-clustered sign-flip tests with inverted CIs, McNemar counts, and registered bars for cost, time and accuracy. The released stats.py matched an independent implementation on 200 random designs with 0 mismatches, and its unit tests pass (check 17). The paper reports that RESERVED run 1 failed all three registered bars, that the registered dev threshold failed non-inferiority (−3.78 points), that VALHARD missed its bar (p = 0.19), and a long table of failed attempts (Table 4).
Useful contamination probes of the LLM baseline
Sec. 6.4, Table 8, App. G.2
The schema-free probes, the guided-vs-general ROUGE-L test and the renamed-schema rerun all reproduced (check 11: RESERVED no-schema EX 276/348 = 79.31; renamed 129/177 = 72.88 vs 128/177 = 72.32). This shows directly why public-benchmark accuracy of frontier agents is suspect, and it motivates the post-cutoff set.
Clean split hygiene with verifiable hashes
Sec. 5, App. I, inputs/source/anc/
The DECISION and RESERVED id hashes, the fresh-set item hash, and the per-database counts against the official train.json all verify. The two splits are disjoint and together cover all 1,144 questions of the 8 held-out databases (check 10).
major
The '70,000ayear′motivationiscorrectarithmeticfortheClaudeCodeharness(0.02/q → 73,000).Thepaper′sownplain0.00958/q on RESERVED (34,955/yr)∗∗.Thatis36.90.01517/q), and it is more accurate (86.49% vs 80.46%) (check 05). The 16–34% savings range in the conclusion is therefore largely a saving on per-session harness overhead. Its upper end (34.3%) is measured against Opus with candidates (B1), which costs more than Opus alone; against Opus alone the range is 16.2–32.9% (check 02). The Limitations section mentions the fixed per-session cost, but the abstract, introduction and Fig. 2 do not. Fix: make the plain-API agent the primary baseline throughout, and qualify the motivating cost figure.
Pre-registration provides weaker guarantees than the framing implies
major · Sec. 6.3; App. G.6; Table 15
The registrations are private files hashed in the authors' own repository, not entries in an external registry. Hashes show that files did not change after hashing, not when they were written (check 10). The RES run 1 registration was first committed together with its result (Table 15: both 21:45), and runs 2–3 were registered after run 1's result. The external-cascade PREREG hash matches no prefix of the released file (disclosed). RES run 1 failed all three registered bars (cost 29.9% vs 30%, time 12.3% vs 25%, accuracy LB −2.60 vs −2.50), yet the narrative presents the pooled runs as confirming. Fix: describe this as 'internally registered', report run 1 as the confirmatory result and runs 2–3 as replications, and use an external timestamping service (OSF or similar) for future work.
System 1 trails its own backbone, and the test–dev gap is unexplained
minor · Sec. 6.1, Table 7; Sec. 6.2, Table 1; Sec. 5
In the authors' harness, System 1 (59.39% dev) is below OmniSQL-7B decoded autoregressively (62.6%). Its main advantage is therefore speed and controllability, not accuracy. The hidden-test score is 8.64 points above dev, and 19.17 points above on moderate questions (check 07). The paper says it cannot explain this, which leaves the headline 68.03% hard to interpret. The DECISION/RESERVED databases are also in OmniSQL's fine-tuning data. A latency-matched comparison with the backbone (e.g. greedy decoding at batch size 1) and an analysis of the dev/test difficulty mix would clarify the contribution.
Cross-agent Table 12 cannot be rebuilt from released artifacts
minor · App. F, Table 12; experiments/ollama_crosscheck/score.py
Opus-free A0 accuracies re-execute to within one floating-point tie. The A1 and cascade columns do not: e.g. Sonnet 73.49/73.12 re-executed vs 74.50/74.37 reported. System 1 from the released s1_decision.jsonl scores 492/796 = 61.81 with 50.50% routed, vs 58.92 and 54.65% in the result files. The scorer reads an unreleased frozen pool and unreleased candidate chunks (check 12, inconclusive). Releasing those files, or explaining which System 1 snapshot was used, would resolve this.
Count and wording slips in Appendix F
minor · App. F (app_results.tex:116, :185), Table 10, Fig. 3
(1) 'Of the 330 questions with candidates it took one on 279 … and wrote its own query on the other 121': 279 + 121 = 400, not 330. The counts fit the whole 400-question sample (≈243 + 69 = 312/400 = 78.00, matching Table 10). (2) '18% fewer logged tokens' is the tool-call row of Table 10 (207 → 169). Logged tokens fall about 6.6%, and cache writes rise 21.7% (check 08). (3) The text says that above margin 2.5 Opus adds '12–15 on dev', but only 2 of the 5 dev bands are in that range; the other three are +2.2 to +2.8 (check 18). The Fig. 3 caption is correct.
The dialect-transfer comparison uses a different baseline than the headline dev score
minor · Abstract; Sec. 6.1; Table 9
All 24 Table 9 cells match the released files, and the largest gap is 60.17 − 57.11 = 3.06 (check 13). However, the 60.17 SQLite reference uses normalised-row scoring on the updated dev files (923/1,534), not the strict-EX 59.39 (911/1,534). Also, 4–24% of translated candidates fail to run on the other engines, so part of the gap is a translation failure, not reduced model accuracy. The per-question dialect runs are not released.
Fresh-set construction and filtering depend on LLMs whose identity is partly unrecorded
minor · App. G.3; Sec. 6.4; Limitations
Claude subagents built the post-cutoff set, DeepSeek wrote the questions, and GLM judged them. The 13 items removed by majority-'wrong' verdicts came from agents whose model is 'not recorded; possibly Claude', i.e. possibly the same family as the System 2 under test. The removal rule itself reproduces exactly, but the 13 removed items are not in the HF release (check 15), so they cannot be re-judged. Opus alone is right on all 102 questions System 1 keeps, which suggests the set may be easy for Opus. Releasing the removed items and hand-checking more than 20 items would help.
Inconsistent constants in the GPU cost pipeline
minor · Sec. 6.1; Table 6; App. E; experiments/cost_confirmation/local_s1.py
The 0.64per1,000questionscomesfrombatchedthroughput(2.50/h ÷ 1.09 q/s). Placed next to the 0.84 s single-stream latency, it can be misread. The scorers price the H100 at 2.73/h,App.Esays2.50/h, and the RESERVED per-question price uses a $3.30/h instance (check 14). The effect on savings is negligible (System 1 is about 5% of cascade cost), but the constants should be unified and documented.
DECISION (796) and RESERVED (348) split the 8 held-out BIRD-train databases (~30% reserved per DB); ancillary files give SHA-256 of sorted ids joined by newlines; the fresh set has 227 items with a published hash; every registration hash equals its file opening section except the external test
Both id hashes match the stored values; anc copies are identical to splits/; per-DB counts match train.json; overlap 0; the two splits together use all 1,144 train questions of the 8 DBs, with 29.7-32.6% reserved per DB (30.4% overall). items.jsonl hashes to items.sha256 and its 227 items (8 DBs) equal the HF dataset rows. Registration hashes: every PREREG.md stored hash equals a leading section of the file (e.g. cost_confirmation lines 1-219 of 277, fresh_unseen 1-45 of 124) except experiments/external_cascade/PREREG.md, which matches no prefix, as the paper itself discloses. Two hash files point to files not in the repo (verify_bundle.zip under a local /private/tmp path, mini_dev_sqlite.json). Hashes show the files were not changed after hashing, not when they were written; the registration timing rests on the commit history.
Recomputed SHA-256 of the sorted, newline-joined ids; checked n, uniqueness, disjointness, per-DB counts against the official BIRD train.json db_id, coverage of the 8 databases; hashed splits/fresh_unseen/items.jsonl; compared items with the HF dataset questions.jsonl; for every PREREG.sha256 searched for a line-prefix of the file whose hash equals the stored one.
Opus reproduces 48-92% of public benchmark gold queries verbatim without the schema (Table 8; EX without schema 79-95%); guided-minus-general ROUGE-L +0.11 to +0.53 (p < 0.001); on renamed schemas the routed agent scores 72.88% vs 72.32% (p = 1.0), so tool-assisted accuracy holds
RESERVED no-schema EX 276/348 = 79.31 (exact). Verbatim 168/348 = 48.3% reproduces only when all whitespace, double quotes, backticks and semicolons are removed and case is folded; collapsing whitespace instead gives 155 (44.5%), so the verbatim rate is normalization-sensitive by about 4 points. Mini-Dev 292/500 = 58.4%. P2 matches exactly for all four sets (ROUGE-L 0.6704/0.5576, 0.7978/0.2948, 0.8950/0.3635, 0.9653/0.5675; exact 22/16, 66/4, 77/8, 91/25; diffs +0.11 to +0.53, sign-flip p about 1e-5). Renamed: 177 items equal the 177 routed RESERVED questions; renamed 129/177 = 72.88 vs run 1 128/177 = 72.32; per-DB diffs +1/0/+3/+1/-1/-1/-3/+1, p = 1.0, CI [-7.14, +6.02]; 9 vs 8 discordant. The CI is 13.2 points wide, so the renamed test shows no detectable drop but cannot rule out a drop of up to about 7 points; holds is a non-rejection, not equivalence. The not-recomputed Spider/Kaggle values (94.69/79.46 EX, 92.3%/53.0% verbatim) match the PREREG run record but rest on unreleased gold.
Re-executed the released schema-free P1 SQL for RESERVED on the BIRD-train databases and measured verbatim gold reproduction under several normalizations; recomputed P2 ROUGE-L, exact matches and a paired sign-flip for all four sets from the truth files and answers with my own LCS; rebuilt the 8 renamed databases from build/mapping.json, executed the renamed-arm answers against the rewritten gold, re-scored run 1 routed answers on the original DBs, and ran an exact 2^8 sign-flip with CI inversion. Spider-Realistic/KaggleDBQA P1 gold and databases are not in the repo, so those EX/verbatim values were not recomputed.
Table 12: across six agents, showing System 1's candidates and cascading at t=3.0 change accuracy as reported (Sonnet 71.11/74.50/74.37, Haiku 68.34/72.61/72.61, GLM 5.3 66.21/70.48/70.60, GLM 5.3 Flash 65.95/68.47/68.84, DeepSeek V4.1 Flash 65.95/69.22/70.23); gains +2.51 to +4.27, significant only for Haiku; only DeepSeek's +1.01 cascade change significant
Table 12 matches the released result files exactly for all five models (A0, A1, t=3.0 EX; System 1 58.92; share 0.5465), and the file p-values support the text (A1 vs A0 p: Haiku 0.03125, others 0.0625-0.297; cascade change significant only for DeepSeek, p = 0.03125). Gains from the file values span +2.52 (GLM 5.3 Flash; +2.51 from integer counts 20/796) to +4.27. Independent re-execution reproduces A0 to within one question: the only difference is bird_train_train_7780, where the four agents return 0.5609756097560976 and the gold 0.5609756097560974 (floating-point summation order); counting it as correct gives exactly 71.11 / 68.34 / 66.21 / 65.95 / 65.95. A1 and cascade numbers do not reproduce (e.g. Sonnet 73.49 / 73.12 vs 74.50 / 74.37; DeepSeek 68.22 / 69.72 vs 69.22 / 70.23), and System 1 from the released s1_decision.jsonl scores 492/796 = 61.81 with 402 questions routed (50.50%) vs 58.92 and 54.65% in the files. The scorer (ollama_crosscheck/score.py) takes System 1 correctness and margin from the unreleased frozen pool (scripts/analysis/cascade_threshold.py load(), runs/phase1/...) and A1 candidates from unreleased chunk files, so the A1/cascade columns cannot be rebuilt from released artifacts. Opus's DECISION answers are not released (Opus row checked against the file only: 78.89 / 78.39 / -0.50 match).
Re-executed every released A0/A1 answer of the five non-Opus agents and the gold on the 8 BIRD-train DBs (strict frozenset EX, 30 s, read-only), resolved A1 picks through the released DECISION candidate lists (cost_confirmation/artifacts/s1_decision.jsonl), cascade at t=3.0 using that file's System 1 SQL and margin, own exact 2^8 DB sign-flip; float-tolerant variant (10 significant digits); compared Table 12 and text with the released result files
System 1 transfers zero-shot to Snowflake/BigQuery/MySQL/PostgreSQL/DuckDB at 57.1-59.3% vs 60.17% on SQLite, 'within 3.1 points' (Table 9); share of candidates that run MySQL 96, Snowflake 83, PostgreSQL 83, DuckDB 80, BigQuery 76%; Mini-Dev official 50.4/49.2/48.8 (48.4)
All 24 Table 9 cells equal the files. Every row is integer-consistent: for example SQLite 923 = 649+217+57 and BigQuery 876 = 621+200+55. Non-SQLite EX spans 57.11-59.32 (claimed 57.1-59.3). The largest gap is 60.17-57.11 = 3.06 for BigQuery (claimed within 3.1). Run shares are MySQL 96.0, Snowflake 83.3, PostgreSQL 82.7, DuckDB 79.8 and BigQuery 76.3% (caption 96/83/83/80/76). Mini-Dev values are 50.4/49.2/48.8 and 48.4 without type rules, all matching. Caveats: (i) all six columns use normalised-row scoring against the SQLite gold of BIRD's updated dev files, so the 60.17 SQLite baseline (923/1534) is not the strict-EX dev figure of 59.39 (911/1534, Table 13), and gold failed on 2 questions. (ii) 4-24% of translated candidates fail to run, so part of the gap is translation failures rather than model accuracy. (iii) This check confirms consistency with the released aggregates only; the per-question candidates are not released, so the dialect runs could not be redone.
Compared each Table 9 cell with the released result files; recovered integer counts for overall EX and each difficulty level (sizes 925/464/145 from the official dev.json) and checked that they add up; recomputed the range, the largest gap to SQLite and the run shares (candidates_ran/candidates). No re-execution was possible: the frozen dev candidate file and the engine instances are not released.
System 1 runs at p50 0.84 s/question (H100) and costs 0.64per1,000questionsonanH100at2.50/h (0.72onanA100at2.00/h); the RESERVED cascade analysis prices System 1 at $0.00085 per question including model load
The price arithmetic holds. H100: 2.50/h/1.09q/s=0.637 per 1,000 (claimed 0.64). A100: 2.00/h/0.77q/s=0.722 (claimed 0.72). These are the batched figures, as Table 6 labels them; single-stream at p50 0.84 s would cost 0.583per1,000.RESERVED/DECISIONrun:1,060s/1,144q=0.927s/qat3.30/h (Scaleway) = 0.000849/q(claimed0.00085).Externalrun:607/693=0.876s/qa2.73/h = 0.000664(claimed0.00066).Freshrun:313/227=1.379s/qat2.73/h = 0.001046(result.j2.73/h, but the RESERVED price is based on a $3.30/h instance. (ii) The quoted batched throughput (1.09 q/s) is below 1/p50 at batch size 1 (1.19 q/s), so batching gives no visible speed-up; this is not contradictory, since p50 is not the mean. (iii) Logged end-to-end rates including model load are 0.88-1.38 s/q. System 1 is about 5% of a cascade question's cost, so these choices barely move the savings. The 0.84 s latency itself is not independently verified.
Recomputed the dollar figures from the stated throughputs and hourly rates, and the per-question System 1 prices from the run logs quoted in the registrations; compared these with the constants in the scorers and result files. Latency itself was not re-measured: that needs an H100 and the adapters, and the 200-question timing log is not released.
Fresh post-cutoff set: 13 of 240 items with a majority of 'wrong' verdicts removed, leaving 227; Opus alone 97.36% (221/227), cascade 94.27% (214/227), System 1 63.88%; counting the removed items as misses gives 92.1% and 89.2%; Opus via API 95.6%
The removal rule reproduces exactly. There are 240 items (30 per DB) with 2-3 verdicts each and no ties. The 13 majority-'wrong' items equal removed_ids.json, and the remaining 227 equal items.jsonl. Re-executed results: System 1 145/227 = 63.88; B0 221/227 = 97.36; C 214/227 = 94.27. Counting the removed items as misses gives 221/240 = 92.08 (claimed 92.1) and 214/240 = 89.17 (claimed 89.2). The API figure is 217/227 = 95.59, re-executed in check 01. Opus alone is right on all 102 questions that System 1 keeps. The cascade's 7 losses split into 4 on kept questions (System 1 wrong where Opus is right) and 3 on routed questions (the agent with candidates is wrong where Opus alone is right), with 0 wins. The loss therefore does not all come from System 1. Not checkable: the 13 removed items (questions and gold SQL) are not in the HF release (0 of 13 present), so the verdicts themselves cannot be re-judged; the author's 20-item hand check is not reproducible.
Recomputed the majority-'wrong' removal rule from the 497 released verdicts. Re-executed System 1, Opus-alone (B0) and cascade (C) answers on the downloaded fresh databases (HF IAMIbrahim/luthorsql-fresh-unseen) with an independent read-only executor. Recomputed the rates with removed items counted as misses. Split the cascade's losses into those on questions kept by System 1 and those on questions routed to the agent.
External test (KaggleDBQA test 185 + Spider-Realistic 508 = 693 questions, 27 DBs): agent calls 51.9%; EX B0 88.31, B1 86.87, C 88.17, S1 70.27; C-B1 +1.30 [-2.0, 4.9]; C-B0 -0.14 [-3.4, 3.2]; savings vs B1 25.3% / 34.6% per set, 18.0% [3.6, 32.9] on the clean 130
The question sets are exactly the official ones: 185/185 KaggleDBQA test questions on 8 DBs and 508/508 Spider-Realistic questions on 19 DBs. Routed: 116 + 244 = 360/693 = 51.95%, with 9 + 20 having no margin. The per-set counts pool exactly: B0 141+471 = 612 -> 88.31; B1 148+454 -> 86.87; C 151+460 -> 88.17; S1 108+379 -> 70.27. Weighted costs 0.01799 / 0.02207 / 0.01508 equal the file. Savings vs B1: 31.67% pooled, 25.32% KaggleDBQA, 34.56% Spider-Realistic, 18.0% [3.61, 32.92] on the clean 130. C-B1: +1.30, exact p = 0.6035 over 11 non-zero clusters (file MC 0.6029), CI [-1.95, 4.90] (table [-2.0, 4.9]). C-B0: -0.14, p = 1.0, CI [-3.35, 3.15] (table [-3.4, 3.2]). Scope: this confirms the reported aggregates and tests given the per-DB results in the file. The EX values themselves were not re-executed. Context: on Spider-Realistic the cascade is below Opus alone (90.55 vs 92.72; 8 wins / 19 losses), and the pooled C-B0 hides opposite per-set signs.
Matched the released System 1 questions against the official KaggleDBQA test files (GitHub) and Spider-Realistic (Zenodo 5205322). Recomputed routing at t=3.0 from the released margins. Recovered integer counts per set and re-pooled EX, cost and savings. Computed an exact sign-flip p over the non-zero per-DB differences stored in result.json, plus a Monte-Carlo CI by inversion. The 27 evaluation databases (Google-Drive downloads, about 1 GB) and the per-question correctness labels are not released, so the answers were not re-executed.
The released statistics code behaves as described (exact database sign-flip over all 2^G patterns with an inverted CI, exact McNemar, bootstrap) and the unit tests pass
tests/test_stats.py passes 4/4: exact size under the null, interval inverts the test, identical systems, McNemar equals the binomial formula. Across the 27 CPU-only modules: 229 passed, 30 skipped, 12 failed and 1 collection error. All failures are environmental: 11 need the unreleased data/ directory (data/bench/dev_20240627/dev.json, data/sys1/*.json, data/sys1/bird_train/cards); test_teacher_pipeline::test_guards fails because held_out_dbs() reads those same missing files; test_valhard needs peft. No failure points to a logic error. Against the independent implementation there were 0 mismatches in p, delta or McNemar p, and 0 CI endpoints differing by more than one grid step, over 200 designs. The accepted set was contiguous in 200/200 designs, so the outward scan is safe there. Exact enumeration is used only for G <= 16; beyond that (e.g. the 27-cluster external test) it falls back to 200,000 Monte-Carlo patterns, which the result files show as patterns 200001. 17 GPU/torch test modules were not run.
Copied the repo to /tmp/repo17 and ran all 27 test modules that do not import torch/transformers with pytest 9.2.0 (plus sqlglot 30.21.0). Cross-checked cluster_signflip and question_signflip against an independent implementation written from the definitions, on 200 random designs (G = 3-9). Also checked whether the accepted set of the inverted test is ever non-contiguous; stats.py scans outward from the estimate and stops at the first rejection.
Fig. 3: above margin 2.5 the agent's gain over System 1 is 1.2-2.6 points per band on DECISION, but 12.5-15.4 in the dev bands 2.5-4.1 and 2.2-2.8 above them; App. F text: '1.2--2.6 points per band on DECISION and 12--15 on dev' above 2.5
The caption is correct. DECISION gains above 2.5 are +1.2, +1.3, +2.6, +1.2, +1.2 (1.2-2.6). Dev gains are +15.4 and +12.5 in the bands 2.5-3.5 and 3.5-4.1, and +2.2, +2.8, +2.8 above 4.1. DECISION band sizes 77-152 and the System 1 series equal the released band table. The DECISION Opus values give integer counts summing to 628/796 = 78.89, matching the always-agent figure. The App. F sentence (app_results.tex:185) is wrong: it says that above 2.5 Opus adds '12--15 on dev', but only 2 of the 5 dev bands above 2.5 are in that range; the other three are 2.2-2.8. So the text overstates the dev/DECISION contrast in the high-margin bands. This is a minor wording error, since the caption gives the correct breakdown. Dev values come from the figure only and could not be recomputed.
Parsed the four TikZ coordinate series and computed Opus+S1 minus S1 per band. Compared the DECISION System 1 series and band sizes with the released band table. Checked integer feasibility of the DECISION Opus values against the band sizes. Dev per-band data are not released.
Plain-API question-only cascade (t=3.0) cuts cost 33.3% vs Opus alone on the 227-question fresh set at 95.15% vs 95.59% EX (p = 1.0); 125 routed / 102 kept
Every number reproduces exactly: routed 125/kept 102; EX A0 217/227 = 95.59, S1 145/227 = 63.88, Q 216/227 = 95.15; cost/q 0.01087 vs 0.00725; saving 33.27% with CI [26.49, 39.12]; Q-A0 = -0.44 points, exact sign-flip p = 1.0 (2 wins / 3 losses). Logged dollars match tokens x list price within 4e-7. Caveats: (i) the cascade is a recombination of one Opus-alone run, not a separately run cascade; (ii) in 5 of 8 databases the question that wrote the schema prompt cache was kept locally, so its cache-write cost is not charged to the cascade; charging it lowers the saving to 29.84%; (iii) the local share is 44.9%, which the abstract calls nearly half.
Downloaded the released fresh databases (HF IAMIbrahim/luthorsql-fresh-unseen) and re-executed gold, A0 and System 1 SQL with an independent read-only sqlite executor; recomputed dollars from token usage at list prices; own routing, bootstrap and exact sign-flip; sensitivity moving the per-DB schema cache-write cost onto the cascade when the cache-writing question was kept
Claude Code cascade (t=3.0) cost savings: vs Opus alone 24.8/32.9/32.5% (RES runs), 30.1% pooled, 19.9% external, 23.9% fresh with System 1 free; vs Opus+candidates 30.94/35.50/32.65%; with rented GPU 20.9% (run 1 vs B0), 29.9% (run 1 vs B1), 34.3% (pooled vs B1), 31.7%/16.2% (external), 20.1% (fresh)
All 11 Fig. 2 points and their 95% intervals reproduce to 0.01 points (e.g. run 1 vs B0 24.80 [17.31, 33.21]; pooled vs B1 35.50 [29.29, 43.19]; external vs B0 19.85 [10.95, 28.51]; fresh vs B0 23.86 [15.78, 30.10]). GPU-inclusive: 20.85, 29.86, 34.26, 31.67, 16.16, 20.13 vs claimed 20.9, 29.9, 34.3, 31.7, 16.2, 20.1. Per-session logged dollars equal recomputed dollars within 4e-7. Framing note: the upper end of the conclusion range 16-34% (34.3%) is measured against Opus with candidates (B1), a baseline that costs more than Opus alone; against Opus alone the range is 16.2-32.9%. The external-set System 1 price per question is not stated in the result file and had to be inferred.
Rebuilt per-database costs from the released per-session usage.json logs at list prices with output = max(logged, chars/4 estimate); recomputed savings and the database bootstrap (10,000 resamples, seed 20261023); added System 1 GPU cost per question (0.000849RESERVED,0.001046 fresh, implied $0.000663 external) for the GPU-inclusive figures
RESERVED through the plain API: the registered cascade with candidates cost 18.3% [2.3, 31.3] more than Opus alone at 84.20% vs 86.49% (A1 86.21%); the question-only cascade, computed afterwards, saved 35.3% at 2.0 points lower accuracy (p = 0.03)
EX A0 301/348 = 86.49, A1 300/348 = 86.21, C 293/348 = 84.20, S1 220/348 = 63.22 (all as released). Registered C vs A0 saving -18.26% [-31.29, -2.25]. Question-only Q: 294/348 = 84.48, saving 35.29% [30.92, 42.30], Q-A0 = -2.01 points, exact sign-flip p = 0.0312 (6 of 8 databases negative, none positive), McNemar 2 wins / 9 losses p = 0.065. So the paper reports this correctly, but it means the only test of the question-only design on BIRD data shows a statistically significant accuracy loss; the 33.3% at the same accuracy headline comes from the follow-up fresh-set registration made after this result (Table 15: 13:15 vs 12:44).
Re-executed BIRD-train gold (official train.json) and A0, A1, C, S1 and question-only (Q) predictions on the 8 RESERVED databases with an independent read-only sqlite executor; recomputed cost from per-question dollars; own exact database sign-flip test and exact McNemar test
Claude Code cascade accuracy differences are not significant: RES run 1 C-B0 +1.15 (p 0.5), C-B1 +0.86 (p 0.69, CI lower -2.60); pooled C-B1 -0.29, C-B0 +0.96; fresh set C-B0 -3.08 [-6.0, 0.0], p = 0.0625 (not significant)
All EX values reproduce exactly: run 1 B0/B1/C 80.17/80.46/81.32, S1 63.22; runs 2-3 as released; pooled 79.50/80.75/80.46; fresh S1 145/227 = 63.88, B0 221/227 = 97.36, C 214/227 = 94.27; routed agent 116/125 = 92.80 vs B0 119/125 = 95.20. Tests reproduce: run 1 C-B1 +0.86 p 0.6875 CI [-2.60, 3.65]; fresh C-B0 -3.08 p 0.0625 CI [-6.02, 0.00]. Interpretation: on the fresh set the cascade never beats Opus (0 wins, 7 losses; exact McNemar p = 0.0156; 5 of 8 databases negative, none positive). p = 0.0625 = 2/2^5 is the smallest p attainable with 5 non-zero clusters, so not significant reflects the test s power limit rather than evidence of equivalence, and the lower bound -6.02 is far below the -2.5 non-inferiority margin registered for RESERVED. The CI endpoints at exactly 0.0 (run 1 C-B0 [0.00, 3.00] with p = 0.5; fresh [-6.02, 0.00]) are an artefact of inverting the sign-flip test when most clusters have zero difference: any shift of one sign makes every re-centred cluster total the same sign (p = 2/256), so these intervals should not be read as excluding the other sign.
Re-executed every arm of the three RESERVED Claude Code runs and the fresh-set run from the released answer files and System 1 picks against gold on the downloaded databases; own exact sign-flip test (2^8 patterns) and own CI inversion (grid 0.0001); exact McNemar on the fresh set
Motivation: an Opus 5.5 agent at about 2 cents per question costs about 200adayandover70,000 a year at 10,000 questions a day
The arithmetic holds for the Claude Code harness: 0.02 /q−>73,000/yr; DECISION ~0.019 -> 69,350;RESERVEDB0pooled0.02170−>79,220. But the paper s own plain-API Opus agent (App. G.5) costs 0.00958 /qonRESERVED(34,955/yr) and 0.01087 on the fresh set (39,679/yr),abouthalfthemotivatin/q) while scoring 86.49% vs 80.46%. The $70k figure, and the Claude Code savings in Fig. 2, are therefore tied to the per-session overhead of the Claude Code harness rather than to calling Opus as such; the paper notes this in its Limitations, but the abstract and introduction present it without that qualification.
Recomputed per-question cost from the released Claude Code usage logs and plain-API answer logs, annualised at 10,000 questions/day x 365
Routing at t=3.0 sends 50.9% (RESERVED), 51.9% (external) and 55.1% (fresh) of questions to the agent; LuthorSQL answers nearly half / roughly half of questions locally
Routed 177/348 = 50.86%, 360/693 = 51.95% (KaggleDBQA 116/185 = 62.70%, Spider-Realistic 244/508 = 48.03%), 125/227 = 55.07%. Local shares are 49.1%, 48.1% and 44.9%; across all 1,268 held-out questions 47.8% are answered locally. On the fresh set, which carries the abstract s headline, the local share is 44.9%, described as nearly half; on KaggleDBQA, the most realistic external set, only 37.3% stay local.
Counted margin None or < 3.0 in the released gold-free System 1 outputs (s1_reserved, s1_external, s1_fresh)
Table 1: BIRD hidden test 68.03% EX (77.24/64.86/43.51), dev 59.39% (911/1,534; 69.41/45.69/39.31), test-dev +8.64; single adapter 68.19% (77.03/65.77/43.51), dev 59.84% (918/1,534), matching Arctic-ExCoT-32B single-model score
Every number is integer-consistent and the parts add up: test 733+360+124 = 1,217/1,789 = 68.03; single adapter 731+365+124 = 1,220/1,789 = 68.19 (3 questions more); dev 642+212+57 = 911/1,534 = 59.39 with the official dev sizes 925/464/145 (the often-quoted 925/465/144 would make 45.69 and 39.31 infeasible, but the released dev.json has 464/145); 918/1,534 = 59.84; differences +7.83/+19.17/+4.20/+8.64 exact. Arctic-ExCoT-32B is listed at 68.19 BIRD test on its HF model card, so the single adapter ties it exactly; the two-adapter headline (68.03) is 0.16 below, and the 70B ExCoT reports 68.53. The 8.64-point test-over-dev gap (19.17 on moderate) is large and unexplained, as the paper itself says; the test score is externally reported and not reproducible here.
GRIM-style integer feasibility of every percentage over the stated test sizes 949/555/285 and the difficulty sizes counted from the official BIRD dev.json (dev_20240627, range-extracted from the official dev.zip); checked per-difficulty counts sum to the stated totals; recomputed test-dev differences. The test score itself cannot be rerun (hidden labels). Arctic-ExCoT values were read from the HF model card and arXiv 2503.19988 abstract (not computed).
App. F handoff: Of the 330 questions with candidates it took one on 279 (87% right) and wrote its own query on the other 121 (57% right); 18% fewer logged tokens; plus the GRIM consistency of Tables 5, 10-13, coverage 1,297/1,534 = 84.6%, 670/796 = 84.2%, 1,280 = 83.4%, 311/400 and 3.78 points
Two inconsistencies in the handoff paragraph. (1) 279 + 121 = 400, not 330: the counts are consistent with all 400 sample questions (87% of 279 is about 243, 57% of 121 is 69, total 312/400 = 78.00, matching Table 10), so 330 is wrong or the 279/121 split is. (2) 18% fewer logged tokens is not what Table 10 shows: the -18% row is tool calls (207 to 169); cache writes rise 21.7%, cache reads fall 8.5%, the logged tokens overall fall about 6.6%, and the caption says logged output-token counts were not lower. Also, $/q 0.019 to 0.020 is +5.3% on the shown values (paper ~+4%, within rounding of the unrounded values). Everything else is consistent: Table 5 counts 470 + wins - losses reproduce every EX and delta (464/466/456/462); Table 11 counts 628/619/622/624/623/625/627 give the stated changes; Table 12 counts reproduce every change and the +2.51 to +4.27 gain range; Table 13 gives 1296 - 1238 = 58/1534 = 3.78 (table rounding shows 3.79) and 25.10; coverage 84.55/84.17/83.44 round correctly; 311/400 = 77.75. The 228-of-311 overlap cannot be checked.
Integer feasibility of every reported percentage over its denominator; sums and differences recomputed from counts. The 400-question handoff sample is not released, so only arithmetic is checkable.
t = 3.0 was chosen by a pre-written rule: on the 0.25 grid 2.0 to 6.0, maximize V*EX - cost ($1 per right answer, agent call at list price) on all 796 DECISION questions; Table 11 gives the curve
The rule selects t = 3.0 (utility 0.76807 vs 0.76757 at 2.75, the runner-up), and Table 11 matches the file exactly (EX 77.76/78.14/78.39/78.27/78.52/78.77, shares, changes; always agent 78.89). EX counts for 2.25-4.5 span 621-625, i.e. within four questions as stated. Caveats: the rule charged 0.0278peragentcall(impliedbythecostcolumn),higherthanthemeasured0.019-0.020 per Claude Code call; 3.0 remains the argmax for per-call prices 0.0121-0.0488 and V 0.57-2.29, but at the plain-API Opus price (about $0.0096-0.0109 per question) the same rule would pick t = 5.0, so the 3.0 threshold used for the plain-API headline was not what the rule gives at that price. The choice is in-sample and hinges on one question (624 vs 623).
Recomputed the objective EX/100 - cost over the released 17-point curve and from integer counts; inferred the per-call price charged by the rule from cost = share*c + 0.00064; swept V and c to find where 3.0 stays the argmax; compared the curve with Table 11.