mlsanityData to 7 Oct 2026

AutoPhase: Juggling HLS Phase Orderings in Random Forests with Deep Reinforcement Learning

arXiv 2003.00671 ↗First posted 2 Mar 2020cs.DC cs.LG cs.PLcited by 24

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

Cited by year (2026 to 7 Oct)

Citing papers per year: 2021: 3; 2022: 3; 2023: 5; 2024: 4; 2025: 7; 2026: 2.

24 papers.

Sort:

By area:

  1. 2023Large Language Models for Compiler Optimizationcited by 52
  2. 2021CompilerGym: Robust, Performant Compiler Optimization Environments for AI Researchcited by 41
  3. 2022Compiler Optimization for Quantum Computing Using Reinforcement Learningcited by 11
  4. 2022BaCO: A Fast and Portable Bayesian Compiler Optimization Frameworkcited by 11
  5. 2023Learning Compiler Pass Orders using Coreset and Normalized Value Predictioncited by 11
  6. 2024Improving Parallel Program Performance with LLM Optimizers via Agent-System Interfacescited by 11
  7. 2024Compiler generated feedback for Large Language Modelscited by 9
  8. 2025Compiler-R1: Towards Agentic Compiler Auto-tuning with Reinforcement Learningcited by 7
  9. 2021Learning Space Partitions for Path Planningcited by 6
  10. 2024CompilerDream: Learning a Compiler World Model for General Code Optimizationcited by 6
  11. 2025SuperCoder: Assembly Program Superoptimization with Large Language Modelscited by 5
  12. 2021A Highly Configurable Hardware/Software Stack for DNN Inference Accelerationcited by 4
12 more
  1. 2025AwareCompiler: Agentic Context-Aware Compiler Optimization via a Synergistic Knowledge-Data Driven Frameworkcited by 4
  2. 2024A Reinforcement Learning Environment for Automatic Code Optimization in the MLIR Compilercited by 3
  3. 2025REASONING COMPILER: LLM-Guided Optimizations for Efficient Model Servingcited by 3
  4. 2022BenchPress: A Deep Active Benchmark Generatorcited by 2
  5. 2023X-RLflow: Graph Reinforcement Learning for Neural Network Subgraphs Transformationcited by 2
  6. 2023Target-independent XLA optimization using Reinforcement Learningcited by 1
  7. 2026CHEHAB RL: Learning to Optimize Fully Homomorphic Encryption Computationscited by 1
  8. 2023BenchDirect: A Directed Language Model for Compiler Benchmarkscited by 0
  9. 2025Towards VM Rescheduling Optimization Through Deep Reinforcement Learningcited by 0
  10. 2025Behavioral Embeddings of Programs: A Quasi-Dynamic Approach for Optimization Predictioncited by 0
  11. 2025DAPO: Design Structure-Aware Pass Ordering in High-Level Synthesis with Graph Contrastive and Reinforcement Learningcited by 0
  12. 2026LLM-Based Embeddings for Program Analysis and Optimizationcited by 0