Single-Database Rewards Are Hackable: Counterfactual Execution for Trustworthy Text-to-SQL RL (opens in a new tab)
Researchers propose a counterfactual-database (CF) reward mechanism for text-to-SQL reinforcement learning to prevent agents from receiving rewards for buggy queries that coincidentally match reference results.
- The strict CF reward form reduced the share of buggy queries paid in full from 29.5% to 16.8%.
- Reward hacks dropped from 54.1% to 1.9% using the strict CF reward form.
- The strict CF reward rejected zero out of 2,847 correct queries during testing.