A Negative Evaluation of Few-Shot Compilation in Execution-Guided Text-to-SQL

Few-shot prompt compilation can improve individual language-model calls, but its effect on anexecution-guided pipeline also depends on the candidates it produces and the answers the systemselects. We evaluate one BootstrapFewShot artifact with Qwen2.5-7B-Instruct on all 1,534 BIRDdevelopment questions, crossing joint decomposer–generator compilation with four generationand selection policies. Compilation reduced execution accuracy in every matched comparison.For Self-Consistency + Verifier, accuracy fell from 52.09% to 48.57%, questions without selectedSQL increased from 14 to 68, and mean distinct eligible SQL strings fell from 4.15 to 2.81. Lowerliteral diversity persisted on the same questions with eight eligible candidates in both modes.Trajectory analysis also found lower observed execution recovery and more failures associatedwith repair patterns, despite fewer loop-containing questions overall. Candidate coverage andselection diagnostics show that the regression extends beyond the final choice of answer. Thestudy documents a negative result for one compiled artifact and pipeline; it does not isolate theeffects of planning, generation, or demonstration content.

Authors

Institutions

Publication Details

Journal
Zenodo (CERN European Organization for Nuclear Research)
Published
2026-11-26
DOI
https://doi.org/10.5281/zenodo.24545949
Primary Topic
Natural Language Processing Techniques
Type
preprint
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
NOV
preprint

A Negative Evaluation of Few-Shot Compilation in Execution-Guided Text-to-SQL

Vikrant Gandotra
4 links
Zenodo (CERN European Organization for Nuclear Research)
Natural Language Processing Techniques
preprint

A Negative Evaluation of Few-Shot Compilation in Execution-Guided Text-to-SQL

Vikrant Gandotra
preprint en

Abstract

Few-shot prompt compilation can improve individual language-model calls, but its effect on anexecution-guided pipeline also depends on the candidates it produces and the answers the systemselects. We evaluate one BootstrapFewShot artifact with Qwen2.5-7B-Instruct on all 1,534 BIRDdevelopment questions, crossing joint decomposer–generator compilation with four generationand selection policies. Compilation reduced execution accuracy in every matched comparison.For Self-Consistency + Verifier, accuracy fell from 52.09% to 48.57%, questions without selectedSQL increased from 14 to 68, and mean distinct eligible SQL strings fell from 4.15 to 2.81. Lowerliteral diversity persisted on the same questions with eight eligible candidates in both modes.Trajectory analysis also found lower observed execution recovery and more failures associatedwith repair patterns, despite fewer loop-containing questions overall. Candidate coverage andselection diagnostics show that the regression extends beyond the final choice of answer. Thestudy documents a negative result for one compiled artifact and pipeline; it does not isolate theeffects of planning, generation, or demonstration content.

Zenodo (CERN European Organization for Nuclear Research)
Iowa State University (US)
Natural Language Processing Techniques
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.

Laika access coming soon