麦哲伦:利用AlphaEvolve自主发现新颖的编译器优化启发式规则 / Magellan: Autonomous Discovery of Novel Compiler Optimization Heuristics with AlphaEvolve
1️⃣ 一句话总结
这篇论文提出了一个名为‘麦哲伦’的智能框架,它能够像自主进化一样,通过结合大语言模型和进化算法,自动为编译器生成和优化决策规则,从而在多个关键优化任务上达到甚至超越了人类专家多年手工设计的性能。
Modern compilers rely on hand-crafted heuristics to guide optimization passes. These human-designed rules often struggle to adapt to the complexity of modern software and hardware and lead to high maintenance burden. To address this challenge, we present Magellan, an agentic framework that evolves the compiler pass itself by synthesizing executable C++ decision logic. Magellan couples an LLM coding agent with evolutionary search and autotuning in a closed loop of generation, evaluation on user-provided macro-benchmarks, and refinement, producing compact heuristics that integrate directly into existing compilers. Across several production optimization tasks, Magellan discovers policies that match or surpass expert baselines. In LLVM function inlining, Magellan synthesizes new heuristics that outperform decades of manual engineering for both binary-size reduction and end-to-end performance. In register allocation, it learns a concise priority rule for live-range processing that matches intricate human-designed policies on a large-scale workload. We also report preliminary results on XLA problems, demonstrating portability beyond LLVM with reduced engineering effort.
麦哲伦:利用AlphaEvolve自主发现新颖的编译器优化启发式规则 / Magellan: Autonomous Discovery of Novel Compiler Optimization Heuristics with AlphaEvolve
这篇论文提出了一个名为‘麦哲伦’的智能框架,它能够像自主进化一样,通过结合大语言模型和进化算法,自动为编译器生成和优化决策规则,从而在多个关键优化任务上达到甚至超越了人类专家多年手工设计的性能。
源自 arXiv: 2601.21096