arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2511.13274cs.LGcs.AIcs.MAcs.PFcs.SE
收藏

KForge:面向多样化AI硬件加速器的程序合成

KForge: Program Synthesis for Diverse AI Hardware Accelerators

Anonymous Authors(匿名作者)

Taras Sereda, Tom St. John, Burak Bartan, Natalie Serrino, Sachin Katti, Zain Asgar

AI总结:

针对GPU内核难以跨多样化AI硬件加速器优化的问题,提出基于两个协作LLM智能体的平台无关框架KForge,通过单样本示例适配新平台,实现跨不同并行计算平台的有效程序合成。

摘要:

GPU内核对机器学习性能至关重要,但难以在多样化加速器间优化。我们提出KForge,一个与平台无关的框架,基于两个协作的大语言模型(LLM)智能体:生成智能体通过编译和正确性反馈生成并迭代优化程序;性能分析智能体解释性能分析数据以指导优化。这种基于智能体的架构只需单样本示例即可适配新平台。我们有三项关键贡献:(1)引入迭代优化系统,生成智能体与性能分析智能体通过功能和优化过程协作,解释多样化性能分析数据(从程序化API到基于GUI的工具),生成可操作建议以指导任意加速器的程序合成;(2)证明生成智能体可有效利用跨平台知识迁移,某架构的参考实现能显著提升不同硬件目标的生成质量;(3)通过在NVIDIA CUDA和Apple Metal这两种根本不同的并行计算平台上实现有效程序合成,验证了该方法的平台无关性。

英文摘要:

GPU kernels are critical for ML performance but difficult to optimize across diverse accelerators. We present KForge, a platform-agnostic framework built on two collaborative LLM-based agents: a generation agent that produces and iteratively refines programs through compilation and correctness feedback, and a performance analysis agent that interprets profiling data to guide optimization. This agent-based architecture requires only a single-shot example to target new platforms. We make three key contributions: (1) introducing an iterative refinement system where the generation agent and performance analysis agent collaborate through functional and optimization passes, interpreting diverse profiling data (from programmatic APIs to GUI-based tools) to generate actionable recommendations that guide program synthesis for arbitrary accelerators; (2) demonstrating that the generation agent effectively leverages cross-platform knowledge transfer, where a reference implementation from one architecture substantially improves generation quality for different hardware targets; and (3) validating the platform-agnostic nature of our approach by demonstrating effective program synthesis across fundamentally different parallel computing platforms: NVIDIA CUDA and Apple Metal.

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

↑