Reproduce “TokenRec: Learning to Tokenize ID for LLM-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

Haohao Qu, Wenqi Fan, Zihuai Zhao, Qing Li

TokenRec introduces a framework for LLM-based generative recommendations, employing a Masked Vector-Quantized Tokenizer to transform collaborative filtering embeddings of user and item IDs into LLM-compatible tokens. This system utilizes a generative retrieval paradigm, achieving higher recommendation accuracy, improved generalization to unseen entities, and drastically faster inference compared to prior methods.

Key insights

  • High-order collaborative knowledge, effectively captured by GNNs, can be successfully quantized and embedded into discrete user and item ID tokens for LLM-based systems.
  • A generative retrieval paradigm dramatically accelerates recommendation inference by transforming the LLM into a query encoder and leveraging similarity search, avoiding slow auto-regressive decoding.
  • Masking during vector quantization enhances the robustness and generalization of ID tokens, allowing the system to handle unseen users and items more effectively.

Summary by alphaXiv.

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