arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2406.10450cs.IRcs.AIcs.CL
收藏

TokenRec:学习为基于LLM的生成式推荐将ID分词

TokenRec: Learning to Tokenize ID for LLM-based Generative Recommendation

Department of Computing, The Hong Kong Polytechnic University(计算机系,香港理工大学)

Haohao Qu, Wenqi Fan, Zihuai Zhao, Qing Li

AI总结:

TokenRec提出掩码向量量化ID分词策略和高效生成式检索范式,将协同知识量化为离散token并避免自回归解码,在基于LLM的推荐中实现高效泛化和推理加速。

摘要:

由于大规模语言模型(LLMs)出色的语言理解和上下文学习能力,利用它们推动下一代推荐系统(RecSys)发展的兴趣日益增长。在该场景下,对用户和物品进行分词(即索引)对于确保LLMs与推荐的无缝对齐至关重要。尽管已有若干研究在通过文本内容或潜在表示来表示用户和物品方面取得了进展,但在高效地将高阶协同知识捕获为与LLMs兼容的离散token方面仍存在挑战。此外,大多数现有分词方法在面对训练语料中未出现的新用户或新物品时,往往难以有效泛化。为解决这些挑战,我们提出了一个名为TokenRec的新框架,它不仅引入了一种有效的ID分词策略,还引入了一种用于基于LLM推荐的高效检索范式。具体而言,我们的分词策略,即掩码向量量化(Masked Vector-Quantized, MQ)分词器,将从协同过滤中学习到的掩码用户/物品表示量化为离散token,从而实现了高阶协同知识的平滑融入,并为基于LLM的RecSys提供了可泛化的用户和物品分词能力。同时,我们设计的生成式检索范式旨在高效地为用户推荐top-K个物品,从而消除了LLMs所使用的耗时自回归解码和束搜索过程的需要,显著减少了推理时间。全面的实验验证了所提方法的有效性,表明TokenRec优于竞争性基准,包括传统推荐系统和新兴的基于LLM的推荐系统。

英文摘要:

There is a growing interest in utilizing large-scale language models (LLMs) to advance next-generation Recommender Systems (RecSys), driven by their outstanding language understanding and in-context learning capabilities. In this scenario, tokenizing (i.e., indexing) users and items becomes essential for ensuring a seamless alignment of LLMs with recommendations. While several studies have made progress in representing users and items through textual contents or latent representations, challenges remain in efficiently capturing high-order collaborative knowledge into discrete tokens that are compatible with LLMs. Additionally, the majority of existing tokenization approaches often face difficulties in generalizing effectively to new/unseen users or items that were not in the training corpus. To address these challenges, we propose a novel framework called TokenRec, which introduces not only an effective ID tokenization strategy but also an efficient retrieval paradigm for LLM-based recommendations. Specifically, our tokenization strategy, Masked Vector-Quantized (MQ) Tokenizer, involves quantizing the masked user/item representations learned from collaborative filtering into discrete tokens, thus achieving a smooth incorporation of high-order collaborative knowledge and a generalizable tokenization of users and items for LLM-based RecSys. Meanwhile, our generative retrieval paradigm is designed to efficiently recommend top-$K$ items for users to eliminate the need for the time-consuming auto-regressive decoding and beam search processes used by LLMs, thus significantly reducing inference time. Comprehensive experiments validate the effectiveness of the proposed methods, demonstrating that TokenRec outperforms competitive benchmarks, including both traditional recommender systems and emerging LLM-based recommender systems.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑