Navigation menu
AscendGYM: A Cost-Aware Kernel Optimization Benchmark for Real-World Workloads on Ascend NPUs
AscendGYM: A Cost-Aware Kernel Optimization Benchmark for Real-World Workloads on Ascend NPUs
AI Training Platform Team, Bingwei Zhang, Jing Li, Amir Abdullin, Sihang Chen, Xin Chen et al.
2026-11-18▲ 91arXiv 2611.17621v1Hugging FaceCode
AI-generated from the full paper (deepseek-flash). It may contain mistakes; check the original.
TL;DR
AscendGYM is an Ascend NPU kernel-optimization benchmark with 48 real-workload kernels, an AscendForge execution sandbox, two evaluation modes, and Speedup-Token Score metrics, evaluated on 17 Batch 1 tasks.
Problem
Existing Ascend kernel benchmarks primarily focus on kernel generation, with less emphasis on the ability of agents to optimize existing implementations under input configurations drawn from real workloads. This leaves a gap for evaluating whether a correct kernel can be further improved for a target workload within an acceptable budget while preserving correctness. AscendGYM is introduced to address this requirement.
Method
AscendGYM organizes an initial suite of 48 kernels across three difficulty levels; each kernel is paired with test cases whose data types and tensor shapes are collected from real training and inference tasks, so performance improvements map to corresponding workloads. This report evaluates the 17 Batch 1 tasks, with Batch 2 (17 kernels) and Batch 3 (14 kernels) to be reported in future updates. AscendForge is an Ascend-native execution sandbox for candidate compilation, correctness checking, and performance measurement, with four layers for execution and build, resource orchestration, development feedback, and deployment and operations. The benchmark supports model-harness evaluation and model evaluation under the same task configurations and validation environment. The evaluation workflow measures baseline performance, runs an iterative loop of bottleneck analysis, code refinement, performance measurement, and experience summarization, stops when the resource budget is exhausted or the maximum iteration count is reached, and revalidates the best implementation. Metrics include joint performance-budget metrics, GM Speedup and fast_p, budget metrics, reliability metrics, and the proposed Speedup-Token Score (STS).
Results
- Per-kernel gains vary substantially: the best observed speedup reaches approximately 3.29× on fused_gdn_gating versus 1.17× on moe_gating_top_k, and the median speedup across supported combinations remains below 1.1× on 13 tasks. §E.1
- Across all selected records, 31 retain the baseline speedup of 1×: 17 produced correct candidates without a performance improvement, while 14 produced no correctness-validated candidate. §E.3
- Codex/GLM-5.3 passes 10 of 17 tasks; among the seven non-passing tasks, five have no candidate submissions, while moe_token_unpermute and recurrent_gated_delta_rule have submissions but no correctness-validated candidates. §E.3
- The AddRMSNorm task captures residual addition followed by RMS normalization in Qwen3-0.6B inference with prefill, no quantization, eager execution, a single NPU, TP 1, BF16, batch size 1, and input sequence length 32; output and residual shape is [32,1024] and weight shape is [1024], and profiling shows 56 invocations per forward pass, 8.77% of total computation time, and top-5 cumulative execution time. §3.1
Limitations
- Only Batch 1 (17 tasks) is evaluated in this report; the paper states results for Batch 2 (17 kernels) and Batch 3 (14 kernels) will be reported in future updates.
- The conclusion states future work will extend evaluation to the remaining 31 tasks and broaden task and input coverage, so the current suite and input coverage are not final.
- In model evaluation, the model is held fixed at GPT-5.6 Luna and four Default configurations are compared; the text does not report other models in this mode, leaving broader model coverage open.
Key points
- The initial suite contains 48 kernels across three difficulty levels; the reported evaluation covers the 17 Batch 1 kernels. §3.1
- Batch 1 targets memory access for basic kernels; Batch 2 covers normalization and quantization; Batch 3 targets attention and fused computations including sparse attention; Batches 2 and 3 have 17 and 14 kernels. §3.1
- The AddRMSNorm example preserves deployment context including target model, execution phase, hardware and parallelism configuration, tensor shapes, data types, and computational parameters. §3.1
- AscendForge has four layers: execution and build, resource orchestration, development feedback, and deployment and operations; it supports Ascend C and Python NPU execution backends. §3.2
- AscendGYM supports model-harness evaluation and model evaluation under the same task configurations and validation environment. §3.4.1
- The Default harness is based on AuraKernel, uses GPT-5.6 Luna with reasoning effort xhigh, and covers the 17-task suite with cold, warm, no lessons, and code only configurations. §B
- The evaluation workflow measures baseline performance, iterates bottleneck analysis, code refinement, measurement, and experience summarization, then terminates on budget exhaustion or maximum iterations and revalidates the best implementation. §3.4.2
- STS is a new metric that quantifies performance gains relative to token cost by jointly considering speedup and cost. §Abstract
Mind map
Sign In
Choose a method to continue
By signing in, you agree to our Terms and Privacy Policy

