atlas

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

CHASE-SQL: Multi-Path Reasoning and Preference Optimized Candidate Selection in Text-to-SQL

ICLR 2025 · Large language models › Agents, code and math · approach: LLM-guided program synthesis · 7 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.

CHASE-SQL generates diverse SQL candidates via three LLM generators (divide-and-conquer CoT, query-plan CoT, online synthetic examples) and selects the best with a fine-tuned pairwise selection agent, reaching SOTA on BIRD.

Problem

Text-to-SQL accuracy with LLMs is limited by a single prompt's coverage and by selection methods like self-consistency, which often pick wrong answers even though correct candidates exist (upper bound ~14-20% higher).

Approach

Combine three diverse candidate generators (divide-and-conquer CoT, execution-plan-based CoT, and instance-aware online synthetic few-shot examples) with a pairwise binary selection agent fine-tuned to compare candidates and score them via a round-robin tournament, instead of majority voting.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
Use CHASE-SQL with Gemini 1.5 instead of prior methodsText-to-SQL · BIRD devexecution accuracy (EX, %): 73.01 vs. 72.16Helped
Use CHASE-SQL with Gemini 1.5 instead of prior methodsText-to-SQL · BIRD testexecution accuracy (EX, %): 73.0 vs. 72.39Helped
Use trained selection agent instead of self-consistency majority votingBIRD dev candidate selection · BIRD dev, QP T=0.5execution accuracy (%): 65.78 -> 71.7Helped
Add query-plan CoT generation (ablation)Single-candidate generation · BIRD devexecution accuracy (%): 57.75 -> 63.62Helped
Add divide-and-conquer CoT generation (ablation)Single-candidate generation · BIRD devexecution accuracy (%): 57.75 -> 63.92Helped
Add online synthetic example generation (ablation)Single-candidate generation · BIRD devexecution accuracy (%): 57.75 -> 67.09Helped
Add query fixer (ablation)CHASE-SQL · BIRD devexecution accuracy (%): 69.23 -> 73.01Helped
Add LSH value retrieval (ablation)CHASE-SQL · BIRD devexecution accuracy (%): 70.09 -> 73.01Helped
Add query-plan CoT generator (ablation)CHASE-SQL · BIRD devexecution accuracy (%): 72.36 -> 73.01Helped
Add online synthetic example generator (ablation)CHASE-SQL · BIRD devexecution accuracy (%): 72.16 -> 73.01Helped
Add divide-and-conquer CoT generator (ablation)CHASE-SQL · BIRD devexecution accuracy (%): 71.77 -> 73.01Helped
Replace binary selection agent with self-consistency (ablation)CHASE-SQL · BIRD devexecution accuracy (%): 73.01 -> 68.84Hurt

Surprising findings

Limitations

Experimental setup

Datasets: BIRD Spider

Benchmarks: BIRD Spider

Metrics: execution accuracy binary selection accuracy

Baselines: Distillery + GPT-4o CHESS MCS-SQL + GPT-4 SuperSQL DAIL-SQL + GPT-4 DIN-SQL + GPT-4 Self-consistency Ranker agent Claude-3.5-sonnet Gemini-1.5-pro

Builds on: chain-of-thought prompting self-consistency self-reflection MCS-SQL

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