arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2610.31034cs.AI
收藏

CANNBot-CAKE:面向昇腾NPU的协作智能体内核演化系统

CANNBot-CAKE: Collaborative Agentic Kernel Evolution for Ascend NPU

Huawei(华为)

Deng Pan, Xue-Jian Gao, Junyi Fan, Bin Du, Jiasheng Li, Xinxian Chen, Nok Yan Chang, Xinlin Li, Lingchao Zheng, Jun Li, Yuwei Fan

AI总结:

本文提出CAKE系统,结合自适应多DSL路由等技术,在昇腾NPU的算子测试中实现高通过率与性能加速,为缩小昇腾AI内核开发能力差距提供可行方案。

摘要:

高效的自定义算子是现代深度学习工作负载的核心需求,但为昇腾NPU开发高性能内核仍存在速度慢、依赖专业知识、难以自动化的问题。尽管当前AI智能体在GPU内核基准测试中已接近专家水平,但现有模型生成昇腾NPU的AscendC内核的能力仍不足,这可能与相关训练数据相对匮乏有关。因此,本文提出CAKE,一种基于CANN的可部署自定义算子系统,结合了自适应多DSL路由、分离的生成与演化模式,以及通过CAKE Book和自演化智能体实现的经审核知识复用。在昇腾950PR上的53个CANN-Bench v1.1算子测试中,CAKE在标准集(1060个)上的用例通过率达100%,在隐藏集(4240个)上的通过率为98.28%(4167/4240),综合平均得分为78.63(满分100),相比基线平均性能加速1.334倍。演化阶段进一步优化正确算子:EngramGateFusion在20轮迭代后将聚合设备时间减少46.6%,并将平均屋顶线差距缩小约一半。这些结果为弥合昇腾在AI内核开发能力上的差距提供了可行路径。

英文摘要:

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 $100\%$ case pass rate on the standard set (1,060/1,060) and $98.28\%$ 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 $1.334\times$ over the baseline. Evolution then pushes correct operators further: EngramGateFusion cuts aggregate device time by $46.6\%$ 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.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑