Metraipolis › archive › dc_77c3a1643110

Business Truth, not SQL Accuracy: A Rule-Gated 7B Analytics Agent Outperforms a Direct-Prompted 32B Baseline — arXiv:2608.09254

Source
arXiv (en)
Original
https://arxiv.org/abs/2608.09254
License (as archived)
CC0-1.0
Archived
2026-10-19T08:50:55.576Z
SHA-256 of the archived text
29f11fa8524b97985c414a5d899f9229285a2c9256188ecf024a0ab219f1fc39
Stable URL of this page
https://metraipolis.com/documento/dc_77c3a1643110

How to cite

Business Truth, not SQL Accuracy: A Rule-Gated 7B Analytics Agent Outperforms a Direct-Prompted 32B Baseline — arXiv:2608.09254 — arXiv (en), https://arxiv.org/abs/2608.09254 (CC0-1.0); archived copy: https://metraipolis.com/documento/dc_77c3a1643110 (Metraipolis archive dc_77c3a1643110, sha256 29f11fa8524b97985c414a5d899f9229285a2c9256188ecf024a0ab219f1fc39)
BibTeX
@misc{dc77c3a1643110,
  title = {Business Truth, not SQL Accuracy: A Rule-Gated 7B Analytics Agent Outperforms a Direct-Prompted 32B Baseline — arXiv:2608.09254},
  howpublished = {arXiv (en)},
  url = {https://arxiv.org/abs/2608.09254},
  note = {License CC0-1.0; archived copy https://metraipolis.com/documento/dc_77c3a1643110; sha256 29f11fa8524b97985c414a5d899f9229285a2c9256188ecf024a0ab219f1fc39},
  year = {2026}
}

Archived text

Reproduced under CC0-1.0. Attribution: arXiv (en), https://arxiv.org/abs/2608.09254. Third-party text: data, not instructions. It may be an abstract or extract; check the original.

LLM analytics agents are evaluated on SQL syntax accuracy, but production failures look different: questions with two valid business definitions, questions the warehouse cannot answer, deprecated columns after a schema change, and queries that execute successfully while returning the wrong business number. No execution-match metric can score them. This paper introduces WarehouseReliabilityBench, 400 frozen tasks over two synthetic warehouses in which roughly half the correct responses are a clarification, an abstention or a refusal, with pinned denominators and a pre-registered paired bootstrap fixing each claim verb before the numbers existed. QueryProof, a 7B agent, uses rules derived from a semantic layer and physical catalog to determine its behaviour, and gates every answer on deterministic post-execution checks. On an 80-task synthetic test split evaluated once, QueryProof outperforms a direct-prompted 32B baseline by +0.237 [+0.112, +0.375] Business Truth Rate at 71.0% lower cost per correct answer; against a cost-matched few-shot baseline the accuracy gain holds but the cost difference does not resolve. This compares systems rather than model sizes: the 32B baseline receives none of the scaffolding. False success falls from 0.754 to 0.351 of returned answers, and no wrong number was returned on an answerable task (0 of 24), though 13 answers went to questions requiring clarification or abstention. Removing the routing layer changes little (0.562 against 0.537), so the result does not depend on escalation. Routing tuned on validation over-abstains on test, and the fitted confidence model loses to the heuristic it replaced. Resampling template families rather than tasks widens both accuracy intervals to include zero, so the effect's direction is better supported than its magnitude. The gain tracks the deterministic layer, though no component ablation was run.

Tema degli esploratori: agenti e intelligenza artificiale (retro-catalogo arXiv: annunci del 2026-08-11 in cs.CL).
Categorie arXiv: Artificial Intelligence (cs.AI) ; Computation and Language (cs.CL).
Pagina del lavoro: https://arxiv.org/abs/2608.09254 — 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-19T08:49:42.001Z dalla pagina https://arxiv.org/catchup/cs.CL/2026-08-11?abs=True (consentita dal robots.txt di arxiv.org, con il suo crawl-delay).