ThinkingBox turns database checks into AI training rewards
Microsoft and Hugging Face report stronger repeatability for Qwen3.8-27B after using executable database checks as reinforcement-learning rewards.
Microsoft and Hugging Face say their ThinkingBox training work improved how consistently Qwen3.8-27B completed stateful tasks, using executable checks of a database’s final state as reinforcement-learning rewards. In the reported 50-step GRPO run, average success rose from 51.70% to 60.78%, while the number of tasks completed correctly on all 20 attempts increased from 38 to 107. 1
ThinkingBox is designed around a simple distinction: an agent can say it finished a task while leaving the underlying system in the wrong state. Instead of treating a plausible sequence of tool calls as success, the benchmark checks what actually changed in the backend. The new training post describes how Microsoft and Hugging Face reused that signal to select tasks and train a model. 12
Turning database checks into rewards
The ThinkingBox benchmark contains 507 tasks. Each task gives an agent a real backend, a set of tools and a simulated user, then checks the records left behind when the episode ends. The check focuses on the expected outcome rather than requiring one particular route through the tools, so an agent can discover a different but valid way to complete the job.
That makes the final database state more useful than a simple success message. A task can fail because a required record is missing, an unwanted side effect was introduced or an important field was left unchanged. The training work turns that executable verdict into a binary reward: a correct terminal state earns one, and an incorrect state earns zero. Most rewards come from deterministic checks, with a minority of narrower requirements using a configured judge.
For the reference run, the team used offline probes to estimate which training tasks were neither already easy nor completely out of reach. Tasks that a model always solved would offer little contrast, while tasks it never solved would provide a poor immediate learning signal. The selected pool contained 187 tasks, and Qwen3.8-27B was fine-tuned with GRPO for 50 steps.
Better repeatability, narrower coverage
The headline improvement was not simply a higher one-shot score. Before training, the base model completed 5,242 of 10,140 recorded attempts, or 51.70%. The fine-tuned model completed 6,163, or 60.78%. More strikingly, the number of benchmark tasks passed on every one of 20 attempts rose from 38 to 107. 1
That gain came with a trade-off. The number of tasks solved at least once slipped from 453 to 446, moving pass@20 from 89.35% to 87.97%. The post describes the result as a sharpening effect: the model became more dependable on some tasks, but the set of tasks it could solve at least once became slightly narrower.
The distinction matters for software agents that touch business records. A model that occasionally finds a successful route may look impressive in a demo, but production automation often needs the same policy to preserve the correct state repeatedly. ThinkingBox’s observed-20/20 measure makes that reliability visible instead of hiding it behind a single average.
The authors illustrate the difference with a hotel-booking task. Before training, the agent changed a booking and issued refunds without the manager approval required by policy in 15 of 20 attempts. After fine-tuning, it preserved the booking and payment state in all 20 attempts, with every expected record matching in 19 of them. 1
What the release includes
The training post links to the open-source ThinkingBox-Training repository, which contains the data-selection, rollout, reward and Verl integration used for the Qwen3.8-27B run. The published instructions target Linux and WSL, Python 3.12, NVIDIA hardware and a distributed setup; the validated reference configuration used 24 H100 GPUs across three nodes. 13
The work also warns against treating the benchmark result as a universal guarantee. The public benchmark was kept separate from the reinforcement-learning training pool, but the two share parts of the framework, simulated-user machinery and task style. That overlap limits how broadly the transfer claim should be read.
Our opinion
ThinkingBox’s most valuable contribution is the emphasis on evidence after the tool calls finish. Agents are often judged by fluent updates and apparently sensible actions, yet the database is where the real consequences live. A deterministic check of that state gives training a cleaner target and gives readers a more honest reliability metric than pass@1 alone.
The trade-off is just as important as the improvement. Raising the number of tasks solved every time while slightly reducing the number solved at least once suggests that reliability is not free breadth. Teams evaluating agents for real workflows should therefore report both figures, along with the cost of generating the rollouts, rather than presenting the 60.78% figure as a complete verdict on the model.