<scp>User-LLM:</scp> Efficient LLM Contextualization with User Embeddings
Large language models (LLMs) hold immense potential for personalized AI, but effectively incorporating user history for personalized responses remains challenging.Existing methods often convert user timelines into lengthy text descriptions, leading to high computational cost and potential loss of nuanced information.Inspired by the successful integration of LLMs with other modalities, such as images, we introduce User-LLM, a novel framework that treats user timelines as a distinct modality and leverages user embeddings for efficient LLM contextualization.User embeddings, generated by a pretrained user encoder, capture latent user behaviors and interests from diverse interaction data.By integrating these embeddings with LLMs through cross-attention, User-LLM enables LLMs to dynamically adapt their responses to individual user history.Our evaluation on three diverse datasets (MovieLens, Amazon Review, and Google Local Review) demonstrates that User-LLM achieves substantial computation reduction (up to 78.1X) compared to text-prompt-based methods, without sacrificing performance.Importantly, User-LLM maintains or even improves performance on tasks requiring deep user understanding, particularly with long user histories, highlighting its effectiveness in efficiently capturing and leveraging user information for personalized responses.
Authors
- Lin Ning (ORCID: https://orcid.org/0000-0001-9458-7946)
- Jun Xie
- Bradley Green (ORCID: https://orcid.org/0000-0001-9589-0226)
- Sushant Prakash (ORCID: https://orcid.org/0009-0000-4162-4600)
- Luyang Liu (ORCID: https://orcid.org/0000-0002-9002-3788)
- Shawn O’Banion (ORCID: https://orcid.org/0000-0003-3950-6474)
- Devora Berlowitz
- Neo Wu (ORCID: https://orcid.org/0000-0003-2389-9584)
- Jiaxing Wu (ORCID: https://orcid.org/0000-0003-1966-4328)
Institutions
- Google (United States) (US)
- Seattle University (US)
Publication Details
- Published
- 2025-05-08
- DOI
- https://doi.org/10.1145/3701716.3715463
- Citations
- 15
- Primary Topic
- Natural Language Processing Techniques
- Type
- article
- Field-Weighted Citation Impact
- 37.21