A Reinforcement Learning Environment for Automatic Code Optimization in the MLIR Compiler
Bendib, Nazim, Aouadj, Iheb Nassim, Baghdadi, Riyadh
–arXiv.org Artificial Intelligence
Code optimization is a crucial task aimed at enhancing code performance. However, this process is often tedious and complex, highlighting the necessity for automatic code optimization techniques. Reinforcement Learning (RL), a machine learning technique, has emerged as a promising approach for tackling such complex optimization problems. In this project, we introduce the first RL environment for the MLIR compiler, dedicated to facilitating MLIR compiler research, and enabling automatic code optimization using Multi-Action Reinforcement Learning. We also propose a novel formulation of the action space as a Cartesian product of simpler action subspaces, enabling more efficient and effective optimizations. Experimental results demonstrate that our proposed environment allows for an effective optimization of MLIR operations, and yields comparable performance to TensorFlow, surpassing it in multiple cases, highlighting the potential of RL-based optimization in compiler frameworks.
arXiv.org Artificial Intelligence
Sep-17-2024
- Country:
- Africa > Middle East
- Algeria (0.04)
- Asia
- Middle East
- Saudi Arabia > Riyadh Province
- Riyadh (0.05)
- UAE > Abu Dhabi Emirate
- Abu Dhabi (0.04)
- Saudi Arabia > Riyadh Province
- South Korea > Seoul
- Seoul (0.04)
- Middle East
- North America > United States
- New York > New York County > New York City (0.05)
- Africa > Middle East
- Genre:
- Research Report
- New Finding (0.48)
- Promising Solution (0.34)
- Research Report
- Industry:
- Education (0.51)
- Technology: