Research map / Large language models / Retrieval and knowledge
Enhancing Text-to-SQL Capabilities of Large Language Models: A Study on Prompt Design Strategies
Linyong Nan, Yilun Zhao, Weijin Zou, Narutatsu Ri, Jaesung Tae, Ellen Zhang, Arman Cohan, Dragomir Radev
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 |
|---|---|---|---|
| select demonstrations by similarity and diversity (SD) instead of random (ablation) | Codex few-shot · Spider | execution accuracy: 76.03 -> 80.32 | Improved |
| select demonstrations by similarity only instead of random (ablation) | Codex few-shot · Spider | execution accuracy: 76.03 -> 78.33 | Improved |
| select demonstrations by diversity only instead of random (ablation) | Codex few-shot · Spider | execution accuracy: 76.03 -> 78.64 | Improved |
| combine similarity and diversity rather than either alone (ablation) | Codex few-shot · Spider | execution accuracy: 78.33 / 78.64 -> 80.32 | Improved |
| increase syntax coverage of demonstrations (similarity-diversity vs random) (ablation) | Codex few-shot · Spider | syntax coverage: 0.38 -> 0.50 | Improved |
| linearize database as CREATE queries (code) instead of text (ablation) | Codex zero-shot · Spider | execution accuracy | Improved |
| add schema semantic augmentation (column summaries) (ablation) | Codex zero-shot · Spider | execution accuracy | Improved |
| add schema augmentation in few-shot setting (ablation) | Codex few-shot · Spider | execution accuracy | No clear effect |
| add majority voting over predictions from different shot numbers (ablation) | SD + schema augmentation · Spider and variants | execution accuracy | Improved |
| use similarity-diversity selection on medium-difficulty problems (ablation) | Codex few-shot · Spider medium split | execution accuracy | Hurt |
| use a higher-performing preliminary model for the draft SQL (ablation) | SD and integrated approaches · Spider | execution accuracy | No clear effect |
| use RoBERTa-base instead of text-embedding-ada-002 for similarity retrieval (ablation) | Codex few-shot · Spider | execution accuracy | Improved |
Closest papers by meaning
- CogSQL: A Cognitive Framework for Enhancing Large Language Models in Text-to-SQL Translation (AAAI 2025 · similarity 0.90)
- ROUTE: Robust Multitask Tuning and Collaboration for Text-to-SQL (ICLR 2025 · similarity 0.89)
- Code-Style In-Context Learning for Knowledge-Based Question Answering (AAAI 2024 · similarity 0.89)
- Structure-Guided Large Language Models for Text-to-SQL Generation (ICML 2025 · similarity 0.88)
- Supervised Knowledge Makes Large Language Models Better In-context Learners (ICLR 2024 · similarity 0.88)
- Alpha-SQL: Zero-Shot Text-to-SQL using Monte Carlo Tree Search (ICML 2025 · similarity 0.88)
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.
