Neuromem: A Granular Decomposition of the Streaming Lifecycle in External Memory for LLMs
Ruicheng Zhang, Xinyi Li, Tianyi Xu, Shuhao Zhang, Xiaofei Liao, Hai Jin
TL;DR
Neuromem introduces a granular, streaming evaluation framework for External Memory Modules by decomposing the memory lifecycle into five design dimensions (D1–D5) and enforcing interleaved insertion and retrieval. The approach enables precise attribution of accuracy and latency to storage structure, normalization, consolidation, query formulation, and context integration, revealing that the storage data structure largely limits performance while aggressive preprocessing and generative retrieval incur a latency tax. Across LoCoMo, LONGMEMEVAL, and MemoryAgentBench, heuristic maintenance strategies offer superior real-time efficiency compared with costly generative approaches, which provide limited accuracy gains. Neuromem provides a reusable, open-source testbed for future work to optimize the full insert–maintain–retrieve–integrate loop under long-horizon entropy, guiding practical, energy-efficient deployments of memory-augmented LLMs.
Abstract
Most evaluations of External Memory Module assume a static setting: memory is built offline and queried at a fixed state. In practice, memory is streaming: new facts arrive continuously, insertions interleave with retrievals, and the memory state evolves while the model is serving queries. In this regime, accuracy and cost are governed by the full memory lifecycle, which encompasses the ingestion, maintenance, retrieval, and integration of information into generation. We present Neuromem, a scalable testbed that benchmarks External Memory Modules under an interleaved insertion-and-retrieval protocol and decomposes its lifecycle into five dimensions including memory data structure, normalization strategy, consolidation policy, query formulation strategy, and context integration mechanism. Using three representative datasets LOCOMO, LONGMEMEVAL, and MEMORYAGENTBENCH, Neuromem evaluates interchangeable variants within a shared serving stack, reporting token-level F1 and insertion/retrieval latency. Overall, we observe that performance typically degrades as memory grows across rounds, and time-related queries remain the most challenging category. The memory data structure largely determines the attainable quality frontier, while aggressive compression and generative integration mechanisms mostly shift cost between insertion and retrieval with limited accuracy gain.
