cs.IRMar 23, 2026

Toward a Theory of Hierarchical Memory for Language Agents

Authors: Yashar Talebirad, Ali Parsaee, Csongor Y. Szepesvari, Amirhossein Nadiri, Osmar Zaiane

Organizations: University of Alberta · York University

Abstract

Many recent long-context and agentic systems address context-length limitations by adding hierarchical memory: they extract atomic units from raw data, build multi-level representatives by grouping and compression, and traverse this structure to retrieve content under a token budget. Despite recurring implementations, there is no shared formalism for comparing design choices. We propose a unifying theory in terms of three operators. Extraction (αα) maps raw data to atomic information units; coarsening (C=(π,ρ)C = (π, ρ)) partitions units and assigns a representative to each group; and traversal (ττ) selects which units to include in context given a query and budget. We identify a self-sufficiency spectrum for the representative function ρρ and show how it constrains viable retrieval strategies (a coarsening-traversal coupling). Finally, we instantiate the decomposition on eleven existing systems spanning document hierarchies, conversational memory, and agent execution traces, showcasing its generality.

Figures & tables

Appendix figures & tables1 asset

Supplementary material from the paper’s appendix.

Appendix

Explore similar work

CardsList
  1. Organize then Retrieve: Hierarchical Memory Navigation for Efficient Agents

    Jun 10, 2026Hao-Lun Hsu, Nikki Lijing Kuang, Boyi Liu +2Hierarchical MemoryLong-Horizon Agent Tasks

  2. Memora: A Harmonic Memory Representation Balancing Abstraction and Specificity

    Feb 3, 2026Menglin Xia, Xuchao Zhang, Shantanu Dixit +6Agent MemoryRetrieval-Augmented Generation

  3. Contextual Agentic Memory is a Memo, Not True Memory

    Apr 30, 2026Binyan Xu, Xilin Dai, Kehuan ZhangAgent MemoryContinual Learning for LLM Agents