Introduction
Retrieval-Augmented Generation (RAG) has fundamentally changed how Large Language Models (LLMs) interact with external information. However, most current RAG systems suffer from a "one-size-fits-all" limitation. They typically employ generic query expansion techniques—generating hypothetical answers or related terms—that ignore the specific preferences, history, and linguistic style of the individual user. This paper introduces Personalize Before Retrieve (PBR), a framework that tailors the retrieval process to the user's unique context, resulting in significant improvements in retrieval accuracy.
The Problem: The Semantic Gap in Generic Retrieval
The authors identify that a single query can carry vastly different intents depending on the user. For instance, a query about "dietary preferences" might signal a search for organic ingredients for one user, while for another, it might imply a search for new recipes. Standard RAG systems struggle with two core challenges:
- Diverse Expression Styles: Users have unique ways of phrasing queries, ranging from minimalist to highly detailed.
- Heterogeneous Semantic Structures: Every user's private corpus (history, notes, or past chats) is organized differently. Generic search queries often fail to "anchor" onto the specific themes within these unique data structures.
The PBR Framework
The PBR framework addresses these challenges by incorporating user-specific signals before the retrieval step occurs. It is composed of three primary modules:
1. Personal Style-Aligned Pseudo Relevance Feedback (P-PRF)
Instead of generating a generic "pseudo-answer," P-PRF analyzes the user’s history to simulate their specific voice. It generates two key components:
- Pseudo-utterances: Predictions of how the user would likely phrase the query.
- Pseudo-reasoning: The logical steps the user might take to arrive at an answer.
2. Personal Structure-Aligned Semantic Anchoring (P-Anchor)
This module treats the user's history as a semantic graph rather than a flat list. Using a personalized PageRank algorithm, P-Anchor identifies "anchor points"—central themes or topics specific to that user's data. This grounding ensures the expanded query remains relevant to the actual structure of the user's information, preventing "semantic drift."
3. PBR Fusion
PBR Fusion acts as the integration layer. It combines the original query, the stylistic signals from P-PRF, and the structural anchors from P-Anchor. Using a dynamic weighting system, it produces a high-dimensional query embedding optimized for searching that specific user's private corpus.
Experimental Evaluation
The researchers evaluated PBR on two specialized benchmarks:
- PersonaBench: A dataset simulating users with synthetic private data (preferences, behaviors, demographics) to test how models resolve ambiguous queries.
- LongMemEval: A large-scale dataset focused on long-term interactive memory, featuring both sparse (LongMemEval-s) and dense (LongMemEval-m) history versions.
Key Results
PBR consistently outperformed established baselines such as HyDE (Hypothetical Document Embeddings) and ThinkQE across various retrieval models (e.g., MiniLM, BGE).
- Performance Gains: PBR achieved up to 10% improvements in retrieval performance (Recall@5 and NDCG@5) on PersonaBench.
- Precision in Dense Data: On the challenging LongMemEval-m dataset, PBR showed significant improvements in top-1 precision (R@1), demonstrating its ability to find specific information within dense historical data.
- Operational Efficiency: Despite the sophisticated expansion steps, PBR only adds approximately 0.18 seconds of latency compared to other advanced expansion methods, making it a viable candidate for real-time applications.
Insights and Future Directions
The success of PBR highlights that capturing how a user expresses themselves is as critical as the substance of the query itself. By recognizing that a user's history has a unique "shape," the framework prevents the retrieval process from wandering into irrelevant data.
While PBR excels at query-based retrieval, the authors note several areas for future work, including generalizing the framework for proactive recommendations and addressing the computational costs associated with LLM-based generation. Additionally, as with all personalized systems, implementing robust privacy-preserving measures remains a priority for production environments.
Summary updated