Skip to content
AI Learning Ground Start learning

Research ·

Turning Database Grading into RL Rewards: Post-Training Agents with ThinkingBox

Microsoft used ThinkingBox's executable database-state checks as RL rewards to post-train Qwen3.8-27B with GRPO, raising average benchmark success from 51.70% to 60.78% and all-20-attempts completions from 38 to 107 of 507 tasks.

Turning Database Grading into RL Rewards: Post-Training Agents with ThinkingBox
Image: Hugging Face

Microsoft's ThinkingBox project grades agents by checking what actually changed in a database after they work on a real backend with MCP tools, rather than trusting their claims of completion. Each of the 507 ThinkingBox-Bench tasks ends with executable checks against the terminal database state, so an outcome can return a 1 or 0 directly. The team realized this grader could double as a reward function, and used executable outcomes from a pool of ThinkingBox-format tasks outside the benchmark to fine-tune Qwen3.8-27B with GRPO for 50 steps.

To pick useful training tasks, they introduced offline policy-relative difficulty: success probability is estimated once with the base policy before training, since a task only teaches the model if it is neither already solved nor hopeless. After training, average success (pass@1 over 10,140 attempts) rose from 51.70% to 60.78%, and tasks passing all twenty attempts grew from 38 (7.5%) to 107 (21.1%), though at-least-once coverage dipped slightly. On one hotel-booking task requiring manager approval, the base model wrongly changed bookings and issued refunds in 15 of 20 runs; the fine-tuned model preserved booking and payment state in all 20.

For anyone building agents that touch production databases, this shows verifiable terminal-state checks can serve as reward signals for RL without human-labeled traces, and that pass@1 alone hides reliability gaps: Kimi-K3 solved 93.89% of tasks at least once but only 68 of 507 on all twenty attempts, while Claude Opus 5.5 led observed-20/20 counts. The training code is available on GitHub.

References

Read the full story at Hugging Face ↗Like, save or discuss on Buzz

#open-weights #tooling #research