Static Neural Compiler Optimization via Deep Reinforcement Learning
Not on the map. Why?
Abstract (arXiv)
The phase-ordering problem of modern compilers has received a lot of attention from the research community over the years, yet remains largely unsolved. Various optimization sequences exposed to the user are manually designed by compiler developers. In designing such a sequence developers have to choose the set of optimization passes, their parameters and ordering within a sequence. Resulting sequences usually fall short of achieving optimal runtime for a given source code and may sometimes even degrade the performance when compared to unoptimized version. In this paper, we employ a deep reinforcement learning approach to the phase-ordering problem. Provided with sub-sequences constituting LLVM's O3 sequence, our agent learns to outperform the O3 sequence on the set of source codes used for training and achieves competitive performance on the validation set, gaining up to 1.32x speedup on previously-unseen programs. Notably, our approach differs from autotuning methods by not depending on one or more test runs of the program for making successful optimization decisions. It has no dependence on any dynamic feature, but only on the statically-attainable intermediate representation of the source code. We believe that the models trained using our approach can be integrated into modern compilers as neural optimization agents, at first to complement, and eventually replace the hand-crafted optimization sequences.
Key facts. Cited by 14 papers in the map (data through 7 Oct 2026). First posted on arXiv 20 Aug 2020.
Builds on
No reference list yet.
Built on by
Citing papers per year: 2021: 3; 2022: 2; 2023: 4; 2024: 1; 2025: 1; 2026: 3.
14 papers.
Sort:
By area:
- 2021CompilerGym: Robust, Performant Compiler Optimization Environments for AI Researchcited by 41
- 2021Towards Scalable Verification of Deep Reinforcement Learningcited by 33
- 2023Learning Compiler Pass Orders using Coreset and Normalized Value Predictioncited by 11
- 2023Verifying Generalization in Deep Learningcited by 11
- 2024CompilerDream: Learning a Compiler World Model for General Code Optimizationcited by 6
- 2021A Reinforcement Learning Environment for Polyhedral Optimizationscited by 5
- 2022RL4ReAl: Reinforcement Learning for Register Allocationcited by 4
- 2022POSET-RL: Phase ordering for Optimizing Size and Execution Time using Reinforcement Learningcited by 2
- 2023Power Constrained Autotuning using Graph Neural Networkscited by 2
- 2023Target-independent XLA optimization using Reinforcement Learningcited by 1
- 2026Protean Compiler: An Agile Framework to Drive Fine-grain Phase Orderingcited by 1
- 2025ReLATE: Accelerating Tensor Decomposition via Safe and Efficient Learning of Sparse Encodingscited by 0
- 2026CompileRover: Revolutionizing Virtual Machine Compiler Optimization with a Tri-Role LLM-Driven Framework21 Jul 2026
- 2026Protean Compiler: An Agile Framework to Drive Fine-grain Phase Ordering5 Feb 2026
- 2026The New Compiler Stack: A Survey on the Synergy of LLMs and Compilers5 Jan 2026
- 2025ReLATE: Accelerating Tensor Decomposition via Safe and Efficient Learning of Sparse Encodings29 Aug 2025
- 2024CompilerDream: Learning a Compiler World Model for General Code Optimization24 Apr 2024
- 2023Target-independent XLA optimization using Reinforcement Learning28 Aug 2023
- 2023Power Constrained Autotuning using Graph Neural Networks22 Feb 2023
- 2023Verifying Generalization in Deep Learning11 Feb 2023
- 2023Learning Compiler Pass Orders using Coreset and Normalized Value Prediction9 Jan 2023
- 2022POSET-RL: Phase ordering for Optimizing Size and Execution Time using Reinforcement Learning27 Jul 2022
- 2022RL4ReAl: Reinforcement Learning for Register Allocation5 Apr 2022
- 2021CompilerGym: Robust, Performant Compiler Optimization Environments for AI Research17 Sep 2021
2 more
- 2021CompilerGym: Robust, Performant Compiler Optimization Environments for AI Researchcited by 41
- 2021Towards Scalable Verification of Deep Reinforcement Learningcited by 33
- 2023Learning Compiler Pass Orders using Coreset and Normalized Value Predictioncited by 11
- 2023Verifying Generalization in Deep Learningcited by 11
- 2021A Reinforcement Learning Environment for Polyhedral Optimizationscited by 5
- 2022RL4ReAl: Reinforcement Learning for Register Allocationcited by 4
- 2022POSET-RL: Phase ordering for Optimizing Size and Execution Time using Reinforcement Learningcited by 2
- 2023Power Constrained Autotuning using Graph Neural Networkscited by 2
- 2023Target-independent XLA optimization using Reinforcement Learningcited by 1
- 2026Protean Compiler: An Agile Framework to Drive Fine-grain Phase Orderingcited by 1
- 2025ReLATE: Accelerating Tensor Decomposition via Safe and Efficient Learning of Sparse Encodingscited by 0
- 2026The New Compiler Stack: A Survey on the Synergy of LLMs and Compilerscited by 0
12 most cited of 13 All 13 (JSON)
- 2026CompileRover: Revolutionizing Virtual Machine Compiler Optimization with a Tri-Role LLM-Driven Framework21 Jul 2026
- 2026Protean Compiler: An Agile Framework to Drive Fine-grain Phase Ordering5 Feb 2026
- 2026The New Compiler Stack: A Survey on the Synergy of LLMs and Compilers5 Jan 2026
- 2025ReLATE: Accelerating Tensor Decomposition via Safe and Efficient Learning of Sparse Encodings29 Aug 2025
- 2023Target-independent XLA optimization using Reinforcement Learning28 Aug 2023
- 2023Power Constrained Autotuning using Graph Neural Networks22 Feb 2023
- 2023Verifying Generalization in Deep Learning11 Feb 2023
- 2023Learning Compiler Pass Orders using Coreset and Normalized Value Prediction9 Jan 2023
- 2022POSET-RL: Phase ordering for Optimizing Size and Execution Time using Reinforcement Learning27 Jul 2022
- 2022RL4ReAl: Reinforcement Learning for Register Allocation5 Apr 2022
- 2021CompilerGym: Robust, Performant Compiler Optimization Environments for AI Research17 Sep 2021
- 2021Towards Scalable Verification of Deep Reinforcement Learning25 May 2021
12 newest of 13 All 13 (JSON)