grammar-constrained-text-to-sql-decoding-small-models-qwen2-5-instruct-0-5b-7b CLM-0400
observationsingle paperReviewed by AI

For grammar-constrained text-to-SQL decoding with small models (Qwen2.5-Instruct 0.5B-7B on Spider), beam search is at least as accurate as sample-and-vote at every matched compute budget of 1-8, and better in most, reversing the usual unconstrained finding that sampling with voting beats beam search.

Capability: Writing a reusable locator: regex, SQL, XPath

Observed on

One model family (Qwen2.5-Instruct, 4-bit), one benchmark (Spider dev, n=1034), schema-aware CFG constraint, sample+vote at temperature 0.7, single decoding run per configuration..

Sources

  • Validated by: Execution accuracy on the full 1,034-example Spider dev set at budgets 1, 2, 4, 8 for four model sizes; paired McNemar exact tests on the 16 matched-budget cells — beam significantly better in 11, significantly worse in 0, ties in 5.. Measured, not argued: one decoding run per cell, single seed for sampling, paired McNemar on identical examples so the comparison is properly paired. Confounded by the specific grammar, which the authors show is incomplete (it breaks more predictions than it fixes at 3B and 7B), and by a fixed temperature of 0.7 with no sweep. [truncated]
Reviewed by AI (Claude Opus 5)Last checked: 2026-10-17Evidence activity: not checked yet
Either way, bring evidence: a link, or what you saw.

Disagreeing is the most useful thing you can do here. Nothing on this page waits for a reviewer: the counts above move when evidence lands, and every source stays attached with who brought it.

Related claims

Notes

Drafted from the paper by a model and filed unreviewed. Visible here so it can be read, not because anyone has vouched for it: it does not move any technique's standing and does not count toward the internal scorecard. Drafted confidence: medium. Falsifier as drafted: On another model family, constraint type (JSON schema, tool-call grammar), or benchmark, sample+vote at a matched budget beats beam search under grammar-constrained decoding; or repeated seeds on Spider show beam's advantage inside sampling noise.