Pith. sign in

REVIEW 1 cited by

LLM-Vectorizer: LLM-based Verified Loop Vectorizer

Not yet reviewed by Pith; the record is open.

This paper has not been read by Pith yet. Machine review is queued; the pith claim, tier, and objections will appear here once it completes.

SPECIMEN: schema-true, not a live event

T0 review · schema-true

One-sentence machine reading of the paper's core claim.

pith:XXXXXXXX · record.json · timestamp

arxiv 2406.04693 v1 pith:VPJV72VQ submitted 2024-06-07 cs.SE cs.AIcs.LGcs.PF

classification cs.SEcs.AIcs.LGcs.PF
keywords codevectorizedcompilersllmsperformancealive2approachbenchmark
verification ladder T0 review T1 audit T2 compute T3 formal
0 comments
read the original abstract

Vectorization is a powerful optimization technique that significantly boosts the performance of high performance computing applications operating on large data arrays. Despite decades of research on auto-vectorization, compilers frequently miss opportunities to vectorize code. On the other hand, writing vectorized code manually using compiler intrinsics is still a complex, error-prone task that demands deep knowledge of specific architecture and compilers. In this paper, we evaluate the potential of large-language models (LLMs) to generate vectorized (Single Instruction Multiple Data) code from scalar programs that process individual array elements. We propose a novel finite-state machine multi-agents based approach that harnesses LLMs and test-based feedback to generate vectorized code. Our findings indicate that LLMs are capable of producing high performance vectorized code with run-time speedup ranging from 1.1x to 9.4x as compared to the state-of-the-art compilers such as Intel Compiler, GCC, and Clang. To verify the correctness of vectorized code, we use Alive2, a leading bounded translation validation tool for LLVM IR. We describe a few domain-specific techniques to improve the scalability of Alive2 on our benchmark dataset. Overall, our approach is able to verify 38.2% of vectorizations as correct on the TSVC benchmark dataset.

Discussion (0). Sign in to comment.

Forward citations

Cited by 1 Pith paper

Reviewed papers in the Pith corpus that reference this work. Sorted by Pith novelty score. Full citation record

  1. D-LiFT: Improving LLM-based Decompiler Backend via Code Quality-driven Fine-tuning

    cs.CR 2025-06 conditional novelty 6.0 of 10

    D-LIFT uses a composite quality score, D-Score, as a reinforcement-learning reward to fine-tune LLMs that rewrite decompiled code, claiming large gains in readability without losing accuracy.

Pith tools