AtomMem : Learnable Dynamic Agentic Memory with Atomic Memory Operation
Yupeng Huo, Yaxi Lu, Zhong Zhang, Haotian Chen, Yankai Lin
TL;DR
AtomMem reframes agent memory as a dynamic decision problem by decomposing memory management into atomic CRUD operations and learning a policy via reinforcement learning within a semi-Markov framework. A scratchpad plus an external vector memory enable structured, task-aligned memory usage, with a two-stage training pipeline (SFT followed by GRPO) and terminal task rewards guiding policy adaptation. Across HotpotQA, 2WikiMultiHopQA, and MuSiQue, AtomMem-8B outperforms static-memory baselines, with gains increasing as input length grows, and RL shaping memory usage toward selective creation, updating, and deletion while reducing unnecessary reads. The results demonstrate that learnable memory management yields improved long-horizon reasoning and scalable memory control, though at a substantial computational cost for RL training.
Abstract
Equipping agents with memory is essential for solving real-world long-horizon problems. However, most existing agent memory mechanisms rely on static and hand-crafted workflows. This limits the performance and generalization ability of these memory designs, which highlights the need for a more flexible, learning-based memory framework. In this paper, we propose AtomMem, which reframes memory management as a dynamic decision-making problem. We deconstruct high-level memory processes into fundamental atomic CRUD (Create, Read, Update, Delete) operations, transforming the memory workflow into a learnable decision process. By combining supervised fine-tuning with reinforcement learning, AtomMem learns an autonomous, task-aligned policy to orchestrate memory behaviors tailored to specific task demands. Experimental results across 3 long-context benchmarks demonstrate that the trained AtomMem-8B consistently outperforms prior static-workflow memory methods. Further analysis of training dynamics shows that our learning-based formulation enables the agent to discover structured, task-aligned memory management strategies, highlighting a key advantage over predefined routines.
