atlas

Research map / Large language models / Agents, code and math

Alpha-SQL: Zero-Shot Text-to-SQL using Monte Carlo Tree Search

ICML 2025 · Large language models › Agents, code and math · approach: Mathematical and structural reasoning benchmarks · 1 citations (OpenAlex)

Read the paperCheck your idea against 108,967 papers

AI-extracted summary. Written by AI from the paper's full text. Numbers and claims can be wrong or missing context, so check the paper before you cite or build on it.

Alpha-SQL performs zero-shot Text-to-SQL by running Monte Carlo Tree Search over SQL construction actions, with an LLM as the action model and a self-consistency execution-based reward, without fine-tuning.

Problem

Zero-shot Text-to-SQL with LLMs struggles to map natural language questions and diverse database schemas to correct SQL without task-specific fine-tuning, especially for complex queries.

Approach

Model SQL generation as a tree search where nodes are partial reasoning states and edges are SQL construction actions chosen and executed by an LLM (LLM-as-Action-Model) inside MCTS, scored by a self-supervised execution self-consistency reward instead of a trained reward model.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
Apply Alpha-SQL to Qwen2.5-Coder-7BQwen2.5-Coder-7B · BIRD SDSaccuracy: 47.6 -> 64.6Helped
Apply Alpha-SQL to Phi-4Phi-4 · BIRD SDSaccuracy: 43.5 -> 60.0Helped
Increase inference model size from Qwen2.5-Coder-7B to Qwen2.5-Coder-32BAlpha-SQL · BIRD developmentexecution accuracy (All, %): 66.8 -> 69.7Helped
Increase inference model size from Qwen2.5-Coder-7B to Qwen2.5-Coder-14BAlpha-SQL · Spider developmentexecution accuracy (All, %): 84.0 -> 87.0Helped
Add question rephrasing (ablation)Alpha-SQL · BIRD SDSaccuracy: 63.9 -> 64.6Helped
Add schema selection (ablation)Alpha-SQL · BIRD SDSaccuracy: 63.1 -> 64.6Helped
Add column value identification (ablation)Alpha-SQL · BIRD SDSaccuracy: 64.2 -> 64.6Helped
Add column function identification (ablation)Alpha-SQL · BIRD SDSaccuracy: 64.0 -> 64.6Helped
Add SQL revision (ablation)Alpha-SQL · BIRD SDSaccuracy: 62.8 -> 64.6Helped
Increase the number of MCTS rolloutsAlpha-SQL with Qwen2.5-Coder-7B · BIRD SDSfinal accuracyHelped

Surprising findings

Limitations

Experimental setup

Datasets: BIRD dev Spider dev

Benchmarks: BIRD dev Spider dev BIRD Subsampled Development Set (SDS)

Metrics: execution accuracy

Baselines: CHASE-SQL RSL-SQL DAIL-SQL SuperSQL MCS-SQL XiYan-SQL CodeS C3-SQL DIN-SQL MAC-SQL GPT-4o DeepSeek-R1

Builds on: Monte Carlo Tree Search rStar CHASE-SQL CHESS-SQL UCT

Closest papers by meaning

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.

Open scime draft

Get the next scime Dispatch and a monthly field update

Free. We send a confirmation link first; every email has a one-click unsubscribe. Privacy