English

CSV-Decode: Certifiable Sub-Vocabulary Decoding for Efficient Large Language Model Inference

Computation and Language 2025-12-01 v1 Artificial Intelligence

Abstract

Large language models face significant computational bottlenecks during inference due to the expensive output layer computation over large vocabularies. We present CSV-Decode, a novel approach that uses geometric upper bounds to construct small sub-vocabularies for each decoding step, enabling efficient sparse computation while maintaining dual correctness guarantees: exact top-kk certification and ε\varepsilon-certified softmax approximations. Our method clusters vocabulary embeddings offline and uses centroid-plus-radius bounds to identify which tokens can be safely omitted from computation. We provide a complete system implementation with sparse GEMV kernels, multi-GPU sharding, and CUDA Graph optimization. Experimental results demonstrate significant speedup over full vocabulary decoding while maintaining distributional guarantees and low fallback rates. Our code implementation available at \href{https://github.com/FastLM/CSV-Decode}{https://github.com/FastLM/CSV-Decode}.

Keywords

Cite

@article{arxiv.2511.21702,
  title  = {CSV-Decode: Certifiable Sub-Vocabulary Decoding for Efficient Large Language Model Inference},
  author = {Dong Liu and Yanxuan Yu and Ben Lengerich},
  journal= {arXiv preprint arXiv:2511.21702},
  year   = {2025}
}
R2 v1 2026-07-01T07:56:47.725Z