cs.AIOct 29, 2026

Retrieval as Traversal: Value-Indexed Memory for Stateful Long-Context Agents

Authors: Daniel Strauß, Zhenshan Bing, Alois Knoll

Organizations: Technical University of Munich · Nanjing University

Abstract

Long-context models repeatedly solve closely related retrieval problems. Attention or global retrieval can retain large stores, but each forward pass again searches for what matters. Recurrent compression avoids this search only by deciding earlier what information to preserve. Neither mechanism directly exploits that useful memories at neighbouring retrieval steps may substantially overlap. We propose an alternative in which retrieval is a persistent local traversal through an address space. We separate a memory's content from its address. Utility is defined by the information revealed by retrieving the content, while geometry determines only how cheaply that information can be reached. This leads to a cost-regularised indexing objective that preserves information value inside local neighbourhoods while charging for every memory made locally accessible. Its marginal-value form gives both attractive and exclusion pressures. Thus, complementary memories should be co-retrievable when the additional value exceeds retrieval cost, whereas redundant memories should not occupy the same retrieval set solely because they are individually useful. As a proof of principle, we test only the simplest fixed-geometry instance on MiniGrid Memory. A persistent local traversal head reaches 0.950.95 mean return after 0.590.59M training steps with a five-token context, compared with 0.940.94M for Gaussian absolute addressing and more than 22M for categorical absolute addressing. The experiment does not test learned geometry or repeated retrieval. Instead, it motivates the hypothesis that stateful retrieval may be easier to learn than stateless. To test the full proposed method further experimentation is necessary.

Figures & tables

Explore similar work

CardsList
  1. MARCH: Scaling Recurrent Memory with Content-Routed State Anchors

    Aug 12, 2026Ming Zhang, Kaisen Yang, Shu Yu +6Long-Context RetrievalIn-Context Retrieval

  2. Learning to Remember: End-to-End Training of Memory Agents for Long-Context Reasoning

    Feb 13, 2026Kehao Zhang, Shangtong Gui, Sheng Yang +2Persistent Memory for Language ModelsLong-Context Inference

  3. Memory Control Signals Emerge Before Action in Long Horizon Agents

    Sep 23, 2026Mingxuan Wang, Guorun Yao, Fei Luo +6Agent Memory ManagementLong-Horizon LLM Agents