AutoPhase: Juggling HLS Phase Orderings in Random Forests with Deep Reinforcement Learning
Not on the map. Why?
Abstract (arXiv)
The performance of the code a compiler generates depends on the order in which it applies the optimization passes. Choosing a good order--often referred to as the phase-ordering problem, is an NP-hard problem. As a result, existing solutions rely on a variety of heuristics. In this paper, we evaluate a new technique to address the phase-ordering problem: deep reinforcement learning. To this end, we implement AutoPhase: a framework that takes a program and uses deep reinforcement learning to find a sequence of compilation passes that minimizes its execution time. Without loss of generality, we construct this framework in the context of the LLVM compiler toolchain and target high-level synthesis programs. We use random forests to quantify the correlation between the effectiveness of a given pass and the program's features. This helps us reduce the search space by avoiding phase orderings that are unlikely to improve the performance of a given program. We compare the performance of AutoPhase to state-of-the-art algorithms that address the phase-ordering problem. In our evaluation, we show that AutoPhase improves circuit performance by 28% when compared to using the -O3 compiler flag, and achieves competitive results compared to the state-of-the-art solutions, while requiring fewer samples. Furthermore, unlike existing state-of-the-art solutions, our deep reinforcement learning solution shows promising result in generalizing to real benchmarks and 12,874 different randomly generated programs, after training on a hundred randomly generated programs.
Key facts. Cited by 24 papers in the map (data through 7 Oct 2026). First posted on arXiv 2 Mar 2020.
Builds on
No reference list yet.
Built on by
Citing papers per year: 2021: 3; 2022: 3; 2023: 5; 2024: 4; 2025: 7; 2026: 2.
24 papers.
Sort:
By area:
- 2023Large Language Models for Compiler Optimizationcited by 52
- 2021CompilerGym: Robust, Performant Compiler Optimization Environments for AI Researchcited by 41
- 2022Compiler Optimization for Quantum Computing Using Reinforcement Learningcited by 11
- 2022BaCO: A Fast and Portable Bayesian Compiler Optimization Frameworkcited by 11
- 2023Learning Compiler Pass Orders using Coreset and Normalized Value Predictioncited by 11
- 2024Improving Parallel Program Performance with LLM Optimizers via Agent-System Interfacescited by 11
- 2024Compiler generated feedback for Large Language Modelscited by 9
- 2025Compiler-R1: Towards Agentic Compiler Auto-tuning with Reinforcement Learningcited by 7
- 2021Learning Space Partitions for Path Planningcited by 6
- 2024CompilerDream: Learning a Compiler World Model for General Code Optimizationcited by 6
- 2025SuperCoder: Assembly Program Superoptimization with Large Language Modelscited by 5
- 2021A Highly Configurable Hardware/Software Stack for DNN Inference Accelerationcited by 4
12 more
- 2025AwareCompiler: Agentic Context-Aware Compiler Optimization via a Synergistic Knowledge-Data Driven Frameworkcited by 4
- 2024A Reinforcement Learning Environment for Automatic Code Optimization in the MLIR Compilercited by 3
- 2025REASONING COMPILER: LLM-Guided Optimizations for Efficient Model Servingcited by 3
- 2022BenchPress: A Deep Active Benchmark Generatorcited by 2
- 2023X-RLflow: Graph Reinforcement Learning for Neural Network Subgraphs Transformationcited by 2
- 2023Target-independent XLA optimization using Reinforcement Learningcited by 1
- 2026CHEHAB RL: Learning to Optimize Fully Homomorphic Encryption Computationscited by 1
- 2023BenchDirect: A Directed Language Model for Compiler Benchmarkscited by 0
- 2025Towards VM Rescheduling Optimization Through Deep Reinforcement Learningcited by 0
- 2025Behavioral Embeddings of Programs: A Quasi-Dynamic Approach for Optimization Predictioncited by 0
- 2025DAPO: Design Structure-Aware Pass Ordering in High-Level Synthesis with Graph Contrastive and Reinforcement Learningcited by 0
- 2026LLM-Based Embeddings for Program Analysis and Optimizationcited by 0
- 2026LLM-Based Embeddings for Program Analysis and Optimization8 Aug 2026
- 2026CHEHAB RL: Learning to Optimize Fully Homomorphic Encryption Computations27 Jan 2026
- 2025DAPO: Design Structure-Aware Pass Ordering in High-Level Synthesis with Graph Contrastive and Reinforcement Learning12 Dec 2025
- 2025Behavioral Embeddings of Programs: A Quasi-Dynamic Approach for Optimization Prediction15 Oct 2025
- 2025AwareCompiler: Agentic Context-Aware Compiler Optimization via a Synergistic Knowledge-Data Driven Framework13 Oct 2025
- 2025REASONING COMPILER: LLM-Guided Optimizations for Efficient Model Serving2 Jun 2025
- 2025Compiler-R1: Towards Agentic Compiler Auto-tuning with Reinforcement Learning30 May 2025
- 2025Towards VM Rescheduling Optimization Through Deep Reinforcement Learning23 May 2025
- 2025SuperCoder: Assembly Program Superoptimization with Large Language Models16 May 2025
- 2024Improving Parallel Program Performance with LLM Optimizers via Agent-System Interfaces21 Oct 2024
- 2024A Reinforcement Learning Environment for Automatic Code Optimization in the MLIR Compiler17 Sep 2024
- 2024CompilerDream: Learning a Compiler World Model for General Code Optimization24 Apr 2024
12 more
- 2024Compiler generated feedback for Large Language Models18 Mar 2024
- 2023Large Language Models for Compiler Optimization11 Sep 2023
- 2023Target-independent XLA optimization using Reinforcement Learning28 Aug 2023
- 2023X-RLflow: Graph Reinforcement Learning for Neural Network Subgraphs Transformation28 Apr 2023
- 2023BenchDirect: A Directed Language Model for Compiler Benchmarks2 Mar 2023
- 2023Learning Compiler Pass Orders using Coreset and Normalized Value Prediction9 Jan 2023
- 2022Compiler Optimization for Quantum Computing Using Reinforcement Learning8 Dec 2022
- 2022BaCO: A Fast and Portable Bayesian Compiler Optimization Framework1 Dec 2022
- 2022BenchPress: A Deep Active Benchmark Generator13 Aug 2022
- 2021A Highly Configurable Hardware/Software Stack for DNN Inference Acceleration29 Nov 2021
- 2021CompilerGym: Robust, Performant Compiler Optimization Environments for AI Research17 Sep 2021
- 2021Learning Space Partitions for Path Planning19 Jun 2021
- 2023Large Language Models for Compiler Optimizationcited by 52
- 2021CompilerGym: Robust, Performant Compiler Optimization Environments for AI Researchcited by 41
- 2022Compiler Optimization for Quantum Computing Using Reinforcement Learningcited by 11
- 2022BaCO: A Fast and Portable Bayesian Compiler Optimization Frameworkcited by 11
- 2023Learning Compiler Pass Orders using Coreset and Normalized Value Predictioncited by 11
- 2024Improving Parallel Program Performance with LLM Optimizers via Agent-System Interfacescited by 11
- 2024Compiler generated feedback for Large Language Modelscited by 9
- 2021Learning Space Partitions for Path Planningcited by 6
- 2025SuperCoder: Assembly Program Superoptimization with Large Language Modelscited by 5
- 2024A Reinforcement Learning Environment for Automatic Code Optimization in the MLIR Compilercited by 3
- 2022BenchPress: A Deep Active Benchmark Generatorcited by 2
- 2023X-RLflow: Graph Reinforcement Learning for Neural Network Subgraphs Transformationcited by 2
12 most cited of 19 All 19 (JSON)
- 2026LLM-Based Embeddings for Program Analysis and Optimization8 Aug 2026
- 2026CHEHAB RL: Learning to Optimize Fully Homomorphic Encryption Computations27 Jan 2026
- 2025DAPO: Design Structure-Aware Pass Ordering in High-Level Synthesis with Graph Contrastive and Reinforcement Learning12 Dec 2025
- 2025Behavioral Embeddings of Programs: A Quasi-Dynamic Approach for Optimization Prediction15 Oct 2025
- 2025Towards VM Rescheduling Optimization Through Deep Reinforcement Learning23 May 2025
- 2025SuperCoder: Assembly Program Superoptimization with Large Language Models16 May 2025
- 2024Improving Parallel Program Performance with LLM Optimizers via Agent-System Interfaces21 Oct 2024
- 2024A Reinforcement Learning Environment for Automatic Code Optimization in the MLIR Compiler17 Sep 2024
- 2024Compiler generated feedback for Large Language Models18 Mar 2024
- 2023Large Language Models for Compiler Optimization11 Sep 2023
- 2023Target-independent XLA optimization using Reinforcement Learning28 Aug 2023
- 2023X-RLflow: Graph Reinforcement Learning for Neural Network Subgraphs Transformation28 Apr 2023
12 newest of 19 All 19 (JSON)