一句话:提出融合多种编译器优化反馈(静态监督与基于偏好的交互式精炼)来训练 LLM 理解并优化 LLVM IR 的框架。
LLVM IR 是源代码与机器码之间的关键桥梁,但其复杂性给人类开发者与 AI 分析工具都带来挑战。现有方法往往依赖单一优化策略(如 -Oz)来指导模型。本文提出一种训练框架,让大语言模型通过多样化的优化反馈来更好地理解与优化 LLVM IR:一是利用编译器定义的各种优化 pass 提供静态监督;二是引入交互式、基于偏好的反馈驱动精炼学习(可能采用强化学习)。这种双重反馈机制旨在使 LLM 能更有效地处理与分析 LLVM IR,从而支撑代码摘要、优化建议与漏洞检测等下游软件工程任务。论文主要阐述方法设计与动机,评估方式为面向上述下游任务的验证。
LLVM Intermediate Representation (LLVM IR) serves as a crucial bridge between source code and machine code, yet its complexity presents challenges for both human developers and AI-driven analysis tools. We propose an approach to train Large Language Models (LLMs) to better comprehend and optimize LLVM IR by leveraging diverse optimization feedback. Instead of relying on a single optimization strategy like -Oz, our framework incorporates multiple types of optimizations, combining (1) static supervision from various compiler-defined passes with (2) interactive, feedback-driven refinement learning based on preferences (potentially using reinforcement learning). This dual-feedback mechanism is designed to enable LLMs to process and analyze LLVM IR more effectively, thereby facilitating downstream software engineering tasks such as code summarization, optimization recommendation, and vulnerability detection.