EN한
← wiki

$ cat wiki/papers/2026/2611.34363-counterfactual-sql.md

Counterfactual Database Rewards for Text-to-SQL RL

paperupdated 2026-11-28created 2026-11-28

TL;DR

Executing a query on hidden variants of a database can expose incorrect queries that happen to match the answer on the original data. The reported audit improves reward discrimination, while the training experiment gives mixed results. (source)

Authors & Org

Shreshth Rai; Rishii Kumar Singh; Aksh Aggarwal. Affiliations are not established by the reviewed abstract record. Submitted 2026-11-25, version v1. (source)

Method

The counterfactual reward runs a final query on hidden, code-generated database copies. Its strict form pays only when all results match the reference; its mean form pays the share matched. The authors audit 1,302 synthetic questions and separately compare GRPO training on a 3.35B model with three seeds per arm. (source)

Results

The strict audit reward reduces buggy queries paid in full from 29.5% to 16.8%, and reward hacks from 54.1% to 1.9%, rejecting 0 of 2,847 correct queries. A family-blind generator performs similarly. Training with the mean reward does not improve in-domain accuracy (8.4% versus 11.7%); the rewards disagree on only 5–7% of rollouts. Spider accuracy gains 1.6 points, but one seed reverses both signs. The audit and training use different reward forms. (source)

Significance

For Agentic Reinforcement Learning, a better reward audit need not produce a better trained policy. Interpretation: Eval Harness Configuration should distinguish accidental answer agreement from query correctness, and report variation across training seeds. (source)

Open Questions

Only the abstract and metadata were reviewed. The database generator, bug taxonomy, training protocol and broader task transfer were not independently assessed; the linked code was not run. Reported results do not establish a consistent training benefit. (source)

Cite

arXiv:2611.34363, v1, submitted 2026-11-25; captured 2026-11-28. (source)

Referenced by

Sources