Skip to content
PodSubs
ShowsPeopleGuestsJobsNewsEvents
More
BlogPodCred
Menu
ShowsPeopleGuestsJobsNewsEventsBlogPodCredNetworksSign in
Join nowSign in
  • Shows
  • People
  • Jobs
  • News
  • More
    • Guests
    • Events
    • Blog
    • PodCred
    • Networks
    Join nowSign in

Daily Paper Cast

Daily Paper Cast artwork

AscendGYM: A Cost-Aware Kernel Optimization Benchmark for Real-World Workloads on Ascend NPUs

Nov 18, 202623 minAudioEpisode 2517
ShareXLinkedInFacebookWhatsAppEmail

🤗 Upvotes: 88 | cs.AI, cs.DC, cs.LG Authors: AI Training Platform Team, Bingwei Zhang, Jing Li, Amir Abdullin, Sihang Chen, Xin Chen, Liangjun Feng, Yingmeng Gao, Tao Guo, Junjie Huang, Dongfang Li, Zhanglian Lin, Jiajun Liu, Zekun Liu, Zhengxuan Lu, Xiaodong Luo, Jian Meng, Ivan Nosov, Linyuan Qiu, Weijian Sun, Wanrui Yan, Binfan Zheng, Zhicheng Zhou, Baotian Hu, Min Zhang, Haizhou Li, Zhiquan Luo Title: AscendGYM: A Cost-Aware Kernel Optimization Benchmark for Real-World Workloads on Ascend NPUs Arxiv: http://arxiv.org/abs/2611.17621v1 Abstract: Kernel optimization is essential for efficient large language model (LLM) training and inference on Ascend NPUs. 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. To address this requirement, we introduce AscendGYM, a benchmark whose initial suite comprises 48 kernels across three difficulty levels. Each kernel is paired with test cases whose data types and tensor shapes are collected from real-world training and inference tasks. Consequently, performance improvements on AscendGYM map directly to the corresponding workloads. In terms of usability, two evaluation modes are supported in AscendGYM: model evaluation and model-harness evaluation. The kernel optimization capabilities of both trained models and custom agents are allowed to be measured. It provides a complete execution environment that closely reproduces how Ascend kernels are invoked in practical pipelines. For model evaluation, it additionally includes a built-in harness equipped with search orchestration and experience accumulation. Finally, we propose a new metric, the Speedup-Token Score (STS), which quantifies performance gains relative to token cost. By jointly considering speedup and cost, STS enables the assessment of practical kernel optimization capability of a model or harness under an acceptable budget. AscendGYM is available at https://github.com/SLAI-AITP/AscendGYM.

Audio and video play straight from the show's own hosting. PodSubs stores and serves no media.

Transcript

From the show. Tap a time to play from there.

Evan: Welcome to Daily Paper Cast. Ashley: Today's paper is from the Hugging Face daily paper list of November 18, 2026, with 88 upvotes. Evan: The paper we're discussing is titled 'AscendGYM: A Cost-Aware Kernel Optimization Benchmark for Real-World Workloads on Ascend NPUs.' Ashley: It's authored by the AI Training Platform Team at the Shenzhen Loop Area Institute. The first two authors are Dongfang Li and Baotian Hu, with Dongfang Li being the corresponding author.

Evan: Let's dive into the Introduction section of the paper. Ashley: The performance of underlying kernels is crucial for the efficient training and inference of large language models, especially on Ascend Neural Processing Units, or NPUs. Evan: Right, and improving these kernel implementations specifically for real-world workloads is a significant engineering task. Ashley: Exactly. Typically, it starts with existing code. Developers need to analyze performance bottlenecks in relation to the target input configurations and hardware specifications.

Evan: And then they must modify and test implementations repeatedly, correct? Ashley: Correct. This process demands specialized knowledge and sustained engineering effort. Evan: So, coding models and agents can help automate some of this optimization process. Ashley: Precisely. Several benchmarks have been introduced to evaluate these capabilities. For instance, KernelBench assesses models on generating efficient kernels for PyTorch workloads. Evan: On the other hand, NPUKernelBench and CANN Bench extend this evaluation to Ascend NPUs, assessing compilation, correctness, and performance.

Ashley: That's right. However, AscendGYM focuses on a specific aspect: optimization of existing kernel implementations. It evaluates whether agents can further enhance performance for target workloads while maintaining correctness. Evan: This is a concrete optimization task. And it addresses the challenge of varying optimization priorities for the same kernel under different input configurations. Ashley: Exactly. AscendGYM selects kernels and their input configurations from real training and inference workloads.

This approach ensures that performance improvements on AscendGYM directly correlate with practical workloads. Evan: What about the reliability of the evaluation process itself? Ashley: Good point. AscendGYM introduces AscendForge, a built-in execution sandbox that handles candidate compilation, correctness checks, and performance measurement. It ensures reliable validation conditions and protocols. Evan: So the entire evaluation, from modified code to results feedback, is checked through actual execution?

Ashley: Precisely. AscendForge integrates these checks into an accessible evaluation service, supporting iterative agent optimization and result verification. Evan: How does AscendGYM assess optimization performance? Ashley: AscendGYM uses the Speedup–Token Score, or STS, metric. It measures performance gains relative to token cost, combining both speedup and resource consumption to evaluate practical optimization capability. Evan: So it’s not just about final speedup, but also how efficiently those improvements are achieved.

Ashley: Exactly. It includes metrics for performance, resource consumption, and correctness separately to distinguish different aspects of optimization. Evan: What does AscendGYM comprise right now? Ashley: AscendGYM currently includes 48 kernel optimization tasks across three difficulty levels. It supports two evaluation modes: model evaluation and model–harness evaluation. Evan: And it's designed to evaluate combinations of leading models paired with common harnesses?

Ashley: Yes, systematically comparing their optimization performance. The results so far indicate that substantial improvements remain challenging across a wide range of existing implementations. Evan: It sounds like AscendGYM is providing valuable insights into where kernel optimization can be improved. Ashley: For sure. By linking task and metric design to practical workloads, it contributes a useful benchmark for Ascend NPU kernel optimizations. Evan: That's the end of the Introduction section today.

Evan: Now that we have an understanding of the Introduction, let's move onto the Method section. Ashley: AscendGYM evaluates kernel optimization on Ascend NPUs by using a comprehensive benchmarking suite. Let's break down its components and approach. Evan: So what are the key components of AscendGYM? Ashley: AscendGYM's method comprises four main components: task selection and design, the evaluation environment and tools, evaluation metrics, and the shared workflow.

Evan: Interesting. Can you start by explaining how the tasks are selected and designed? Ashley: Of course. Tasks are selected based on their impact on performance. AscendGYM organizes kernel optimization tasks into three batches of increasing difficulty. These range from simple memory access optimization to multistep computations and complex execution coordination. Evan: And each task is connected to real workloads, right? Ashley: Exactly. Each task preserves its link to the kernel's deployment context, including the model, execution phase, hardware configuration, and other specifics.

This ensures that measured kernel speedups correspond to improvements in actual workloads. Evan: How does AscendGYM ensure these optimization tasks are relevant and challenging? Ashley: Task selection prioritizes bottleneck kernels that have a significant impact on performance. Test cases preserve the real-world context of deployment by replicating the conditions under which these kernels operate. Evan: Okay, let's move on to the evaluation environment. How does AscendGYM evaluate these tasks?

Ashley: AscendGYM includes the AscendForge evaluation platform. This is an execution sandbox designed to support candidate compilation, correctness checks, and performance measurements. Evan: So this sandbox is crucial for reliable evaluation? Ashley: AscendForge integrates multiple layers, including source submission and compilation, resource orchestration, development feedback, and deployment operations. This structured environment ensures consistent and reliable validation of candidate implementations.

Evan: Could you elaborate on these layers and their roles? Ashley: Sure. At the core, there's the Execution and Build layer that automates the submission, compilation, installation, and test execution of kernel projects. Then, we have the Resource Orchestration layer that manages evaluation requests and allocates resources based on device count, model type, and node preferences. Evan: And the other layers? Ashley: The Development Feedback layer integrates static code analysis and performance profiling, returning comprehensive feedback to guide further optimization.

Lastly, the Deployment and Operations layer ensures the infrastructure's health and consistency, managing hardware monitoring and version verification. Evan: And all these capabilities help in iterative optimization? Ashley: Yes, they do. The tight integration of these layers supports iterative optimization, ensuring that each modification's performance impact is accurately assessed. Evan: What evaluation metrics does AscendGYM use to assess optimization performance? Ashley: Great question.

AscendGYM has several metrics designed to capture various aspects of performance optimization. The focal metric is the Speedup–Token Score, or STS, but it also includes metrics like Cost-to-Gain, Geometric Mean Speedup, and a range of reliability metrics. Evan: Can you explain the Speedup–Token Score, or STS, in more detail? Ashley: STS measures the best speedup achieved within a token budget, penalizing delayed improvements in the process. It jointly considers final performance gains and token expenditure, making it a comprehensive metric for real-world optimization scenarios.

Evan: And what about the other metrics? Ashley: Cost-to-Gain measures the token consumption needed to achieve a specific relative speedup. Geometric Mean Speedup summarizes the best speedup across multiple tasks, providing an aggregate view of performance. Additionally, reliability metrics like Candidate Pass Rate and Task Pass Rate evaluate the correctness and robustness of the optimization outcomes. Evan: So these metrics together provide a comprehensive view of optimization performance.

Ashley: Exactly. They allow a nuanced understanding of how well the kernel optimizations perform, how efficiently they are achieved, and how reliable the results are. Evan: Now, you've mentioned a shared workflow as part of the method. How does that come into play? Ashley: The shared workflow is designed to provide consistent evaluation across different models and harnesses. It ensures that every model–harness pair follows the same execution protocol, measurement settings, and evaluation procedures.

Evan: What's involved in this workflow? Ashley: It starts with configuring the evaluation environment and optimization settings, then measuring baseline performance. From there, it moves into an iterative loop of bottleneck analysis, code refinement, performance measurement, and experience summarization. Evan: So it's quite an exhaustive process? Ashley: Indeed. Each optimized candidate goes through multiple rounds of checks and profiling, guiding subsequent optimizations. The process ends when the resource budget is exhausted or the maximum iteration count is reached.

Evan: And what happens at the end of this workflow? Ashley: The final implementation is re-evaluated for performance validation, ensuring each metric is thoroughly computed and reported. This comprehensive workflow helps in comparing different models and harnesses systematically. Evan: So we can clearly see how AscendGYM systematically evaluates kernel optimization tasks. That wraps up our coverage of the Method section. Evan: Let's move on to the Experiments and Results section to see how AscendGYM performs in practice.

Ashley: AscendGYM’s experiments are designed to evaluate kernel optimization across a comprehensive suite of tasks. Here, we have two main evaluation modes: Model–Harness Evaluation and Model Evaluation. Evan: Let's start with the Model–Harness Evaluation. What combinations were tested? Ashley: Sure. The model–harness evaluation tested combinations of leading models paired with three coding-agent harnesses: Claude Code, Codex CLI, and OpenCode. This includes models like Claude Opus 5, GPT-5.6 Terra, GLM-5.3, Qwen3.5-122B-A10B, Qwen3.6-35B-A3B, and DeepSeek-V4-Flash.

Evan: Quite a varied lineup. How were these tasks and baselines set up for evaluation? Ashley: Task sets and test cases were drawn from CANN ops-nn and ops-transformer, and vLLM Ascend, prioritizing tasks with significant performance impact. Baseline implementations used the initial Ascend C code, and execution latency was measured as the reference for evaluating optimized candidates. Evan: And how was optimization conducted and constrained in these experiments?

Ashley: Each model–harness run was allowed up to 80 candidate evaluations with a soft target of exploring 50 substantively different optimization solutions. Failed submissions counted toward the evaluation budget, but baseline measurements did not. Evan: So these evaluations provided comprehensive data on optimization effectiveness? Ashley: Exactly. After the optimization search ended, the final selected implementation underwent additional evaluations for performance validation, ensuring robust and reliable results.

Evan: Let's delve into the results. What did the joint performance and budget metrics reveal? Ashley: The Speedup–Token Score, or STS, revealed varied performance across different token budgets. With three usage scenarios—tight, moderate, and generous budgets—the models exhibited different gain trajectories. For instance, Claude Code with Opus 5 achieved similar STS with Claude Code and OpenCode at 10 million tokens, but larger budgets saw different patterns of performance growth. Evan: So, the higher the budget, the more nuanced the performance insights?

Ashley: Precisely. Reporting performance at the end of the full search didn’t fully capture the efficiency of the optimization process under different budgets. Cost-to-Gain metrics showed that some combinations had lower attainment costs but didn’t always cover all tasks. Evan: How about the individual performance metrics like GM Speedup and fastp? Ashley: GM Speedup and fastp highlighted differences between aggregate gains and their distribution. Even models that accelerated all tasks, like Claude Code with Opus 5, showed varied magnitudes of improvement.

The results indicate significant optimization challenges as approximately 70% of evaluated combinations had GM speedups below 1.2 times. Evan: That suggests considerable room for improvement in kernel optimization. Ashley: Indeed. The complexity of achieving substantial gains across a broad range of tasks was made clear by these metrics. Evan: What do the budget metrics tell us? Ashley: They provide insight into the token consumption, model interaction rounds, and wall-clock time across different combinations.

For example, Claude Code with Opus 5 consumed fewer tokens than Codex with GPT-5.6 but used more interaction rounds, showing that a single cost measure doesn’t fully characterize optimization expenditure. Evan: And the wall-clock time metric? Ashley: Elapsed time distinguished configurations with similar gains and token consumption. Qwen-35B achieved comparable GM speedups with OpenCode and Codex but showed a roughly fivefold difference in turnaround times, demonstrating that token expenditure and final performance can entail different operational time windows.

Evan: Interesting! So wall-clock time adds another layer of understanding to optimization effectiveness. Ashley: Exactly, helping make decisions under varying resource constraints. Lastly, reliability metrics showed that task pass rates and performance gains don’t always align. Producing correct candidates doesn’t guarantee substantial performance improvements. Evan: So even high pass rates still leave optimization challenges unsolved. Ashley: Indeed. Task pass rates supply complementary information to performance metrics, helping interpret optimization workflows.

Evan: What about the Model Evaluation mode? Ashley: For the model evaluation, GPT-5.6 Luna was assessed under four Default configurations: cold, warm, no lessons, and code only. Warm achieved the highest STS at all budgets, outperforming other configurations significantly. Evan: So the Default configuration itself affects optimization outcomes? Ashley: Consistent evaluation conditions are crucial for comparing model capabilities, avoiding misattributed differences.

Comparisons should keep prior experience and settings consistent. Evan: That's fascinating! Sounds like AscendGYM has provided deep insights into kernel optimization performance. Ashley: Indeed. That wraps up our coverage of the Experiments and Results section. Evan: Next, let's explore the Related Work section to see how AscendGYM builds upon and differentiates from previous benchmarks. Ashley: Kernel generation benchmarks typically evaluate if models can produce correct and efficient implementations from computational requirements.

Examples include KernelBench, which specifies tasks via PyTorch programs and asks models to generate semantically equivalent GPU kernels. Evan: So, KernelBench is focused on generating kernels from scratch for GPU-based workloads? Ashley: Exactly. Additionally, TritonBench targets Triton kernel generation, while MultiKernelBench expands this evaluation to multiple hardware platforms. For Ascend NPUs specifically, NPUKernelBench provides functional descriptions and code templates for correctness and performance validation.

Evan: And it seems CANN Bench also engages in benchmarking agent-generated kernels against hardware limits on Ascend NPUs. Ashley: That's right. CANN Bench offers operator specifications, test cases, and reference implementations to check correctness and measure performance against predefined baselines. Evan: So, how does AscendGYM's focus differ from these benchmarks? Ashley: While previous benchmarks primarily focus on the initial generation of efficient kernels, AscendGYM evaluates the optimization of existing implementations.

This approach begins with already correct kernel code and assesses whether agents can enhance its performance for target workloads within a resource budget. Evan: So it's more about pushing the boundaries of code that already works, optimizing it further? Ashley: Precisely. This optimization-centric task mirrors real-world scenarios where developers start with existing implementations and continuously refine them to meet performance criteria. Evan: Are there other benchmarks that start from existing kernel implementations?

Ashley: Yes, AMD evaluates optimization on existing Triton kernels in TritonBench-modified and ROCm-bench, requiring agents to enhance execution performance while retaining correctness. This scenario uses existing kernel source code as the target and measures improvements based on speedup compared to the initial implementation. Evan: Fascinating! And PRAGMA integrates hardware profiling to guide iterative optimization of candidate kernels. Ashley: Exactly.

AutoKernel profiles models to prioritize bottleneck kernels, then validates and benchmarks subsequent Triton or CUDA C++ implementations. These iterative refinement processes also echo AscendGYM’s approach of continuous optimization based on real-world input configurations. Evan: How does the practical application context affect performance evaluations? Ashley: The applicability of kernel benchmarks heavily relies on the relationship between kernels, their input configurations, and actual deployment scenarios.

For instance, SOL-ExecBench assesses kernel tasks from real models and uses hardware performance limits to identify remaining optimization potential. Evan: And Atrex-Bench and FlashInfer-Bench also assess performance based on real inference workloads, correct? Ashley: Correct. These benchmarks derive evaluation tasks from execution traces, linking kernel configurations to specific deployment scenarios, which is very similar to AscendGYM’s methodology. Evan: So AscendGYM stands out by focusing on optimizing kernels used in real large-model workloads, keeping input shapes and configurations true to real execution requirements.

Ashley: Exactly. Each task in AscendGYM offers complete source code ready for performance enhancements, ensuring that the evaluation retains practical relevance. The AscendForge sandbox supports this by providing a consistent environment for compilation, correctness checking, and performance measurement. Evan: This comprehensive setup allows for rigorous evaluation of kernel optimization within real-world constraints. Ashley: Yes, and by evaluating performance gains, correctness, and resource consumption, AscendGYM paints a detailed picture of optimization effectiveness.

This holistic approach differentiates it from other benchmarks that might only consider final performance gains. Evan: So, overall, AscendGYM not only builds on but also expands the scope of existing kernel benchmarks? Ashley: Indeed. AscendGYM addresses real-world kernel optimization challenges by incorporating practical evaluation settings and comprehensive metrics. This makes it a valuable tool for assessing and improving kernel performance on Ascend NPUs.

Evan: That's the end of the Related Work section today. Evan: We've covered a lot about AscendGYM today. Let's summarize the key contributions and takeaways from this paper. Ashley: AscendGYM is a benchmark specifically designed for kernel optimization on Ascend NPUs. Its focus on real-world workloads and existing kernel implementations sets it apart from previous benchmarks that primarily evaluate kernel generation. Evan: That's a crucial distinction. By starting with correct kernel code and striving to improve it, AscendGYM mirrors real-world optimization scenarios.

Ashley: Exactly. The key contributions of this paper include a comprehensive suite of 48 kernel optimization tasks, a built-in execution environment named AscendForge to ensure reliable validation of performance gains, and the introduction of the Speedup–Token Score, or STS, as a metric to measure both the effectiveness and efficiency of optimization. Evan: And what makes the STS metric particularly valuable? Ashley: STS is valuable because it considers both the performance gains and the resources consumed to achieve them.

This dual aspect provides a realistic assessment of optimization capability, especially under resource constraints. Evan: Together with the other metrics, it enables a nuanced evaluation of optimization processes. Ashley: Indeed. AscendGYM's comprehensive approach, focusing on practical workloads and detailed metrics, makes it an essential tool for advancing kernel optimization on Ascend NPUs. Evan: That wraps up our discussion on AscendGYM. We hope you found this episode insightful.

Ashley: Thank you for tuning in. If you enjoyed today's deep dive, be sure to join us again for future episodes where we'll explore more cutting-edge research papers. Evan: See you next time on Daily Paper Cast!

Open the transcript file

Hosts and Guests

Nobody is credited on this episode yet.

Credit the people on this episode

Be the first to rate this episode

More episodes

All episodes
  1. Motion Mamba 2.0: Autoregressive Diffusion Mamba for Long-Horizon Humanoid Control

    Nov 24, 202624 minAudio

    🤗 Upvotes: 136 | cs.RO, cs.CV Authors: Yue Huang, Tianshan Zhang, Zeyu Zhang, Jayeon Kang, Akide Liu, Sungjoon Choi, Dacheng Tao, Hao Tang Title: Motion Mamba 2.0: Autoregressive Diffusion Mamba for Long-Horizon...

    Credit the people on this episode

  2. Embo-Harness: Towards Understanding Frontier-Model-as-Policy Harness

    Nov 24, 202622 minAudio

    🤗 Upvotes: 86 | cs.RO Authors: Xiao-Ming Wu, Kang Liao, Yuexiao Ma, Taolin Zhang, Mingqian Zhou, Nuo Chen, Ziming Li, Yihang Luo, Rui Li, Zhonghua Wu, Tianyu Xie, Xiawu Zheng, Zhongang Cai, Zhi Hou, Chen Change Loy...

    Credit the people on this episode

  3. 3AGameFactory-Motion: Agentic Rigging and Reliable Complex Motion Generation for Diverse 3D Assets

    Nov 24, 202623 minAudio

    🤗 Upvotes: 56 | cs.CV Authors: Bohan Zeng, Kaixin Zhu, Yifan Yang, Dongge Yu, Zihao Wu, Yifan Dai, Zhou Liu, Junbo Niu, Xiaochen Ma, Shiran Ge, Zimo Meng, Junzhu Liang, Huanyao Zhang, Jinhang Liu, Tianqi Xiao, Jinhao...

    Credit the people on this episode

  4. WeMM-Ecom: Advancing Multimodal Content Understanding for WeChat E-Commerce

    Nov 24, 202623 minAudio

    🤗 Upvotes: 52 | cs.AI, cs.CV Authors: Binhui Xie, Jinmin Li, Haomiao Tang, Guangting Wang, Song Jin, Jianwei Zhu, Fengyun Rao, Jing Lyu Title: WeMM-Ecom: Advancing Multimodal Content Understanding for WeChat E-Commerce...

    Credit the people on this episode

  5. Let the Fixer Decide: Training a Code Localizer from the Fixer's Likelihood

    Nov 24, 202621 minAudio

    🤗 Upvotes: 41 | cs.AI, cs.SE Authors: Khalil Hennara, Muhammad Hreden, Zeina Aldallal, Sara Chrouf, Safwan AlModhayan Title: Let the Fixer Decide: Training a Code Localizer from the Fixer's Likelihood Arxiv:...

    Credit the people on this episode