Reward Blindness: A Theoretical Framework for Diagnosing Reinforcement Learning Reward Limitations in Text-to-SQL
Lakshmi Muraleedharan Nair, Shiqi Huang, Fangyu Lo, Yihua Xu, Dingyan Shang
Key points
From the paper's conclusion- We introduce Reward Error Sensitivity, a measure of how strongly a reward function separates queries that contain a given error type from queries that do not, and prove a Reward Blindness theorem: when this sensitivity is zero, policy-gradient training carries no systematic signal for removing that error.
Abstract
Text-to-SQL systems let users without programming expertise query relational databases in natural language. Reinforcement learning has become the dominant way to train such systems, yet progress is still judged by a single number, execution accuracy, which counts correct queries but says nothing about which kinds of semantic error survive training. This paper develops a theoretical framework that examines text-to-SQL from the perspective of reward design. We introduce Reward Error Sensitivity, a measure of how strongly a reward function separates queries that contain a given error type from queries that do not, and prove a Reward Blindness theorem: when this sensitivity is zero, policy-gradient training carries no systematic signal for removing that error. Using fourteen published finegrained error signals for four text-to-SQL systems on the BIRD benchmark, we build error profiles and estimate sensitivities for common reward designs. Predicate and result-level errors are the most frequent, firing on up to 27 percent of queries, while structurally deep errors such as suboptimal joins persist at 5 to 12 percent. Each reward family has a distinct and predictable set of blind spots, and inexpensive database-level checks that need no language model calls detect 45 to 60 percent of semantic errors. Controlled training simulations confirm that executiononly reward leaves output-preserving errors untouched, whereas a signal-grounded reward removes them even when the detectors are noisy.
Read the paper
Discussion
Science Skim's AI key points, plus readers' public thoughts
Readers' thoughts
No reader thoughts yet.
Related papers
- Single-Database Rewards Are Hackable: Counterfactual Execution for Trustworthy Text-to-SQL RLarXiv · 2026
- Probing Ambiguity: Adversarial Intent Resolution for Robust Text-to-SQLarXiv · 2026
- Know Your Context Bank: Repairing Inconsistency and Measuring Generalization in Context-Aware Text-to-SQLarXiv · 2026
- Bounded Semantic Planning and Deterministic Compilation for Reliable Enterprise Text-to-SQLarXiv · 2026
- Know When to Abstain: Conformal Confidence Estimation for Text-to-SQLarXiv · 2026
- Text-to-SQL in the Era of Large Language Models: A Survey of Reasoning-Centric and Efficiency-Centric ApproachesElectronics · 2026