AgenticCANN Automates Ascend C Operator Generation for NPU Optimization

Junhao Qiu, Zidong Wang, Yansong Sun, Zhitong Ma, Ping Guo, Qingfu Zhang· July 31, 2026 View original

Key takeaways

  • AgenticCANN automates Ascend C operator generation for NPU optimization.
  • It uses knowledge-augmented agentic evolution for low-corpus environments.
  • The framework achieves high feasibility and significant speedups on Ascend 910B.
  • Knowledge injection is crucial for improving operator generation feasibility.

Who benefits

SemiconductorCloud ComputingAI HardwareTelecommunicationsAutomotive

Summary

AgenticCANN is a knowledge-augmented agentic evolution framework designed for automated Ascend C operator synthesis in low-corpus NPU environments. It addresses the challenge of optimizing NPU inference performance by incorporating structured domain knowledge and a stage-adaptive agentic evolution strategy, achieving significant speedups.

Optimizing Ascend C operators is crucial for maximizing Neural Processing Unit (NPU) inference performance, but it demands extensive hardware expertise. While large language models (LLMs) have shown promise in generating CUDA kernels, the distinct programming model of Ascend C presents unique, unexplored challenges. To tackle this, researchers propose AgenticCANN, a framework that uses knowledge-augmented agentic evolution specifically for automated Ascend C operator synthesis in environments with limited NPU-specific data. AgenticCANN overcomes the scarcity of platform knowledge by integrating a knowledge-orchestrated generation system. This system delivers structured, multi-level domain insights throughout the development lifecycle, resolving the initial feasibility bottleneck. Building on this, it employs a stage-adaptive agentic evolution strategy that dynamically adjusts LLM interaction modes to suit different generation and evolution phases. This balances the need for high-exploration candidate discovery with high-convergence performance tuning. Extensive experiments on Huawei Ascend 910B across various operators demonstrate high feasibility (90-100% for elementwise and normalization, 56% for fusion) and significant speedups, including up to 6.65x for 1B Pangu model inference kernels. Analysis confirms that knowledge injection consistently improves feasibility, highlighting its general benefit.

Why it matters

Hardware engineers and AI infrastructure teams can leverage AgenticCANN to automate the complex and specialized task of NPU operator optimization, significantly improving the performance and efficiency of AI models deployed on Ascend NPUs.

How to implement this in your domain

  1. 1Evaluate AgenticCANN for automating Ascend C operator generation in your NPU development pipeline.
  2. 2Integrate the knowledge-orchestrated generation system with your existing hardware expertise and documentation.
  3. 3Apply the stage-adaptive agentic evolution strategy to optimize custom operators for specific AI workloads.
  4. 4Benchmark the performance gains achieved by AgenticCANN-generated operators against manually optimized ones.
  5. 5Contribute to or leverage community efforts to expand the knowledge corpus for Ascend C optimization.

Original post by Junhao Qiu, Zidong Wang, Yansong Sun, Zhitong Ma, Ping Guo, Qingfu Zhang

"arXiv:2607.26661v1 Announce Type: new Abstract: Ascend C operator optimization is critical for NPU (Neural Processing Unit) inference performance but requires deep hardware expertise.While large language models (LLMs) have shown promise in automated CUDA kernel generation, the fu…"

View on X

Originally posted by Junhao Qiu, Zidong Wang, Yansong Sun, Zhitong Ma, Ping Guo, Qingfu Zhang on X · view source

Want to go deeper?

Turn these trends into skills with Learnijoy's hands-on AI & tech courses.

Explore courses