arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2402.13598cs.CLcs.AIcs.LG
收藏

User-LLM:利用用户嵌入实现高效的 LLM 情境化

User-LLM: Efficient LLM Contextualization with User Embeddings

Google DeepMind(谷歌DeepMind);Google(谷歌)

Lin Ning, Luyang Liu, Jiaxing Wu, Neo Wu, Devora Berlowitz, Sushant Prakash, Bradley Green, Shawn O'Banion, Jun Xie

AI总结:

本文提出 User-LLM 框架,通过自监督用户编码器和交叉注意力直接注入用户历史嵌入,相比文本提示最高提速 78.1 倍、性能提升 16.33%。

摘要:

大语言模型(LLM)已在多个领域取得显著成功,但如何将复杂且可能含噪的用户时间线数据有效纳入 LLM 仍是一项挑战。现有方法通常需要先把用户时间线转换为文本描述,再输入 LLM,这不仅效率较低,也可能无法充分捕捉用户行为的细微差别。受 LLM 通过直接嵌入与图像有效整合的启发,我们提出 User-LLM,这是一种利用用户嵌入、直接依据用户历史交互为 LLM 提供情境信息的新颖框架。这些嵌入由用户编码器生成;该编码器在多样化用户交互上通过自监督学习预训练,可捕捉潜在的用户行为和兴趣,以及它们随时间的演变。我们通过交叉注意力将这些用户嵌入与 LLM 整合,使 LLM 能够根据用户过去行为和偏好的情境动态调整其回复。我们的方法通过将用户时间线直接表示为嵌入获得显著效率提升,推理速度最高加快达 78.1 倍。在 MovieLens、Amazon Review 和 Google Local Review 数据集上的综合实验表明,在需要深入理解用户的任务上,User-LLM 优于基于文本提示的情境化方法,提升最高达 16.33%,尤其擅长处理可捕捉用户行为细微变化的长序列。此外,引入 Perceiver 层简化了用户编码器与 LLM 之间的整合,并带来额外的计算节省。

英文摘要:

Large language models (LLMs) have achieved remarkable success across various domains, but effectively incorporating complex and potentially noisy user timeline data into LLMs remains a challenge. Current approaches often involve translating user timelines into text descriptions before feeding them to LLMs, which can be inefficient and may not fully capture the nuances of user behavior. Inspired by how LLMs are effectively integrated with images through direct embeddings, we propose User-LLM, a novel framework that leverages user embeddings to directly contextualize LLMs with user history interactions. These embeddings, generated by a user encoder pretrained using self-supervised learning on diverse user interactions, capture latent user behaviors and interests as well as their evolution over time. We integrate these user embeddings with LLMs through cross-attention, enabling LLMs to dynamically adapt their responses based on the context of a user's past actions and preferences. Our approach achieves significant efficiency gains by representing user timelines directly as embeddings, leading to substantial inference speedups of up to 78.1X. Comprehensive experiments on MovieLens, Amazon Review, and Google Local Review datasets demonstrate that User-LLM outperforms text-prompt-based contextualization on tasks requiring deep user understanding, with improvements of up to 16.33%, particularly excelling on long sequences that capture subtle shifts in user behavior. Furthermore, the incorporation of Perceiver layers streamlines the integration between user encoders and LLMs, yielding additional computational savings.

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

↑