Learning Compiler Pass Orders using Coreset and Normalized Value Prediction
Not on the map. Why?
Abstract (arXiv)
Finding the optimal pass sequence of compilation can lead to a significant reduction in program size and/or improvement in program efficiency. Prior works on compilation pass ordering have two major drawbacks. They either require an excessive budget (in terms of compilation steps) at compile time or fail to generalize to unseen programs. In this paper, for code-size reduction tasks, we propose a novel pipeline to find program-dependent pass sequences within 45 compilation calls. It first identifies a coreset of 50 pass sequences via greedy optimization of a submodular function, and then learns a policy with Graph Neural Network (GNN) to pick the optimal sequence by predicting the normalized values of the pass sequences in the coreset. Despite its simplicity, our pipeline outperforms the default -Oz flag by an average of 4.7% over a large collection (4683) of unseen code repositories from diverse domains across 14 datasets. In comparison, previous approaches like reinforcement learning on the raw pass sequence space may take days to train due to sparse reward, and may not generalize well in held-out ones from different domains. Our results demonstrate that existing human-designed compiler flags can be improved with a simple yet effective technique that transforms the raw action space into a small one with denser rewards.
Key facts. Cited by 11 papers in the map (data through 7 Oct 2026). Builds on 22 of its 39 references that are in the map. First posted on arXiv 9 Jan 2023.
Builds on
22 of 39 references.
References · 22
- 2017Proximal Policy Optimization Algorithmscited by 14,441
- 2016Semi-Supervised Classification with Graph Convolutional Networkscited by 11,282
- 2017Graph Attention Networkscited by 8,854
- 2018How Powerful are Graph Neural Networks?cited by 4,355
- 2020CodeBERT: A Pre-Trained Model for Programming and Natural Languagescited by 1,286
- 2021How Attentive are Graph Attention Networks?cited by 818
- 2015Gated Graph Sequence Neural Networkscited by 792
- 2020CURL: Contrastive Unsupervised Representations for Reinforcement Learningcited by 745
- 2020GraphCodeBERT: Pre-training Code Representations with Data Flowcited by 600
- 2021GraphiT: Encoding Graph Structure in Transformerscited by 146
- 2018Neural Code Comprehension: A Learnable Representation of Code Semanticscited by 59
- 2021CompilerGym: Robust, Performant Compiler Optimization Environments for AI Researchcited by 41
10 more
- 2021MLGO: a Machine Learning Guided Compiler Optimizations Frameworkcited by 40
- 2019NeuroVectorizer: End-to-End Vectorization with Deep Reinforcement Learningcited by 37
- 2020Transferable Graph Optimizers for ML Compilerscited by 29
- 2020AutoPhase: Juggling HLS Phase Orderings in Random Forests with Deep Reinforcement Learningcited by 24
- 2020Static Neural Compiler Optimization via Deep Reinforcement Learningcited by 14
- 2022MLGOPerf: An ML Guided Inliner to Optimize Performancecited by 9
- 2014Maximizing k-Submodular Functions and Beyondcited by 5
- 2020A Collaborative Filtering Approach for the Automatic Tuning of Compiler Optimisationscited by 4
- 2021Learning to Make Compiler Optimizations More Effectivecited by 4
- 2014Collective Tuning Initiativecited by 2
Built on by
Citing papers per year: 2023: 1; 2024: 5; 2025: 4; 2026: 1.
11 papers.
- 2023Large Language Models for Compiler Optimizationcited by 52
- 2024Meta Large Language Model Compiler: Foundation Models of Compiler Optimizationcited by 39
- 2024Compiler generated feedback for Large Language Modelscited by 9
- 2025Compiler-R1: Towards Agentic Compiler Auto-tuning with Reinforcement Learningcited by 7
- 2024CompilerDream: Learning a Compiler World Model for General Code Optimizationcited by 6
- 2025SuperCoder: Assembly Program Superoptimization with Large Language Modelscited by 5
- 2026Beyond Pass-by-Pass Optimization: Intent-Driven IR Optimization with Large Language Modelscited by 2
- 2024Tadashi: Enabling AI-Based Automated Code Generation With Guaranteed Correctnesscited by 1
- 2024Towards LLM-based optimization compilers. Can LLMs learn how to apply a single peephole optimization? Reasoning is all LLMs need!cited by 1
- 2025Rethinking LLM-Based RTL Code Optimization Via Timing Logic Metamorphosiscited by 1
- 2025DAPO: Design Structure-Aware Pass Ordering in High-Level Synthesis with Graph Contrastive and Reinforcement Learningcited by 0
- 2026Beyond Pass-by-Pass Optimization: Intent-Driven IR Optimization with Large Language Models19 Feb 2026
- 2025DAPO: Design Structure-Aware Pass Ordering in High-Level Synthesis with Graph Contrastive and Reinforcement Learning12 Dec 2025
- 2025Rethinking LLM-Based RTL Code Optimization Via Timing Logic Metamorphosis22 Jul 2025
- 2025Compiler-R1: Towards Agentic Compiler Auto-tuning with Reinforcement Learning30 May 2025
- 2025SuperCoder: Assembly Program Superoptimization with Large Language Models16 May 2025
- 2024Towards LLM-based optimization compilers. Can LLMs learn how to apply a single peephole optimization? Reasoning is all LLMs need!11 Dec 2024
- 2024Tadashi: Enabling AI-Based Automated Code Generation With Guaranteed Correctness4 Oct 2024
- 2024Meta Large Language Model Compiler: Foundation Models of Compiler Optimization27 Jun 2024
- 2024CompilerDream: Learning a Compiler World Model for General Code Optimization24 Apr 2024
- 2024Compiler generated feedback for Large Language Models18 Mar 2024
- 2023Large Language Models for Compiler Optimization11 Sep 2023