arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2510.11759cs.PLcs.AI
收藏

AwareCompiler:基于知识与数据协同驱动的智能体上下文感知编译器优化框架

AwareCompiler: Agentic Context-Aware Compiler Optimization via a Synergistic Knowledge-Data Driven Framework

University of Chinese Academy of Sciences(中国科学院大学);Institute of Software Chinese Academy of Sciences(中国科学院软件研究所);Hangzhou Institute for Advanced Study at UCAS(UCAS杭州高等研究 institute);Nanyang Technological University(南洋理工大学)

Hongyu Lin, Haolin Pan, Haoran Luo, Yuchen Li, Kaichun Yao, Libo Zhang, Mingjie Xing, Yanjun Wu

AI总结:

针对编译器优化中语义错位、交互低效和奖励稀疏问题,提出AwareCompiler智能体框架,通过知识整合、自适应pass生成和混合训练,在标准基准上显著提升性能与效率。

摘要:

编译器优化对于通过变换优化序列(optimization passes)同时保持程序正确性来提升程序性能至关重要。尽管基于大语言模型(LLMs)的智能体在软件优化方面展现出巨大潜力,但自动化编译器优化仍面临诸多挑战,原因在于:(1)抽象程序表示与具体优化pass之间的语义错位;(2)智能体与编译器环境之间的交互机制效率低下;(3)在大型优化空间中,广泛的决策过程导致奖励稀疏。本文介绍了AwareCompiler,一个用于编译器优化的智能体框架,通过三项关键创新解决上述挑战:结构化知识整合与数据集构建、知识驱动的自适应pass生成,以及数据驱动的混合训练流程。在标准基准上的实验结果表明,AwareCompiler在性能和效率上均显著优于现有基线,凸显了我们协同的知识-数据驱动方法的有效性。我们的代码已公开,可在https://github.com/LHY-24/AwareCompiler获取。

英文摘要:

Compiler optimization is crucial for enhancing program performance by transforming the sequence of optimization passes while maintaining correctness. Despite the promising potential of large language models (LLMs)-based agent for software optimization, automating compiler optimization remains challenging due to: (1) semantic misalignment between abstract program representations and concrete optimization passes, (2) inefficient interaction mechanisms between agents and compiler environments, and (3) reward sparsity from the extensive decision-making process within large optimization spaces. This paper introduces \textbf{AwareCompiler}, an agentic framework for compiler optimization that addresses these challenges through three key innovations: structured knowledge integration and dataset construction, knowledge-driven adaptive pass generation, and data-driven hybrid training pipeline. Experimental results on standard benchmarks demonstrate that AwareCompiler significantly outperforms existing baselines in both performance and efficiency, highlighting the effectiveness of our synergistic knowledge-data-driven approach. Our code is publicly available at https://github.com/LHY-24/AwareCompiler.

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

↑