CANNBot-CAKE: Collaborative Agentic Kernel Evolution for Ascend NPU
Deng Pan, Xue-Jian Gao, Junyi Fan, Bin Du, Jiasheng Li, Xinxian Chen, Nok Yan Chang, Xinlin Li, Lingchao Zheng, Jun Li, Yuwei Fan
Abstract
Efficient custom operators are essential for modern deep learning workloads, yet developing high-performance kernels for Ascend NPUs remains slow, expert-intensive, and difficult to automate. Although AI agents now approach expert performance on GPU kernel benchmarks, current models remain less capable of generating AscendC kernels for NPUs, potentially reflecting the relative scarcity of relevant training data. We thus present CAKE, a CANN-native system for deployable custom operators that combines adaptive multi-DSL routing, separate Generation and Evolution modes, and reviewed knowledge reuse through CAKE Book and a Self-Evolving Agent. On 53 CANN-Bench v1.1 operators on Ascend 950PR, CAKE's aggregated results achieve case pass rate on the standard set (1,060/1,060) and on the hidden set (4,167/4,240), with an overall mean score of 78.63 out of 100 and an average performance speedup of over the baseline. Evolution then pushes correct operators further: EngramGateFusion cuts aggregate device time by over 20 rounds and roughly halves the mean roofline gap. These results offer a practical path toward closing Ascend's AI-for-kernel capability gap.
Create a lesson
Metadata
- Comments
- 23 pages, 10 figures
Related papers
CoEvolve: Counterfactual-Guided Co-Evolution of Memory and Collaboration in Multi-Agent Systems
Shared title terminologycs.AIXufei Shi, Derong Xu, Wei Chen et al.
STRIDE: Strategy-to-Tactics Retrieval-Guided Skill Disclosure and Evolution for Agentic Reinforcement Learning
Shared title terminologycs.AIShixin Hong, Wanqing Cui, Yibo Hu et al.
HookEvo: A Framework for Coordinated Plugin Evolution on Hook-Enabled Agent Runtimes
Shared title terminologycs.AIShengze Huang, Yanyu Mao, Xiaofei Yu et al.
Learning When to Collaborate: Selective Multi-Agent Medical Reasoning via Uncertainty-Aware Routing
Shared title terminologycs.AIJiacheng Hou, Xueliang Cui, Dan Lu et al.
SkillShift-Bench: Benchmarking Skill Learning under Environment Evolution for Web Agents
Shared title terminologycs.AIBo-Yu Chen, Zhi Zhou, Yu-Feng Li
TGR-EvoDAG: A DAG-based Multi-Agent Code Evolution Framework for Generative Recommendation on Tencent
Shared title terminologycs.AIJunlin He, Junzhang Zhu, Yudong Li et al.