mlsanityData to 7 Oct 2026

Learning Compiler Pass Orders using Coreset and Normalized Value Prediction

arXiv 2301.05104 ↗First posted 9 Jan 2023cs.PL cs.AI cs.LGcited by 11

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

  1. 2017Proximal Policy Optimization Algorithmscited by 14,441
  2. 2016Semi-Supervised Classification with Graph Convolutional Networkscited by 11,282
  3. 2017Graph Attention Networkscited by 8,854
  4. 2018How Powerful are Graph Neural Networks?cited by 4,355
  5. 2020CodeBERT: A Pre-Trained Model for Programming and Natural Languagescited by 1,286
  6. 2021How Attentive are Graph Attention Networks?cited by 818
  7. 2015Gated Graph Sequence Neural Networkscited by 792
  8. 2020CURL: Contrastive Unsupervised Representations for Reinforcement Learningcited by 745
  9. 2020GraphCodeBERT: Pre-training Code Representations with Data Flowcited by 600
  10. 2021GraphiT: Encoding Graph Structure in Transformerscited by 146
  11. 2018Neural Code Comprehension: A Learnable Representation of Code Semanticscited by 59
  12. 2021CompilerGym: Robust, Performant Compiler Optimization Environments for AI Researchcited by 41
10 more
  1. 2021MLGO: a Machine Learning Guided Compiler Optimizations Frameworkcited by 40
  2. 2019NeuroVectorizer: End-to-End Vectorization with Deep Reinforcement Learningcited by 37
  3. 2020Transferable Graph Optimizers for ML Compilerscited by 29
  4. 2020AutoPhase: Juggling HLS Phase Orderings in Random Forests with Deep Reinforcement Learningcited by 24
  5. 2020Static Neural Compiler Optimization via Deep Reinforcement Learningcited by 14
  6. 2022MLGOPerf: An ML Guided Inliner to Optimize Performancecited by 9
  7. 2014Maximizing k-Submodular Functions and Beyondcited by 5
  8. 2020A Collaborative Filtering Approach for the Automatic Tuning of Compiler Optimisationscited by 4
  9. 2021Learning to Make Compiler Optimizations More Effectivecited by 4
  10. 2014Collective Tuning Initiativecited by 2

Built on by

Cited by year (2026 to 7 Oct)

Citing papers per year: 2023: 1; 2024: 5; 2025: 4; 2026: 1.

11 papers.