Search arXiv⌕ 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://searcharxiv.org/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 Search arXiv by Indiciae: BibTeX · RIS.

KEEP EXPLORING

Related papers

TensorRace: Verifying Data-Race Freedom of Modern GPU Kernels

GPU kernels are the computational core of modern AI, yet a single data race can silently violate the integrity of training and inference. Formal verification promises data-race freedom, but no existing automated verifier handles asynchronous operations across general kernel inputs. We present TensorRace, the first automated framework to verify data-race freedom of modern GPU kernels. TensorRace builds a happens-before graph of the kernel to capture both synchronous and asynchronous operations as nodes and their orderings as edges. To build the graph soundly and efficiently, TensorRace proposes five well-formedness conditions for kernels. When a kernel satisfies them, TensorRace can soundly order asynchronous operations by comparing their static occurrence counts, without directly reasoning about runtime barrier phases and thread interleavings. TensorRace then proves a kernel race-free by checking with SMT solvers that the happens-before graph orders every pair of conflicting memory operations. We also introduce a series of optimizations for SMT solving precision and efficiency. We mechanize soundness proofs in Rocq and evaluate TensorRace on 345 real-world GPU kernels from four libraries, including components of frontier models such as DeepSeek V4 and Kimi Linear, and common machine learning operators. TensorRace verifies each GPU kernel for NVIDIA Hopper and Blackwell architectures. In verification, we find 12 new harmful races, all confirmed by developers and fixed.

cs.PL↗

Evaluating Stack Switching in WebAssembly

Compiling control-flow abstractions like light-weight threads, async/await, and generators to WebAssembly typically requires whole-program transformations that complicate compilation and impose runtime and code-size costs. WasmFX extends WebAssembly with native stack switching based on effect handlers, providing a common foundation for these features. We evaluate WasmFX backends for C, Go, Kotlin, and OCaml and implementation trade-offs in the V8, Wasmtime, and Wizard engines. We compare performance against existing compilation strategies when using these engines. On artificial microbenchmarks involving tight context-switching loops, existing techniques sometimes outperform WasmFX. However, as the stack becomes deeper, WasmFX gains a substantial advantage over Asyncify, the transformation used by our C baseline to emulate stack switching. Even with substantial scope for further optimisation, current WasmFX implementations deliver competitive performance on macrobenchmarks without requiring whole-program transformations.

cs.PL↗

Not All E-Graph Cycles Are Equal: Identifying Removable Cycles for Extraction

E-graph extraction requires an acyclic program, yet equality saturation naturally introduces cycles. Existing extractors either enforce acyclicity at additional solving cost or break cycles heuristically, potentially discarding optimal solutions. We show that not all e-graph cycles are equal. Some cycles can be eliminated losslessly by removing e-nodes that are intrinsically unrealizable (local-dead) or cannot participate in any legal extraction of the designated root (root-context-dead). The remaining cycles encode incompatible dependency orders among individually legal extractions, a property we call topological choice freedom. Breaking any such residual cycle through e-node deletion necessarily sacrifices a legal extraction. We formalize this distinction by establishing a bijection between legal DAG extractions and inclusion-minimal B-hyperpaths in a directed B-hypergraph, reducing dead-node identification to established hypernetwork problems. Local-dead e-nodes can be identified in polynomial time, while exact root-context analysis takes linear time on acyclic e-graphs but is NP-hard in general. Exhaustive validation on 1062 small e-graphs confirms that semantic pruning preserves every legal extraction. Across the 87 real e-graphs from the XEG evaluation, local-dead removal eliminates 8.2% of all e-nodes, and lossless pruning makes 12 of the 70 cyclic e-graphs entirely acyclic. Our implementation is publicly available at https://github.com/ZenuSunB/Eclear.git.

cs.PL↗