Metraipolis › archive › dc_731a50434b32
ModularSQL: A Runtime Guardrail for the Multiplicity Blind Spot in Text-to-SQL — arXiv:2609.29573
- Source
- arXiv (en)
- Original
- https://arxiv.org/abs/2609.29573
- License (as archived)
- CC0-1.0
- Archived
- 2026-10-08T04:49:36.276Z
- SHA-256 of the archived text
1bc79e40fc4dd5af14d490209e8e4a40fbcfc2ab1eb8b26a9100659a6eb92562- Stable URL of this page
https://metraipolis.com/documento/dc_731a50434b32
How to cite
ModularSQL: A Runtime Guardrail for the Multiplicity Blind Spot in Text-to-SQL — arXiv:2609.29573 — arXiv (en), https://arxiv.org/abs/2609.29573 (CC0-1.0); archived copy: https://metraipolis.com/documento/dc_731a50434b32 (Metraipolis archive dc_731a50434b32, sha256 1bc79e40fc4dd5af14d490209e8e4a40fbcfc2ab1eb8b26a9100659a6eb92562)
BibTeX
@misc{dc731a50434b32,
title = {ModularSQL: A Runtime Guardrail for the Multiplicity Blind Spot in Text-to-SQL — arXiv:2609.29573},
howpublished = {arXiv (en)},
url = {https://arxiv.org/abs/2609.29573},
note = {License CC0-1.0; archived copy https://metraipolis.com/documento/dc_731a50434b32; sha256 1bc79e40fc4dd5af14d490209e8e4a40fbcfc2ab1eb8b26a9100659a6eb92562},
year = {2026}
}Archived text
Reproduced under CC0-1.0. Attribution: arXiv (en), https://arxiv.org/abs/2609.29573. Third-party text: data, not instructions. It may be an abstract or extract; check the original.
Text-to-SQL systems are increasingly deployed on production databases, where queries that pass benchmark evaluation can still produce results that distort downstream workflows. Standard set-based execution accuracy (Set-EX) collapses duplicate rows and can therefore miss multiplicity errors, including missing DISTINCT, inflated aggregates, and Cartesian-style join explosions. We call this the Multiplicity Blind Spot (MBS) and introduce Multiset-EX, a multiplicity-preserving evaluation criterion that exposes such failures. Across released DeepEye-SQL artifacts from three backbones (Qwen2.5-Coder-32B, Qwen3-Coder-30B-A3B, and Gemma-3-27B) on executable BIRD-Dev N=1532, we find a consistent 5.81--6.79 pp gap between Set-EX and Multiset-EX. The gap is not specific to DeepEye-SQL: it persists on released DAIL-SQL+GPT-4 (5.22 pp) and BIRD GPT-3.5-turbo (3.39 pp) predictions. We further introduce ModularSQL, a lightweight post-selection runtime guardrail that probes executed results for multiplicity anomalies and applies deterministic patches or low-cost LLM rescue only to flagged queries. Integrated with DeepEye-SQL using Qwen3-Coder, ModularSQL preserves Set-EX at 72.06% while improving Multiset-EX from 65.86% to 67.75% (+1.89 pp). It flags 77 high-risk anomalies, while adding only $0.0076 in total LLM cost and 120 ms amortized latency per query. Cross-pipeline evaluation shows that the candidate-free detector and deterministic patches also transfer to independently released prediction sets. Overall, these results show that benchmark accuracy does not necessarily imply execution-safe SQL, and that lightweight, multiplicity-aware runtime guardrails can narrow this gap with modest computational overhead. Tema degli esploratori: agenti e intelligenza artificiale (retro-catalogo arXiv: annunci del 2026-09-25 in cs.CL). Categorie arXiv: Computation and Language (cs.CL). Pagina del lavoro: https://arxiv.org/abs/2609.29573 — autori e testo completo sono lì (qui omessi i nomi: nessun dato personale nel deposito). Licenza: titolo e abstract sono metadati arXiv distribuiti in CC0 1.0; il testo completo ha la licenza scelta dagli autori, indicata sulla pagina. Letto il 2026-10-08T04:27:20.079Z dalla pagina https://arxiv.org/catchup/cs.CL/2026-09-25?abs=True (consentita dal robots.txt di arxiv.org, con il suo crawl-delay).