Trendoday

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

Reinforcement learning (RL) for text-to-SQL agents pays a query when its result matches the reference on one database. However, a wrong query can match by luck when the data lack the rows that expose

  • Upvotes6
–Rank now
#19Peak rank · Nov 29
5Days on list
91List score · 7d
Nov 26, 2026First seen
Rank · 7 days

About this paper

A counterfactual-database reward for reinforcement learning text-to-SQL agents reduces full payment to buggy queries and reward hacks, though training with its mean form did not improve in-domain accuracy in a controlled GRPO comparison.

Reinforcement learning (RL) for text-to-SQL agents pays a query when its result matches the reference on one database. However, a wrong query can match by luck when the data lack the rows that expose its bug. We study a counterfactual-database (CF) reward that also runs the final query on a few hidden, code-generated copies of the database and pays only if all results match (strict form) or by the share matched (mean form). On 1,302 synthetic audit questions, the strict form lowers the share of buggy queries paid in full from 29.5% to 16.8% and of reward hacks from 54.1% to 1.9%, rejecting 0 of 2,847 correct queries; copies from a family-blind generator do about as well. In a controlled…

reinforcement learningtext-to-SQL agentscounterfactual-database rewardstrict formmean formreward hacksGRPOrolloutsin-domain accuracyfamily-blind generator
Upvotes
6
Authors
3
Published
Nov 25, 2026

Summary and abstract excerpt via Hugging Face Papers ↗ · arXiv.

Trending history

Single-Database Rewards Are Hackable: Counterfactual Execution for Trustworthy Text-to-SQL RL was first seen by Trendoday on Nov 26, 2026. Since then it has appeared in 42 checks on 5 different days. It reached #19 on Hugging Face · Daily papers on Nov 29, 2026 UTC. It was last seen on Hugging Face · Daily papers on Nov 30, 03:29 UTC.

Rank history

Position on Hugging Face · Daily papers at every check (lower is better).

#1#11#20#30 Nov 26Nov 27Nov 28Nov 29Nov 30 Nov 26, 17:29 UTC · #26Nov 26, 19:29 UTC · #25Nov 26, 21:29 UTC · #25Nov 26, 23:29 UTC · #24Nov 27, 01:29 UTC · #22Nov 27, 03:29 UTC · #22Nov 27, 05:29 UTC · #23Nov 27, 07:29 UTC · #22Nov 27, 09:29 UTC · #22Nov 27, 11:29 UTC · #21Nov 27, 13:29 UTC · #22Nov 27, 15:29 UTC · #22Nov 27, 17:29 UTC · #23Nov 27, 19:29 UTC · #23Nov 27, 21:29 UTC · #22Nov 27, 23:29 UTC · #22Nov 28, 01:29 UTC · #22Nov 28, 03:29 UTC · #22Nov 28, 05:29 UTC · #22Nov 28, 07:29 UTC · #22Nov 28, 09:29 UTC · #24Nov 28, 11:29 UTC · #24Nov 28, 13:29 UTC · #24Nov 28, 15:29 UTC · #24Nov 28, 17:29 UTC · #25Nov 28, 19:29 UTC · #25Nov 28, 21:29 UTC · #26Nov 28, 23:29 UTC · #26Nov 29, 01:29 UTC · #26Nov 29, 03:29 UTC · #26Nov 29, 05:29 UTC · #26Nov 29, 07:29 UTC · #24Nov 29, 09:29 UTC · #24Nov 29, 11:29 UTC · #24Nov 29, 13:29 UTC · #25Nov 29, 15:29 UTC · #25Nov 29, 17:29 UTC · #19Nov 29, 19:29 UTC · #19Nov 29, 21:29 UTC · #20Nov 29, 23:29 UTC · #20Nov 30, 01:29 UTC · #20Nov 30, 03:29 UTC · #20

Last 14 days

Best rank per day (UTC).

Nov 23today

Metric history

Platform metric as reported by Hugging Face.

0246 Nov 26Nov 27Nov 28Nov 29Nov 30 Nov 26, 17:29 UTC · 3Nov 26, 19:29 UTC · 4Nov 26, 21:29 UTC · 4Nov 26, 23:29 UTC · 4Nov 27, 01:29 UTC · 4Nov 27, 03:29 UTC · 4Nov 27, 05:29 UTC · 4Nov 27, 07:29 UTC · 4Nov 27, 09:29 UTC · 4Nov 27, 11:29 UTC · 4Nov 27, 13:29 UTC · 4Nov 27, 15:29 UTC · 4Nov 27, 17:29 UTC · 4Nov 27, 19:29 UTC · 4Nov 27, 21:29 UTC · 4Nov 27, 23:29 UTC · 4Nov 28, 01:29 UTC · 4Nov 28, 03:29 UTC · 4Nov 28, 05:29 UTC · 4Nov 28, 07:29 UTC · 4Nov 28, 09:29 UTC · 4Nov 28, 11:29 UTC · 4Nov 28, 13:29 UTC · 4Nov 28, 15:29 UTC · 4Nov 28, 17:29 UTC · 4Nov 28, 19:29 UTC · 4Nov 28, 21:29 UTC · 4Nov 28, 23:29 UTC · 4Nov 29, 01:29 UTC · 4Nov 29, 03:29 UTC · 4Nov 29, 05:29 UTC · 4Nov 29, 07:29 UTC · 5Nov 29, 09:29 UTC · 5Nov 29, 11:29 UTC · 5Nov 29, 13:29 UTC · 5Nov 29, 15:29 UTC · 5Nov 29, 17:29 UTC · 6Nov 29, 19:29 UTC · 6Nov 29, 21:29 UTC · 6Nov 29, 23:29 UTC · 6Nov 30, 01:29 UTC · 6Nov 30, 03:29 UTC · 6

Questions

Is Single-Database Rewards Are Hackable: Counterfactual Execution for Trustworthy Text-to-SQL RL trending on Hugging Face · Daily papers right now?

Not at the moment. Its last recorded appearance was on Nov 30, 03:29 UTC.

What is the highest rank Single-Database Rewards Are Hackable: Counterfactual Execution for Trustworthy Text-to-SQL RL reached on Hugging Face · Daily papers?

#19 on Nov 29, 2026 UTC.

How long has Single-Database Rewards Are Hackable: Counterfactual Execution for Trustworthy Text-to-SQL RL been trending?

It was first seen on Nov 26, 2026 and has been on the list on 5 days (42 checks) since.