Fast Large Language Model Collaborative Decoding via Speculation

Fuente: arXiv
Guardado en:
Detalles Bibliográficos
Autores principales: Fu, Jiale, Jiang, Yuchu, Chen, Junkai, Fan, Jiaming, Geng, Xin, Yang, Xu
Formato: Preprint
Publicado: 2025
Materias:
Acceso en línea:
Etiquetas: Agregar Etiqueta
Sin Etiquetas, Sea el primero en etiquetar este registro!
_version_ 1866908383964037120
author Fu, Jiale
Jiang, Yuchu
Chen, Junkai
Fan, Jiaming
Geng, Xin
Yang, Xu
author_facet Fu, Jiale
Jiang, Yuchu
Chen, Junkai
Fan, Jiaming
Geng, Xin
Yang, Xu
contents Large Language Model (LLM) collaborative decoding techniques improve output quality by combining the outputs of multiple models at each generation step, but they incur high computational costs. In this paper, we introduce Collaborative decoding via Speculation (CoS), a novel framework that accelerates collaborative decoding without compromising performance. Inspired by Speculative Decoding--where a small proposal model generates tokens sequentially, and a larger target model verifies them in parallel, our approach builds on two key insights: (1) the verification distribution can be the combined distribution of both the proposal and target models, and (2) alternating each model as the proposer and verifier can further enhance efficiency. We generalize this method to collaboration among n models and theoretically prove that CoS is never slower than standard collaborative decoding, typically achieving faster speed. Extensive experiments demonstrate CoS is 1.11x-2.23x faster than standard collaborative decoding without compromising generation quality. Our code is available at https://github.com/Kamichanw/CoS/.
format Preprint
id arxiv_https___arxiv_org_abs_2502_01662
institution arXiv
publishDate 2025
record_format arxiv
spellingShingle Fast Large Language Model Collaborative Decoding via Speculation
Fu, Jiale
Jiang, Yuchu
Chen, Junkai
Fan, Jiaming
Geng, Xin
Yang, Xu
Computation and Language
Artificial Intelligence
Machine Learning
Large Language Model (LLM) collaborative decoding techniques improve output quality by combining the outputs of multiple models at each generation step, but they incur high computational costs. In this paper, we introduce Collaborative decoding via Speculation (CoS), a novel framework that accelerates collaborative decoding without compromising performance. Inspired by Speculative Decoding--where a small proposal model generates tokens sequentially, and a larger target model verifies them in parallel, our approach builds on two key insights: (1) the verification distribution can be the combined distribution of both the proposal and target models, and (2) alternating each model as the proposer and verifier can further enhance efficiency. We generalize this method to collaboration among n models and theoretically prove that CoS is never slower than standard collaborative decoding, typically achieving faster speed. Extensive experiments demonstrate CoS is 1.11x-2.23x faster than standard collaborative decoding without compromising generation quality. Our code is available at https://github.com/Kamichanw/CoS/.
title Fast Large Language Model Collaborative Decoding via Speculation
topic Computation and Language
Artificial Intelligence
Machine Learning
url https://arxiv.org/abs/2502.01662