Optimas: 一种基于智能分析的生成式AI框架,用于性能优化
Optimas: An Intelligent Analytics-Informed Generative AI Framework for Performance Optimization
AI总结:
Optimas通过多代理工作流构建的端到端生成式AI框架,实现了自动化代码优化,通过性能诊断映射到文献支持的代码转换,提升了代码正确性和性能效率。
摘要:
大型语言模型(LLMs)在自动化代码优化中展现出潜力,但缺乏性能上下文时难以生成正确有效的代码转换。现有性能工具能识别瓶颈但无法生成可行的代码变更。因此,性能优化仍是一个耗时且手动的过程,通常由具备详细架构理解的专家完成。为弥合这一差距,我们引入Optimas,一个模块化、完全自动化、端到端的生成式AI框架,基于多代理工作流。Optimas利用LLMs将多个报告的性能诊断映射到已建立的、文献支持的代码转换,同时在单一管道内统一洞察提取、代码生成、执行和验证。在3,410个真实世界实验中,针对10个基准和两个HPC迷你应用,Optimas生成100%正确的代码,并在超过98.82%的实验中提升了性能,平均在NVIDIA GPU上获得8.02%-79.09%的提升。
英文摘要:
Large language models (LLMs) show promise for automated code optimization. However, without performance context, they struggle to produce correct and effective code transformations. Existing performance tools can identify bottlenecks but stop short of generating actionable code changes. Consequently, performance optimization continues to be a time-intensive and manual endeavor, typically undertaken only by experts with detailed architectural understanding. To bridge this gap, we introduce Optimas, a modular, fully automated, end-to-end generative AI framework built on a multi-agent workflow. Optimas uses LLMs to map performance diagnostics from multiple reports to established, literature-backed code transformations, while unifying insight extraction, code generation, execution, and validation within a single pipeline. Across 3,410 real-world experiments on 10 benchmarks and two HPC mini-applications, Optimas generates 100% correct code and improves performance in over 98.82% of those experiments, achieving average gains of 8.02%-79.09% on NVIDIA GPUs.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。