Skip to content

In development. Expect rough edges and changes. The source code is not public yet.

Hugging Face 18 min read Research hardMaster

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

Executable checks on terminal database state, originally built to grade agents in ThinkingBox-Bench, double as binary RL rewards for post-training tool-using agents. Fine-tuning Qwen3.8-27B with token-mean GRPO for 50 steps on 187 out-of-distribution tasks raised pass@1 from 51.70% to 60.78% and tasks solved on all 20 attempts from 38 to 107, while pass@20 coverage dipped slightly, consistent with sharpening. The key lever is offline policy-relative difficulty: candidate tasks are probed against the base policy, a Jeffreys Beta posterior estimates success probability, and only tasks likely to yield mixed reward groups (non-zero GRPO advantage) are kept. Cost per dependable task fell from $24.36 to $8.00, approaching frontier models.

Related posts

  • Jupyter Agents: training LLMs to reason with notebooks

    Hugging Face hardMaster

    Fine-tuning Qwen3-4B on 51k synthetic Jupyter notebook traces, combined with a minimal ~200-line two-tool scaffold (code execution plus final_answer), raised its DABStep easy-split accuracy from 38.67% to 75%. The scaffold change alone accounted for roughly 14 points of that gain. The dataset pipeline starts from ~2TB of Kaggle notebooks and runs deduplication (~90% were duplicates), linked-dataset download, LLM educational scoring and relevance filtering, verified QA generation with Qwen3-32B, and trace generation with Qwen3-Coder-480B in E2B sandboxes. Training findings include using full-parameter SFT over PEFT, assistant-only loss, NEFTune noise, and about 5 epochs as the sweet spot.

  • ReasoningBank: Enabling agents to learn from experience

    Google Research hardMaster

    ReasoningBank is an agent memory framework that distills generalizable reasoning strategies from both successful and failed trajectories, stored as structured items (title, description, content) in a closed loop of retrieval, LLM-as-a-judge self-assessment, extraction and append-only consolidation. Memory-aware test-time scaling (MaTTS) feeds parallel (self-contrast across k trajectories) or sequential (iterative refinement) exploration back into memory. With Gemini-2.5-Flash and ReAct, it beat a memory-free baseline by 8.3% on WebArena and 4.6% on SWE-Bench-Verified, saved about 3 steps per task on SWE-Bench, and MaTTS (k=5) added another 3% success on WebArena. Learning from failures yields preventative rules, and memories evolve from simple checklists into compositional strategies over time.

  • Fine-tuning open LLM judges to outperform GPT-5.2

    Together AI mediumAdept

    DPO fine-tuning open-weight LLM judges on RewardBench 2 preference data lets them match or beat GPT-5.2 at agreeing with human preference labels. GPT-OSS 120B was trained with LoRA on 5,407 preference pairs built from ~1,500 examples (beta 0.1, LR 5e-6, 3 epochs, ~1.5 hours) and rose from 57.91% to 62.63% accuracy, against GPT-5.2's 61.62%, at about 15x lower cost and 14x higher throughput. Qwen3 235B already beat GPT-5.2 at baseline (62.63%) but dropped slightly to 61.28% after DPO. Category analysis shows Safety and Factuality are easy for judges while Focus and precise instruction following remain hard, and high tie counts point to positional bias.

  • The Agent Said It Was Done. The Database Disagreed.

    Hugging Face mediumAdept

    ThinkingBox grades AI agents on the terminal database state and side effects they leave behind rather than their tool calls or final responses, running each of 507 stateful business workflows 20 times from a clean backend via isolated MCP sessions. Among failed attempts, 67% still terminated cleanly with state-changing calls and no tool errors, yet had wrong field values, extra effects or missing effects. Breadth and consistency diverge: Kimi-K3 solves 94% of tasks at least once but only 13% on all 20 runs, while Claude Opus 5 and 5.5 pass 241 tasks 20/20, and cost per dependable task ranks models differently from cost per single success. About 80% of failures are tool-handling and error-recovery problems, so checking terminal state, classifying retryable errors, trimming tool surfaces and gating irreversible changes are the recommended mitigations; the benchmark runs through OpenEnv on Hugging Face.

  • DaisyRose-27B: Pushing the Frontier of Post-Training Efficiency

    Hugging Face hardMaster

    DaisyRose-27B is an RL post-trained version of Qwen3.8-27B, trained with the Miles framework on about 1,200 curated long-horizon agent tasks over 18 days on 144 H200s. It raises Terminal-Bench 4.1 pass@1 from 5.6% to 12.0% and improves every other reported benchmark, including SWE and reasoning suites. Fully asynchronous training split the GPUs into 128 for agent rollouts and 16 for the trainer. The internal backend reached 37% MFU versus 16% for the open-source Megatron-based trainer, cutting GPU time by 57% and doubling end-to-end throughput. A sandbox service built on AgentENV ran about 944K sandboxes at above 99.95% success, and memory allocation that grows and shrinks with usage cut costs about 80% versus commercial sandbox providers.

The quest for software engineering knowledge.

Look:
Layout: