TL;DR
Traditional Retrieval-Augmented Generation (RAG) systems treat every user identically, ignoring individual context, expertise, and preferences. This paper introduces PersonaRAG, a multi-agent framework that dynamically personalizes both the retrieval and generation phases using real-time user interaction data. By orchestrating specialized agents through a global message pool, PersonaRAG delivers highly tailored, context-aware answers, outperforming standard RAG baselines by over 10% on benchmark datasets.
What Problem Does This Paper Address?
While Large Language Models (LLMs) are powerful, they frequently suffer from hallucinations and outdated knowledge. Retrieval-Augmented Generation (RAG) mitigates this by grounding LLM responses in external documents. However, standard RAG pipelines are completely static and impersonal: a query from a domain expert receives the exact same document mix and explanation style as a query from a layperson.
This lack of personalization often leads to noisy, irrelevant, or poorly calibrated responses. Existing personalization techniques in information retrieval haven't translated smoothly into generative AI workflows. The authors address this gap by creating a framework that adapts to real-time user profiles, session contexts, and implicit/explicit feedback loops.
Methods
PersonaRAG replaces the passive, one-shot retrieval pipeline with a dynamic, three-step multi-agent architecture:
- Retrieval: Initial document fetching using a standard BM25 sparse retriever.
- User Interaction Analysis: Five specialized agents collaborate via a Global Message Pool to analyze the user's context:
- User Profile Agent: Tracks historical preferences and engagement metrics (e.g., click-through rates).
- Contextual Retrieval Agent: Refines search queries and prioritizes results based on the user profile.
- Live Session Agent: Captures immediate, real-time needs within the current search session.
- Document Ranking Agent: Re-scores and re-ranks retrieved documents by combining historical and session data.
- Feedback Agent: Gathers implicit (time spent) and explicit (ratings) user feedback to continuously update the ranking algorithms.
- Cognitive Dynamic Adaptation: A final Cognitive Agent takes an initial Chain-of-Thought response and refines it using the aggregated insights from the Global Message Pool, tailoring the tone, complexity, and content to the user's specific persona.
Datasets
The framework was evaluated on three widely used single-hop question-answering benchmarks:
- NaturalQuestions (NQ): Sourced from real Google search queries, annotated with Wikipedia pages containing long and short answers.
- TriviaQA: Question-answer pairs collected from trivia and quiz-league websites.
- WebQuestions (WebQ): Questions generated via the Google Suggest API, with answers mapped to Freebase entities.
Note: Due to the high API token costs associated with multi-agent frameworks, the authors randomly sampled 500 questions from each dataset to form their experimental subsets.
Key Insights and Ideas
- Smart Context Beats Raw Data Volume: While traditional RAG models scale up in accuracy when fed more documents (e.g., moving from Top-3 to Top-5), PersonaRAG maintains high, stable performance with just 3 passages. The specialized agents filter out the noise, proving that intelligent context management is more effective than simply increasing the retrieval window.
- Personalization Drives Stylistic Alignment: Post-hoc analyses of sentence length and syllable counts showed that PersonaRAG successfully adjusts the linguistic complexity of its answers based on user profiles. It moves beyond simple text summarization to true stylistic adaptation (e.g., adopting a playful, rhythmic tone if the user profile suggests an interest in hip-hop culture).
- Cognitive Frameworks Aid Model Generalization: When tested on open-source models (LLaMA3-70B and MoE-8x7b), PersonaRAG acted as an effective "instructor," guiding these smaller models to select and synthesize relevant knowledge much better than standard RAG setups.
Key Results
- WebQuestions (WebQ): PersonaRAG achieved an accuracy of 63.46% (Top-3) and 67.50% (Top-5), outperforming vanilla RAG by 25% and 17.36% respectively.
- NaturalQuestions (NQ): Maintained robust performance with 49.02% accuracy, outperforming all baseline models except for Top-5 Chain-of-Thought and Self-Rerank.
- Model Generalization: Delivered notable accuracy boosts of over 8% for LLaMA3-70B and over 10% for MoE-8x7b across all datasets compared to standard RAG baselines.
Limitations and Future Work
- Latency and API Costs: Because PersonaRAG relies on multiple specialized agents making sequential and parallel LLM calls, it introduces significant time latency and high API token costs per query.
- Prompt Length: The input prompts become exceptionally long due to the inclusion of extensive retrieved passages, historical user profiles, and real-time session logs.
- Future Directions: The authors plan to optimize the framework by compressing user profiles and retrieved documents to minimize token usage. They also aim to explore new agent types capable of capturing more nuanced writing styles and searcher characteristics.
Summary updated