arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2510.17158cs.DCcs.PFcs.SE
收藏

将性能工具集成到模型推理中以优化 GPU kernel

Integrating Performance Tools in Model Reasoning for GPU Kernel Optimization

Lawrence Livermore National Laboratory(劳伦斯利弗莫尔国家实验室);University of Maryland(马里兰大学)

Daniel Nichols, Konstantinos Parasyris, Charles Jekel, Abhinav Bhatele, Harshitha Menon

AI总结:

针对语言模型难以理解环境与代码性能交互的问题,本文提出让模型在推理过程中调用性能工具的训练方法,并用于训练最先进的 GPU kernel 优化模型。

摘要:

语言模型如今在软件工程中十分普遍,许多开发者使用它们来自动化任务并加快开发进度。尽管语言模型在完成复杂软件工程任务方面表现出色,但在许多领域仍无法取得理想结果,例如与代码性能相关的任务。优化这类任务依赖来自环境、硬件等的许多复杂数据,而这些数据并未直接体现在源代码中。近期研究表明,使用思维链风格的推理已显著改善通用代码建模任务,但这些模型仍无法理解环境如何与代码性能相互作用。在本文中,我们提出一种训练语言模型的方法,使其能够在推理过程中与性能工具交互。随后,我们展示如何使用该方法训练一个最先进的 GPU kernel 优化模型。

英文摘要:

Language models are now prevalent in software engineering with many developers using them to automate tasks and accelerate their development. While language models have been tremendous at accomplishing complex software engineering tasks, there are still many areas where they fail to deliver desirable results, for instance code performance related tasks. Tasks like optimization depend on many complex data from the environment, hardware, etc. that are not directly represented in source code. Recent efforts have seen large improvements in general code modeling tasks using chain-of-thought style reasoning, but these models still fail to comprehend how the environment interacts with code performance. In this paper we propose a methodology to train language models that can interact with performance tools during their reasoning process. We then demonstrate how this methodology can be used to train a state-of-the-art GPU kernel optimization model.

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

↑