NeuroVectorizer: End-to-End Vectorization with Deep Reinforcement Learning
Not on the map. Why?
Abstract (arXiv)
One of the key challenges arising when compilers vectorize loops for today's SIMD-compatible architectures is to decide if vectorization or interleaving is beneficial. Then, the compiler has to determine how many instructions to pack together and how many loop iterations to interleave. Compilers are designed today to use fixed-cost models that are based on heuristics to make vectorization decisions on loops. However, these models are unable to capture the data dependency, the computation graph, or the organization of instructions. Alternatively, software engineers often hand-write the vectorization factors of every loop. This, however, places a huge burden on them, since it requires prior experience and significantly increases the development time. In this work, we explore a novel approach for handling loop vectorization and propose an end-to-end solution using deep reinforcement learning (RL). We conjecture that deep RL can capture different instructions, dependencies, and data structures to enable learning a sophisticated model that can better predict the actual performance cost and determine the optimal vectorization factors. We develop an end-to-end framework, from code to vectorization, that integrates deep RL in the LLVM compiler. Our proposed framework takes benchmark codes as input and extracts the loop codes. These loop codes are then fed to a loop embedding generator that learns an embedding for these loops. Finally, the learned embeddings are used as input to a Deep RL agent, which determines the vectorization factors for all the loops. We further extend our framework to support multiple supervised learning methods. We evaluate our approaches against the currently used LLVM vectorizer and loop polyhedral optimization techniques. Our experiments show 1.29X-4.73X performance speedup compared to baseline and only 3% worse than the brute-force search on a wide range of benchmarks.
Key facts. Cited by 37 papers in the map (data through 7 Oct 2026). First posted on arXiv 20 Sep 2019.
Builds on
No reference list yet.
Built on by
Citing papers per year: 2021: 8; 2022: 6; 2023: 10; 2024: 7; 2025: 3; 2026: 3.
37 papers.
Sort:
By area:
- 2023Large Language Models for Compiler Optimizationcited by 52
- 2021CompilerGym: Robust, Performant Compiler Optimization Environments for AI Researchcited by 41
- 2021MLGO: a Machine Learning Guided Compiler Optimizations Frameworkcited by 40
- 2024LLM-Vectorizer: LLM-based Verified Loop Vectorizercited by 25
- 2022Compiler Optimization for Quantum Computing Using Reinforcement Learningcited by 11
- 2023Learning Compiler Pass Orders using Coreset and Normalized Value Predictioncited by 11
- 2024Improving Parallel Program Performance with LLM Optimizers via Agent-System Interfacescited by 11
- 2022MLGOPerf: An ML Guided Inliner to Optimize Performancecited by 9
- 2024Compiler generated feedback for Large Language Modelscited by 9
- 2023Performance Optimization using Multimodal Modeling and Heterogeneous GNNcited by 7
- 2024CompilerDream: Learning a Compiler World Model for General Code Optimizationcited by 6
- 2021A Reinforcement Learning Environment for Polyhedral Optimizationscited by 5
25 more
- 2021Customized Monte Carlo Tree Search for LLVM/Polly's Composable Loop Optimization Transformationscited by 4
- 2021A Highly Configurable Hardware/Software Stack for DNN Inference Accelerationcited by 4
- 2022Learning to Combine Instructions in LLVM Compilercited by 4
- 2022RL4ReAl: Reinforcement Learning for Register Allocationcited by 4
- 2025VecTrans: Enhancing Compiler Auto-Vectorization through LLM-Assisted Code Transformationscited by 4
- 2021Generating GPU Compiler Heuristics using Reinforcement Learningcited by 3
- 2021Profile Guided Optimization without Profiles: A Machine Learning Approachcited by 2
- 2022POSET-RL: Phase ordering for Optimizing Size and Execution Time using Reinforcement Learningcited by 2
- 2023Power Constrained Autotuning using Graph Neural Networkscited by 2
- 2024MIREncoder: Multi-modal IR-based Pretrained Embeddings for Performance Optimizationscited by 2
- 2025VibeCodeHPC: An Agent-Based Iterative Prompting Auto-Tuner for HPC Code Generation Using LLMscited by 2
- 2022End-to-end Mapping in Heterogeneous Systems Using Graph Representation Learningcited by 1
- 2023Target-independent XLA optimization using Reinforcement Learningcited by 1
- 2023LoopTune: Optimizing Tensor Computations with Reinforcement Learningcited by 1
- 2023YFlows: Systematic Dataflow Exploration and Code Generation for Efficient Neural Network Inference using SIMD Architectures on CPUscited by 1
- 2026CHEHAB RL: Learning to Optimize Fully Homomorphic Encryption Computationscited by 1
- 2026Protean Compiler: An Agile Framework to Drive Fine-grain Phase Orderingcited by 1
- 2021Sonic: A Sampling-based Online Controller for Streaming Applicationscited by 0
- 2023ML-driven Hardware Cost Model for MLIRcited by 0
- 2023NPS: A Framework for Accurate Program Sampling Using Graph Neural Networkcited by 0
- 2023The Next 700 ML-Enabled Compiler Optimizationscited by 0
- 2024FTuner: A Fast Dynamic Shape Tensors Program Auto-Tuner for Deep Learning Compilerscited by 0
- 2024Enhancing Deployment-Time Predictive Model Robustness for Code Analysis and Optimizationcited by 0
- 2025A Deep Learning Model for Predicting Transformation Legalitycited by 0
- 2026ParEVO: Synthesizing Code for Irregular Data: High-Performance Parallelism through Agentic Evolutioncited by 0
- 2026ParEVO: Synthesizing Code for Irregular Data: High-Performance Parallelism through Agentic Evolution3 Mar 2026
- 2026Protean Compiler: An Agile Framework to Drive Fine-grain Phase Ordering5 Feb 2026
- 2026CHEHAB RL: Learning to Optimize Fully Homomorphic Encryption Computations27 Jan 2026
- 2025A Deep Learning Model for Predicting Transformation Legality8 Nov 2025
- 2025VibeCodeHPC: An Agent-Based Iterative Prompting Auto-Tuner for HPC Code Generation Using LLMs26 Sep 2025
- 2025VecTrans: Enhancing Compiler Auto-Vectorization through LLM-Assisted Code Transformations25 Mar 2025
- 2024Enhancing Deployment-Time Predictive Model Robustness for Code Analysis and Optimization31 Dec 2024
- 2024Improving Parallel Program Performance with LLM Optimizers via Agent-System Interfaces21 Oct 2024
- 2024FTuner: A Fast Dynamic Shape Tensors Program Auto-Tuner for Deep Learning Compilers31 Jul 2024
- 2024MIREncoder: Multi-modal IR-based Pretrained Embeddings for Performance Optimizations2 Jul 2024
- 2024LLM-Vectorizer: LLM-based Verified Loop Vectorizer7 Jun 2024
- 2024CompilerDream: Learning a Compiler World Model for General Code Optimization24 Apr 2024
25 more
- 2024Compiler generated feedback for Large Language Models18 Mar 2024
- 2023The Next 700 ML-Enabled Compiler Optimizations17 Nov 2023
- 2023YFlows: Systematic Dataflow Exploration and Code Generation for Efficient Neural Network Inference using SIMD Architectures on CPUs1 Oct 2023
- 2023Large Language Models for Compiler Optimization11 Sep 2023
- 2023LoopTune: Optimizing Tensor Computations with Reinforcement Learning4 Sep 2023
- 2023Target-independent XLA optimization using Reinforcement Learning28 Aug 2023
- 2023Performance Optimization using Multimodal Modeling and Heterogeneous GNN25 Apr 2023
- 2023NPS: A Framework for Accurate Program Sampling Using Graph Neural Network18 Apr 2023
- 2023Power Constrained Autotuning using Graph Neural Networks22 Feb 2023
- 2023ML-driven Hardware Cost Model for MLIR14 Feb 2023
- 2023Learning Compiler Pass Orders using Coreset and Normalized Value Prediction9 Jan 2023
- 2022Compiler Optimization for Quantum Computing Using Reinforcement Learning8 Dec 2022
- 2022POSET-RL: Phase ordering for Optimizing Size and Execution Time using Reinforcement Learning27 Jul 2022
- 2022MLGOPerf: An ML Guided Inliner to Optimize Performance18 Jul 2022
- 2022End-to-end Mapping in Heterogeneous Systems Using Graph Representation Learning25 Apr 2022
- 2022RL4ReAl: Reinforcement Learning for Register Allocation5 Apr 2022
- 2022Learning to Combine Instructions in LLVM Compiler22 Feb 2022
- 2021Profile Guided Optimization without Profiles: A Machine Learning Approach24 Dec 2021
- 2021A Highly Configurable Hardware/Software Stack for DNN Inference Acceleration29 Nov 2021
- 2021Generating GPU Compiler Heuristics using Reinforcement Learning23 Nov 2021
- 2021CompilerGym: Robust, Performant Compiler Optimization Environments for AI Research17 Sep 2021
- 2021Sonic: A Sampling-based Online Controller for Streaming Applications15 Aug 2021
- 2021Customized Monte Carlo Tree Search for LLVM/Polly's Composable Loop Optimization Transformations10 May 2021
- 2021A Reinforcement Learning Environment for Polyhedral Optimizations28 Apr 2021
- 2021MLGO: a Machine Learning Guided Compiler Optimizations Framework13 Jan 2021
- 2023Large Language Models for Compiler Optimizationcited by 52
- 2021CompilerGym: Robust, Performant Compiler Optimization Environments for AI Researchcited by 41
- 2021MLGO: a Machine Learning Guided Compiler Optimizations Frameworkcited by 40
- 2024LLM-Vectorizer: LLM-based Verified Loop Vectorizercited by 25
- 2022Compiler Optimization for Quantum Computing Using Reinforcement Learningcited by 11
- 2023Learning Compiler Pass Orders using Coreset and Normalized Value Predictioncited by 11
- 2024Improving Parallel Program Performance with LLM Optimizers via Agent-System Interfacescited by 11
- 2022MLGOPerf: An ML Guided Inliner to Optimize Performancecited by 9
- 2024Compiler generated feedback for Large Language Modelscited by 9
- 2023Performance Optimization using Multimodal Modeling and Heterogeneous GNNcited by 7
- 2021A Reinforcement Learning Environment for Polyhedral Optimizationscited by 5
- 2021Customized Monte Carlo Tree Search for LLVM/Polly's Composable Loop Optimization Transformationscited by 4
12 most cited of 33 All 33 (JSON)
- 2026Protean Compiler: An Agile Framework to Drive Fine-grain Phase Ordering5 Feb 2026
- 2026CHEHAB RL: Learning to Optimize Fully Homomorphic Encryption Computations27 Jan 2026
- 2025A Deep Learning Model for Predicting Transformation Legality8 Nov 2025
- 2025VecTrans: Enhancing Compiler Auto-Vectorization through LLM-Assisted Code Transformations25 Mar 2025
- 2024Enhancing Deployment-Time Predictive Model Robustness for Code Analysis and Optimization31 Dec 2024
- 2024Improving Parallel Program Performance with LLM Optimizers via Agent-System Interfaces21 Oct 2024
- 2024FTuner: A Fast Dynamic Shape Tensors Program Auto-Tuner for Deep Learning Compilers31 Jul 2024
- 2024MIREncoder: Multi-modal IR-based Pretrained Embeddings for Performance Optimizations2 Jul 2024
- 2024LLM-Vectorizer: LLM-based Verified Loop Vectorizer7 Jun 2024
- 2024Compiler generated feedback for Large Language Models18 Mar 2024
- 2023The Next 700 ML-Enabled Compiler Optimizations17 Nov 2023
- 2023YFlows: Systematic Dataflow Exploration and Code Generation for Efficient Neural Network Inference using SIMD Architectures on CPUs1 Oct 2023
12 newest of 33 All 33 (JSON)