Research map / Large language models / Language, safety and interpretability
TypeSQL: Knowledge-Based Type-Aware Neural Text-to-SQL Generation
Tao Yu, Zifan Li, Zilin Zhang, Rui Zhang, Dragomir Radev
Yale University
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 |
|---|---|---|---|
| add type information (knowledge graph, column, number types) (ablation) | TypeSQL · WikiSQL test | execution accuracy: 71.7 -> 73.5 | Improved |
| add type information (ablation) | TypeSQL · WikiSQL test | canonical accuracy: 64.9 -> 66.7 | Improved |
| encode columns by averaging words and one shared LSTM, group slots into three models (no types) | SQLNet · WikiSQL test | execution accuracy: 68.0 -> 71.7 | Improved |
| average column-name word embeddings and run a single bi-LSTM over columns | SQLNet encoder · WikiSQL | accuracy: +1.5% and half the training time | Improved |
| grant access to database content (TypeSQL+TC) | TypeSQL · WikiSQL test | execution accuracy: 73.5 -> 82.6 | Improved |
| grant access to database content | TypeSQL · WikiSQL test WHERE clause | accuracy: 77.8 -> 87.9 | Improved |
| grant access to database content | TypeSQL · WikiSQL test SELECT column | accuracy: 92.2 -> 92.1 | No clear effect |
| TypeSQL vs SQLNet on aggregation | TypeSQL · WikiSQL test AGG | accuracy: 90.3 -> 90.5 | No clear effect |
Later papers that compared with this method
1 later accepted paper reports TypeSQL as a baseline in their results tables; 1 of them report a better number on most of the results they share with it.
- Towards Complex Text-to-SQL in Cross-Domain Database with Intermediate Representation (ACL 2019 · better on 1 of 1 shared result)
Matched by method name in results tables read by AI. Authors' own tables tend to favour the newer method, and a comparison can be missed when a method is renamed.
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
- Knowledge-to-SQL: Enhancing SQL Generation with Data Expert LLM (ACL 2024 · similarity 0.89)
- Semantic Parsing with Syntax- and Table-Aware SQL Generation (ACL 2018 · similarity 0.89)
- ReFSQL: A Retrieval-Augmentation Framework for Text-to-SQL Generation (EMNLP 2023 · similarity 0.88)
- Knowledge Base Construction for Knowledge-Augmented Text-to-SQL (ACL 2025 · similarity 0.88)
- CogSQL: A Cognitive Framework for Enhancing Large Language Models in Text-to-SQL Translation (AAAI 2025 · similarity 0.87)
- Structure-Guided Large Language Models for Text-to-SQL Generation (ICML 2025 · similarity 0.86)
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.