Memory Retrieval for Changing Preferences

Yuehan Qin, Li Li, Linxin Song, Wei Yang, Yuqing Yang, Yue Zhao

TL;DR

Researchers from USC have developed a new framework for personalized memory retrieval that moves beyond simple "semantic similarity." By using a Bayes factor to measure the actual utility of historical dialogue turns, their system learns to ignore topically related but outdated information, significantly outperforming existing methods on long-context tasks where user preferences evolve over time.

What Problem Does This Paper Address?

Standard Retrieval-Augmented Generation (RAG) systems usually rely on semantic embeddings: they look for past interactions that "look like" the current query. However, in personalized AI, topical similarity is often a trap.

Imagine a user who spent weeks discussing digital music remixes but recently shifted their interest to nature soundscapes. If they ask for a "creative weekend getaway," a standard system might retrieve the older, more frequent digital music turns because they share keywords like "creative" and "music." This leads to a recommendation that is topically related but no longer useful.

The authors argue that memory retrieval should be framed as utility estimation: a memory turn should only be retrieved if it provides incremental evidence that helps the model predict the correct response.

Figure 1: Illustration of retrieval methods for personalization memory. Given a generic recommen- dation request, semantic embedding retrieval returns surface-similar but evidentially uninformative turns (e.g., abstract self-reflections about creativity), leading the LLM to a generic recommendation. Our Bayes Factor-based retrieval instead locates the user’s recent preference shift toward nature recording, enabling the LLM to produce the correct preference-aligned recommendation.

Methods

The authors propose a two-stage Bayesian framework to identify "evidential utility":

  1. Answer-Conditioned Saliency ($Sal_a$): During training, the model calculates a log Bayes factor for each historical turn. This measures how much the likelihood of the correct answer improves when that specific turn is added to the context. This serves as the "gold standard" or oracle signal.
  2. Query-Conditioned Proxy ($Sal_q$): Since the correct answer isn't known at inference time, the model uses the query itself as a proxy. It measures how much a memory turn increases the likelihood of the incoming query.
  3. Threshold-Gated Memory: Instead of always retrieving the top-K turns, the system uses a learned "controller" to decide if memory should be accessed at all. If no historical turns meet a specific utility threshold, the gate stays closed to prevent injecting noisy or irrelevant context.

Finally, the authors use Supervised Fine-Tuning (SFT) to train a Controller and a Reader jointly. The Controller learns to internalize the Bayes factor logic, allowing it to select high-utility turns at inference time without needing the "gold" answer.

Figure 2: Illustration of threshold-gated memory access. Although both memory turns are seman- tically related to the user query, only the lower example provides evidence that materially changes the model’s belief about the appropriate response, resulting in a higher Sala score and activation of memory-guided reasoning.

Datasets

The framework was evaluated on four heterogeneous benchmarks designed to test different aspects of memory:

  • MemBench-Low: Tests explicit recall of facts.
  • MemBench-High: Requires implicit inference and reasoning over memory.
  • PersonaMem: Evaluates personalized responses under evolving user profiles.
  • PrefEval: Focuses on user-preference recall.

Key Insights and Ideas

  • Topicality $\neq$ Utility: Semantic similarity measures surface-level overlap, but the Bayes factor measures information gain. As shown in Figure 3, embedding-based signals (like BGE) often peak on "irrelevant-but-similar" turns, whereas the Bayes factor ($Sal_a$) successfully isolates "sparse-but-important" evidence.
  • Gating is Essential: Always-on retrieval can degrade performance by introducing noise. The discrete gating mechanism allows the model to fall back to query-only answering when the history offers no useful evidence.
  • Internalizing the Signal: The authors found that simply using the Bayes factor at inference isn't enough; the model must be fine-tuned on these saliency labels to truly "understand" which turns are decision-relevant.
Figure 4: Per-benchmark comparison of retrieval signals over a single conversation. BGE peaks Irrelevant-but-similar tend to land on turns that are lexically aligned with the query but carry no evidence for the gold answer, whereas Sala peaks Sparse-but-important concentrate on the few turns that actually shift the best answer likelihood.

Key Results

The proposed method achieved the best overall performance across all benchmarks, using both Qwen and Llama backbones.

  • Massive Gains: Using Qwen3.5-9B-Thinking, the method reached an average accuracy of 84.94%, outperforming the strongest baseline (MemoryBank at 65.64%) by nearly 20 points.
  • Efficiency: Remarkably, the method outperformed "Full Context" (passing every single turn to the model) while using significantly fewer tokens. This proves that selective memory is better than total memory.
  • Sub-category Wins: The gains were most pronounced in "inference-heavy" tasks. In some sub-categories of PersonaMem and MB-Low, the method outperformed baselines by 40 to 77 absolute points.
Figure 3: Sub-category breakdown across four benchmarks. Accuracy of Mem0, RMM, and our method on twelve representative sub-categories;three per benchmark, drawn from MB-High, Person- aMem, PrefEval, and MB-Low. Sub-categories are selected to span the regimes where preference evidence is implicit (PersonaMem dating/music consultation, PrefEval implicit-choice), aggregated across scattered turns (MB-Low Aggregative/events, Comparative/roles), or buried in long context (MB-High Preference/{book,food}, Emotion). Our method outperforms the stronger baseline by 20 to 77 absolute points on every selected sub-category.

Limitations and Future Work

  • Scoring Model Dependency: The saliency signals are currently computed using a relatively small model (Qwen 0.8B). While effective, the quality of retrieval is capped by this model's reasoning capabilities.
  • User-Only Memory: The current formulation only considers user turns in the history, excluding the assistant's previous responses. This limits its use in highly interactive, multi-turn collaborative environments.
  • Training Cost: The framework requires supervised fine-tuning with a jointly trained controller and reader, which is more computationally expensive than "plug-and-play" embedding retrieval.

Summary updated

BibTeX
@inproceedings{qin2026memory,
  author = {Yuehan Qin and Li Li and Linxin Song and Wei Yang and Jiate Li and Yuqing Yang and Yue Zhao},
  title = {{Memory Retrieval for Changing Preferences}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2026},
  url = {https://openreview.net/forum?id=9IKtbR4EmY},
}
Figure