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

STARK:用于精化内核的战略智能体团队

STARK: Strategic Team of Agents for Refining Kernels

Meta Ranking AI Research(Meta 排名人工智能研究);Duke University(杜克大学)

Juncheng Dong, Yang Yang, Tao Liu, Yang Wang, Feng Qi, Vahid Tarokh, Kaushik Rangadurai, Shuang Yang

AI总结:

针对 GPU 内核优化难题,本文提出多智能体协作的 LLM 框架 STARK,结合性能反馈与策略搜索迭代精化内核,在 KernelBench 上最高实现 16 倍加速。

摘要:

GPU 内核的效率对现代 AI 的进步至关重要,但由于内存层次结构、线程调度和硬件特定特性之间存在复杂交互,优化内核仍是一项困难且劳动密集的任务。尽管大语言模型(LLM)的最新进展为自动化代码生成提供了新机遇,现有方法大多将 LLM 视为单次生成器或简单的精化工具,限制了其在不规则内核优化环境中进行探索的有效性。我们提出一种用于 GPU 内核优化的 LLM 智能体框架,该框架通过多智能体协作、扎根式指令、动态上下文管理和策略性搜索,系统地探索设计空间。该框架模拟专家工程师的工作流,使 LLM 能够推理硬件权衡、纳入性能分析反馈并迭代精化内核。我们在用于基于 LLM 的内核优化的基准 KernelBench 上评估了该方法,并证明其相较基线智能体有显著提升:在基线常常失败的情况下,我们的系统能够生成正确解决方案,并且所实现内核的运行时性能最高可快 16 倍。这些结果凸显了智能体 LLM 框架在推进完全自动化、可扩展的 GPU 内核优化方面的潜力。

英文摘要:

The efficiency of GPU kernels is central to the progress of modern AI, yet optimizing them remains a difficult and labor-intensive task due to complex interactions between memory hierarchies, thread scheduling, and hardware-specific characteristics. While recent advances in large language models (LLMs) provide new opportunities for automated code generation, existing approaches largely treat LLMs as single-shot generators or naive refinement tools, limiting their effectiveness in navigating the irregular kernel optimization landscape. We introduce an LLM agentic framework for GPU kernel optimization that systematically explores the design space through multi-agent collaboration, grounded instruction, dynamic context management, and strategic search. This framework mimics the workflow of expert engineers, enabling LLMs to reason about hardware trade-offs, incorporate profiling feedback, and refine kernels iteratively. We evaluate our approach on KernelBench, a benchmark for LLM-based kernel optimization, and demonstrate substantial improvements over baseline agents: our system produces correct solutions where baselines often fail, and achieves kernels with up to 16x faster runtime performance. These results highlight the potential of agentic LLM frameworks to advance fully automated, scalable GPU kernel optimization.

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

↑