mlsanityData to 7 Oct 2026

NeuroVectorizer: End-to-End Vectorization with Deep Reinforcement Learning

arXiv 1909.13639 ↗First posted 20 Sep 2019cs.DC cs.PF cs.PLcited by 37

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

Cited by year (2026 to 7 Oct)

Citing papers per year: 2021: 8; 2022: 6; 2023: 10; 2024: 7; 2025: 3; 2026: 3.

37 papers.

Sort:

By area:

  1. 2023Large Language Models for Compiler Optimizationcited by 52
  2. 2021CompilerGym: Robust, Performant Compiler Optimization Environments for AI Researchcited by 41
  3. 2021MLGO: a Machine Learning Guided Compiler Optimizations Frameworkcited by 40
  4. 2024LLM-Vectorizer: LLM-based Verified Loop Vectorizercited by 25
  5. 2022Compiler Optimization for Quantum Computing Using Reinforcement Learningcited by 11
  6. 2023Learning Compiler Pass Orders using Coreset and Normalized Value Predictioncited by 11
  7. 2024Improving Parallel Program Performance with LLM Optimizers via Agent-System Interfacescited by 11
  8. 2022MLGOPerf: An ML Guided Inliner to Optimize Performancecited by 9
  9. 2024Compiler generated feedback for Large Language Modelscited by 9
  10. 2023Performance Optimization using Multimodal Modeling and Heterogeneous GNNcited by 7
  11. 2024CompilerDream: Learning a Compiler World Model for General Code Optimizationcited by 6
  12. 2021A Reinforcement Learning Environment for Polyhedral Optimizationscited by 5
25 more
  1. 2021Customized Monte Carlo Tree Search for LLVM/Polly's Composable Loop Optimization Transformationscited by 4
  2. 2021A Highly Configurable Hardware/Software Stack for DNN Inference Accelerationcited by 4
  3. 2022Learning to Combine Instructions in LLVM Compilercited by 4
  4. 2022RL4ReAl: Reinforcement Learning for Register Allocationcited by 4
  5. 2025VecTrans: Enhancing Compiler Auto-Vectorization through LLM-Assisted Code Transformationscited by 4
  6. 2021Generating GPU Compiler Heuristics using Reinforcement Learningcited by 3
  7. 2021Profile Guided Optimization without Profiles: A Machine Learning Approachcited by 2
  8. 2022POSET-RL: Phase ordering for Optimizing Size and Execution Time using Reinforcement Learningcited by 2
  9. 2023Power Constrained Autotuning using Graph Neural Networkscited by 2
  10. 2024MIREncoder: Multi-modal IR-based Pretrained Embeddings for Performance Optimizationscited by 2
  11. 2025VibeCodeHPC: An Agent-Based Iterative Prompting Auto-Tuner for HPC Code Generation Using LLMscited by 2
  12. 2022End-to-end Mapping in Heterogeneous Systems Using Graph Representation Learningcited by 1
  13. 2023Target-independent XLA optimization using Reinforcement Learningcited by 1
  14. 2023LoopTune: Optimizing Tensor Computations with Reinforcement Learningcited by 1
  15. 2023YFlows: Systematic Dataflow Exploration and Code Generation for Efficient Neural Network Inference using SIMD Architectures on CPUscited by 1
  16. 2026CHEHAB RL: Learning to Optimize Fully Homomorphic Encryption Computationscited by 1
  17. 2026Protean Compiler: An Agile Framework to Drive Fine-grain Phase Orderingcited by 1
  18. 2021Sonic: A Sampling-based Online Controller for Streaming Applicationscited by 0
  19. 2023ML-driven Hardware Cost Model for MLIRcited by 0
  20. 2023NPS: A Framework for Accurate Program Sampling Using Graph Neural Networkcited by 0
  21. 2023The Next 700 ML-Enabled Compiler Optimizationscited by 0
  22. 2024FTuner: A Fast Dynamic Shape Tensors Program Auto-Tuner for Deep Learning Compilerscited by 0
  23. 2024Enhancing Deployment-Time Predictive Model Robustness for Code Analysis and Optimizationcited by 0
  24. 2025A Deep Learning Model for Predicting Transformation Legalitycited by 0
  25. 2026ParEVO: Synthesizing Code for Irregular Data: High-Performance Parallelism through Agentic Evolutioncited by 0