Priming Base Models for Agentic Post-Training: An Open Midtraining Recipe
On the map: LLM agents and tool use → General LLM agent frameworks and benchmarks also fits: Agent skill learning and evolution
Abstract (arXiv)
Frontier models, general-purpose and domain-specific alike, now include a midtraining stage between pretraining and post-training, but little has been published about how this stage is built. We present an open midtraining recipe that primes base models for agentic post-training, and we show its effectiveness on two Nemotron models of different sizes. Pretraining typically runs at short context and sees almost no agent interactions, while SFT data is mostly synthetic, and very long SFT stages can hurt the model's later RL trainability. Our midtraining stage sits between the two. It trains at 256K context for hundreds of billions of tokens on a diverse mixture of natural software-engineering data like packed repositories, pull requests, commit histories, and build logs together with a small share of agentic traces. On Nemotron 3.5 Lightning, 500B midtraining tokens improve SWE-bench Verified from 60.7 to 64.5, SWE-bench Multilingual from 55.8 to 62.8, and SWE-bench Pro from 32.0 to 35.5 after identical full SFT. On the larger Nemotron 3.5 Super, 280B midtraining tokens improve DeepSWE, a harder benchmark of long-horizon tasks, from 11.7 to 15.7 and SWE-bench Verified from 72.9 to 74.3 after identical full SFT. Midtraining also improves robustness across agent harnesses on both models. We report the ablations behind the recipe and an evaluation protocol built on short fixed SFT runs, since base-model proxy metrics did not correlate reliably with post-training results.
Key facts. Cited by 1 paper in the map (data through 24 Nov 2026). Placed in General LLM agent frameworks and benchmarks, one of 16 directions in LLM agents and tool use. Builds on 54 of its 61 references that are in the map. Submitted 15 Oct 2026.
Builds on
54 of 61 references.
Closest ancestors · 3
Same direction, newest first
- 2026Nemotron 3 Super: Open, Efficient Mixture-of-Experts Hybrid Mamba-Transformer Model for Agentic Reasoning14 Apr
- 2025APTBench: Benchmarking Agentic Potential of Base LLMs During Pre-Training28 Oct
- 2025Scaling Agents via Continual Pre-training16 Sep
Other references · 51
- 2021Training Verifiers to Solve Math Word Problemscited by 11,055
- 2024DeepSeekMath: Pushing the Limits of Mathematical Reasoning in Open Language Modelscited by 10,542
- 2025Qwen3 Technical Reportcited by 9,994
- 2021Evaluating Large Language Models Trained on Codecited by 8,938
- 2020Measuring Massive Multitask Language Understandingcited by 8,473
- 2021Measuring Mathematical Problem Solving With the MATH Datasetcited by 5,852
- 2018Think you have Solved Question Answering? Try ARC, the AI2 Reasoning Challengecited by 5,336
- 2019HellaSwag: Can a Machine Really Finish Your Sentence?cited by 4,388
- 2021Program Synthesis with Large Language Modelscited by 3,972
- 2023SWE-bench: Can Language Models Resolve Real-World GitHub Issues?cited by 3,871
- 2019PIQA: Reasoning about Physical Commonsense in Natural Languagecited by 3,052
- 2018Can a Suit of Armor Conduct Electricity? A New Dataset for Open Book Question Answeringcited by 2,284
38 more
- 2024LiveCodeBench: Holistic and Contamination Free Evaluation of Large Language Models for Codecited by 2,243
- 2024MMLU-Pro: A More Robust and Challenging Multi-Task Language Understanding Benchmarkcited by 2,076
- 2024SWE-agent: Agent-Computer Interfaces Enable Automated Software Engineeringcited by 2,069
- 2019Megatron-LM: Training Multi-Billion Parameter Language Models Using Model Parallelismcited by 2,029
- 2024RULER: What's the Real Context Size of Your Long-Context Language Models?cited by 1,559
- 2024Qwen2.5-Coder Technical Reportcited by 1,301
- 2024DeepSeek-Coder: When the Large Language Model Meets Programming -- The Rise of Code Intelligencecited by 1,241
- 2024OpenHands: An Open Platform for AI Software Developers as Generalist Agentscited by 1,155
- 2025Does Reinforcement Learning Really Incentivize Reasoning Capacity in LLMs Beyond the Base Model?cited by 1,106
- 2026Terminal-Bench: Benchmarking Agents on Hard, Realistic Tasks in Command Line Interfacescited by 742
- 2026GLM-5: from Vibe Coding to Agentic Engineeringcited by 740
- 2025BrowseComp: A Simple Yet Challenging Benchmark for Browsing Agentscited by 725
- 2024StarCoder 2 and The Stack v2: The Next Generationcited by 544
- 2023RepoBench: Benchmarking Repository-Level Code Auto-Completion Systemscited by 384
- 2025SWE-smith: Scaling Data for Software Engineering Agentscited by 371
- 2025SWE-Bench Pro: Can AI Agents Solve Long-Horizon Software Engineering Tasks?cited by 363
- 2025Multi-SWE-bench: A Multilingual Benchmark for Issue Resolvingcited by 198
- 2023CrossCodeEval: A Diverse and Multilingual Benchmark for Cross-File Code Completioncited by 193
- 2024How to Train Long-Context Language Models (Effectively)cited by 168
- 2026DeepSWE: Measuring Frontier Coding Agents on Original, Long-Horizon Engineering Taskscited by 103
- 2022Same Pre-training Loss, Better Downstream: Implicit Bias Matters for Language Modelscited by 93
- 2023In-context Pretraining: Language Modeling Beyond Document Boundariescited by 89
- 2026Qwen3-Coder-Next Technical Reportcited by 83
- 2025NVIDIA Nemotron 3: Efficient and Open Intelligencecited by 78
- 2020Loghub: A Large Collection of System Log Datasets for AI-driven Log Analyticscited by 75
- 2025The OpenHands Software Agent SDK: A Composable and Extensible Foundation for Production Agentscited by 55
- 2024Scaling Laws for Predicting Downstream Performance in LLMscited by 52
- 2025Kimi-Dev: Agentless Training as Skill Prior for SWE-Agentscited by 47
- 2024Fewer Truncations Improve Language Modelingcited by 41
- 2025Quagmires in SFT-RL Post-Training: When High SFT Scores Mislead and What to Use Insteadcited by 38
- 2026Composer 2 Technical Reportcited by 28
- 2023Structured Packing in LLM Training Improves Long Context Utilizationcited by 22
- 2026daVinci-Dev: Agent-native Mid-training for Software Engineeringcited by 21
- 2025Midtraining Bridges Pretraining and Posttraining Distributionscited by 20
- 2026Good SFT Optimizes for SFT, Better SFT Prepares for Reinforcement Learningcited by 15
- 2026From SWE-ZERO to SWE-HERO: Execution-free to Execution-based Fine-tuning for Software Engineering Agentscited by 9
- 2026When RL Fails after SFT: Rejuvenating Model Plasticity for Robust SFT-to-RL Handoffcited by 5
- 2025On Pretraining for Project-Level Code Completioncited by 2
50 most cited of 51 All 51 (JSON)
Built on by
Citing papers per year: 2026: 1.
1 paper.
Similar, not cited
Close in wording, no citation either way
- 2026SPT: Skills as Pre-Training Data for Agentic Language Models
- 2026Evaluating Agentic Capabilities Before Post-Training: An End-to-End Approach
- 2026MidTool: Mid-training Data Synthesis for Agentic Tool Use
- 2026OpenThoughts-Agent: Data Recipes for Agentic Models
- 2026AutoTrainess: Teaching Language Models to Improve Language Models Autonomously
- 2026Agent^2 RL-Bench: Can LLM Agents Engineer Agentic RL Post-Training?
- 2026Benchmarks Are Surprisingly Compaction-Friendly
- 2026Learn Now, Use Next, Trust Later: Prequential Test-Time Learning for LLM Agents