arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2410.15625cs.LGcs.AIcs.CLcs.DC
收藏

通过智能体-系统接口利用LLM优化器提升并行程序性能

Improving Parallel Program Performance with LLM Optimizers via Agent-System Interfaces

Stanford University(斯坦福大学);Intel(英特尔);NVIDIA(英伟达);Nanjing University(南京大学)

Anjiang Wei, Allen Nie, Thiago S. F. X. Teixeira, Rohan Yadav, Wonchan Lee, Ke Wang, Alex Aiken

AI总结:

提出基于Agent-System Interface的生成式优化框架,利用DSL和AutoGuide机制将低级系统代码抽象为结构化搜索空间并提供可操作反馈,仅需10次迭代即超越OpenTuner 1000次迭代的效果,在9个基准上最高提速1.34倍,将调优时间从数天降至数分钟。

摘要:

现代科学发现越来越依赖高性能计算来进行复杂建模和仿真。提升并行程序性能的一个关键挑战是高效地将任务映射到处理器以及将数据映射到内存,这一过程由被称为mappers的复杂低级系统代码所决定。开发高性能的mappers需要数天的手动调优,这对缺乏系统专业知识的领域科学家构成了重大障碍。我们引入了一个框架,通过生成式优化使mapper开发自动化,利用超越标量性能指标的更丰富反馈。我们的方法以Agent-System Interface为特色,它包含一个Domain-Specific Language (DSL)来抽象掉系统代码的低级复杂性并定义结构化的搜索空间,以及AutoGuide,一种将原始执行输出解释为可操作反馈的机制。与OpenTuner等仅依赖标量反馈的传统强化学习方法不同,我们的方法在少得多的迭代次数中找到了更优的mappers。仅需10次迭代,它就超越了OpenTuner在1000次迭代后的表现,实现了3.8倍的性能提升。我们的方法找到的mappers在九个基准测试中比专家编写的mappers最高快1.34倍,同时将调优时间从数天缩短至数分钟。

英文摘要:

Modern scientific discovery increasingly relies on high-performance computing for complex modeling and simulation. A key challenge in improving parallel program performance is efficiently mapping tasks to processors and data to memory, a process dictated by intricate, low-level system code known as mappers. Developing high-performance mappers demands days of manual tuning, posing a significant barrier for domain scientists without systems expertise. We introduce a framework that automates mapper development with generative optimization, leveraging richer feedback beyond scalar performance metrics. Our approach features the Agent-System Interface, which includes a Domain-Specific Language (DSL) to abstract away the low-level complexity of system code and define a structured search space, as well as AutoGuide, a mechanism that interprets raw execution output into actionable feedback. Unlike traditional reinforcement learning methods such as OpenTuner, which rely solely on scalar feedback, our method finds superior mappers in far fewer iterations. With just 10 iterations, it outperforms OpenTuner even after 1000 iterations, achieving 3.8X faster performance. Our approach finds mappers that surpass expert-written mappers by up to 1.34X speedup across nine benchmarks while reducing tuning time from days to minutes.

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

↑