Open-source projects
Microsoft and Hugging Face Turn Database Grading Into RL Rewards With ThinkingBox-Training
Microsoft and Hugging Face open-sourced ThinkingBox-Training, which uses executable database-state checks as RL rewards; Qwen3.8-27B went from 38 to 107 tasks passed on all 20 attempts.
Microsoft and Hugging Face published a joint technical post describing how they turned ThinkingBox's database-state checks into reinforcement learning rewards for post-training agents that operate real backends, and released the ThinkingBox-Training stack on GitHub.
ThinkingBox started as an evaluator. Each of its 507 benchmark tasks spins up a real backend, gives an agent a set of MCP tools and a simulated LLM user with private context, then runs executable checks against the terminal database state rather than looking at which tools were called or what the agent said. In the earlier post, the authors described a model closing a customer ticket as resolved while the underlying carrier exception was still open: nine plausible tool calls, one wrong row.
The new observation is that most terminal-state checks naturally return 1 or 0, so the same machinery that grades can serve as a reward. The team built a training pool of ThinkingBox-format tasks outside the benchmark, used their executable outcomes as rewards, and fine-tuned Qwen3.8-27B with 50 steps of full-parameter GRPO.
According to the reported numbers, average pass@1 rose from 51.70% to 60.78%. The metric the authors emphasize is dependability: tasks completed on all twenty recorded attempts rose from 38 (7.50%) to 107 (21.10%), nearly tripling. The tradeoff is a small drop in pass@20, from 453 to 446 tasks solved at least once. The authors read this as sharpening, with probability mass moving toward trajectories that work repeatedly while some low-probability paths disappear.
Task selection is presented as the hardest part. GRPO needs contrast within a rollout group; if all eight attempts fail or all succeed, centering produces no advantage. The authors propose offline policy-relative difficulty: probe each candidate task repeatedly against the base policy before training, estimate its success probability with a Jeffreys posterior, Beta(k+0.5, n-k+0.5), and bucket it at 0.08, 0.40, 0.60 and 0.90. Nearly-never-solved and nearly-always-solved tasks are dropped, leaving a fixed pool of 187 tasks. No benchmark task entered training, so the 507 tasks form an out-of-distribution test set, though the authors note shared framework, simulated-user machinery and task style limit how far the transfer claim extends.
Rewards come only from the end state. Most tasks use deterministic executable checks; a minority of narrow requirements that cannot be read cleanly from database state invoke an LLM judge for a binary rubric answer. The authors stress that training and evaluation must interpret model output identically, covering reasoning extraction, tool calls, argument typing, rendering and isolated task state, or the reward measures a different agent than the one being evaluated. Training used token-mean GRPO with 18 groups of 8 rollouts per update across 24 H100s, a learning rate of 1e-6 and zero weight decay, DAPO-style replacement of zero-variance groups, and separate handling of backend timeouts so system errors are refilled rather than scored as failures.
On cost, the authors estimate a full 507-by-20 campaign from measured token usage. Cost per successful attempt falls from 0.177 to 0.139 dollars, and cost per dependable task from 24.36 to 8.00 dollars, a 67.2% reduction that they say approaches GPT-5.4, GPT-6 Astra and Claude Opus 5.5 on the same index. They describe these figures as a comparative serving index rather than invoices, excluding training and difficulty-probing cost.
The comparison table also matters for context: Claude Opus 5.5 still leads overall at 67.16% pass@1 and 241 tasks passed on all twenty attempts, so the fine-tuned 27B model is closing cost-efficiency gaps rather than surpassing frontier models.
For developers, the transferable idea is that when a business outcome can be checked deterministically in a database, filesystem or API state, that same check can serve as both benchmark and training signal without human labels or trajectory-level judgment. The limits are equally clear: outcomes must be mechanically verifiable, and the training pool's difficulty is estimated once, before training. The authors explicitly mark re-probing difficulty during training as the path they did not take.