arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2511.21702cs.CLcs.AI
收藏

CSV-Decode: 可证的子词汇解码以实现高效的大型语言模型推理

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

Department of Computer Science, Yale University(耶鲁大学计算机科学系);College of Engineering, Columbia University(哥伦比亚大学工程学院);Department of Statistics, University of Wisconsin-Madison(威斯康星大学麦迪逊分校统计学系)

Dong Liu, Shu Wang, Yanxuan Yu, Haisheng Wang, Ben Lengerich

AI总结:

CSV-Decode通过构建子词汇表实现高效的大语言模型推理,提供精确的top-k认证和ε-认证的softmax近似,显著提升速度并保持分布保证。

摘要:

大型语言模型在推理过程中面临显著的计算瓶颈,这是因为对大词汇表的输出层计算成本很高。我们提出了CSV-Decode,一种新的方法,利用几何上界来为每个解码步骤构建小的子词汇表,从而实现高效的稀疏计算,同时保持双重正确性保证:精确的top-k认证和ε-认证的softmax近似。我们的方法离线聚类词汇嵌入,并使用质心加半径上界来确定哪些标记可以安全地从计算中省略。我们提供了一个完整的系统实现,包含稀疏GEMV内核、多GPU分片和CUDA Graph优化。实验结果表明,与完整词汇表解码相比,显著提高了速度,同时保持了分布保证和低回退率。我们的代码实现可在https://github.com/FastLM/CSV-Decode获得。

英文摘要:

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

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑