Vibeleaderboard
← All Intel
Intel / article

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

Source
huggingface.co
Date

Context

Microsoft's ThinkingBox started as a that grades agents on what they actually leave in a database rather than on what they claim. In ThinkingBox-Bench, each of 507 tasks gives an a real backend, a set of tools and a simulated user, then runs executable checks against the final database state. This follow-up post, written jointly with Hugging Face, makes a simple observation. A check that returns 1 or 0 from the final state is also a reward function. The team used that kind of check to train Qwen3.8-27B with reinforcement learning (GRPO) for 50 steps on 187 tasks kept separate from the benchmark.

Most of the work is choosing which tasks to train on. GRPO learns by comparing several attempts at the same task. If all eight attempts fail, or all eight succeed, no attempt did better than another, and the group teaches nothing. Each attempt is also expensive here, because it needs a fresh backend, a live tool session and a separate model playing the user. So before training, the team ran each candidate task several times with the untrained model, estimated its success probability, and kept only tasks that were neither almost never nor almost always solved. They call this "offline policy-relative difficulty": a task's difficulty is measured for that particular model, once, and the training pool then stays fixed.

Each of the 507 benchmark tasks was run 20 times. Average success rose from 51.70% to 60.78%, and tasks passed on all 20 attempts rose from 38 to 107. Tasks solved at least once fell slightly, from 453 to 446. The authors read this as "sharpening": the model became more repeatable, not broader. That repeatability measure is the one the first ThinkingBox post argued headline accuracy hides. On it, the trained 27B model's 107 still trails Claude Opus 5.5's 241 and GPT-5.4's 128 in the post's comparison table, but its estimated cost per task passed every time fell from $24.36 to $8.00. The authors call that figure a comparative serving index, not a real bill, and it excludes training costs.

These are the team's own results from one reference run. The benchmark tasks were excluded from training, and their domains, databases and most tools were not seen during training. The authors note, though, that both sets share the ThinkingBox framework, simulated-user machinery, grading style and a few tools, which limits how far the transfer claim reaches. For a minority of narrow requirements the database cannot capture, the reward check also asks an judge a yes-or-no rubric question. The training code is published as thinkingbox-training, but the 187-task training pool is private, and the public repository ships only sample tasks.

Key takeaways · AI-distilled
  • Microsoft and Hugging Face reused ThinkingBox's executable checks of final database state as a binary GRPO reward on tasks outside the benchmark. After 50 steps, Qwen3.8-27B passed 107 of 507 benchmark tasks on all 20 attempts, up from 38, and pass@1 rose from 51.70% to 60.78%.
  • The gain was repeatability, not breadth: tasks solved at least once fell slightly, from 453 to 446. The authors read this as sharpening, with probability shifting toward trajectories that work every time.
  • Training tasks were chosen once, offline: each was probed against the base model, scored with a Jeffreys Beta posterior, and dropped if mostly in the rarely solved (below 0.08) or nearly always solved (0.90+) band, since all-fail or all-pass groups give GRPO no contrast.
  • Pass@1 and repeatability can rank models differently: GPT-5.6 Sol scored 61.91% pass@1 against 60.78% for the fine-tuned Qwen but passed only 82 tasks on all 20 attempts against 107. Claude Opus 5.5 and Opus 5 lead that measure at 241.
  • By the authors' serving-cost index, cost per dependable task fell from $24.36 to $8.00, near GPT-5.4 ($6.80), GPT-6 Astra ($7.45) and Claude Opus 5.5 ($7.80). The figure excludes training and task-probing costs.
Terms in this piece · Glossary
  • benchmark — A standard public test set for comparing AI models — the shared scoreboards behind every "model X beats model Y" claim.
  • AI agent — An AI system that doesn't just answer once but works toward a goal in a loop — taking actions, reading the results, and deciding what to do next.
  • MCP — The Model Context Protocol — an open standard that lets any AI assistant plug into any tool or data source without custom integration code.
  • LLM — A large language model — the neural network behind tools like Claude and ChatGPT, trained on huge amounts of text to predict what comes next.
Read the source huggingface.co
Recommended reads
Comments

Checking sign-in…

Loading comments…