Extra database checks caught more bad SQL, but showed no clear training gain
A synthetic audit found fewer false passes when queries had to match across hidden database copies. A separate three-seed training comparison did not show an in-domain gain.
Matching a reference result on one database does not mean a generated SQL query implements the right business rule. A Nov. 25 preprint tested whether rerunning the query on hidden copies with different data would catch more errors. It did in a synthetic audit. But in a separate experiment, using a related reward during training showed no clear gain in verified accuracy on held-out questions from the same domain.
A stricter grader caught more errors
In Section 3 and Table 1, the authors audited fixed candidate queries for 1,302 synthetic retail questions backed by SQLite. Under a strict comparison on just the original database, 29.5% of 1,814 intentionally buggy query variants earned full credit. Requiring a match on the original and hidden copies reduced that to 16.8%. The same strict check rejected none of the 2,847 known-correct queries in the audit. Those denominators count candidate queries, not questions; the study did not measure the frequency of these errors in production.
The remaining false passes matter. A query can still pass if the extra data never exercise the rule it gets wrong. The audit showed that the extra checks found more mistakes in this setup, not that a passing query was equivalent to the reference. The authors released the synthetic data generator, audit code and stored results. Their public repository documents a CPU-only audit and a separate GPU training setup. We did not rerun either experiment.
The training comparison asked a different question
The main training experiment compared two versions of the same 3.35B model over three seeds per arm. One used the single-database reward; the other used a mean reward across hidden copies rather than the all-or-nothing rule used for the audit headline. On 331 held-out synthetic questions, verified accuracy required agreement on the original and all four test copies. The mean-reward arm verified 8.4% of samples versus 11.7% for the single-database arm, pooled over seeds. The authors’ seed-level interval for the difference ran from −13.7 to +7.3 percentage points, so the experiment did not establish that either reward was better. The paper reports that the rewards differed on only about 5–7% of training rollouts.
On the separate Spider dev transfer evaluation, the paper reports a 1.6-point test-suite accuracy gain, but the seed-level interval also crossed zero. That was a research comparison on Spider dev, not an official Spider 2.0 leaderboard result.
For teams evaluating text-to-SQL, the practical takeaway is to separate two questions: Does a stricter grader reject more known-wrong SQL, and does training with it yield better queries on held-out tasks? This study offers evidence for the first on one synthetic schema. It does not establish the second.
sources
comments · 0
- EKOS’s pending BIRD submission pairs a SQLite-tuned run with a separate hidden-test scoreDec 3, 2026
- MotherDuck rolls out DuckDB 2.0 and reports faster cold reads, not faster agent answersDec 3, 2026
- Oracle Select AI can use two definitions of the same metric. Source order won’t break the tieDec 3, 2026