paper-with-me

Papers

A Reinforcement Learning Environment for Automatic Code Optimization in the MLIR Compiler

2024-09-17 · Nazim Bendib, Iheb Nassim Aouadj, Riyadh Baghdadi

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.

📄 PDF Abstract BibTeX arXiv:2409.11068

Code (0)

등록된 구현이 없습니다.

Tasks

reinforcement-learningReinforcement LearningReinforcement Learning (RL)

Similar Papers 제목 키워드 기반

Compiling ONNX Neural Network Models Using MLIR

2020-08-19 · Tian Jin, Gheorghe-Teodor Bercea, Tung D. Le, Tong Chen 외

Deep neural network models are becoming increasingly popular and have been used in various tasks such as computer vision, speech recognition, and natural language processing. Machine learning models are commonly trained …

speech-recognitionSpeech Recognition

MLIR: A Compiler Infrastructure for the End of Moore's Law

2020-02-25 · Chris Lattner, Mehdi Amini, Uday Bondhugula, Albert Cohen 외

This work presents MLIR, a novel approach to building reusable and extensible compiler infrastructure. MLIR aims to address software fragmentation, improve compilation for heterogeneous hardware, significantly reduce the…

TPU-MLIR: A Compiler For TPU Using MLIR

2022-10-23 · Pengchao Hu, Man Lu, Lei Wang, Guoyue Jiang

Multi-level intermediate representations (MLIR) show great promise for reducing the cost of building domain-specific compilers by providing a reusable and extensible compiler infrastructure. This work presents TPU-MLIR, …

JLIR: A Julia-Native MLIR-Inspired Intermediate Representation with Automatic JACC Kernel Extraction

2026-09-04 · Narasinga Rao Miniskar, Seyong Lee, Keita Teranishi, Jeffrey S Vetter arxiv

The Multi-Level Intermediate Representation (MLIR) has made reusable compiler infrastructure practical for domain-specific computation. However, MLIR's strong compile-time type requirements and low-level (C++) extension …

mlirSynth: Automatic, Retargetable Program Raising in Multi-Level IR using Program Synthesis

2023-10-06 · Alexander Brauckmann, Elizabeth Polgreen, Tobias Grosser, Michael F. P. O'Boyle

MLIR is an emerging compiler infrastructure for modern hardware, but existing programs cannot take advantage of MLIR's high-performance compilation if they are described in lower-level general purpose languages. Conseque…

Program Synthesis