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

Dong Liu, Yanxuan Yu, Ben Lengerich
11/16/2025
cs.CLcs.AI

Official code: FastLM/CSV-Decode (13 stars, last commit 2026-02-26).

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-$k$ 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}.

View on arXivView PDF

Code Implementations(1)

FastLM/CSV-DecodeOfficial100%

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

130Shell, PythonOct 22, 20257 months ago

Similar Papers

Cite this paper

@article{liu2025csvdecode,
  title  = {CSV-Decode: Certifiable Sub-Vocabulary Decoding for Efficient Large Language Model Inference},
  author = {Dong Liu and Yanxuan Yu and Ben Lengerich},
  year   = {2025},
  eprint = {2511.21702},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2511.21702v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2511.21702.svg)](https://codeofpaper.com/paper/2511.21702)

Discussion