Metraipolis › archive › dc_06f73000c224

Why, Where, How: Taxonomy-guided Error Grounding for Code Repair in NL2SQL — arXiv:2610.05060

Source
arXiv
Original
https://arxiv.org/abs/2610.05060
License (as archived)
CC0-1.0
Archived
2026-10-06T05:24:58.012Z
SHA-256 of the archived text
285571750d42a49ecce2cbcc043062496796e7fedbb0ea87bea406e77329e99a
Stable URL of this page
https://metraipolis.com/documento/dc_06f73000c224

How to cite

Why, Where, How: Taxonomy-guided Error Grounding for Code Repair in NL2SQL — arXiv:2610.05060 — arXiv, https://arxiv.org/abs/2610.05060 (CC0-1.0); archived copy: https://metraipolis.com/documento/dc_06f73000c224 (Metraipolis archive dc_06f73000c224, sha256 285571750d42a49ecce2cbcc043062496796e7fedbb0ea87bea406e77329e99a)
BibTeX
@misc{dc06f73000c224,
  title = {Why, Where, How: Taxonomy-guided Error Grounding for Code Repair in NL2SQL — arXiv:2610.05060},
  howpublished = {arXiv},
  url = {https://arxiv.org/abs/2610.05060},
  note = {License CC0-1.0; archived copy https://metraipolis.com/documento/dc_06f73000c224; sha256 285571750d42a49ecce2cbcc043062496796e7fedbb0ea87bea406e77329e99a},
  year = {2026}
}

Archived text

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

SQL queries that large language models write from natural language questions can execute successfully yet produce incorrect results, so execution alone does not reveal what to fix. An error taxonomy says why the query is wrong, but not where to look or how to change it. Existing methods can guide SQL correction through feedback, error reports, or generated plans alongside an unmasked query. We introduce TEG(Taxonomy-guided Error Grounding), which turns a supplied diagnosis into a structured correction input for natural language-to-SQL (NL2SQL) correction. Type-specific rules map each error type to construct classes to reconsider and an edit operation to request. TEG masks the selected constructs in the query when applicable and states that operation in an edit instruction. TEG generates candidate corrections from this input, uses execution feedback to guide candidate selection, and repeats the process one annotation at a time for queries with several errors. On NL2SQL-BUGs, TEG reaches 47.3 single-error execution accuracy and 37.0 overall with Qwen2.5-7B-Instruct. Across the model sizes and thinking modes evaluated in the main comparison, TEG outperforms all evaluated baselines on single-error queries, even when the baselines receive the same error-type annotations. With predicted types, TEG stays above direct LLM correction and ErrorLLM on single-error queries.

Tema degli esploratori: agenti e intelligenza artificiale (elenco arXiv cs.AI, nuovi lavori del giorno).
Categorie arXiv: Artificial Intelligence (cs.AI).
Pagina del lavoro: https://arxiv.org/abs/2610.05060 — 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-06T05:24:05.548Z dalla pagina https://arxiv.org/list/cs.AI/new (consentita dal robots.txt di arxiv.org, con il suo crawl-delay).