2026-01-23 · 专家 · 数据科学 · 机器学习

Towards Automated Kernel Generation in the Era of LLMs

本文综述了基于大型语言模型(LLM)的内核自动生成技术,分析了现有方法、挑战和未来研究方向。

更新于 2026-09-15。作者:Yang Yu、Peiyu Zang、Chi Hsu Tsai、Haiming Wu、Yixin Shen、Jialing Zhang、Haoyu Wang、Zhiyou Xiao、Jingze Shi、Yuyu Luo、Wentao Zhang、Chunlei Men、Guang Liu、Yonghua Lin。

中文摘要

现代AI系统的性能从根本上受其底层内核质量的影响,这些内核将高级算法语义转换为低级硬件操作。实现接近最优的内核需要专家级别对硬件架构和编程模型的理解,这使得内核工程成为一个关键但臭名昭著的耗时且难以扩展的过程。近年来,大型语言模型(LLMs)和基于LLMs的智能体在自动化内核生成和优化方面开辟了新的可能性。LLMs非常适合压缩难以形式化的专家级别内核知识,而智能体系统则通过将内核开发视为一个迭代、反馈驱动的循环,进一步实现了可扩展的优化。在这一领域已经取得了快速进展。然而,该领域仍然分散,缺乏LLM驱动内核生成的系统视角。本综述旨在填补这一空白,通过提供一个关于现有方法的系统概述,涵盖基于LLM的方法和智能体优化工作流程,并系统地汇编支撑该领域学习和评估的数据集和基准。此外,还进一步概述了关键开放挑战和未来的研究方向,旨在为下一代自动内核优化建立一个全面参考。为了跟踪这一领域的发展,我们维护了一个开源的GitHub仓库,网址为https://github.com/flagos-ai/awesome-LLM-driven-kernel-generation。

英文摘要

The performance of modern AI systems is fundamentally constrained by the quality of their underlying kernels, which translate high-level algorithmic semantics into low-level hardware operations. Achieving near-optimal kernels requires expert-level understanding of hardware architectures and programming models, making kernel engineering a critical but notoriously time-consuming and non-scalable process. Recent advances in large language models (LLMs) and LLM-based agents have opened new possibilities for automating kernel generation and optimization. LLMs are well-suited to compress expert-level kernel knowledge that is difficult to formalize, while agentic systems further enable scalable optimization by casting kernel development as an iterative, feedback-driven loop. Rapid progress has been made in this area. However, the field remains fragmented, lacking a systematic perspective for LLM-driven kernel generation. This survey addresses this gap by providing a structured overview of existing approaches, spanning LLM-based approaches and agentic optimization workflows, and systematically compiling the datasets and benchmarks that underpin learning and evaluation in this domain. Moreover, key open challenges and future research directions are further outlined, aiming to establish a comprehensive reference for the next generation of automated kernel optimization. To keep track of this field, we maintain an open-source GitHub repository at https://github.com/flagos-ai/awesome-LLM-driven-kernel-generation.

解读

一句话总结

本文综述了基于大型语言模型(LLM)的内核自动生成技术,分析了现有方法、挑战和未来研究方向。

问题1:这篇论文想要解决什么具体问题?

问题2:论文的核心创新点是什么?

问题3:实验结果如何验证了方法的有效性?

问题4:这个研究的实际应用价值是什么?

来源

机器可读索引:llms.txt