AdaMem: Learning What to Remember with Adaptive Memory Policies for Personalized Agents

Xingyu Chen, Rui Wang, Zhaopeng Tu, Liefeng Bo
6/19/2026
3 citations
cs.CLcs.AI

Official code: galaxyChen/AdaMem (2 stars, Python, MIT, last commit 2026-08-31).

Abstract

Long-term memory systems allow LLM agents to preserve information beyond a single context window, but most systems focus on storing and retrieving facts after extraction, leaving the write decision under-specified. What deserves memory can depend on the user's current task, topic, activity, or interaction partner, while uniform extraction applies one notion of importance across these different situations.

Show full abstract

We formulate this challenge as preference-conditioned write control and introduce AdaMem, which uses adaptive natural-language Memory Policies to personalize what an agent writes to memory. Each policy represents the user's memory preference for a particular interaction context, is updated from periodic feedback, and controls subsequent memory writing. We evaluate this loop in AdaMem-Bench, which assigns different memory preferences to six concurrent interaction personas across five ten-week stories. Across two extraction models and two feedback modes, AdaMem improves average QA accuracy over Mem0 from 80.0\% to 84.35\% while reducing persistent memory by 9.27\%. Our analyses show that explicit feedback helps models learn better memory policies, but current models still struggle to translate those policies into reliably selective writing behavior. AdaMem thus demonstrates the promise of adaptive write control while exposing policy execution as a central limitation of current memory agents. Our code is publicly available: https://github.com/galaxyChen/AdaMem

View on arXivView PDF

Code Implementations(1)

galaxyChen/AdaMemOfficial100%
MIT

The data and code for the AdaMem Project

20PythonJun 19, 20263 months agoMIT

Similar Papers

Cite this paper

@article{chen2026adamem,
  title  = {AdaMem: Learning What to Remember with Adaptive Memory Policies for Personalized Agents},
  author = {Xingyu Chen and Rui Wang and Zhaopeng Tu and Liefeng Bo},
  year   = {2026},
  eprint = {2606.21144},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2606.21144v2}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2606.21144.svg)](https://codeofpaper.com/paper/2606.21144)

Discussion