mlsanityData to 14 Oct 2026

Target-independent XLA optimization using Reinforcement Learning

arXiv 2308.14364 ↗First posted 28 Aug 2023cs.LG cs.AIcited by 1

Not on the map. Why?

Abstract (arXiv)

An important challenge in Machine Learning compilers like XLA is multi-pass optimization and analysis. There has been recent interest chiefly in XLA target-dependent optimization on the graph-level, subgraph-level, and kernel-level phases. We specifically focus on target-independent optimization XLA HLO pass ordering: our approach aims at finding the optimal sequence of compiler optimization passes, which is decoupled from target-dependent optimization. However, there is little domain specific study in pass ordering for XLA HLO. To this end, we propose introducing deep Reinforcement Learning (RL) based search for optimal XLA HLO pass ordering. We also propose enhancements to the deep RL algorithms to further improve optimal search performance and open the research direction for domain-specific guidance for RL. We create an XLA Gym experimentation framework as a tool to enable RL algorithms to interact with the compiler for passing optimizations and thereby train agents. Overall, in our experimentation we observe an average of 13.3% improvement in operation count reduction on a benchmark of GPT-2 training graphs and 10.4% improvement on a diverse benchmark including GPT-2, BERT, and ResNet graphs using the proposed approach over the compiler's default phase ordering.

Key facts. Cited by 1 paper in the map (data through 14 Oct 2026). Builds on 25 of its 52 references that are in the map. First posted on arXiv 28 Aug 2023.

Builds on

25 of 52 references.

References · 25

  1. 2015Deep Residual Learning for Image Recognitioncited by 52,096
  2. 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,399
  3. 2017Proximal Policy Optimization Algorithmscited by 15,215
  4. 2015Trust Region Policy Optimizationcited by 2,580
  5. 2016Asynchronous Methods for Deep Reinforcement Learningcited by 2,258
  6. 2019Megatron-LM: Training Multi-Billion Parameter Language Models Using Model Parallelismcited by 1,868
  7. 2016OpenAI Gymcited by 1,736
  8. 2020Ansor: Generating High-Performance Tensor Programs for Deep Learningcited by 201
  9. 2018Learning to Optimize Tensor Programscited by 140
  10. 2018Tensor Comprehensions: Framework-Agnostic High-Performance Machine Learning Abstractionscited by 85
  11. 2020The Deep Learning Compiler: A Comprehensive Surveycited by 46
  12. 2021CompilerGym: Robust, Performant Compiler Optimization Environments for AI Researchcited by 41
13 more
  1. 2018A Survey on Compiler Autotuning using Machine Learningcited by 40
  2. 2021MLGO: a Machine Learning Guided Compiler Optimizations Frameworkcited by 40
  3. 2019NeuroVectorizer: End-to-End Vectorization with Deep Reinforcement Learningcited by 37
  4. 2020Beyond variance reduction: Understanding the true impact of baselines on policy optimizationcited by 32
  5. 2020Chameleon: Adaptive Code Optimization for Expedited Deep Neural Network Compilationcited by 29
  6. 2020Transferable Graph Optimizers for ML Compilerscited by 29
  7. 2020AutoPhase: Juggling HLS Phase Orderings in Random Forests with Deep Reinforcement Learningcited by 24
  8. 2021Mind Mappings: Enabling Efficient Algorithm-Accelerator Mapping Space Searchcited by 24
  9. 2022A2C is a special case of PPOcited by 16
  10. 2020Static Neural Compiler Optimization via Deep Reinforcement Learningcited by 14
  11. 2019A new Potential-Based Reward Shaping for Reinforcement Learning Agentcited by 8
  12. 2021A Reinforcement Learning Environment for Polyhedral Optimizationscited by 5
  13. 2020A Collaborative Filtering Approach for the Automatic Tuning of Compiler Optimisationscited by 4

Built on by

Cited by year

Citing papers per year: 2025: 1.

1 paper.