SaliMory: Orchestrating Cognitive Memory for Conversational Agents

Kai Zhang, Xinyuan Zhang, Hongda Jiang, Shiun-Zu Kuo, Hyokun Yun, Ejaz Ahmed, Shereen Oraby, Ziyun Li, Sanat Sharma, Ann Lee, Ahmed A Aly, Anuj Kumar, Raffay Hamid, Xin Luna DongarXiv 2026

TL;DR

SaliMory is an agentic memory-management framework that structures conversational memory into distinct stores for user facts, preferences, and short-term working memory. By introducing a hierarchical, stage-wise process reward system and reward-decomposed contrastive reinforcement learning, it successfully overcomes the credit assignment bottleneck inherent in multi-stage memory pipelines, doubling personalization quality while drastically reducing latency.

What Problem Does This Paper Address?

For conversational AI to act as a lifelong companion, it must maintain a persistent memory across long interaction histories. However, standard approaches like expanding the context window or relying purely on Retrieval-Augmented Generation (RAG) introduce significant noise, irrelevance, and repetitive outputs.

While active memory compression and curation frameworks exist, training them via Reinforcement Learning (RL) introduces a severe credit assignment bottleneck. In a multi-stage memory pipeline (filtering, updating, retrieving, and generating), a monolithic final reward based only on the final answer cannot determine where a failure occurred. Did the agent fail to filter out noise, did it store a vague memory, or did it fail to retrieve the right context at runtime? As a result, imprecise or incomplete memory formation remains the primary bottleneck for state-of-the-art conversational agents.

Gated error attribution on LoCoMo

Methods

SaliMory addresses this by mimicking human cognitive memory structures and introducing fine-grained RL supervision:

  1. Cognitively Inspired Memory Architecture: Memory is split into three dedicated stores:
  2. Factual Snapshot ($F$): Objective, verifiable statements about the user (e.g., allergies).
  3. Preference Bank ($P$): Subjective tastes that act as soft criteria for stylistic tailoring.
  4. Working Memory ($W$): A sliding window of recent salient conversational details.
  5. Two-Stage Pipeline:
  6. Offline Stage: A Saliency Filter drops transient noise, and a memBooster incrementally updates the factual and preference stores.
  7. Runtime Stage: A memUtilizer synthesizes relevant entries into a query-adapted profile, which conditions a completely frozen downstream LLM generator ($\pi_{gen}$).
  8. Stage-Wise Process Reward System: Instead of a single outcome reward, SaliMory decomposes feedback into three dense, hierarchical process rewards:
  9. Response Quality ($R_1$): Uses a strict multiplicative gate ($R_1 = \alpha \cdot (1 + \lambda_p \cdot p)$) ensuring personalization ($p$) is only rewarded if the underlying answer is factually accurate ($\alpha$).
  10. Memory Quality ($R_2$): Evaluates factuality and vagueness, applying an asymmetric penalty to ensure the model learns it is better to omit a marginal memory than to encode a vague one.
  11. Utilization and Filter Quality ($R_3$): Evaluates how well the runtime profile captures constraints without distractors.
  12. Reward-Decomposed Contrastive Learning: To completely resolve intra-episode credit assignment within Group Relative Policy Optimization (GRPO), SaliMory constructs role-specific preference pairs. For example, the utilizer's contrastive pairs are isolated using a causal gating mechanism based on Jaccard similarity, ensuring it is only rewarded for its synthesis ability rather than inheriting high-quality upstream memories by luck.
SaliMory framework overview

Datasets

The authors evaluated SaliMory across multiple benchmarks:

  • LoCoMo: A standard long-term conversational memory benchmark.
  • LoCoMo-P13n: A new dataset introduced in this paper that extends LoCoMo by adding 1,108 QA pairs (42% of the total) specifically targeting recommendation and implicit personalization.
  • LongMemEval (LongMemEval-m / LongMemEval-s): Used to test long-context memory capabilities.
  • Internal Real-World Dataset: Composed of real-world Chat AI traffic spanning 28 days of history to validate generalizability.

Key Insights and Ideas

  • Accuracy Gates Personalization: Personalization is a double-edged sword; "decorating" a hallucinated or incorrect answer with personal details makes it worse. The multiplicative reward gate forces the model to prioritize core accuracy before attempting personalization.
  • Vagueness is Toxic: Vague memories (e.g., storing "User likes food" instead of "User loves Thai curry") act as retrieval noise that displaces useful entries at runtime. The asymmetric penalty successfully forces the model to maintain actionable specificity.
  • Division of Cognitive Labor: Isolating the memory banks reveals their distinct roles. Working memory primarily drives QA accuracy, while the preference bank drives rich personalization. Crucially, active context construction (the adapted profile) is strictly superior to raw retrieval.
Impact of memory types on QA accuracy and personalization

Key Results

  • State-of-the-Art Performance: Built on a compact 9B parameter backbone (Qwen3.5-9B-Instruct), SaliMory achieved 72.9% end-to-end accuracy on LoCoMo, outperforming the previous best learnable memory method (Mem-R1) by 10.2%.
  • Personalization Leap: SaliMory more than doubled the Good Personalization rate to 39.8% (compared to Mem-R1's 16.3%) and nearly eradicated bad/intrusive personalization.
  • Massive Efficiency Gains: By deliberately filtering context offline, SaliMory achieved a 76× speedup in memory formation latency (dropping from 38 seconds to 0.5 seconds per episode) and a 5× reduction in runtime inference latency (0.26s vs 1.2s) compared to zero-shot agentic baselines.

Limitations and Future Work

  • Dependence on LLM Judges: The framework relies heavily on proprietary, large LLMs (like GPT-4o) to serve as reward judges during RL training. This bounds the training signal to the judge's inherent biases and evaluation capabilities, while API calls can impact training stability.
  • Sequential Bottleneck: The memBooster must process salient conversation turns sequentially because each update depends on the state inherited from the previous turn. This linear scaling creates a computational bottleneck when deploying to users with thousands of turns of history, which batch parallelization cannot easily resolve.

Summary updated

BibTeX
@misc{zhang2026salimory,
  author = {Kai Zhang and Xinyuan Zhang and Hongda Jiang and Shiun-Zu Kuo and Hyokun Yun and Ejaz Ahmed and Shereen Oraby and Ziyun Li and Sanat Sharma and Ann Lee and Ahmed A Aly and Anuj Kumar and Raffay Hamid and Xin Luna Dong},
  title = {{SaliMory: Orchestrating Cognitive Memory for Conversational Agents}},
  year = {2026},
  eprint = {2606.04120},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2606.04120},
}
Figure