TL;DR
NexForge is a requirement-driven data synthesis framework that breaks the bottleneck of scaling LLM agent training data by decoupling task generation from predefined environments. By taking high-level capability requirements as input and automatically compiling diverse, executable tasks and expert trajectories, NexForge scales seamlessly across domains to produce open-source agent models (Nex-N2) that rival frontier proprietary systems.
What Problem Does This Paper Address?
Training effective LLM agents requires massive amounts of diverse, grounded, and executable data (workspaces, dependencies, and interaction trajectories). Current data synthesis methods are substrate-bound: they tie task generation to predefined tools, repositories, or skill graphs.
This approach introduces three major bottlenecks:
- Bounded Scale: Data diversity is limited by the initial input substrate.
- High Transfer Cost: Moving to a new domain (e.g., from terminal operations to office productivity) requires building an entirely new bespoke engineering pipeline.
- Substrate Bias: The synthesized tasks reflect the quirks and biases of the underlying repositories rather than actual real-world demand.
NexForge addresses this by flipping the paradigm: it starts with a high-level capability requirement and dynamically figures out what tasks, files, and runtimes are needed to fulfill it.
Methods
NexForge uses a three-stage pipeline to transform a free-form capability requirement into executable task packages and expert trajectories:
- Research-Based Demand Discovery: A web-enabled research agent analyzes real-world workflows, documentation, and professional roles to construct a weighted task demand profile (specifying task types, deliverables, etc.) and a diverse scenario reservoir.
- Distribution-Aware Task Compilation (DATC): The framework sequentially samples and composes task forms with scenarios. Crucially, it applies a compatibility filter to ensure that the generated task directives are internally consistent (e.g., ensuring a chosen runtime actually supports the requested deliverable).
- Agent Post-Training Trajectory Generation: The compiled directives are materialized into isolated, CPU-only Docker environments. A powerful teacher model (DeepSeek-V4-Pro) interacts with the environment to generate long-horizon rollouts, which are then cleaned and distilled into high-quality training trajectories.
Datasets
The authors synthesized several training datasets using NexForge without any domain-specific engineering:
- Terminal-3.6K / Terminal-43.2K: Datasets focused on command-line operations, software building, and system administration.
- Office-2K / Office-22K: Datasets focused on professional office tasks like spreadsheet analysis, document review, and drafting.
For evaluation, the models were tested on independent benchmarks:
- Terminal-Bench 2.0 & 2.1: For evaluating terminal/command-line agent capabilities.
- GDPval: For evaluating performance on economically valuable, real-world office tasks.
Key Insights and Ideas
- Decoupling is Key: Separating what an agent should practice from how that practice is made executable allows the exact same pipeline to scale across completely different domains (e.g., terminal operations vs. office work) simply by changing the input specification.
- Preventing Mode Collapse: Ablation studies showed that without explicit task-form control, the synthesis pipeline suffers from severe mode collapse, defaulting heavily to a single dominant task type (like generic software engineering).
- Coherence via Filtering: Direct sampling of task attributes often yields nonsensical tasks. The Distribution-Aware Task Compilation (DATC) filter raises the directive-scenario match rate from a dismal 7% to 81%, ensuring realistic and coherent training signals.
Key Results
Models trained on NexForge data demonstrated massive performance leaps:
- Base Model Boost: Adding just 3.6K terminal tasks improved Qwen3.5-35B-A3B Base from 22.5% to 52.0% on Terminal-Bench 2.0. Scaling to 43.2K tasks pushed accuracy to 58.4%, putting it on par with Claude Opus 4.6 running Claude Code.
- Cross-Domain Success: The same pipeline initialized with an office requirement (Office-2K) boosted the base model's GDPval score from 813 to 1338 Elo, comparable to Gemini 3.1 Pro.
- State-of-the-Art Open Agent: Production-scale data synthesis contributed to Nex-N2-Pro (based on Qwen3.5-397B), which achieved 75.3% on Terminal-Bench 2.1 and 1585 Elo on GDPval, outperforming several frontier proprietary models.
Limitations and Future Work
The primary limitation acknowledged by the authors is that the synthesized tasks currently lack machine-verifiable outcomes (such as automated unit tests or deterministic success verifiers). Because success is judged during data collection by the teacher model's trajectory, these packages cannot be directly used as standard benchmarks or reinforcement learning (RL) environments.
Future work will focus on automatically generating reference solutions and verifier models to close this loop, as well as expanding NexForge into scientific computing and multimodal reasoning domains.
Summary updated