Turning Database Grading into RL Rewards: Post-Training Agents with ThinkingBox
By Jakub Antkiewicz
•2026-10-23T13:05:31Z
Turning Benchmarks into Training Signals
Researchers from Microsoft and Hugging Face have successfully used their ThinkingBox evaluation framework to create a reward signal for post-training AI agents, dramatically improving model reliability. In a follow-up to their initial findings, the team applied a Reinforcement Learning (RL) fine-tuning process to the open-source Qwen3.8-27B model. The key result is a significant increase in the model's ability to complete tasks correctly on every attempt, a critical measure for production systems that interact with live databases.
From Grading to Reinforcement
The team's method hinges on converting the executable checks from the ThinkingBox-Bench benchmark—which verify the final state of a database after an agent acts—into a binary reward (1 or 0) for training. To optimize the process, they curated a training pool using a technique called "offline policy-relative difficulty," ensuring the model trained on tasks that were challenging but not impossible. After 50 steps of GRPO fine-tuning, the results on the out-of-distribution benchmark were substantial:
- Repeatable Success (Observed 20/20): The number of tasks the agent completed correctly on all 20 attempts nearly tripled, jumping from 38 to 107.
- Average Success (pass@1): The rate of successful attempts across all tasks increased from 51.70% to 60.78%.
- At-Least-Once Success (pass@20): A slight trade-off was observed, with the number of tasks solved at least once decreasing from 453 to 446.
This pattern indicates the model's behavior was "sharpened," improving its consistency on solvable tasks rather than broadening its overall capability, a known effect in similar RL fine-tuning studies.
The Economics of Dependability
This research directly impacts the economic viability of deploying smaller, open-source models in enterprise settings. By focusing on dependability, the fine-tuned 27B-parameter model achieved a reliability level competitive with much larger proprietary models like GPT-5.4 and Claude Opus 5.5. The estimated "cost per dependable task" for Qwen3.8-27B plummeted by 67.2%, from $24.36 to $8.00. This shift underscores a growing industry focus on verifiable, repeatable agent performance over simple headline accuracy, providing a clear path to make AI agents more practical and trustworthy for production workloads.
The ThinkingBox methodology shows that using verifiable outcomes as a reward signal is a more direct and cost-effective path to improving agent reliability than chasing higher accuracy on broad benchmarks, effectively turning smaller open-source models into viable, production-grade tools.