Reproduce “TrustSQL: Benchmarking Text-to-SQL Reliability with Penalty-Based Scoring” on OpenResearch
Run Claude Code, Codex or any coding agent as a research agent: literature, hypotheses and experiments on your laptop, cluster or cloud GPUs.
Universal app for Apple silicon and Intel. Requires macOS 11 or later.
About this paper
Gyubok Lee, Woosog Chay, Seonhee Cho, Edward Choi
Researchers at KAIST AI introduce TrustSQL, a benchmark and penalty-based scoring metric to evaluate the reliability of Text-to-SQL models, explicitly assessing their ability to correctly answer feasible questions and abstain from infeasible ones. The work provides a comprehensive framework to quantify the trade-off between utility and risk, guiding the development of more trustworthy AI systems for real-world deployment.
Key insights
- Achieving high reliability under strict penalties (where mistakes are heavily penalized) is challenging for all evaluated models, including advanced LLMs, highlighting a significant gap in current Text-to-SQL capabilities.
- The ability to accurately and appropriately abstain from answering infeasible or uncertain questions is crucial for high reliability, often outweighing the gains from solely maximizing correct SQL generation.
- The simple 'ABSTAIN-ALL' baseline, which correctly abstains from all infeasible questions, often outperforms sophisticated models under strict penalties, demonstrating the value of a cautious approach.
Summary by alphaXiv.
Tip: change arxiv.org to autoarxiv.org in any arXiv abstract link to open the paper here.