cs.CLMay 20, 2026

Residual Skill Optimization for Text-to-SQL Ensembles

Authors: Jiongli ZhuHaoquan GuanParjanya Prajakta PrashantNikki Lijing KuangSeyedeh Baharan KhatamiCanwen XuXiaodong YuYingyu Lin+3 more

Organizations: University of California, San Diego · 2Snowflake AI Research

Abstract

Text-to-SQL ensembles improve over single-candidate generation by drawing multiple SQL candidates and selecting one, but their effectiveness is bounded by Pass@K, the probability that at least one of K candidates is correct. Existing methods source diversity heuristically through stochastic decoding or prompt variants, leaving candidate sets dominated by correlated failures. We present DivSkill-SQL, a residual skill optimization framework that builds complementary agentic Text-to-SQL ensembles without model fine-tuning: each new skill is optimized on examples the current skill ensemble fails on, provably targeting its marginal contribution to Pass@K. On Spider2-Lite, DivSkill-SQL improves selected accuracy by up to +11.1 points on Snowflake and +8.3 on BigQuery over the strongest ensemble baseline, with consistent gains across two base models (Opus-4.6 and GPT-5.4). Skills optimized on a single dialect transfer without retraining across dialects (Snowflake, BigQuery, SQLite) and to a different task formulation, such as BIRD-Critic (+2.6 pts). Error diagnostics show up to 3x fewer hallucinated schema references and function calls, indicating that gains come from genuinely reliable complementary skills rather than surface-form variation.

Explore similar work

CardsList
  1. DualSQL: Text-to-SQL with Multi-Agent Reinforcement Learning

    Sep 16, 2026Shijie Chen, Yu Gan, Yeounoh Chung +6Text-To-SqlSql

  2. R3^3-SQL: Ranking Reward and Resampling for Text-to-SQL

    Apr 28, 2026Hojae Han, Yeonseok Jeong, Seung-won Hwang +2Text-To-SqlSql