Personalize Before Retrieve: LLM-based Personalized Query Expansion for User-Centric Retrieval

Yingyi Zhang, Pengyue Jia, Derong Xu, Xianneng Li, Yichao Wang, Wenlin Zhang, Xiaopeng Li, Weinan Gan, Huifeng Guo, Yong Liu, Xiangyu Zhao

TL;DR

Standard Retrieval-Augmented Generation (RAG) often fails in personalized settings because it uses "one-size-fits-all" query expansion. This paper introduces Personalize Before Retrieve (PBR), a framework that tailors queries to a user's specific linguistic style and the unique semantic structure of their personal history, leading to a 10% performance boost over state-of-the-art baselines.

What Problem Does This Paper Address?

Retrieval-Augmented Generation (RAG) has become the standard for grounding LLMs in external data. To improve retrieval, systems often use Query Expansion (QE)—generating hypothetical answers or related terms to better match the document index.

However, the authors identify a "representational rigidity" in current QE methods. Most systems assume a global, generic context. If two different users ask, "How would you describe my dietary preferences?", a standard system might generate a generic health-conscious response for both. In reality, one user’s history might be full of organic vegan recipes, while the other’s is dominated by keto meal prep.

The paper tackles two core challenges:

  1. Diverse Expression Styles: Users describe things differently (e.g., some are brief, others are verbose and logical).
  2. Heterogeneous Semantic Structures: Every user’s personal "corpus" (their history) has a different topical "center of gravity." Without anchoring the query to this specific structure, expanded queries often drift into irrelevant territory.

Methods

The PBR framework operates in two main stages before the final retrieval happens:

1. P-PRF (Personal Style-Aligned Pseudo Relevance Feedback)

Instead of asking an LLM to "expand this query," PBR asks it to "expand this query as this specific user." * Rough Simulation: It generates multiple "pseudo-utterances" that mimic the user’s tone and phrasing based on a retrieved subset of their history. * Logical Simulation: It generates a step-by-step reasoning path to uncover the implicit intent behind the user's query.

2. P-Anchor (Personal Structure-Aligned Semantic Anchoring)

To prevent the query from drifting, PBR grounds it in the user's actual data structure.

  • Graph Construction: It builds a semantic graph where nodes are past interactions and edges represent similarity.
  • PageRank Weighting: It uses a PageRank-style algorithm to identify "anchor points"—the most central and representative themes in that specific user's history.

3. PBR Fusion

Finally, the system uses a dynamic weighting mechanism. It calculates how much to trust the stylistic expansion versus the structural anchors based on the query's specific context, creating a final personalized query embedding ($q^*$) for retrieval.

Datasets

The authors evaluated PBR on two benchmarks designed for personalized RAG:

  • PersonaBench: A dataset simulating 6 users with distinct explicit and implicit traits (e.g., social preferences, specific knowledge bases). It focuses on resolving ambiguous, intent-heavy queries.
  • LongMemEval: A large-scale factual QA benchmark (500 queries) paired with long-term memory corpora. This tests the system's ability to find "needles in haystacks" within long-horizon personal histories.

Key Insights and Ideas

  • Style is a Retrieval Signal: The way a user asks a question is often as informative as the question itself. By mimicking user style (P-PRF), the system creates a "semantic bridge" to the way information is likely stored in their personal history.
  • The "Center of Gravity" Matters: Every user's data has a unique shape. P-Anchor acts as a stabilizer, ensuring that even if the LLM's expansion is creative, the final search stays tethered to the user's actual topical interests.
  • Personalization is a Pre-Retrieval Task: Most RAG research focuses on better reranking after retrieval. This paper argues that the "semantic gap" is best closed before the search even starts by refining the query itself.

Key Results

  • Superior Performance: PBR consistently outperformed strong baselines like HyDE and ThinkQE. On PersonaBench, it achieved up to a 10% gain in retrieval accuracy (R@5 and N@5) across different embedding backbones (MiniLM, BGE).
  • Robustness: The method showed significant gains regardless of the underlying retriever model used, suggesting that the personalized expansion is a "model-agnostic" improvement.
  • Ablation Success: Removing either the stylistic (P-PRF) or structural (P-Anchor) component led to performance drops, proving that both "how you say it" and "what you've said before" are essential for true personalization.

Limitations and Future Work

  • Computational Cost: Generating multiple pseudo-utterances and reasoning paths requires multiple LLM calls, which increases latency and API costs compared to simple retrieval.
  • Graph Scalability: While P-Anchor works well for individual user histories, the authors note that very large or extremely sparse histories might require more efficient graph propagation techniques.
  • Generalization: The current work focuses on personal history retrieval. Future work could explore how to generalize these "personal anchors" to broader information-seeking tasks where user preferences are more subtle.

Summary updated

BibTeX
@inproceedings{zhang2026personalize,
  author = {Yingyi Zhang and Pengyue Jia and Derong Xu and Yi Wen and Xianneng Li and Yichao Wang and Wenlin Zhang and Xiaopeng Li and Weinan Gan and Huifeng Guo and Yong Liu and Xiangyu Zhao},
  title = {{Personalize Before Retrieve: LLM-based Personalized Query Expansion for User-Centric Retrieval}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2026},
  doi = {10.1609/aaai.v40i19.38679},
}
Figure