Research map / Large language models / Language, safety and interpretability
Text-to-SQL Error Correction with Language Models of Code
Ziru Chen, Shijie Chen, Michael White, Raymond Mooney, Ali Payani, Jayanth Srinivasa, Yu Su, Huan Sun
The Ohio State University · University of Texas at Austin · Cisco Research
Read the paperPlace an idea next to itCheck your own paper ↗
AI-extracted. The measured effects below were read by AI from the paper's full text (no summary yet). Numbers and claims can be wrong or missing context, so check the paper before you cite or build on it.
Measured effects reported in the paper
| What was changed | Where | Measured | Effect |
|---|---|---|---|
| use clause-level edits and PyDict+Program representation instead of SQL+Token-Level (ablation) | CodeT5 error correction · Spider dev, BRIDGEv2 parser | EM: 68.2 -> 72.5 | Improved |
| use clause-level edits and PyDict+Program representation instead of SQL+Token-Level (ablation) | CodeT5 error correction · Spider dev, BRIDGEv2 parser | EX: 69.4 -> 73.1 | Improved |
| apply CodeT5-PyDict+Program error correction to parser outputs | text-to-SQL parsers · Spider dev (CodeT5, BRIDGEv2, SmBoP parsers) | EM: +2.4 to +6.5 | Improved |
| use token-level edit representation with CoditT5 instead of no correction | BRIDGEv2 parser · Spider dev | EM: 70.1 -> 65.4 | Hurt |
| switch from SQL to PyDict representation (clause-level edits) (ablation) | CodeT5 error correction · Spider dev, CodeT5 parser | EM: 68.3 -> 66.6 | No clear effect |
| switch from SQL to PyDict representation (clause-level edits) (ablation) | CodeT5 error correction · Spider dev, SmBoP parser | EM: 76.7 -> 77.3 | Improved |
| use program edit representation instead of PyDict clause-level edits (ablation) | CodeT5 error correction · Spider dev, CodeT5 parser | EM: 66.6 -> 69.0 | Improved |
| use PyDict representation instead of SQL (ablation) | CodeT5 zero-shot perplexity · synthesized dev set | perplexity: reduced by 2 orders of magnitude | Improved |
| use PyDict+Program instead of SQL+Token-Level (ablation) | CodeT5 zero-shot perplexity · synthesized dev set | perplexity: 1.26 x 10^5 -> 5.96 x 10^2 | Improved |
| use CodeT5 instead of CoditT5 for same representations (ablation) | error correction model · Spider dev | EM/EX | Improved |
| error correction of database grounding errors | CodeT5-PyDict+Program · 100 sampled SmBoP errors | errors resolved: 16 of 54 resolved | Mixed |
| error correction of incorrect-structure errors | CodeT5-PyDict+Program · 100 sampled SmBoP errors | errors resolved: 3 of 26 resolved | Hurt |
Open problems in controlled text generation
How can generation be controlled and checked reliably across languages, domains and model sizes without extra cost?
- Each study covers one domain, source or task, so transfer is unknown. · 13 papers state it
- Only a few languages are tested, mostly English or high-resource ones. · 12 papers state it
- Extra stages, calls or tokens make generation slower and costlier. · 10 papers state it
Closest papers by meaning
- SQLens: An End-to-End Framework for Error Detection and Correction in Text-to-SQL (NeurIPS 2025 · similarity 0.92)
- Error Detection for Text-to-SQL Semantic Parsing (EMNLP 2023 · similarity 0.91)
- NL-EDIT: Correcting Semantic Parse Errors through Natural Language Interaction (NAACL 2021 · similarity 0.90)
- PARSQL: Enhancing Text-to-SQL through SQL Parsing and Reasoning (ACL 2025 · similarity 0.90)
- Speak to your Parser: Interactive Text-to-SQL with Natural Language Feedback (ACL 2020 · similarity 0.89)
- SQLFixAgent: Towards Semantic-Accurate Text-to-SQL Parsing via Consistency-Enhanced Multi-Agent Collaboration (AAAI 2025 · similarity 0.89)
Writing a paper in this area? scime draft is a free LaTeX editor with AI included, real-time co-authors and a check of your references and venue rules before you submit. It also imports OpenAI Prism projects.