Papers › Efficient Inference for Large Language Model-based Generative Recommendation

Efficient Inference for Large Language Model-based Generative Recommendation

7 Oct 2024arXiv:2410.05165archive 2025-07-28

Xinyu Lin, Chaoqun Yang, Wenjie Wang, Yongqi Li, Cunxiao Du, Fuli Feng, See-Kiong Ng, Tat-Seng Chua

Large Language Model (LLM)-based generative recommendation has achieved notable success, yet its practical deployment is costly particularly due to excessive inference latency caused by autoregressive decoding. For lossless LLM decoding acceleration, Speculative Decoding (SD) has emerged as a promising solution. However, applying SD to generative recommendation presents unique challenges due to the requirement of generating top-K items (i.e., K distinct token sequences) as a recommendation list by beam search. This leads to more stringent verification in SD, where all the top-K sequences from the target LLM must be successfully drafted by the draft model at each decoding step. To alleviate this, we consider 1) boosting top-K sequence alignment between the draft model and the target LLM, and 2) relaxing the verification strategy to reduce trivial LLM calls. To this end, we propose an alignment framework named AtSpeed, which presents the AtSpeed-S optimization objective for top-K alignment under the strict top-K verification. Moreover, we introduce a relaxed sampling verification strategy that allows high-probability non-top-K drafted sequences to be accepted, significantly reducing LLM calls. Correspondingly, we propose AtSpeed-R for top-K alignment under this relaxed sampling verification. Empirical results on two real-world datasets demonstrate that AtSpeed significantly accelerates LLM-based generative recommendation, e.g., near 2x speedup under strict top-K verification and up to 2.5x speedup under relaxed sampling verification. The codes and datasets are released at https://github.com/Linxyhaha/AtSpeed.

PaperPDFCodeCode Syntology ran

In Syntology Open this paper in Syntology's Atlas, the map of the papers in Syntology's graph and their citations.

For agents, Syntology's MCP tool lists every function and class Syntology harvested from this paper and whether it ran (how to connect): get_harvested_code_for_paper(arxiv_id="2410.05165")

Code

Syntology Ran 7 of 12 code samples harvested from 1 repository linked to this paper; 5 have no recorded run. Of those that ran: 1 ran · our draft was wrong; 6 ran with no contract checked.

By repository: official repository: 12 samples from 1 repository, 7 ran. The run record, sample by sample. “Ran” means executed on a synthesized input, not that the code is correct or reproduces the paper.

linxyhaha/atspeed officialmentioned in papermentioned on GitHubpytorch report

Repository list and official/mentioned flags are the archive's, frozen 2025-07-28. Reachability, where shown, is from one Syntology probe window (2026-09-16 to 2026-09-18); repositories not probed show nothing. GitHub stars are not tracked.

Code Syntology ran Syntology

12 samples harvested; 7 ran; 0 honoured the contract we drafted; 5 have no recorded run. Read from Syntology's graph 2026-09-24; that is when this build read the record, not when the samples ran.

1ran · our draft was wrong
6ran
5unverified

Licence: 12 of the 12 samples are pointer only, meaning Syntology does not serve that copy's text. This page shows no code text for any sample; each one links to its file in the repository.

Harvested from linxyhaha/atspeed. “Ran” means the sample executed on a synthesized input. It does not mean the output is correct, and nothing here reproduces the paper's results. “Honoured” and “violated” refer to a contract Syntology drafted from the code itself; “our draft was wrong” and “fixture could not drive it” are failures of Syntology's instrument, not of the code.

Each sample ends with its code_sha256, Syntology's identity for that exact code. An agent fetches the stored sample with Syntology's MCP tool get_code(code_sha256="…") (how to connect); click an identity to copy that call.

Repository labels, per sample. official repository: The archive marks this repository official for the paper. named in the paper: The archive records that the paper mentions this repository; it is not marked official. community (archive-listed): In the archive's code links for this paper, not marked official and not recorded as mentioned in the paper. found in paper text by Syntology: Syntology found this repository in the paper's own text; whether it is the authors' implementation is not asserted. community: Not in the archive's code links for this paper; a community repository Syntology harvested. Samples from a repository marked official are listed first. Licence labels name the repository's licence as recorded at harvest. “Pointer only” means Syntology does not serve that copy's text, for one of four reasons: no licence file was found; the licence was not identified; the licence is recorded as permissive but that copy's record is not marked cleared; or the licence is outside the permissive list Syntology serves text under (MIT, Apache-2.0, BSD and similar). Some licences outside that list permit redistribution, such as WTFPL, and GPL-3.0 under its conditions; they are simply not on the list. Hover a licence label for the reason. File links open the file on GitHub at the default branch, which may have changed since the harvest.

AtSpeedSModel linxyhaha/atspeed/code/model.py official repository ran · metamorphic tier: deterministic no licence file found · pointer only · 7dc4a09e7d23afd8 · report
bytes_to_gb Linxyhaha/AtSpeed/code/generate_teacher_data.py official repository ran fingerprinted no licence file found · pointer only · e0fcb137d04baf1f · report
get_prefix_allowed_tokens_fn linxyhaha/atspeed/code/inference.py official repository ran · our draft was wrong no licence file found · pointer only · daa3d7a4f1dbe7ae · report
one_step_beam_search Linxyhaha/AtSpeed/code/beamSD.py official repository ran no licence file found · pointer only · 0345660faa8d6037 · report
parse_dataset_args Linxyhaha/AtSpeed/code/utils.py official repository ran no licence file found · pointer only · fec89cf4d4ffc584 · report
parse_global_args Linxyhaha/AtSpeed/code/utils.py official repository ran no licence file found · pointer only · 38d59d157a39fe01 · report
prefix_allowed_tokens_fn Linxyhaha/AtSpeed/code/generation_trie.py official repository ran no licence file found · pointer only · 3e27e1971d49a1a8 · report
BSSD Linxyhaha/AtSpeed/code/beamSD.py official repository unverified no licence file found · pointer only · 98dce01478979c79 · report
generate_prompt Linxyhaha/AtSpeed/code/finetune_llama.py official repository unverified no licence file found · pointer only · 31b0d67913003d72 · report
main Linxyhaha/AtSpeed/code/generate_teacher_data.py official repository unverified no licence file found · pointer only · e2f64861d2469ffb · report
parse_AtSpeed_args Linxyhaha/AtSpeed/code/utils.py official repository unverified no licence file found · pointer only · f43271f389825ef1 · report
verify Linxyhaha/AtSpeed/code/beamSD.py official repository unverified no licence file found · pointer only · f10b46ee09ea6eb9 · report

Tasks

Language ModelingLanguage ModellingLarge Language Model

Results from the paper archive 2025-07-28

No leaderboard rows for this paper in the archive.

Report a problem or propose a change · a person checks every report against the paper or source before anything changes; decisions are listed on /corrections