Research map / Large language models / Language, safety and interpretability
SAFE-SQL: Self-Augmented In-Context Learning with Fine-grained Example Selection for Text-to-SQL
Jimin Lee, Ingeol Baek, Byeongjeong Kim, Hyunkyung Bae, Hwanhee Lee
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 self-generated reasoning path to examples (ablation) | SAFE-SQL (GPT-4o) · Spider dev | EX: 84.4 -> 87.9 | Improved |
| add relevance filtering of generated examples (ablation) | SAFE-SQL (GPT-4o) · Spider dev | EX: 82.1 -> 87.9 | Improved |
| add schema linking (ablation) | SAFE-SQL (GPT-4o) · Spider dev | EX: 80.4 -> 87.9 | Improved |
| add similar example generation (ablation) | SAFE-SQL (GPT-4o) · Spider dev | EX: 77.1 -> 87.9 | Improved |
| use SAFE-SQL instead of zero-shot prompting | GPT-4o · Spider dev | EX: 73.4 -> 87.9 | Improved |
| use SAFE-SQL instead of zero-shot prompting | GPT-4o · BIRD dev | EX: 51.8 -> 63.5 | Improved |
| use balanced relevance weights instead of a single component (ablation) | SAFE-SQL (GPT-4o) · Spider dev | EX: 82.8-86.1 -> 87.9 | Improved |
| use SAFE-SQL instead of few-shot methods on Easy/Medium | SAFE-SQL (GPT-4) · Spider dev | Easy/Medium EX: Easy 94.8 (PTD) vs 93.2 | Mixed |
| set relevance threshold to >=8 rather than >=10 (ablation) | SAFE-SQL · Spider dev | EX | Improved |
| apply SAFE-SQL with Qwen2.5-72B | Qwen2.5-72B · Spider dev | EX: 74.5 vs GPT-4o baseline 73.4 | No clear effect |
| run three LLM calls (SAFE-SQL) instead of zero-shot | GPT-4 · Spider dev | inference time (s): 1.28 -> 21.41 | Hurt |
Earlier methods this paper compares with
Named baselines from earlier accepted papers in this paper's results tables: better than 1 of 1 on most shared results.
- PTD-SQL — PTD-SQL: Partitioning and Targeted Drilling with LLMs in Text-to-SQL (EMNLP 2024) · better on 2 of 2 shared results
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.
Closest papers by meaning
- Enhancing Text-to-SQL Capabilities of Large Language Models: A Study on Prompt Design Strategies (EMNLP 2023 · similarity 0.91)
- DIN-SQL: Decomposed In-Context Learning of Text-to-SQL with Self-Correction (NeurIPS 2023 · similarity 0.91)
- SQLPrompt: In-Context Text-to-SQL with Minimal Labeled Data (EMNLP 2023 · similarity 0.90)
- Confidence Estimation for Error Detection in Text-to-SQL Systems (AAAI 2025 · similarity 0.88)
- ROUTE: Robust Multitask Tuning and Collaboration for Text-to-SQL (ICLR 2025 · 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.
