TL;DR
This paper introduces RUMS, a novel method for personalizing Large Language Models (LLMs) by intelligently selecting relevant user memory items for prompts. Instead of relying on simple keyword matching, RUMS uses an information-theoretic approach to measure how much memory items reduce response uncertainty, leading to more accurate and efficient personalization with significant cost savings.
What Problem Does This Paper Address?
Personalizing LLMs for individual users is crucial for user satisfaction. A common approach is to include a subset of a user's memory (e.g., past interactions, preferences) in the prompt to guide the LLM's response. However, existing methods often select these memory items based on simple semantic similarity to the current query. This can be inefficient, as it might include irrelevant information that degrades performance or miss crucial, non-obvious details. The challenge is to select memory items that genuinely improve the LLM's output quality and relevance, rather than just matching keywords.
Methods
The core of RUMS is Response-Utility optimization for Memory Selection (RUMS). It has two main components:
- RUMS-Utility: This is a novel utility function that quantifies how much a subset of user memory reduces the LLM's response uncertainty. It uses an information-theoretic framework, specifically measuring the conditional mutual information between candidate memory subsets and the model's output distribution given the input query. The intuition is that memory items that sharpen the model's predictions (reduce entropy) are more valuable for personalization.
- RUMS-Model: Since computing RUMS-Utility for all possible memory subsets is computationally expensive, RUMS-Models is a lightweight, trained classifier (based on DeBERTa) that approximates this utility calculation at inference time. It's trained offline using data generated by RUMS-Utility.
This approach moves beyond simple semantic similarity by focusing on the impact of memory items on the LLM's output distribution, not just their relevance to the input query.
Datasets
The paper uses a combination of synthetic and real-world datasets:
- PersonaFeedback: A synthetic dataset of user queries designed to benefit from personalization.
- FreebaseQA: A dataset of trivia-style questions and answers, used to represent non-personalized inputs.
- WildChat: A large-scale collection of real-world ChatGPT interactions, filtered for English, non-toxic conversations.
For training RUMS-Models, they generated user profiles using GPT-4, creating a diverse set of memory items and consistent user profiles.
Key Insights and Ideas
- Response-Awareness is Key: The most significant insight is that focusing on how memory items affect the LLM's output distribution (i.e., reduce uncertainty) is a more reliable signal for personalization than simple semantic similarity to the input query.
- Information Theory as a Proxy for Utility: RUMS leverages information theory (entropy reduction) as a principled way to estimate user utility, demonstrating a theoretical link between predictive entropy and expected user utility.
- Lightweight Models for Scalability: The development of RUMS-Models shows that a smaller, trained model can effectively learn to approximate the complex utility function, making personalized LLMs scalable and cost-efficient.
- Human Alignment: RUMS-selected memory items show a stronger alignment with human judgments compared to existing methods, suggesting it captures a more human-centric notion of personalization.
Key Results
- Improved Personalization: RUMS-selected memory subsets align more closely with human annotations than state-of-the-art baselines.
- Better Response Quality: Memory items selected using RUMS lead to better response quality, outperforming baselines and even much larger models (like GPT-4 Few-Shot) in terms of win rates.
- Significant Cost Reduction: RUMS achieves up to a 95% reduction in computational cost compared to other methods, making personalized LLMs more practical for widespread deployment. For example, RUMS-Binary costs $6.9K/month compared to $165.3K for an "All items" baseline.
- Robustness: RUMS-Utility effectively distinguishes between personalized and non-personalized inputs, with a high Jensen-Shannon divergence score.
- Efficiency: RUMS-Models are comparable in inference speed to simple similarity-based retrieval methods.
Limitations and Future Work
- Approximation Gap: While RUMS-Models performs well, there's a slight approximation gap between the raw RUMS-Utility and the learned RUMS-Models, particularly on out-of-distribution datasets.
- Human Subjectivity: Memory selection for personalization can be subjective, and RUMS-Utility sometimes selects items that at least one human selected but not all, indicating a more conservative approach.
- Future Work: The authors suggest extending RUMS to multi-turn conversations, enhancing user profile generation, and evaluating across a broader range of LLMs. They also explored adaptive thresholds per user, finding it didn't significantly improve results over a global threshold, but noted it could be tuned.
Summary updated