OpenThoughts-Agent: The 'Secret Recipe' for Training AI Agents
Paper: OpenThoughts-Agent: Data Recipes for Agentic Models Authors: Negin Raoof, Richard Zhuang, Marianna Nezhurina, et al. arXiv: 2606.24855 Published: 2026-06-23
---
The Secret in the Kitchen
Imagine you are a Michelin-starred chef launching a new molecular-gastronomy dish. You have two options: throw in every ingredient you like and hope for the best, or systematically run controlled experiments—varying one factor at a time, recording everything, and converging on the optimal recipe.
The second approach is the scientific method, and it is the core philosophy of the OpenThoughts-Agent project. The question it tackles: how do you train a broadly capable agent—one that can do math, write code, search the web, and use tools, all at once? Their answer: instead of piling up data by intuition, run 100+ controlled ablation experiments to find the optimal training-data recipe.
---
Why Is Agent Training So Hard?
Unlike chat LLMs trained on static text, agents learn from interactive trajectories: the model acts, the environment responds, and the model adjusts. This makes the data:
1. Multimodal — text, code, tool outputs, web content 2. Long-horizon — tasks span dozens of steps, not one-shot Q&A 3. Sparse-feedback — correctness is often only known at the end 4. Error-cascading — one wrong step derails everything after it
The Open-Source Dilemma
Existing open agent datasets are each narrow in scope:
- SWE-Smith: software engineering agents (bug fixing)
- SERA: search-augmented agents
- Nemotron-Terminal: terminal operation agents
- Finding 1 — Task diversity beats task count. At equal total volume, mixed-type data outperforms the best single-type data by 3–5 points of average accuracy across 7 agentic benchmarks.
- Finding 2 — Don't over-filter. Too-strict filtering removes valuable data. There is a sweet spot: remove clearly wrong data, keep "imperfect but useful" samples.
- Finding 3 — Chain-of-thought quality matters more than answer correctness. Agents learn not just *what to do* but *how to think* — clear, coherent traces with self-correction are crucial.
- Finding 4 — Strong scaling properties. More data consistently improves performance with no saturation, and OpenThoughts-Agent data outperforms other open datasets at every training scale.
- Multimodal agents (images, audio, video)
- Long-term memory across sessions
- Collaborative multi-agent systems
- Lifelong learning from interaction
- Raoof, N., Zhuang, R., Nezhurina, M., et al. "OpenThoughts-Agent: Data Recipes for Agentic Models." arXiv:2606.24855, 2026.
- SWE-Smith: A scalable approach to training software engineering agents
- SERA: Search Enhanced Reasoning Agent
- Nemotron-Terminal: Training terminal operation agents
- Qwen3 Technical Report
Models trained on one dataset only excel at that one task type. Real users, however, need tasks that mix search, computation, coding, and reasoning. OpenThoughts-Agent's core question: how do you build a dataset that makes a model good at many agent tasks simultaneously?
---
Methodology: 100+ Controlled Experiments
The project's main contribution is methodology. Every stage of the data pipeline was systematically ablated:
1. Task sourcing — math competitions (AIME, MATH), coding (Codeforces, LeetCode), science (GPQA, MMLU), synthetic tasks, web-scraped tasks 2. Quality filtering — removing wrong, ambiguous, or incomplete data 3. Reasoning generation — producing detailed solve trajectories with strong models 4. Data mixing — how to weight different task types 5. Training strategy — SFT, RL, curriculum learning
Key Findings
---
Results: Qwen3-32B's Transformation
Fine-tuning Qwen3-32B with the best recipe yields:
| Model | Avg accuracy (7 agentic benchmarks) | |---|---| | OpenThoughts-Agent-32B | 44.8% | | Nemotron-Terminal-32B (previous best) | 40.9% | | Improvement | +3.9 points |
Notably, this gain comes with cross-domain generalization—the previous leader only optimized for terminal operations, while OpenThoughts-Agent handles math, coding, search, and scientific reasoning. The model shows strong performance on:
1. Math reasoning (MATH, AIME) — multi-step derivation with tools 2. Coding (Codeforces, LeetCode) — including self-correction after failed tests 3. Scientific reasoning (GPQA) — PhD-level, retrieval-heavy questions 4. Tool use — knowing when to search, compute, or reason directly
Scaling was monotonic: 10K → 50K → 100K samples each brought consistent gains, and OpenThoughts-Agent data beat other open datasets at every scale—evidence that the recipe matters more than raw volume.
---
What Makes the Recipe Special
1. Multi-source task sourcing for diversity 2. Quality-driven but not over-aggressive filtering 3. Multi-turn reasoning generation simulating real agent loops: think → act → observe → think again 4. Balanced data mixing, weighted by task difficulty and importance 5. Iterative optimization across 100+ experiments tuning thresholds, mixing ratios, and generation parameters
---
Deeper Significance: From Alchemy to Chemistry
For a long time, AI training resembled alchemy—tuning by intuition with no clear understanding of why things worked. This is especially true in agent training, where data is complex and feedback sparse. OpenThoughts-Agent represents a shift toward science: it quantifies which factors matter (task diversity, reasoning quality), which don't, where the sweet spots are, and what still scales. The team open-sourced everything—data, pipeline, experiment results, and trained models—which is a model of open science in an increasingly closed industry.
---
Limitations and Future Directions
Limitations
1. Benchmark realism — the 7 benchmarks are still artificial; real-world agent tasks are more open-ended 2. Generation cost — producing GPT-4-quality reasoning traces for 100K samples is expensive 3. Hallucination — agents may still call nonexistent tools or fabricate results 4. Safety and alignment — more capable autonomous agents carry greater risk if misused
Future directions
---
References and Further Reading
*This post is a Feynman-style deep dive: starting from everyday analogies, building understanding step by step while staying scientifically rigorous.*