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

大型语言模型能够解释序列推荐器的隐空间

Large Language Model Can Interpret Latent Space of Sequential Recommender

Zhengyi Yang, Jiancan Wu, Yanchen Luo, Jizhi Zhang, Yancheng Yuan, An Zhang, Xiang Wang, Xiangnan He

AI总结:

本文提出RecInterpreter框架,通过轻量适配器和序列残差提示,使LLaMA等大语言模型能够解读基于ID的序列推荐器的隐空间表示,并实例化生成式推荐器输出的理想物品。

摘要:

序列推荐旨在根据用户与先前物品的交互历史,预测其下一个感兴趣的物品。在传统的序列推荐器中,一种常见的方法是使用离散ID对物品序列进行建模,学习能够编码序列行为并反映用户偏好的表示。受近期在赋予大型语言模型(LLMs)理解和推理多种模态数据(如图像、音频、3D点)方面取得的成功所启发,一个引人注目的研究问题随之而来:“LLMs能否理解并处理来自基于ID的序列推荐器的隐藏表示?”为回答这一问题,我们提出了一个简单的框架RecInterpreter,用于检验开源LLMs解读序列推荐器表示空间的能力。具体而言,利用多模态对(即交互序列的表示与文本叙述),RecInterpreter首先使用一个轻量级适配器将表示映射到LLM的token嵌入空间中。随后,它构建了一个序列恢复提示,鼓励LLM为交互序列中的物品生成文本描述。更进一步,我们提出了序列残差提示,通过对比在将残差物品整合进现有序列前后的表示,引导LLM识别该残差物品。实证结果表明,我们的RecInterpreter增强了示例LLM LLaMA理解来自基于ID的序列推荐器的隐藏表示的能力,尤其是在我们的序列残差提示引导下。此外,RecInterpreter使LLaMA能够实例化由生成式推荐器(如DreamRec)生成的神谕物品,将用户理想中希望下一个交互的物品具体化。代码可在https://github.com/YangZhengyi98/RecInterpreter获取。

英文摘要:

Sequential recommendation is to predict the next item of interest for a user, based on her/his interaction history with previous items. In conventional sequential recommenders, a common approach is to model item sequences using discrete IDs, learning representations that encode sequential behaviors and reflect user preferences. Inspired by recent success in empowering large language models (LLMs) to understand and reason over diverse modality data (e.g., image, audio, 3D points), a compelling research question arises: ``Can LLMs understand and work with hidden representations from ID-based sequential recommenders?''.To answer this, we propose a simple framework, RecInterpreter, which examines the capacity of open-source LLMs to decipher the representation space of sequential recommenders. Specifically, with the multimodal pairs (\ie representations of interaction sequence and text narrations), RecInterpreter first uses a lightweight adapter to map the representations into the token embedding space of the LLM. Subsequently, it constructs a sequence-recovery prompt that encourages the LLM to generate textual descriptions for items within the interaction sequence. Taking a step further, we propose a sequence-residual prompt instead, which guides the LLM in identifying the residual item by contrasting the representations before and after integrating this residual into the existing sequence. Empirical results showcase that our RecInterpreter enhances the exemplar LLM, LLaMA, to understand hidden representations from ID-based sequential recommenders, especially when guided by our sequence-residual prompts. Furthermore, RecInterpreter enables LLaMA to instantiate the oracle items generated by generative recommenders like DreamRec, concreting the item a user would ideally like to interact with next. Codes are available at https://github.com/YangZhengyi98/RecInterpreter.

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

↑