NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Learning to Reason for Multi-Step Retrieval of Personal Context in Personalized Question Answering

Maryam Amirizaniani, Alireza Salemi, Hamed Zamani

TL;DR

The paper introduces $PR^2$ (Personalized Retrieval-Augmented Reasoning), a reinforcement learning framework that embeds personal profile retrieval directly into an LLM's multi-step reasoning process. By optimizing multi-turn trajectories using Group Relative Policy Optimization (GRPO) and contrasting them against a non-personalized baseline, $PR^2$ learns exactly when and what to retrieve from a user's history. This approach yields a significant 8.8% to 12% relative improvement over state-of-the-art personalization methods on the LaMP-QA benchmark.

What Problem Does This Paper Address?

Personalized Question Answering (QA) requires systems to generate responses tailored to a user's unique background, preferences, and historical context. Current state-of-the-art methods typically rely on standard Retrieval-Augmented Generation (RAG). In these setups, the user's raw query is directly used to search their user profile, and the top results are stuffed into the prompt context.

The authors argue that this direct approach leads to "surface-level" personalization. For instance, if a user asks, "What's the best way to lose weight?", a direct keyword search of their profile might miss the mark. An effective personalized system needs to reason first—realizing it needs to know the user's dietary restrictions, occupation (to estimate activity levels), or medical history—and then issue targeted, multi-step queries to fetch that specific context. The core challenge is teaching an LLM how to dynamically interleave reasoning with profile retrieval.

Methods

The authors propose $PR^2$, which treats personalization as an iterative, tool-use reasoning problem optimized via Reinforcement Learning (RL).

1. Interleaved Retrieval-Reasoning Trajectories

Following recent trends in reasoning models (like Search-R1), $PR^2$ uses structured tags to manage its internal monologue and actions:

  • <think> and </think> for intermediate reasoning.
  • <search> and </search> to issue a query to the user profile retriever.
  • <information> and </information> to ingest the retrieved profile documents.
  • <answer> and </answer> to deliver the final personalized response.

2. GRPO Optimization with a Non-Personalized Baseline

Instead of standard PPO, which requires a memory-heavy critic model, $PR^2$ uses Group Relative Policy Optimization (GRPO). It samples a group of personalized trajectories for a given query and optimizes the policy based on their relative rewards.

Crucially, the authors introduce a non-personalized baseline trajectory ($\hat{y}_{\text{no-per}}$) into the advantage calculation. This baseline is generated by a reference LLM without any profile access. By comparing personalized rollouts directly against this non-personalized baseline, the model is heavily penalized if it overuses retrieval or relies on noisy, irrelevant personal data. It learns to apply personalization only when it genuinely improves answer quality.

Overview of the $PR^2$ optimization framework using GRPO.

3. Reward Modeling

Rewards are outcome-based. The final response is evaluated by an LLM judge (Qwen2.5-32B) against user-specific rubrics and narratives on a 0–2 scale, which is then rescaled to $[0, 1]$.

Datasets

The framework was trained and evaluated on LaMP-QA, a personalized long-form question answering benchmark. The dataset spans three diverse domains:

  • Art & Entertainment ("Art")
  • Lifestyle & Personal Development ("Lifestyle")
  • Society & Culture ("Society")

Each instance consists of a user query, a narrative detailing the specific information need, a user profile containing historical questions, and personalized evaluation rubrics.

Key Insights and Ideas

  • Reasoning Precedes Effective Retrieval: Personalization is not just a keyword-matching problem. The model must deduce what hidden dimensions of a user's lifestyle or history matter for the current question before it can fetch the right context.
  • The Power of Knowing When to Stop: Introducing a non-personalized baseline during RL training acts as a vital regularizer. It prevents the model from forcing irrelevant personal history into generic queries where personalization is unnecessary or detrimental.
  • Emergent Multi-Step Behavior: Training logs reveal that as the RL training progresses, models naturally learn to increase their retrieval frequency and response length, showing a clear progression in how effectively they exploit user context.
Training dynamics showing reward, average number of retrievals, and response length over 200 steps.

Key Results

The authors evaluated $PR^2$ across three open-source base models: Qwen2.5-3B, Qwen2.5-7B, and Gemma3-4B, comparing it against strong baselines like PrLM and HYDRA.

  • Consistent Performance Gains: $PR^2$ achieved the highest performance across all settings with statistical significance.
  • Qwen2.5-3B: Achieved an average score of 0.4812 (an 8.8% relative gain over the best baseline).
  • Qwen2.5-7B: Achieved an average score of 0.5256 (a 12.0% relative gain).
  • Gemma3-4B: Achieved an average score of 0.4952 (a 9.8% relative gain).
  • Ablation of the Baseline: Removing the non-personalized baseline from the GRPO advantage calculation caused performance to crater across all models (e.g., Qwen2.5-7B dropped from 0.5256 to 0.4736), proving its necessity for stable RL training.
  • Retrieval Density: Testing different retrieval counts ($k=1, 3, 5$) showed that $top\text{-}k=3$ struck the best balance between providing sufficient user context and avoiding distracting noise.

Limitations and Future Work

  • Computational Overhead: Multi-step reasoning and iterative retrieval loops inherently increase token consumption and inference latency.
  • LLM Judge Dependency: The reward signal relies entirely on an automated LLM judge (Qwen2.5-32B), which may introduce evaluation biases or noise compared to human ground truth.
  • Frozen Retriever: The framework uses a fixed, pre-trained retriever (Contriever). Jointly optimizing both the retriever and the reasoning policy via RL is highlighted as a promising future direction.

Summary updated

BibTeX
@inproceedings{amirizaniani2026learning,
  author = {Maryam Amirizaniani and Alireza Salemi and Hamed Zamani},
  title = {{Learning to Reason for Multi-Step Retrieval of Personal Context in Personalized Question Answering}},
  booktitle = {International ACM SIGIR Conference on Research and Development in Information Retrieval},
  year = {2026},
  doi = {10.1145/3805712.3809944},
}

Loading related content...

Figure