AI coding agents mostly eke out small speedups on real Huawei AI-chip kernels
AscendGYM asks agents to tune working kernels from real language-model workloads and weighs their gains against tokens spent. On its easiest tier, most setups averaged under a 1.2× speedup.

Existing benchmarks of AI coding agents on Huawei's AI chips mostly ask them to generate kernels. AscendGYM, described in a 2026 arXiv preprint that has not yet been peer reviewed, asks something closer to a performance engineer's daily job. The agent gets a kernel that already works and must make it faster for the inputs a real workload feeds it. A kernel is a small low-level program that carries out one operation, such as normalisation or attention, on the chip. Here the chip is Huawei's Ascend NPU, an AI accelerator, and the kernels are written in Ascend C, its programming language. The benchmark also counts the tokens an agent burns along the way. The authors' reasoning is that two systems can reach the same final speedup with very different amounts of search.
The tasks come from profiling real training and inference runs in Ascend software such as MindSpeed-LLM and vLLM-Ascend. The authors kept the bottleneck kernels together with their deployment context: model, phase, data types, tensor shapes and parameters. One example is AddRMSNorm, which fuses a residual addition with a common normalisation step. It is taken from the prefill phase of Qwen3-0.6B, in which the model reads in the prompt, at batch size 1 and sequence length 32. According to the paper, it runs 56 times per forward pass and accounts for 8.77% of total compute time. The 48 kernels fall into three batches of rising difficulty. The first has 17 kernels that need better memory access, the second 17 multistep operations such as quantisation, and the third 14 involving complex and sparse attention. Each task ships baseline source code, test inputs and reference outputs computed on a CPU. A sandbox called AscendForge compiles each candidate, checks it and times it. It reports build failures, numerical errors and slowdowns separately. Each timing runs eight rounds, discards three warm-up rounds and averages the rest.
The headline metric, the Speedup-Token Score (STS), rewards the best validated speedup reached within a token budget. It deducts points when gains arrive late in that budget, and tokens spent on failed attempts count toward that budget. It is zero if nothing improves. A companion measure, Cost-to-Gain, records how many tokens an agent spent to lift speed by 1%, 5% or 10%.
Only the 17 first-batch tasks were actually run. The authors tested selected pairings of three agent harnesses with six models. The harnesses (Claude Code, Codex CLI and OpenCode) are the software that lets a model read code, run tools and iterate. The models were Claude Opus 5, GPT-5.6 Terra, GLM-5.3, Qwen3.5-122B-A10B, Qwen3.6-35B-A3B and DeepSeek-V4-Flash. Each run allowed up to 80 candidate evaluations, and STS was reported at 10M, 20M and 50M tokens per task. The authors report that about 70% of combinations had a geometric-mean speedup below 1.2×. Claude Code with Opus 5 and Codex with GPT-5.6 both sped up all 17 tasks, but they beat 2× on 7 tasks and 3 tasks respectively. The harness mattered a great deal. GPT-5.6 passed every task with all three harnesses, yet its geometric-mean speedup was about 1.69× with Codex and 1.05× with Claude Code. Cost and coverage also pulled apart. With a 50M-token budget and a 10% gain target, Opus 5 had a median Cost-to-Gain of 3.8M tokens with OpenCode against 6.6M with Claude Code. OpenCode, however, hit the target on only some tasks, while Claude Code hit it on all. Gains also grew at different rates as the budget rose. At 10M tokens Opus 5 scored similarly with Claude Code and OpenCode, but Claude Code kept improving with larger budgets. And OpenCode paired with Qwen3.6-35B-A3B used relatively modest numbers of tokens and rounds but took about 11.1 hours per task.
The evidence is thin in places. Only the easiest tier was evaluated. No repeated optimisation runs are reported, so run-to-run variation is unknown. The grid of pairings is incomplete, and most numbers appear only in figures. The built-in harness meant for comparing raw models comes from the benchmark itself, and it was run with only one model, GPT-5.6 Luna, so no comparison between models was made. Speedups are measured against the shipped baseline kernels, whose remaining headroom is unknown, and there is no human-expert reference. Gains are timed on isolated kernels, not on whole workloads. The STS weights are not justified. The runs also had no hard token cap, so the per-budget scores appear to be computed after the fact.
The emphasis on search cost echoes other work braintankAI has covered. One study trained small models on the score-improving steps logged from AI-driven optimisation searches (earlier story). Another paired a language model with a statistical model that decides which proposals deserve an expensive test (earlier story). AscendGYM supplies a way to measure the kind of search cost those approaches try to cut.
- Paper
- AscendGYM: A Cost-Aware Kernel Optimization Benchmark for Real-World Workloads on Ascend NPUs
- Authors
- AI Training Platform Team, Bingwei Zhang, Jing Li, Amir Abdullin, Sihang Chen, Xin Chen et al.
- Venue
- arXiv preprint — not yet peer reviewed · 13 November 2026
- Link
- arxiv.org/abs/2611.17621
- Index
- stacks.braintank.ai
- Code
- github.com/SLAI-AITP/AscendGYM
- Cite

