SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2410.05165 · ICLR · 2025

Efficient Inference for Large Language Model-based Generative Recommendation

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

arXiv · PDF · Open in the Atlas

Code that ran

8 of 12 samples (functions and classes) lifted from this paper's linked repositories executed on a synthesized input in Syntology's jail (1 of them constructed an object rather than computing a result; 1 honoured the contract we drafted, 0 violated it and 1 has no contract verdict; 6 failures of our instrument; 4 no recorded run), measured 2026-11-23; repository links from the Papers with Code archive attributed under CC BY-SA, no affiliation; bodies inline only under a permissive licence as GitHub detects it. Not a reproduction of the paper's results.

"Ran" means the function executed on a synthesized input and returned a value. It is not a reproduction of the paper's results. This record, dated, as JSON: /api/ran/2410.05165.json · badge: /api/ran/2410.05165.svg

Each repository's role is a label: a classifier's output recorded on the link, or, where no role is recorded, what the Papers with Code archive marked. The line under it names its basis. Neither says who wrote the code.

RepositoryRoleRan
Linxyhaha/AtSpeed canonical (classifier label)
classifier basis: census
6 ran · 4 no recorded run
linxyhaha/atspeed canonical (classifier label)
classifier basis: classifier_2025
2 ran · 0 no recorded run
FunctionStatusWhere it lives
AtSpeedSModel Ran
ran on a synthesized input · constructed an object; no result was computed
linxyhaha/atspeed/code/model.py
pointer only (licence: NONE) · get_code("7dc4a09e7d23afd8")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, linxyhaha/atspeed when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

bytes_to_gb Ran
ran, honoured the contract we drafted
Linxyhaha/AtSpeed/code/generate_teacher_data.py
pointer only (licence: NONE) · get_code("e0fcb137d04baf1f")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, Linxyhaha/AtSpeed when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

generate_prompt Ran
ran; our contract draft was wrong, not the code
Linxyhaha/AtSpeed/code/finetune_llama.py
pointer only (licence: NONE) · get_code("31b0d67913003d72")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, Linxyhaha/AtSpeed when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

get_prefix_allowed_tokens_fn Ran
ran; our contract draft was wrong, not the code
linxyhaha/atspeed/code/inference.py
pointer only (licence: NONE) · get_code("daa3d7a4f1dbe7ae")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, linxyhaha/atspeed when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

one_step_beam_search Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
Linxyhaha/AtSpeed/code/beamSD.py
pointer only (licence: NONE) · get_code("0345660faa8d6037")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, Linxyhaha/AtSpeed when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

parse_dataset_args Ran
ran; our contract draft was wrong, not the code
Linxyhaha/AtSpeed/code/utils.py
pointer only (licence: NONE) · get_code("fec89cf4d4ffc584")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, Linxyhaha/AtSpeed when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

parse_global_args Ran
ran; our contract draft was wrong, not the code
Linxyhaha/AtSpeed/code/utils.py
pointer only (licence: NONE) · get_code("38d59d157a39fe01")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, Linxyhaha/AtSpeed when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

prefix_allowed_tokens_fn Ran
ran; our contract draft was wrong, not the code
Linxyhaha/AtSpeed/code/generation_trie.py
pointer only (licence: NONE) · get_code("3e27e1971d49a1a8")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, Linxyhaha/AtSpeed when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

BSSD Not yet run
unverified (harvested, no recorded run)
Linxyhaha/AtSpeed/code/beamSD.py
pointer only (licence: NONE) · get_code("98dce01478979c79")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, Linxyhaha/AtSpeed when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. No invocation recorded.

main Not yet run
unverified (harvested, no recorded run)
Linxyhaha/AtSpeed/code/generate_teacher_data.py
pointer only (licence: NONE) · get_code("e2f64861d2469ffb")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, Linxyhaha/AtSpeed when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. No invocation recorded.

parse_AtSpeed_args Not yet run
unverified (harvested, no recorded run)
Linxyhaha/AtSpeed/code/utils.py
pointer only (licence: NONE) · get_code("f43271f389825ef1")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, Linxyhaha/AtSpeed when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. No invocation recorded.

verify Not yet run
unverified (harvested, no recorded run)
Linxyhaha/AtSpeed/code/beamSD.py
pointer only (licence: NONE) · get_code("f10b46ee09ea6eb9")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, Linxyhaha/AtSpeed when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. No invocation recorded.

Also present in other papers' code

Of 12 samples lifted from this paper's linked repositories, 12 carry a function identity and 0 do not. Of the 12 distinct functions with an identity, 2 are also present in other papers whose code we hold (2 with at least one paper dated earlier, 0 the same month, 1 later) and 10 are only here among the 52,977 papers whose code Syntology holds (as of 2026-09-26).

Only here means: among the 52,977 papers whose code Syntology holds (51,887 with lifted samples, 1,090 through their assemblies only), as of 2026-09-26, no other paper's lifted samples or current assembly bricks contain an identical function body after normalisation.

FunctionAlso present inEarliest-datedOthers named
generate_prompt 2 other papers
1 dated earlier, 1 later
2311.07054 (2023-11)
A Study of Implicit Ranking Unfairness in Large Language Models
2601.22925 (2026-01)
BEAR: Towards Beam-Search-Aware Optimization for Recommendation with Large Language Models
prefix_allowed_tokens_fn 2 other papers
2 dated earlier
2306.11134 (2023-06)
OpenP5: An Open-Source Platform for Developing, Training, and Evaluating LLM-based Recommender Systems
2403.19021 (2024-03)
IDGenRec: LLM-RecSys Alignment with Textual ID Learning

Presence, not direction: an identical function body in two papers' repositories does not say who wrote it, which came from which, or that either paper's method rests on it. Matching is exact after normalisation, so a renamed or edited function is not matched. Dates are when papers appeared, not when code was written. Only .py files the harvester lifted are covered; notebooks are not read. A new-style arXiv id YYMM.NNNN dates a paper to the month 20YY-MM; otherwise Paper.year dates it to the year; otherwise it is undated. Dates are when the paper appeared, not when the code was written. Read 2026-11-23.

Repositories linked to this paper

Some links come from the archived Papers with Code dataset (CC BY-SA 4.0): attribution and licence.

Abstract

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 2× speedup under strict top-K verification and up to 2.5× speedup under relaxed sampling verification. The codes and datasets are available at https://github.com/Linxyhaha/AtSpeed.

For agents

The same record, over MCP at https://syntology.ai/mcp:

get_harvested_code_for_paper("2410.05165")
get_code_for_paper("2410.05165")
have("2410.05165")

The run record, dated, one paper per request, free:

curl https://syntology.ai/api/ran/2410.05165.json

A badge for a README (the split and the date, never a ratio):

[![Syntology run record](https://syntology.ai/api/ran/2410.05165.svg)](https://syntology.ai/paper/2410.05165)

Connect an agent — have() is free.