Megadose Built for builders and researchers.

Single-Database Rewards Are Hackable: Counterfactual Execution for Trustworthy Text-to-SQL RL

· HF Daily Papers ·
Hidden database copies cut the share of reward hacks paid in full from 54.1% to 1.9% in a synthetic audit.

The method checks SQL queries against generated database variants, exposing errors that happen to produce the right answer on the original data. Requiring every result to match also reduced full payouts for buggy queries from 29.5% to 16.8%, while rejecting none of 2,847 correct queries. Training with a reward based on the share of variants matched produced lower in-domain accuracy—8.4% versus 11.7%—but gained 1.6 points on Spider. One training seed reversed both results, underscoring the paper’s warning that single-seed comparisons can mislead.

HF Daily Papers' note

score 5

Categories: Research