MLGOPerf: An ML Guided Inliner to Optimize Performance
Not on the map. Why?
Abstract (arXiv)
For the past 25 years, we have witnessed an extensive application of Machine Learning to the Compiler space; the selection and the phase-ordering problem. However, limited works have been upstreamed into the state-of-the-art compilers, i.e., LLVM, to seamlessly integrate the former into the optimization pipeline of a compiler to be readily deployed by the user. MLGO was among the first of such projects and it only strives to reduce the code size of a binary with an ML-based Inliner using Reinforcement Learning. This paper presents MLGOPerf; the first end-to-end framework capable of optimizing performance using LLVM's ML-Inliner. It employs a secondary ML model to generate rewards used for training a retargeted Reinforcement learning agent, previously used as the primary model by MLGO. It does so by predicting the post-inlining speedup of a function under analysis and it enables a fast training framework for the primary model which otherwise wouldn't be practical. The experimental results show MLGOPerf is able to gain up to 1.8% and 2.2% with respect to LLVM's optimization at O3 when trained for performance on SPEC CPU2006 and Cbench benchmarks, respectively. Furthermore, the proposed approach provides up to 26% increased opportunities to autotune code regions for our benchmarks which can be translated into an additional 3.7% speedup value.
Key facts. Cited by 9 papers in the map (data through 7 Oct 2026). Builds on 15 of its 55 references that are in the map. First posted on arXiv 18 Jul 2022.
Builds on
15 of 55 references.
References · 15
- 2017Proximal Policy Optimization Algorithmscited by 14,441
- 2016XGBoost: A Scalable Tree Boosting Systemcited by 5,120
- 2017Revisiting the Arcade Learning Environment: Evaluation Protocols and Open Problems for General Agentscited by 267
- 2017Recent Trends in Deep Learning Based Natural Language Processingcited by 262
- 2018code2vec: Learning Distributed Representations of Codecited by 249
- 2016Loss is its own Reward: Self-Supervision for Reinforcement Learningcited by 72
- 2018Neural Code Comprehension: A Learnable Representation of Code Semanticscited by 59
- 2021CompilerGym: Robust, Performant Compiler Optimization Environments for AI Researchcited by 41
- 2018A Survey on Compiler Autotuning using Machine Learningcited by 40
- 2021MLGO: a Machine Learning Guided Compiler Optimizations Frameworkcited by 40
- 2019NeuroVectorizer: End-to-End Vectorization with Deep Reinforcement Learningcited by 37
- 2020Semi-supervised reward learning for offline reinforcement learningcited by 22
Built on by
Citing papers per year: 2023: 3; 2024: 3; 2025: 0; 2026: 3.
9 papers.
- 2023Large Language Models for Compiler Optimizationcited by 52
- 2024Meta Large Language Model Compiler: Foundation Models of Compiler Optimizationcited by 39
- 2023Learning Compiler Pass Orders using Coreset and Normalized Value Predictioncited by 11
- 2024Compiler generated feedback for Large Language Modelscited by 9
- 2026Magellan: Autonomous Discovery of Novel Compiler Optimization Heuristics with AlphaEvolvecited by 5
- 2024A Reinforcement Learning Environment for Automatic Code Optimization in the MLIR Compilercited by 3
- 2026CHEHAB RL: Learning to Optimize Fully Homomorphic Encryption Computationscited by 1
- 2026Protean Compiler: An Agile Framework to Drive Fine-grain Phase Orderingcited by 1
- 2023Path Planning using Reinforcement Learning: A Policy Iteration Approachcited by 0
- 2026Protean Compiler: An Agile Framework to Drive Fine-grain Phase Ordering5 Feb 2026
- 2026Magellan: Autonomous Discovery of Novel Compiler Optimization Heuristics with AlphaEvolve28 Jan 2026
- 2026CHEHAB RL: Learning to Optimize Fully Homomorphic Encryption Computations27 Jan 2026
- 2024A Reinforcement Learning Environment for Automatic Code Optimization in the MLIR Compiler17 Sep 2024
- 2024Meta Large Language Model Compiler: Foundation Models of Compiler Optimization27 Jun 2024
- 2024Compiler generated feedback for Large Language Models18 Mar 2024
- 2023Large Language Models for Compiler Optimization11 Sep 2023
- 2023Path Planning using Reinforcement Learning: A Policy Iteration Approach13 Mar 2023
- 2023Learning Compiler Pass Orders using Coreset and Normalized Value Prediction9 Jan 2023