Saved in:
Bibliographic Details
Main Authors: Li, Shangzhan, Yin, Xinyu, Jin, Xuanyu, He, Ye, Zhou, Yuxin, Li, Yuxuan, Han, Xu, Che, Wanxiang, Shi, Qi, Liu, Ting, Sun, Maosong
Format: Preprint
Published: 2026
Subjects:
Online Access:https://arxiv.org/abs/2605.17978
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866916022617899008
author Li, Shangzhan
Yin, Xinyu
Jin, Xuanyu
He, Ye
Zhou, Yuxin
Li, Yuxuan
Han, Xu
Che, Wanxiang
Shi, Qi
Liu, Ting
Sun, Maosong
author_facet Li, Shangzhan
Yin, Xinyu
Jin, Xuanyu
He, Ye
Zhou, Yuxin
Li, Yuxuan
Han, Xu
Che, Wanxiang
Shi, Qi
Liu, Ting
Sun, Maosong
contents Vectorization via Single Instruction, Multiple Data (SIMD) architectures is a cornerstone of high-performance computing. To fully exploit hardware potential, developers often resort to explicit vectorization using intrinsics, as compiler-based auto-vectorization frequently yields suboptimal results due to conservative static analysis. While Large Language Models (LLMs) have demonstrated remarkable proficiency in general code generation, they struggle with explicit vectorization due to the scarcity of high-quality corpora and the strict semantic constraints of low-level hardware instructions. In this paper, we propose AutoVecCoder, a novel framework designed to empower LLMs with the capability of automated explicit vectorization. AutoVecCoder integrates two core components: VecPrompt, an automated data synthesis pipeline to inject domain-specific intrinsic knowledge; and VecRL, a reinforcement learning framework that aligns code generation with execution efficiency. AutoVecCoder-8B trained by this framework achieves state-of-the-art performance on the SSE and AVX subsets of SimdBench and, in some cases, generates implementations surpassing standard -O3 optimizations, effectively overcoming the inherent bottlenecks of traditional automated vectorization.
format Preprint
id arxiv_https___arxiv_org_abs_2605_17978
institution arXiv
publishDate 2026
record_format arxiv
spellingShingle AutoVecCoder: Teaching LLMs to Generate Explicitly Vectorized Code
Li, Shangzhan
Yin, Xinyu
Jin, Xuanyu
He, Ye
Zhou, Yuxin
Li, Yuxuan
Han, Xu
Che, Wanxiang
Shi, Qi
Liu, Ting
Sun, Maosong
Computation and Language
Vectorization via Single Instruction, Multiple Data (SIMD) architectures is a cornerstone of high-performance computing. To fully exploit hardware potential, developers often resort to explicit vectorization using intrinsics, as compiler-based auto-vectorization frequently yields suboptimal results due to conservative static analysis. While Large Language Models (LLMs) have demonstrated remarkable proficiency in general code generation, they struggle with explicit vectorization due to the scarcity of high-quality corpora and the strict semantic constraints of low-level hardware instructions. In this paper, we propose AutoVecCoder, a novel framework designed to empower LLMs with the capability of automated explicit vectorization. AutoVecCoder integrates two core components: VecPrompt, an automated data synthesis pipeline to inject domain-specific intrinsic knowledge; and VecRL, a reinforcement learning framework that aligns code generation with execution efficiency. AutoVecCoder-8B trained by this framework achieves state-of-the-art performance on the SSE and AVX subsets of SimdBench and, in some cases, generates implementations surpassing standard -O3 optimizations, effectively overcoming the inherent bottlenecks of traditional automated vectorization.
title AutoVecCoder: Teaching LLMs to Generate Explicitly Vectorized Code
topic Computation and Language
url https://arxiv.org/abs/2605.17978