Step 5 Preview: Architecture and Training for Agentic Work
Agentic workloads place a different set of demands on model design and training. Long, tool-heavy trajectories increase the importance of reasoning over large amounts of prefilling context, make long-context computation…
以下正文同步自 Hacker News 最新,版权归原站所有,已转换为易读排版。
Agentic workloads place a different set of demands on model design and training. Long, tool-heavy trajectories increase the importance of reasoning over large amounts of prefilling context, make long-context computation increasingly expensive, and introduce new challenges in data construction and reinforcement learning.
Step 5 Preview was designed with these constraints in mind. Architecturally, it follows a narrow-but-deep design with 92 transformer blocks. It interleaves Gated Sliding Window Attention with sparse full-attention layers, with Sparse GQA used in the full-attention path to support efficient long-context training and inference. Scaling this design also surfaced stability issues in deep training, leading us to revisit numerical precision and gradient handling.
On the training side, we built an agent-native data construction system in which agents coordinate parts of the synthesis process under expert-defined principles and quality controls. For reinforcement learning, we focus on the systems and learning problems that become dominant at long horizons: training-inference consistency, rollout efficiency, and credit assignment over very long trajectories.
The sections below describe these design choices and the observations that motivated them.
Depth matters in multi-hop reasoning [1]. In agentic tasks, multi-hop dependencies exist everywhere, while due to the long prefilling requirements by the frequent tool calls, models do not have much chance to perform thorough explicit CoT reasoning, especially taking token efficiency into account. Therefore, implicit reasoning during the model prefilling is preferred [2]. However, we know that the information flow in transformer's prefilling is unidirectional along both temporal and depth axes, which means the senentic embeddings tracing the multi-hop dependency chain have to move monotonically towards deeper layers in the future tokens. As a consequence, if it is not deep enough, the model is easy to run out of layers in long prefilling scenarios, making such latent multi-hop reasoning impossible [3].
Step 5 Preview follows a "narrow but deep" architecture. Although there are several research lines such as looped or recurrent transformers to deal with the depth curse, we adopt the simplest approach -- scaling up the depth directly. Step 5 Preview is composed of 92 transformer blocks, which is as deep as huge open source models like Qwen 3.8 max and Kimi K3, while the total and the active parameters are less than 1/4 and 1/3 of the huge counterparts, respectively. The "narrow but deep" architecture attribudtes Step 5 Preview as strong long-horzon agentic capability as those trillion-scale counterparts, while maintaining a much lower cost. Nevertheless, we find such design introduces some training instabilities. We discuss the topic in Sec 2.
Step 5 Preview utilizes 3:1 interleaved efficient and full (sparse) attention layers, following Step 3.5 [4] as well as the community's common practice. For the efficient attention part, after studying a variety of architectures (e.g. various linear attention alternatives) and configurations, we choose Gated Sliding Window Attention (Gated SWA) -- we find the performance gap between Gated SWA and other fancy choices (if better) is rather marginal, while Gated SWA is much simpler for efficient implementation, especially considering Speculative Decoding.
The full attention part of Step 5 Preview is based on Gated GQA. To support efficient long context training and inference (up to 1M context length), we propose Sparse GQA, introducing sparse indexing mechanism into standard GQA inspired by DSA [5]. Different from the original DSA, we further introduce block-wise token merging to reduce the indexer's footprint. We discuss our methodology in Sec 3.
Similar to [6, 8], we adopt mixed precision FP8 strategy to train Step 5 Preview. Although "narrow but deep" architectures are well motivated as mentioned above, we have observed several instability phenomena such as numerical explosion or gradient spike in scaling up the training, yet we find such instability seldom occurs in training smaller, shallower or wider networks. We come up with the following methodology to stablize the training:
where \gamma_i is the learnable scaling factor, which is typically stored in BF16 precision. However, if x contains massive values, we find the design may cause instability: it is known that the scaling weigh (1 + \gamma_i) corresponding to the massive dimension is usually very small [10], i.e. \gamma_i is very close to -1; yet BF16 is not very precise near -1. During training, we find \gamma_i is exactly equal to -1 occasionally, entirely masking out the corresponding channel; then in the next few iterations, \gamma_i is updated to a nearby value by perturbations such as weight decay, making the channel open again. This cycle repeats, leading to the output oscillating back and forth. To address the issue, we suggest applying FP32 \gamma_i instead of BF16, making the behavior of RMSNorm much smoother where \gamma_i is near -1.
Step 5 Preview is born for long-horizon agentic tasks, in addition, strong long context reasoning capability requires native long-term long context training. When the context length reaches 1M tokens, the full attention layers become the major efficiency bottleneck in both training and inference. Inspired by [6, 13], we introduce a carefully optimized sparse attention mechanism to accelerate the full attention part in Step 5 Preview. To reduce the runtime cost of sparse attention, three bottlenecks must be addressed: the cost of the indexer used for selection, insufficient GPU utilization when computing over the selected content, and the trade-off between selection granularity and the amount of data read. In Step 5 Preview, we choose GQA for better long context accuracy (validated in our experiment) and supporting high-speed inference with multi-GPU parallelism. However, compared with MQA and MLA, GQA amplifies all the above three issues. Thus we come up with the following methodology, named Sparse GQA, that largely overcomes those bottlenecks.
During the development of Step 5 Preview we observe a rapid increase in frontier models' ability to perform long-horizon, agentic work [14, 15, 16]. Those emerging capabilities motivate us to rethink data construction as an agent-native process.
Unified context layer. Domain experts naturally develop priors, intuitions, and practices for constructing high-quality data, which are often embedded in their own context for task designs, pipelines, and decisions [17]. We therefore build a unified data synthesizing pipeline that captures task specifications, pipeline states, environment configurations, intermediate results, and prior feedback across different domains, and makes them accessible throughout the construction process. This allows agents to reuse experience across tasks while researchers can continue to provide human priors and audit critical points. As construction proceeds, the resulting feedback and experience are accumulated back into the shared context for loop development [18]. Moreover, this substantially reduces the effort of adapting data construction to new domains, as agents can build on accumulated design principles, quality criteria, and failure modes rather than developing them from scratch.
Agent-driven knowledge sourcing. On the other hand, knowledge stands at the core of model capability, yet the knowledge covered by constructed tasks is ultimately constrained by the breadth of the available sources. Broad and systematic sourcing is therefore crucial for uncovering diverse and long-tail knowledge. Within the unified context, we organize knowledge from pretraining data and broad Internet sources, e.g, Github, into a structured knowledge space, allowing agents to systematically traverse it to identify knowledge that is long-tail, underrepresented, or missing from the model, and use it to synthesize more challenging tasks. In this way, knowledge sourcing becomes an integrated part of the construction process, turning broad knowledge coverage into a systematic process for discovering and training on the model's knowledge gaps.
Quality steering. Autonomous synthesis does not automatically produce the data we want. We find that agents exhibit systematic biases in both difficulty and diversity: they tend to construct easier tasks, often by simplifying the underlying problem or providing excessive information, and repeatedly converge on familiar task patterns. We therefore introduce explicit signals and interventions to steer agents along these dimensions. For difficulty, we use observable signals, e.g., task constraints, ground-truth patch length, number of test cases, and performance across different frontier models to calibrate task difficulty. For diversity, we track the distribution and balance the sourcing for each direction to steer agents away from overrepresented repositories, topics, and workflows. These mechanisms turn difficulty and diversity from passive evaluation criteria into active controls over agent behavior. Beyond these construction biases, we also address model hacking [19,20]: frontier models excel at exploiting weaknesses in task specifications or evaluations without genuinely solving the underlying task, typically in more realistic and challenging agentic environments [21]. We therefore incorporate explicit anti-hacking checks into task construction, auditing both the task specification and evaluation procedure for exploitable shortcuts and iteratively refining checks against discovered failure modes. This ensures that task success reflects the intended capability rather than artifacts of the task or evaluator.
Division of roles. Our agentic approach involves a deliberate division of labor between expert judgment, agent orchestration, and deterministic execution. Experts provide high-level construction principles and priors, and audit critical points of the pipeline where domain judgment is essential. Agents operate within these expert-defined principles to dynamically coordinate the construction process, make cross-step decisions, and adapt to intermediate results. We deliberately delegate deterministic and repeatable operations to reusable code and tools, rather than asking agents to execute them. In practice, routine operations such as building Docker images, checking task verification, measuring test coverage, and validating output formats are encapsulated as reusable procedures that agents can invoke when needed. This reduces repeated agent or human intervention on routine operations, removes intermediate bottlenecks, and allows the pipeline to run continuously at a high throughput. By amortizing these procedures across tasks, we substantially increase the amount of high-quality data that can be constructed while reducing agent and human effort per example.
Unified context layer retains experience, agentic knowledge sourcing broadens exploration, Quality Steering controls quality, and Division of Roles enables efficient scaling. Together, these components form an agent-native and continuously improving data construction system.
Supported by this infrastructure, we ultimately construct million-level challenging and verifiable environments for frontier models, spanning scientific reasoning, software engineering, machine learning research & development, and professional work. We also collect the construction trajectories, decisions, and feedback generated throughout this process, which will provide training data for improving the next generation of models in automated post-training data research.
Three axes define a trainable task. We profile every candidate data along three axes: duration, how long the agent must sustain coherent progress; depth, how many state transitions accumulate before reaching a passing state, measured in practice by files touched and line
正文由 探How 从来源站点 RSS 同步,内容未经改写;遇到排版缺失或需要图片、视频时请以原文为准。