VecTrans: Enhancing Compiler Auto-Vectorization through LLM-Assisted Code Transformations
Not on the map. Why?
Abstract (arXiv)
Auto-vectorization is a fundamental optimization for modern compilers to exploit SIMD parallelism. However, state-of-the-art approaches still struggle to handle intricate code patterns, often requiring manual hints or domain-specific expertise. Large language models (LLMs), with their ability to capture intricate patterns, provide a promising solution, yet their effective application in compiler optimizations remains an open challenge due to issues such as hallucinations and a lack of domain-specific reasoning. In this paper, we present VecTrans, a novel framework that leverages LLMs to enhance compiler-based code vectorization. VecTrans first employs compiler analysis to identify potentially vectorizable code regions. It then utilizes an LLM to refactor these regions into patterns that are more amenable to the compilers auto-vectorization. To ensure semantic correctness, VecTrans further integrates a hybrid validation mechanism at the intermediate representation (IR) level. With the above efforts, VecTrans combines the adaptability of LLMs with the precision of compiler vectorization, thereby effectively opening up the vectorization opportunities. experimental results show that among all TSVC functions unvectorizable by GCC, ICC, Clang, and BiSheng Compiler, VecTrans achieves an geomean speedup of 1.77x and successfully vectorizes 24 of 51 test cases. This marks a significant advancement over state-of-the-art approaches while maintaining a cost efficiency of 0.012 per function optimization for LLM API usage.
Key facts. Cited by 4 papers in the map (data through 14 Oct 2026). Builds on 12 of its 32 references that are in the map. First posted on arXiv 25 Mar 2025.
Builds on
12 of 32 references.
References · 12
- 2024Qwen2.5 Technical Reportcited by 4,942
- 2023Self-Refine: Iterative Refinement with Self-Feedbackcited by 3,442
- 2024Qwen2.5-Coder Technical Reportcited by 1,203
- 2024GSM-Symbolic: Understanding the Limitations of Mathematical Reasoning in Large Language Modelscited by 550
- 2024RepairAgent: An Autonomous, LLM-Based Agent for Program Repaircited by 232
- 2023Large Language Models for Compiler Optimizationcited by 52
- 2024Iterative Refinement of Project-Level Code Context for Precise Code Generation with Compiler Feedbackcited by 46
- 2019NeuroVectorizer: End-to-End Vectorization with Deep Reinforcement Learningcited by 37
- 2023SLaDe: A Portable Small Language Model Decompiler for Optimized Assemblycited by 28
- 2024LLM-Vectorizer: LLM-based Verified Loop Vectorizercited by 25
- 2018The ARM Scalable Vector Extensioncited by 9
- 2024Don't Transform the Code, Code the Transforms: Towards Precise Code Rewriting using LLMscited by 8
Built on by
Citing papers per year: 2025: 1; 2026: 3.
4 papers.
- 2025Astra: A Multi-Agent System for GPU Kernel Performance Optimizationcited by 51
- 2026A Two-Stage GPU Kernel Tuner Combining Semantic Refactoring and Search-Based Optimizationcited by 3
- 2026AutoVecCoder: Teaching LLMs to Generate Explicitly Vectorized Codecited by 0
- 2026Can Large Language Models Recover Semantic Optimization Opportunities That Compilers Miss?cited by 0
- 2026Can Large Language Models Recover Semantic Optimization Opportunities That Compilers Miss?4 Aug 2026
- 2026AutoVecCoder: Teaching LLMs to Generate Explicitly Vectorized Code18 May 2026
- 2026A Two-Stage GPU Kernel Tuner Combining Semantic Refactoring and Search-Based Optimization19 Jan 2026
- 2025Astra: A Multi-Agent System for GPU Kernel Performance Optimization9 Sep 2025