arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2501.15087cs.IR
收藏

面向高效大语言模型推荐的多粒度Patch训练

Multi-Grained Patch Training for Efficient LLM-based Recommendation

Jiayi Liao, Ruobing Xie, Sihang Li, Xiang Wang, Xingwu Sun, Zhanhui Kang, Xiangnan He

AI总结:

针对大语言模型推荐受上下文长度限制难以建模长用户历史的问题,提出多粒度Patch训练方法PatchRec,通过预训练和微调两阶段让模型适配聚合嵌入并捕捉时间重要性,实现更高效的长行为历史推荐建模。

摘要:

大语言模型(LLM)通过将用户交互过的物品历史转化为语言建模任务,已成为推荐系统的新范式。然而受LLM有限上下文长度的制约,现有方法不得不截断提示词中的物品历史,仅关注近期交互,牺牲了对长期历史的建模能力。为使LLM能够建模长历史,我们研究了物品和会话的简洁嵌入表示方法:在LLM嵌入空间中,通过聚合物品的文本词元嵌入构建物品嵌入;同理,通过聚合会话内的物品嵌入构建会话嵌入。该方法虽高效,但存在两大挑战:一是忽略了用户交互的时间重要性,二是LLM无法原生理解我们自定义的嵌入。为解决这些问题,我们提出PatchRec——一种包含两个阶段的多粒度patch训练方法:(1)Patch预训练,让LLM熟悉聚合后的嵌入即patch;(2)Patch微调,使LLM能够捕捉交互历史中感知时间的重要性。大量实验表明,PatchRec能有效建模更长的行为历史,同时提升效率。本研究为LLM在长行为历史建模中的实际应用提供了助力。代码可在https://github.com/ljy0ustc/PatchRec获取。

英文摘要:

Large Language Models (LLMs) have emerged as a new paradigm for recommendation by converting interacted item history into language modeling. However, constrained by the limited context length of LLMs, existing approaches have to truncate item history in the prompt, focusing only on recent interactions and sacrificing the ability to model long-term history. To enable LLMs to model long histories, we pursue a concise embedding representation for items and sessions. In the LLM embedding space, we construct an item's embedding by aggregating its textual token embeddings; similarly, we construct a session's embedding by aggregating its item embeddings. While efficient, this way poses two challenges since it ignores the temporal significance of user interactions and LLMs do not natively interpret our custom embeddings. To overcome these, we propose PatchRec, a multi-grained patch training method consisting of two stages: (1) Patch Pre-training, which familiarizes LLMs with aggregated embeddings -- patches, and (2) Patch Fine-tuning, which enables LLMs to capture time-aware significance in interaction history. Extensive experiments show that PatchRec effectively models longer behavior histories with improved efficiency. This work facilitates the practical use of LLMs for modeling long behavior histories. Codes are available at https://github.com/ljy0ustc/PatchRec.

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

↑