Efficiency Unleashed: Inference Acceleration for LLM-based Recommender Systems with Speculative Decoding

Fuente: arXiv
Guardado en:
Detalles Bibliográficos
Autores principales: Xi, Yunjia, Wang, Hangyu, Chen, Bo, Lin, Jianghao, Zhu, Menghui, Liu, Weiwen, Tang, Ruiming, Wei, Zhewei, Zhang, Weinan, Yu, Yong
Formato: Preprint
Publicado: 2024
Materias:
Acceso en línea:
Etiquetas: Agregar Etiqueta
Sin Etiquetas, Sea el primero en etiquetar este registro!
_version_ 1866909596302442496
author Xi, Yunjia
Wang, Hangyu
Chen, Bo
Lin, Jianghao
Zhu, Menghui
Liu, Weiwen
Tang, Ruiming
Wei, Zhewei
Zhang, Weinan
Yu, Yong
author_facet Xi, Yunjia
Wang, Hangyu
Chen, Bo
Lin, Jianghao
Zhu, Menghui
Liu, Weiwen
Tang, Ruiming
Wei, Zhewei
Zhang, Weinan
Yu, Yong
contents The past few years have witnessed a growing interest in LLM-based recommender systems (RSs), although their industrial deployment remains in a preliminary stage. Most existing deployments leverage LLMs offline as feature enhancers, generating augmented knowledge for downstream tasks. However, in recommendation scenarios with numerous users and items, even offline knowledge generation with LLMs demands significant time and computational resources. This inefficiency arises from the autoregressive nature of LLMs. A promising solution is speculative decoding, a Draft-Then-Verify approach that increases the number of tokens generated per decoding step. In this work, we first identify recommendation knowledge generation as a highly fitting use case for retrieval-based speculative decoding. Then, we discern its two characteristics: (1) the vast number of items and users in RSs leads to retrieval inefficiency, and (2) RSs exhibit high diversity tolerance for LLM-generated text. Building on these insights, we introduce Lossless Acceleration via Speculative Decoding for LLM-based Recommender Systems (LASER), which features a Customized Retrieval Pool to enhance retrieval efficiency and Relaxed Verification to improve the acceptance rate of draft tokens. LASER achieves a 3-5x speedup on public datasets and saves about 67\% of computational resources during the online A/B test on a large-scale advertising scenario with lossless downstream recommendation performance. Our code is available at https://github.com/YunjiaXi/LASER
format Preprint
id arxiv_https___arxiv_org_abs_2408_05676
institution arXiv
publishDate 2024
record_format arxiv
spellingShingle Efficiency Unleashed: Inference Acceleration for LLM-based Recommender Systems with Speculative Decoding
Xi, Yunjia
Wang, Hangyu
Chen, Bo
Lin, Jianghao
Zhu, Menghui
Liu, Weiwen
Tang, Ruiming
Wei, Zhewei
Zhang, Weinan
Yu, Yong
Information Retrieval
The past few years have witnessed a growing interest in LLM-based recommender systems (RSs), although their industrial deployment remains in a preliminary stage. Most existing deployments leverage LLMs offline as feature enhancers, generating augmented knowledge for downstream tasks. However, in recommendation scenarios with numerous users and items, even offline knowledge generation with LLMs demands significant time and computational resources. This inefficiency arises from the autoregressive nature of LLMs. A promising solution is speculative decoding, a Draft-Then-Verify approach that increases the number of tokens generated per decoding step. In this work, we first identify recommendation knowledge generation as a highly fitting use case for retrieval-based speculative decoding. Then, we discern its two characteristics: (1) the vast number of items and users in RSs leads to retrieval inefficiency, and (2) RSs exhibit high diversity tolerance for LLM-generated text. Building on these insights, we introduce Lossless Acceleration via Speculative Decoding for LLM-based Recommender Systems (LASER), which features a Customized Retrieval Pool to enhance retrieval efficiency and Relaxed Verification to improve the acceptance rate of draft tokens. LASER achieves a 3-5x speedup on public datasets and saves about 67\% of computational resources during the online A/B test on a large-scale advertising scenario with lossless downstream recommendation performance. Our code is available at https://github.com/YunjiaXi/LASER
title Efficiency Unleashed: Inference Acceleration for LLM-based Recommender Systems with Speculative Decoding
topic Information Retrieval
url https://arxiv.org/abs/2408.05676