Skip to content

Decoupling Memory from Context: Structured Memory for Token-Efficient Test-Time Continual Learning

Oct 2026 · 0 citations · 24 references
Computer Science

TL;DR

This work introduces a unified formulation of context optimization and shows that an agent memory system update can be interpreted as an optimization update procedure over the model's context, and proposes GraphMemory, a lightweight graph-based memory that accumulates, refines, organizes, and connects reusable strategies.

Abstract

Large language models (LLMs) are increasingly deployed in enterprise, scientific, and medical applications, where agents must incorporate domain-specific knowledge and adapt from experience. Context engineering offers a practical alternative to weight updates by improving model behavior through instructions, strategies, and evidence supplied at inference time. However, adapting context online typically requires a costly trial-and-error process, while queries are often processed independently, preventing useful experience from carrying forward. Memory systems address this limitation by retaining information across interactions, but approaches that continually append information to a shared context face increasing token costs, context-window limits, and performance degradation as the context expands. We introduce a unified formulation of context optimization and show that an agent memory system update can be interpreted as an optimization update procedure over the model's context. This perspective attempts to provide a principled framework for studying memory design and its efficiency. We then propose GraphMemory, a lightweight graph-based memory that accumulates, refines, organizes, and connects reusable strategies. For each query, GraphMemory retrieves only the relevant subgraph, enabling online context adaptation without exposing the model to the entire memory. Under bounded retrieval, the amount of retrieved memory remains constant as the number of processed examples grows. Experiments show that GraphMemory achieves competitive downstream performance while using approximately 81-85% fewer memory-construction tokens than our baselines.

View source

Similar papers

#large language models Review Oct 2026

Learning to Remember: Advances in Memory Mechanisms for Large Language Models

This survey organizes the literature around three complementary dimensions: the life cycle of memory, the storage substrate, and the system role that memory plays in LLM-based agents, while using cognitive-science-inspired memory concepts as a lightweight conceptual motivation rather than as a separate technical contri...

Chen Han, Hong-Chew Yu, Meng-Yue Wu et al. · 0 citations
#large language models Open access Sep 2026

Controlled knowledge updating in memory-enabled AI agents: beyond model editing and recall

Large language model agents that persist across sessions, tools, users, and changing environments do more than answer isolated prompts; they accumulate state. When new evidence arrives, the central question is where that change should live: transient context, external memory, tool or workflow definitions, activation st...

Gabriel Chavira-Juárez, Eder Jahir Gonzalez Bravo, G. Rivera-García et al. · 0 citations
#natural language process... Preprint Oct 2026

MemDuet: Learning Dual-Process Memory for Long-Context Reasoning

Inspired by Kahneman's account of fast and slow thinking, MemDuet is a dual-process memory framework that learns to coordinate a small language model for fast, parallel evidence selection from raw context chunks with a large language model for memory-update verification and memory updates in document order.

Jiang-Cheng Song, Hao-Dong Jing, Yu-Ling Mu et al. · 0 citations

Related blog posts

MIT News · Artificial Intelligence Sep 29, 2026

Who we become when we talk to machines

Professor Sherry Turkle’s new book, “Artificial Intimacy,” offers a withering critique of chatbots and the antisocial dynamics she believes they encourage.

We use cookies to run the site and, with your consent, for analytics and to show ads. See our Cookie Policy.