Research map / Large language models / Reasoning and chain of thought
ACT-SQL: In-Context Learning for Text-to-SQL with Automatically-Generated Chain-of-Thought
Hanchong Zhang, Ruisheng Cao, Lu Chen, Hongshen Xu, Kai Yu
Shanghai Jiao Tong 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.
This paper tried a common change: Chain-of-thought prompting
add automatically generated chain-of-thought exemplars (ACT-SQL) · Spider dev (Create(EoT), 2+2) · TS: 69.0 -> 71.4 (EM 61.4 -> 62.7, EX 79.4 -> 80.4) Improved
What 1,817 accepted papers report for this change
- 1,158 improved
- 184 no clear effect
- 87 mixed
- 388 hurt
- AudioChat: Unified Audio Storytelling, Editing, and Understanding with Transfusion Forcing ICML 2026 · add structured chain-of-thought reasoning to the diffusion LLM · StoryGen-Eval editing · delta multiFLAM: 27.8 -> 11.7Improved
- Vision Language Models Cannot Reason About Physical Transformation ICML 2026 · add CoT prompt instead of Direct prompt · Number & Length · accuracy: F(3, 333) = 18.28Hurt
- VideoSEG-O3: A Multi-turn Reinforcement Learning Framework for Reasoning Video Object Segmentation ICML 2026 · Add CoT cold-start stage on top of SFT · Long-RVOS · J&F: 47.12 -> 51.82Improved
See this change in detailMatched by the wording of each paper's own result, read by AI from the full text. Papers report gains more often than failures, so this shows what gets published, not the chance a change works.
Measured effects reported in the paper
| What was changed | Where | Measured | Effect |
|---|---|---|---|
| add automatically generated chain-of-thought exemplars (ACT-SQL) | few-shot GPT-3.5-turbo · Spider dev (Create(EoT), 2+2) | TS: 69.0 -> 71.4 (EM 61.4 -> 62.7, EX 79.4 -> 80.4) | Improved |
| add auto-CoT | few-shot GPT-3.5-turbo · Spider-Syn dev | EX: 63.7 -> 67.9 | Improved |
| add auto-CoT | few-shot GPT-3.5-turbo · Spider-DK dev | EX: 68.8 -> 68.2 | No clear effect |
| add auto-CoT | few-shot GPT-3.5-turbo · Spider-Realistic dev | EX: 76.4 -> 75.8 | No clear effect |
| add auto-CoT with question rewriting | few-shot GPT-3.5-turbo · SParC dev (QM EX) | EX: 64.0 -> 63.8 | No clear effect |
| add auto-CoT with question rewriting | few-shot GPT-3.5-turbo · CoSQL dev (QM EX) | EX: 63.9 -> 63.7 | No clear effect |
| use GPT-4 instead of GPT-3.5-turbo | ACT-SQL · Spider dev | TS: 71.4 -> 74.5 | Improved |
| add primary and foreign keys to Create-style schema (EoT instead of NoPF) (ablation) | zero-shot GPT-3.5-turbo · Spider dev | TS: 66.1 -> 67.9 | Improved |
| provide 3 rows of database contents instead of none (ablation) | zero-shot GPT-3.5-turbo, Table(Column) · Spider dev | EX | Improved |
| provide more than 3 rows of database contents (ablation) | zero-shot GPT-3.5-turbo · Spider dev | EX | No clear effect |
| hybrid exemplars (2 static + 2 dynamic) instead of 4 static (ablation) | ACT-SQL, Create(EoT) · Spider dev | EM: 55.5 -> 62.7 | Improved |
| add few-shot exemplars to zero-shot prompting | GPT-3.5-turbo, Table(Column) · Spider dev | EM: 45.3 -> 59.7 | Improved |
Later papers that compared with this method
2 later accepted papers report ACT-SQL as a baseline in their results tables; 2 of them report a better number on most of the results they share with it.
- SAFE-SQL: Self-Augmented In-Context Learning with Fine-grained Example Selection for Text-to-SQL (EMNLP 2025 · better on 1 of 1 shared result)
- Improving Demonstration Diversity by Human-Free Fusing for Text-to-SQL (EMNLP 2024 · better on 4 of 4 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
- ROUTE: Robust Multitask Tuning and Collaboration for Text-to-SQL (ICLR 2025 · similarity 0.89)
- Structure-Guided Large Language Models for Text-to-SQL Generation (ICML 2025 · similarity 0.89)
- Alpha-SQL: Zero-Shot Text-to-SQL using Monte Carlo Tree Search (ICML 2025 · similarity 0.87)
- CogSQL: A Cognitive Framework for Enhancing Large Language Models in Text-to-SQL Translation (AAAI 2025 · similarity 0.87)
- CHASE-SQL: Multi-Path Reasoning and Preference Optimized Candidate Selection in Text-to-SQL (ICLR 2025 · similarity 0.86)
- MARS-SQL: A Multi-Agent Reinforcement Learning Framework For Text-To-SQL (ICML 2026 · 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.
