[KongchangAI]
· 1 min read· 925 words

Ascend NPU Benchmark: Full-Lifecycle Engineering Capabilities of Coding Agents

Ascend NPU Benchmark: Full-Lifecycle Engineering Capabilities of Coding Agents

AscendInfraBench builds 24 full-lifecycle infrastructure tasks on Ascend NPU to evaluate coding agents' engineering decision-making.

AscendInfraBench is a benchmark for full-lifecycle LLM infrastructure engineering, featuring 24 tasks on Ascend NPU covering pre-training, reinforcement learning training, and inference serving. Each task fixes the model workload, computation requirements, state transitions, and performance targets while leaving the implementation path open, focusing on engineering decisions under constraints rather than code syntax. The benchmark divides tasks into four levels—implementation optimization, joint optimization, model adaptation, and open construction—and ran 216 evaluations across 9 agents. The study finds agents can handle tasks from optimization to independent construction, but strengths vary by scenario; development trajectories reveal architecture selection, bottleneck diagnosis, and runtime feedback validation; and a tension exists between performance optimization and correctness preservation, especially in RL training. By expanding the evaluation target from code snippets to engineering systems, the benchmark provides a reference point for agent development within the domestic computing ecosystem.

From Code Completion to System Building: A New Testing Ground for Coding Agents

As coding agents gradually shift from "writing functions" to "building systems," how to evaluate their capabilities in real-world infrastructure engineering has become an urgent question to answer. The recently released AscendInfraBench proposes a task construction methodology for full-lifecycle LLM infrastructure engineering and builds a benchmark of 24 tasks on Ascend NPU, covering three major scenarios: pre-training, reinforcement learning training, and inference serving.

Unlike typical code generation evaluations, each task in this benchmark fixes the model workload, required computation, state transitions, and performance targets, but leaves the implementation path entirely open to the agent. This means the evaluation focuses not on "whether correct syntax can be written" but on "whether reasonable engineering decisions can be made under given constraints."

AscendInfraBench Benchmark Overview

Four Engineering Levels, Three Training Scenarios

AscendInfraBench divides tasks into 4 engineering scopes: implementation optimization, joint optimization, model adaptation, and open construction. These four levels correspond to a capability gradient from "improving existing code" to "building complete infrastructure from scratch."

In terms of scenario dimensions, the benchmark covers pre-training, reinforcement learning training, and inference serving. The research team conducted 216 runs across 9 agents under a 2-hour development budget per task, analyzing results from both correctness and performance improvement perspectives. This setup is closer to the time pressure and resource constraints in real engineering environments.

Reinforcement learning training (RL training) in such infrastructure typically refers to reinforcement learning from human feedback (RLHF) or similar paradigms, whose pipeline involves multiple stages such as policy model generation, reward model scoring, advantage estimation, and policy updates. Unlike the unidirectional computation of pre-training, RL training requires alternating between generation (rollout) and training (update), and synchronizing weights across multiple model replicas, thus placing higher demands on memory bandwidth, communication overhead, and scheduling flexibility. In this scenario, coding agents must not only optimize individual operators or kernels but also correctly coordinate the complete loop of generation, training, weight transfer, and subsequent inference—which is why it more readily exposes the tension between correctness and acceleration than pre-training or inference serving.

Three Key Findings

Capability Stratification: Agents Can Build, but Strengths and Weaknesses Are Distinct

The study finds that agents are already capable of optimizing given implementations, integrating new models, and even independently building complete infrastructure. However, these engineering scopes examine different capabilities: across pre-training, RL training, and inference serving, agents show different strengths in "correct delivery" and "speedup." In other words, an agent may perform well in pre-training optimization yet expose weaknesses in RL training scenarios.

Development Trajectories Reveal Engineering Decision-Making

By analyzing development trajectories, the study observed how agents select system architectures, diagnose bottlenecks and correctness defects, and use runtime feedback to validate or revise designs. This is more informative than final scores alone—it demonstrates whether agents possess the ability to "debug systems" rather than merely "debug code."

The Tension Between Performance Optimization and Correctness

Performance optimization often changes how computation, state transitions, and execution dependencies are implemented. The study finds that achieving genuine speedup while maintaining correctness remains difficult for agents. This weakness is particularly pronounced in RL training, as this scenario requires correctly integrating multiple components such as model computation, training updates, weight transfer, and subsequent generation.

Development Trajectory Analysis Illustration

Correct delivery in the benchmark refers to the agent completing a runnable implementation under given constraints and passing all functional correctness checks, while speedup refers to the end-to-end performance improvement obtained relative to the reference implementation. The two are not always positively correlated: aggressive optimizations may introduce numerical errors or state management bugs that cause correctness checks to fail, while conservative implementations may pass tests but struggle to deliver substantial speedup. The benchmark reports both dimensions precisely to distinguish "can run" from "runs well," and to reveal agents' preferences and weaknesses in engineering trade-offs.

Why This Benchmark Matters

Most current coding agent evaluations focus on algorithm problems or function-level tasks, whereas infrastructure engineering involves system architecture, performance tuning, and multi-component coordination—higher in difficulty and closer to industry needs. AscendInfraBench expands the evaluation target from "code snippets" to "engineering systems," and by choosing Ascend NPU as the hardware platform, it also provides a reference point for agent development within the domestic computing ecosystem.

Methodologically, the design of fixing workloads and targets while opening implementation paths allows different agents' solutions to be compared under the same constraints. This approach may be adopted by more benchmarks oriented toward systems engineering.

Ascend NPU is a series of neural network processors introduced by Huawei, whose software stack includes CANN (Compute Architecture for Neural Networks) and the AscendCL programming interface, differing significantly from NVIDIA GPU's CUDA ecosystem in programming models, operator libraries, and debugging tools. Developing infrastructure on the Ascend platform requires handling specific memory hierarchies, kernel scheduling, and collective communication primitives, which brings additional domain adaptation challenges for coding agents. Choosing this platform for the benchmark both fills the gap in agent evaluation within the domestic computing ecosystem and makes the benchmark results more reflective of agents' generalization ability on non-mainstream hardware stacks.

Questions Still to Be Answered

Whether a 2-hour development budget is sufficient to reflect agent performance on long-cycle engineering tasks remains open for discussion. Additionally, the correctness-acceleration tension exposed in RL training scenarios suggests that agents still have significant room for improvement in cross-component joint optimization. As coding agent capabilities evolve, the value of such full-lifecycle benchmarks will become increasingly prominent—they test not only "whether it can be done" but also "whether it's done right and done fast."

#Ascend NPU#AscendInfraBench#coding agents#LLM infrastructure engineering#benchmark#reinforcement learning training#performance optimization
Share:

Related articles