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

AscendOptimizer: 一种用于Ascend NPU运算优化的经验型智能体

AscendOptimizer: Episodic Agent for Ascend NPU Operator Optimization

School of Computer Science and Technology, East China Normal University(东华大学计算机科学与技术学院);School of Computer Science and Technology, Tongji University(同济大学计算机科学与技术学院);Shanghai University of International Business and Economics(上海国际商务经济大学);Key Lab of Mathematics and Engineering Applications (MoE), East China Normal University(东华大学数学与工程应用重点实验室);School of Mathematical Sciences, East China Normal University(东华大学数学科学学院);Shenzhen Loop Area Institute (SLAI)(深圳环宇院)

Jiehao Wu, Zixiao Huang, Wenhao Li, Chuyun Shen, Junjie Sheng, Xiangfeng Wang

AI总结:

本文提出AscendOptimizer,通过自身执行构建缺失的优化知识,结合主机侧和内核侧优化,实现AscendC运算的加速,达到1.21倍的几何平均速度提升。

摘要:

本文提出AscendOptimizer,一种用于Ascend NPU运算优化的经验型智能体。通过自身执行构建缺失的优化知识,结合主机侧和内核侧优化,实现AscendC运算的加速,达到1.21倍的几何平均速度提升。

英文摘要:

Optimizing AscendC (Ascend C) operators for Ascend NPUs is difficult for two reasons. First, unlike CUDA, the ecosystem offers few public kernels to learn from. Second, performance depends on a coupled two-part implementation: a host-side tiling program that controls data movement and a kernel program that schedules and pipelines computation. We present AscendOptimizer, an episodic agent that builds missing optimization knowledge from execution itself. For kernel optimization, AscendOptimizer rewinds strong implementations by removing optimizations in a controlled way, then keeps the changes whose removal measurably hurts performance as reusable experience for later rewriting. For host-side optimization, it runs profiling-in-the-loop evolutionary search to find valid, fast tiling and data-movement configurations directly from hardware feedback. This combination lets the agent improve kernel structure and host-side scheduling together. On a benchmark of 101 real AscendC operators, AscendOptimizer achieves a 1.21x geometric-mean speedup over the open-source baseline, and 53.47% of operators run faster than their references. Given a same budget of evaluations per operator, AscendOptimizer consistently outperforms Best-of-N sampling and OpenEvolve in terms of geometric mean speedup, fast_p tail speedup ratios, and overall optimization progress across varying budgets.

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

↑