mlsanityData to 7 Oct 2026

MLGOPerf: An ML Guided Inliner to Optimize Performance

arXiv 2207.08389 ↗First posted 18 Jul 2022cs.PL cs.AI cs.LGcited by 9

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

  1. 2017Proximal Policy Optimization Algorithmscited by 14,441
  2. 2016XGBoost: A Scalable Tree Boosting Systemcited by 5,120
  3. 2017Revisiting the Arcade Learning Environment: Evaluation Protocols and Open Problems for General Agentscited by 267
  4. 2017Recent Trends in Deep Learning Based Natural Language Processingcited by 262
  5. 2018code2vec: Learning Distributed Representations of Codecited by 249
  6. 2016Loss is its own Reward: Self-Supervision for Reinforcement Learningcited by 72
  7. 2018Neural Code Comprehension: A Learnable Representation of Code Semanticscited by 59
  8. 2021CompilerGym: Robust, Performant Compiler Optimization Environments for AI Researchcited by 41
  9. 2018A Survey on Compiler Autotuning using Machine Learningcited by 40
  10. 2021MLGO: a Machine Learning Guided Compiler Optimizations Frameworkcited by 40
  11. 2019NeuroVectorizer: End-to-End Vectorization with Deep Reinforcement Learningcited by 37
  12. 2020Semi-supervised reward learning for offline reinforcement learningcited by 22
3 more
  1. 2022Learning to Combine Instructions in LLVM Compilercited by 4
  2. 2021Profile Guided Optimization without Profiles: A Machine Learning Approachcited by 2
  3. 2018Introducing ReQuEST: an Open Platform for Reproducible and Quality-Efficient Systems-ML Tournamentscited by 1

Built on by

Cited by year (2026 to 7 Oct)

Citing papers per year: 2023: 3; 2024: 3; 2025: 0; 2026: 3.

9 papers.