arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2512.23424cs.AIcs.LG
收藏

AKG核代理:跨平台核合成的多智能体框架

AKG kernel Agent: A Multi-Agent Framework for Cross-Platform Kernel Synthesis

Huawei Technologies Co., Ltd.(华为技术有限公司);Hunan University(湖南大学)
Jinye Du, Quan Yuan, Zuyao Zhang, Yanzhi Yi, Jiahui Hu, Wangyi Chen, Yiyang Zhu, Qishui Zheng, Wenxiang Zou, Xiangyu Chang, Zuohe Zheng, Zichun Ye, Chao Liu, Sh… 展开作者

Jinye Du, Quan Yuan, Zuyao Zhang, Yanzhi Yi, Jiahui Hu, Wangyi Chen, Yiyang Zhu, Qishui Zheng, Wenxiang Zou, Xiangyu Chang, Zuohe Zheng, Zichun Ye, Chao Liu, Shanni Li, Renwei Zhang, Yiping Deng, Xinwei Hu, Xuefeng Jin, Jie Zhao

AI总结:

AKG核代理是一种多智能体系统,通过自动化核生成、迁移和性能调优,提升跨平台核开发效率。

摘要:

现代AI模型需要高性能计算核。随着大语言模型、多模态架构和推荐系统复杂性的增加,结合稀疏性和量化等技术,带来了显著的计算挑战。此外,频繁的硬件更新和多样的芯片架构进一步复杂化了这一领域,要求为每个平台定制核实现。然而,手动优化无法跟上这些需求,成为AI系统开发的关键瓶颈。最近在LLM代码生成能力上的进展为自动化核开发开辟了新可能。在本文中,我们提出了AKG核代理(AI驱动的核生成器),一种多智能体系统,用于自动化核生成、迁移和性能调优。AKG核代理被设计为支持多种领域特定语言(DSLs),包括Triton、TileLang、CPP和CUDA-C,使其能够针对不同的硬件后端,同时保持正确性和可移植性。系统的模块化设计允许快速集成新的DSLs和硬件目标。当在使用Triton DSL在GPU和NPU后端上评估KernelBench时,AKG核代理在PyTorch Eager基准实现上实现了平均1.46倍的速度提升,证明了其在加速现代AI工作负载核开发方面的有效性。

英文摘要:

Modern AI models demand high-performance computation kernels. The growing complexity of LLMs, multimodal architectures, and recommendation systems, combined with techniques like sparsity and quantization, creates significant computational challenges. Moreover, frequent hardware updates and diverse chip architectures further complicate this landscape, requiring tailored kernel implementations for each platform. However, manual optimization cannot keep pace with these demands, creating a critical bottleneck in AI system development. Recent advances in LLM code generation capabilities have opened new possibilities for automating kernel development. In this work, we propose AKG kernel agent (AI-driven Kernel Generator), a multi-agent system that automates kernel generation, migration, and performance tuning. AKG kernel agent is designed to support multiple domain-specific languages (DSLs), including Triton, TileLang, CPP, and CUDA-C, enabling it to target different hardware backends while maintaining correctness and portability. The system's modular design allows rapid integration of new DSLs and hardware targets. When evaluated on KernelBench using Triton DSL across GPU and NPU backends, AKG kernel agent achieves an average speedup of 1.46$\times$ over PyTorch Eager baselines implementations, demonstrating its effectiveness in accelerating kernel development for modern AI workloads.

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

↑