arXiv Science⌕ Search

arXiv · 2612.01113

SALTyRN: An End-to-End Tool for Verified and Optimized Neon-to-RVV Kernel Translation

Abstract

Modern CPUs rely on SIMD extensions to accelerate data-parallel workloads, but optimized intrinsic code remains difficult to port across vector ISAs. Arm Neon exposes fixed-size vector operations, whereas RISC-V Vector (RVV) uses a vector-length-agnostic execution model, so migration requires changes to loop structure, tail handling, and intrinsic selection. Manual rewriting is slow and error-prone, while existing portable approaches do not provide automated Neon-to-RVV translation with formal correctness checking. In this tool paper, we present SALTyRN, an end-to-end tool for AI-assisted Neon-to-RVV translation. SALTyRN first uses structured prompts with architectural constraints and intrinsics semantics to generate compilable RVV candidates, using compiler feedback for iterative repair. It then checks bounded semantic equivalence using SMT-based symbolic execution over modeled Neon and RVV intrinsic semantics. Finally, the verified RVV baselines are optimized against the Saturn RVV backend using compilation, correctness, and performance feedback, with the final optimized candidate symbolically re-verified before acceptance. We evaluate SALTyRN on 35 XNNPack kernels with both Neon implementations and handwritten RVV baselines. The generated RVV kernels pass bounded equivalence checks across representative batch sizes. At VLEN=512, optimized RVV kernels achieve per-kernel geometric-mean speedups over the evaluated workload sizes of up to $3.3\times$ over handwritten RVV and up to $28.3\times$ over state-of-the-art baselines, demonstrating a practical path toward correctness-aware and performance-conscious SIMD kernel migration.

Explore related subjects

Keep this discovery

Explore connections, maps & timelines

BibTeXRIS

Keagan Chern, Charles Hong, Yakun Sophia Shao, Alvin Cheung. 2026-12-01. SALTyRN: An End-to-End Tool for Verified and Optimized Neon-to-RVV Kernel Translation. https://arxiv.science/abs/2612.01113

Citations retain the original authors and DOI and include this site’s record URL. If this discovery service contributed to your research, you can also cite arXiv Science by Indiciae: BibTeX · RIS.

KEEP EXPLORING

Related papers

PyFlow: An Inter-procedural Static Analysis Framework for Python

Static program analysis infers program properties automatically. Yet precise interprocedural analysis remains challenging, and dynamically typed languages amplify the difficulty. Python is particularly problematic: dynamic dispatch, first-class functions, metaprogramming, pervasive exceptions, and an object model based on descriptors and attribute-driven lookup collectively impede precise reasoning. We present PyFlow, a generic IFDS-based static-analysis framework for Python. PyFlow provides a multi-stage intermediate-representation pipeline and a generic IFDS solver parameterized by abstract domains. Analysis developers implement only the dataflow semantics; the framework constructs the supergraph, performs fixed-point iteration, and caches summaries. We implement a taint analysis in \pyflow and evaluate it against eight Python SAST tools (DevSkim, Dlint, Bandit, Bearer, CodeQL, Pysa, Semgrep, and Snyk) on the synthetic and real-world benchmarks from a recent ICSE~'26 study. On the synthetic benchmark, PyFlow achieves the best aggregate recall and F1 score among all nine tools. On the real-world benchmark, it attains the highest recall and F1 score while maintaining precision competitive with taint-based engines. We conclude with lessons learned from building IFDS analyses for Python.

cs.PL↗

Proof Repair and (Co)algebra Equivalences

Maintaining formal proofs in response to breaking changes in their dependencies is a major challenge of proof engineering. Proof repair is a kind of proof automation that lessens the burden of this challenge by automatically adapting proofs in response to those changes. While proof repair is well understood through an algorithmic lens, it has, until now, been poorly understood through a theoretical lens. We address this gap by giving the first foundational treatment of proof repair, focusing in particular on type-theoretic proof repair in response to changes in datatypes. Our key insight is that the core component of a proof repair algorithm---a ``configuration''---is exactly an algebra isomorphism. We formalize and prove this insight, answering open questions from prior work. We then take this one step further and show that, by taking the dual of this representation, we obtain proof repair over coinductive types. All of our results are formalized in Agda.

cs.PL↗

Keep, Measure, Erase: What a Quantum Loop Does with Its History

Quantum loops have a reputation for paradox. We study the single fact that we find common among the proposed formulations of quantum loops, namely that the history of a quantum loop, the record of how many times its body ran, is itself quantum information. We survey what happens when we leave this history implicit, keep it, or measure it. We develop our ideas in a small quantum language from the $Π$ family and its extensions. We first leave the history implicit by adding the coherent unitary loop to the base language, denoted by the direct-sum trace in the category of finite-dimensional Hilbert spaces and the unitaries between them. From the physics side, we show that this trace can be computed using a lossless optical network working with steady light of one frequency. To record the history of a quantum loop, either by keeping a count or by measuring the guard at each turn, we use two universal constructions on quantum processes to extend the base unitary language with the ability to allocate a finite counter and to hide, so that we can mimic measurement by discarding a fresh copy of the guard. Finally, we show when different ways of handling the history of a quantum loop behave the same. We prove that measuring the guard on every round gives the same output as keeping the exact count and then ignoring it. Leaving the count implicit and measuring the guard give the same output exactly when the same count state factors out on every input. A finite test on the loop body decides when this holds, so a compiler can safely replace a coherent loop by a measured one in any channel context, even on entangled inputs. We implement the language with all three loops and run the paper's examples in it, using a floating-point interpreter and exact checks on real rational tables.

cs.PL↗