Text-to-SQL benchmark method
Frozen design and seal rules
Before generation, we fixed the database cohort, training and scoring recipe, and publishing rule. The cohort used Spider test databases outside train and dev, selected from schemas and checked for BIRD overlap. Ground’s generator could see test database schemas and sample rows, plus fixed style examples from Spider train.
The test questions and reference SQL stayed sealed until the final scorer read them once, after training. The seal required reporting every result, including a null. Publication required the lower bound of the strict Ground-minus-base interval to exceed zero.
Step 4 · Spider test benchmark
| Scorer | Arm | Seed 77 | Seed 78 | Seed 79 | Mean ± SD |
|---|---|---|---|---|---|
| Strict | base | 1130/ | — | — | 52.63% |
| Strict | ground | 1292/ | 1283/ | 1261/ | 59.56% ± 0.74 pp |
| Strict | spider-human | 1303/ | 1274/ | 1268/ | 59.70% ± 0.87 pp |
| Relaxed | base | 1314/ | — | — | 61.20% |
| Relaxed | ground | 1427/ | 1429/ | 1432/ | 66.57% ± 0.12 pp |
| Relaxed | spider-human | 1421/ | 1386/ | 1385/ | 65.08% ± 0.95 pp |
| Scorer | Paired comparison | Difference (pp) | 95% interval (pp) |
|---|---|---|---|
| Strict | ground minus base | +6.92 | [+4.98, +8.93] |
| Strict | ground minus spider-human | -0.14 | [-1.54, +1.27] |
| Relaxed | ground minus base | +5.37 | [+3.45, +7.36] |
| Relaxed | ground minus spider-human | +1.49 | [+0.11, +2.90] |
Published. The lower bound of the strict Ground-minus-base interval is above zero.
Cost and yield
The production writer made 40 metered Haiku 5.5 calls for $0.3185678 under the $1.00 cap. The worker delivered 3,098 verified pairs at $0.00010283 per verified pair. Each database requested 79 pairs. The verified yield ranged from 33 to 79 per database with a median of 79. Three databases fell short of 79 pairs. The yields were 33 for bike_racing, 70 for cre_Doc_and_collections, and 72 for university_rank. Twelve responses reached the output token cap. Spend and delivery ledger
The ledger also records five SSH connection attempts that ended before dispatch and incurred $0. Receipt retrieval retried independently of writer dispatch.
The worker processed 3,594 candidates, of which 3,569 executed before export filtering. Independent verification reconciled all 40 receipts and replayed 120 exported answers, one per product split per database. All 120 reproduced exactly.
The training corpus used 3,098 pairs across all three product export splits. All verified records fit the 2,048-token limit. Each epoch processed 1,040,309 non-padding tokens, including 81,346 supervised tokens.
| Ground seed | Local MLX wall time | Local charge | Modal L4 equivalent |
|---|---|---|---|
| 77 | 886.52 s | $0.00 | $0.1968 |
| 78 | 881.52 s | $0.00 | $0.1957 |
| 79 | 958.32 s | $0.00 | $0.2127 |
| Mean | 908.79 s | $0.00 | $0.2018 |
The L4 equivalent multiplies local wall time by $0.000222/s. All training and evaluation ran on local MLX.
Template overlap
After scoring, 74 of 3,098 Ground training rows matched 72 distinct literal-masked templates across 131 test questions. Template keys include the database ID and mask numeric and string literals while preserving quoted identifiers. The scores above include all test questions.
Sensitivity: overlapping questions removed
This check was run by the orchestrator after the sealed scoring, from the saved outcome flags. It does not change the published result. The 131 test questions whose literal-masked templates match any Ground training row are removed, leaving 2,016 questions. Intervals use 10,000 paired item-bootstrap draws, seed 77, with seeds averaged within each item.
| Scorer | Ground minus base | 95% interval |
|---|---|---|
| Strict | +6.08 pp | [+4.03, +8.07] |
| Relaxed | +4.56 pp | [+2.46, +6.58] |
Method
The schema-only subtraction produced 40 Spider test databases. The Round 2 BIRD overlap rule excluded 0. The sealed scorer used all 2,147 test questions on the retained databases. The style file held 30 Spider train pairs selected from 6,906 eligible rows with seed 77. Their databases are outside the test cohort and passed the same BIRD overlap rule. The hashes of the cohort and style files were committed before generation. Frozen inputs · Frozen design · Seal
The deployed Railway worker used the merged schema training handler, its production Haiku writer and its trusted SQLite launcher for inspection and verification. The driver supplied the SQLite and style files over SSH. It bypassed web admission and billing, job queue state and object storage, and copied the product ZIP and receipts back over SSH. The writer received schema, sample rows and style examples. The benchmark used the full verified export with Spider test questions as the external holdout. Production driver · Transfer and ledger runner
Base and spider-human reused the frozen BF16 Qwen2.5-1.5B-Instruct model and the Round 2 reference adapters. Ground used the same one-epoch completion-only LoRA recipe. All arms decoded greedily up to 256 new tokens. Strict uses Round 2 execution accuracy. Relaxed uses Round 4 result-shape scoring. The confidence intervals use 10,000 paired item-bootstrap draws with seed 77, averaging training seeds within each item. SD is sample SD across training seeds. The deterministic base was scored once. Round 2 · Round 4 · Training runner · Final scorer
Every reference query executed. The final scorer read the sealed questions and their SQL from test.json once, after all six adapters were verified. An independent verifier reproduced the seed scores, sample SDs, and all four paired intervals from the saved outcome flags.
The focused scoring tests passed 6/6.
Step 4 frozen design: the published benchmark
Frozen 18 Nov 2026, before any Step 4 generation or scoring. The seal rules are in SEALED.md.
Question
Does training data from Ground's production "Train on your database" path, on databases the model has never seen, beat the same model with no training?
Cohort
- Databases: the 40 Spider test databases whose
db_idappears in neither train nor dev. This was computed fromtest_tables.jsonandtables.json(schemas only). Round 2's BIRD-overlap rule is applied to these schemas before generation, and any exclusions are recorded. - Questions: every test question on the remaining databases, read once by the final scorer only.
Arms
| Arm | Training data |
|---|---|
| base | none (Qwen2.5-1.5B-Instruct BF16) |
| ground | pairs from the production path, per database |
| spider-human | the round-2 adapters, trained on Spider train, as a reference |
The ground arm's pairs:
- come from the merged
ground_v2.schema_trainingpipeline, run by its trusted launcherground_v2.schema_training_workeron the production Railway worker with production model configuration (claude-haiku-5-5); - are requested at 79 per database, the round-5 density;
- use as style examples 30 fixed Spider train pairs from databases not in test and not BIRD-overlapping (seeded selection, seed 77);
- use no sealed eval file, because the generator never sees test questions.
Web admission and billing are bypassed, because the web app is paused; that difference is disclosed.
Training and scoring
- Recipe: identical to rounds 2–6. One epoch of LoRA: rank 16, scale 2, dropout 0.05, AdamW at 1e-4, 3% warmup, 8 microbatches per update, completion-only loss, 2,048-token limit.
- Seeds: 77, 78, 79. Local MLX.
- Decoding: greedy, at most 256 new tokens.
- Primary score: strict execution accuracy (the round-2 scorer).
- Secondary score: the round-4 relaxed scorer.
- Statistics: 10,000 paired item-bootstrap draws, seed 77, with seeds averaged within each item.
Publishing rule
Publish only if the strict ground-minus-base interval's lower bound is above zero. Report, whatever the result:
- ground minus base, and ground minus spider-human;
- literal-masked template overlap between training pairs and test gold, counted after scoring;
- model cost per verified pair;
- cost per training run.
A null result is reported as a null.
Spend cap
$1.00 of Haiku in total. Stop and report if it would be exceeded.