Human-Level Text-to-SQL via Reinforcement Learning on Verified Data, Without Pipeline Engineering

Yuxuan Zhu, Tengjun Jin, Yoojin Choi, Daniel KangarXiv 2026

TL;DR

This paper demonstrates that human-level Text-to-SQL performance can be achieved by fine-tuning a single Large Language Model (LLM) using Reinforcement Learning from Verifiable Rewards (RLVR) on clean data, completely bypassing the need for complex, multi-stage inference pipelines. By introducing a rigorously verified dataset (BIRD-Platinum) and a domain-specific reward-shaping method (ReViSQL-BIRD), the authors achieve a breakthrough 93.8% accuracy on expert-verified benchmarks, matching human parity for the first time.

What Problem Does This Paper Address?

Translating natural language questions into executable SQL queries (Text-to-SQL) is vital for democratizing data access. To combat LLM errors, the current state-of-the-art relies on increasingly bloated, multi-stage inference pipelines that layer task decomposition, schema linking, and iterative debugging around the model. However, these pipelines suffer from cascading errors, high inference costs, and have hit a performance ceiling—still lagging behind human experts by over 10% on major benchmarks like BIRD.

The authors identify that the true bottleneck isn't the model's intrinsic capacity, but the poor quality of training data. Popular Text-to-SQL training sets contain pervasive annotation errors (over 50%). When applying standard RLVR, these errors corrupt the reward signals, leading to two major failure modes:

  1. Result Coincidence (False Positives): Structurally incorrect SQL queries often coincidentally return the correct execution results on a specific database instance, tricking standard outcome-based rewards.
  2. Neglecting External Knowledge: Models frequently ignore crucial context or "evidence" provided in the prompt, defaulting instead to general pretraining priors.

Methods

To eliminate pipeline engineering at inference time, the authors shift the complexity to the training phase through two key innovations:

  1. Hybrid LLM–Human Curation Pipeline: To clean the training data, the authors designed a rigorous 5-stage verification pipeline. It combines broad LLM-assisted error flagging (using OpenAI o3) with multiple rounds of independent human expert correction and verification, followed by automated execution testing.
Figure 2: Our hybrid LLM–human-expert pipeline for correcting text-to-SQL annotation errors in BIRD.
  1. ReViSQL-BIRD Reward Shaping: To fix RLVR failure modes, they developed a composite reward function:
  2. Verification-Aware Outcome Rewards: They integrated VeriEQL (a bounded SQL equivalence verifier) to check semantic equivalence. If a query passes execution but is proven semantically incorrect by VeriEQL, its reward is softly downweighted.
  3. Process Supervision for External Knowledge: The system prompt forces the model to explicitly output "requirement" and "verification" blocks for each piece of external knowledge. Rule-based process penalties are deducted if the model fails to comply.

Models were fine-tuned using CISPO, a state-of-the-art RLVR loss function that stabilizes token-level training and improves sample efficiency.

Datasets

  • BIRD-Platinum (New): A highly curated dataset of 2.5k instances sampled uniformly from the BIRD Train set. The curation process revealed that 61.1% of the sampled instances contained annotation errors, which were manually corrected.
  • Arcwise-Plat-Full & Arcwise-Plat-SQL: Expert-verified variants of the BIRD Mini-Dev set used for evaluation. "Full" cleans questions, knowledge, and SQL; "SQL" fixes only the gold SQL to test robustness against real-world noisy inputs.
  • Spider2-SQLite & Spider2-Snow: Used to evaluate cross-domain generalizability and dialect adaptation (SQLite to Snowflake).

Key Insights and Ideas

  • Data Quality > Pipeline Engineering: Clean training data is the dominant factor in unlocking RLVR performance. Rewarding a model against noisy data simply teaches it to replicate human annotation errors.
  • The False Positive Trap: The authors discovered a staggering 32.8% average false positive rate for standard result-based rewards during training, and this rate does not naturally decrease as the model improves.
Figure 4: False positive re- wards persist across the entire training process of Kimi-K2.6.
  • Ambiguity Dominates the Residual Gap: A detailed failure analysis revealed that 69% of the remaining errors at the human-parity level are caused by natural language question ambiguity (where the model generates a defensible query that simply differs from the gold interpretation), rather than actual SQL generation defects.

Key Results

  • Human Parity Achieved: Fine-tuning Kimi-K2.6 with ReViSQL-BIRD achieved 93.8% accuracy on Arcwise-Plat-Full using simple greedy decoding, and 93.0% on Arcwise-Plat-SQL with self-consistency. Both results sit within the 95% confidence interval of proxy human performance (92.96%).
Figure 1: On Arcwise-Plat-SQL, an expert-verified BIRD Mini- Dev set constructed by prior work [4, 22], ReViSQL-BIRD achieves human-level performance [52] using RLVR (Kimi- K2.6) with verified data and reward shaping. ReViSQL-BIRD obviates the need for the complex pipelines [2, 14, 43, 47, 67] with 10–22% higher accuracy.
  • Dominating Complex Pipelines: ReViSQL-BIRD-K2.6 outperformed OpenSearch (the leading prior pipeline powered by GPT-5.2) by up to 8.4% while reducing per-query inference costs by 37%.
  • Strong Generalization: When evaluating a Qwen3-235B model trained with ReViSQL on out-of-distribution tasks, it showed an 11.8% improvement on Spider2-SQLite and a 14.0% improvement on Spider2-Snow compared to the BIRD Train baseline, proving the data quality benefits transfer across dialects.

Limitations and Future Work

  • Verifier Constraints: VeriEQL can time out or fail on unsupported complex SQL operators (like window functions). To prevent this from breaking training, the authors had to use soft downweighting rather than completely zeroing out rewards.
  • Lingering Model Defects: While small, 31% of the residual failures are genuine model defects, primarily involving the omission of schema-induced filters (e.g., forgetting IS NOT NULL constraints).
  • Resolving Ambiguity: Because the remaining bottleneck is dominated by question ambiguity, future work must focus on how systems can interactively clarify ambiguous user prompts rather than solely optimizing SQL generation.

Summary updated

BibTeX
@misc{zhu2026human,
  author = {Yuxuan Zhu and Tengjun Jin and Yoojin Choi and Daniel Kang},
  title = {{Human-Level Text-to-SQL via Reinforcement Learning on Verified Data, Without Pipeline Engineering}},
  year = {2026},
  eprint = {2603.20004},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2603.20004},
}
Figure