Reproduce “Efficient Inference for Large Language Model-based Generative Recommendation” on OpenResearch

Run Claude Code, Codex or any coding agent as a research agent: literature, hypotheses and experiments on your laptop, cluster or cloud GPUs.

Universal app for Apple silicon and Intel. Requires macOS 11 or later.

About this paper

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

A novel framework enhances the inference efficiency of Large Language Model-based generative recommendation by adapting speculative decoding to the N-to-K verification challenge inherent in generating top-K item lists. This approach yields up to 2.5x faster decoding speeds compared to traditional LLM inference while maintaining recommendation performance.

Key insights

  • Adapting Speculative Decoding from N-to-1 to N-to-K verification is crucial for efficient multi-sequence generation in LLM-based recommendation.
  • Explicitly aligning the draft model's top-K sequence probabilities with the target LLM's through methods like RKLD and density regularization significantly boosts acceptance rates.
  • A relaxed sampling verification approach can improve efficiency by accepting high-probability non-top-K drafted sequences, maintaining accuracy while increasing throughput.

Summary by alphaXiv.

Tip: change arxiv.org to autoarxiv.org in any arXiv abstract link to open the paper here.