# Reward Blindness: A Theoretical Framework for Diagnosing Reinforcement Learning Reward Limitations in Text-to-SQL

> This paper defines Reward Error Sensitivity to show whether a Text-to-SQL reward distinguishes queries with and without specific errors. In controlled GRPO simulations, execution-only reward leaves silent join errors unchanged; signal-grounded reward reduces them, even with noisy detectors.

- arXiv: https://arxiv.org/abs/2611.29930
- Authors: Lakshmi Muraleedharan Nair, Shiqi Huang, Fangyu Lo, Yihua Xu, Dingyan Shang
- Published: 2026-11-25
- Topic: RL & post-training
- Visual carousel: https://instaxiv.com/p/2611.29930
- Explanation by InstaXiv, a secondary educational summary. Cite the original paper for exact results. InstaXiv is not affiliated with or endorsed by arXiv or Cornell University.

## An execution reward can miss a flawed query with the right answer

**20%** silent-join rate, 2k-step exec-only GRPO sim

## One answer can hide a structurally worse query

**Gold SQL:** For “How many female students are enrolled?”, the gold query reads the students table alone and returns the count.

**Redundant join:** A second query adds enrollment and an unnecessary courses join but returns the same count; execution reward gives both queries 1.

Reward Error Sensitivity measures this reward blind spot by error type.

## Reward Error Sensitivity: what changes the score?

$$
\begin{gathered}\mathrm{RES}(R,e)=\left|\mathbb{E}_{P}[R\mid \sigma_e=1]-\mathbb{E}_{P}[R\mid \sigma_e=0]\right|\end{gathered}
$$

For a query distribution P, RES is the average reward gap between queries with error e and queries without it. Zero means no average separation.

- $\sigma_e=1$: Error e is present
- $\sigma_e=0$: Error e is absent

## What zero sensitivity predicts in training

1. **Equal mean advantages**: With RES=0 and a mean-reward baseline, queries with and without error e have equal mean reward and zero mean advantage.
2. **The policy-gradient claim**: The paper concludes there is no systematic update aimed at error e; correlations with other rewarded features or sampling noise can still shift its rate.
3. **Scope of the rate result**: For small learning rates, the separate rate formula assumes independence from other reward-relevant features; it is a linearization, not a convergence guarantee.

## Different rewards go blind in different places

**Graph-Reward-SQL:** Its AST matching can reward join topology, but external evidence is absent from the AST, leaving evidence violations invisible.

**Reasoning-SQL n-gram:** Token overlap barely distinguishes correct from incorrect join predicates, which may differ by only a few tokens.

RES puts such category-specific blind spots on a shared scale.

## Controlled GRPO separates the reward curves

![Figure 3](https://cdn.instaxiv.com/figures/2611.29930/figure3.webp)

Over 2,000 steps, execution reward stays flat for silent joins. With 30% of join errors affecting output, signal-grounded reward reduces errors faster even with 20% false positives and 10% false negatives (10-seed mean). (Figure 3)

## Turn error checks into learning signals

1. **Keep the task anchor**: The proposed reward keeps execution match as an anchor with weight α≥0.5; auxiliary terms add error-specific feedback.
2. **Score error categories**: Add signals for joins, predicates, schema, evidence, and structure; nine SQLENS signals are database-based and need no LLM call.
3. **Bound detector noise**: Cap the auxiliary-weight sum at 1−α: an execution-passing query scores ≥α, a failing one ≤1−α; noise cannot rank failure higher.

## How much coverage do the checks buy?

| Method | Semantic-error coverage | Cost per query | LLM calls |
| --- | --- | --- | --- |
| DB-only (9 signals) | 45.5–59.6% | ~30 ms | 0 |
| LLM-only (5 signals) | 19.2–29.6% | ~500 ms | 1 |
| **Combined (14 signals)** | **64.7–89.2%** | **~530 ms** | **1** |

_SQLENS ranges use four Claude 3.5 Sonnet prompting systems on BIRD-dev (1,534 questions, 95 databases); costs per query._

## Evidence has boundaries, and the proof needs care

- **No full-scale LLM run**: The proposed reward is tested in controlled GRPO simulations, not end-to-end training of an LLM policy.
- **Real-data RES is estimated**: Four published prompting systems on BIRD-dev are profiled with imperfect SQLENS detectors; ground-truth error labels and new inference are absent.
- **Policy-gradient proof gap**: Equal conditional means alone do not establish that the error-directed update vanishes; the proof must control correlations between advantage and policy-score gradients within groups.

Best used when: Use RES as a reward-coverage diagnostic; treat these curves as controlled evidence, not full-scale LLM validation.

## Key takeaways

- Check reward sensitivity per error type; execution accuracy alone cannot show which mistakes training can see.
- Database-only checks add low-cost feedback, but detector precision and auxiliary weights still need care.
- Full-scale LLM training is still needed to test whether simulated gains transfer.

## Links

- arXiv: https://arxiv.org/abs/2611.29930
- PDF: https://arxiv.org/pdf/2611.29930

## Citation

```bibtex
@article{nair2026reward,
  title   = {Reward Blindness: A Theoretical Framework for Diagnosing Reinforcement Learning Reward Limitations in Text-to-SQL},
  author  = {Nair, Lakshmi Muraleedharan and Huang, Shiqi and Lo, Fangyu and Xu, Yihua and Shang, Dingyan},
  journal = {arXiv preprint arXiv:2611.29930},
  year    = {2026},
  url     = {https://arxiv.org/abs/2611.29930}
}
```
