mlsanityData to 24 Nov 2026

TreeAgent: Structure-Aware Memory Agent for Processing Long Hierarchical Data

arXiv 2611.13946 ↗Submitted 10 Nov 2026cs.AIcited by 0

On the map: LLM agents and tool use → Agent memory systems also fits: Web, search, and research agents

Abstract (arXiv)

Practical Web applications increasingly require agents to interpret long conversations or documents. For inputs exceeding the context windows of large language models (LLMs), memory agents process segments sequentially and retain past information in bounded memory. However, they typically divide inputs into flat token segments without preserving structure or hierarchy, causing three limitations for structured data such as API responses or HTML documents. First, fixed-length segmentation can split fields of the same record, breaking their relationships. Second, segments lack hierarchical information, obscuring their structural context and positions. Third, successive memory updates may discard details of earlier sibling records needed for reasoning on later segments. To address these limitations, we propose TreeAgent, a structure-aware agent that uses the input hierarchy to guide both segment-wise context processing and access to past information. Specifically, TreeAgent constructs segments from complete subtrees and groups of adjacent sibling subtrees to preserve local structural relationships. We provide theoretical guarantees on segment counts to guide token budget selection toward matching the segment count of fixed-length segmentation. We further attach structural paths to the segments for the agent to identify their ancestors and hierarchical positions. We also introduce residual memory links from the segments of low-level children to the segments of high-level parents, enabling direct information flows beyond successive memory updates. We evaluate TreeAgent with four representative memory agents on eight retrieval and aggregation tasks. The inputs are derived from real-world application data in JSON, HTML, YAML, and JavaScript and range from 8K to 1M tokens. TreeAgent improves the average score across the four datasets for all four agents, with 3.61% performance gain on average.

Key facts. No citing papers in the map yet (data through 24 Nov 2026). Placed in Agent memory systems, one of 16 directions in LLM agents and tool use. Builds on 22 of its 44 references that are in the map. Submitted 10 Nov 2026.

Builds on

22 of 44 references.

Closest ancestors · 3

Same direction, newest first

  1. 2026MemReread: Enhancing Agentic Long-Context Reasoning via Memory-Guided Rereading11 May
  2. 2026Learning to Remember: End-to-End Training of Memory Agents for Long-Context Reasoning13 Feb
  3. 2025Look Back to Reason Forward: Revisitable Memory for Long-Context LLM Agents27 Sep

Other references · 19

  1. 2022ReAct: Synergizing Reasoning and Acting in Language Modelscited by 9,589
  2. 2024RAPTOR: Recursive Abstractive Processing for Tree-Organized Retrievalcited by 589
  3. 2025MemAgent: Reshaping Long-Context LLM with Multi-Conv RL-based Memory Agentcited by 278
  4. 2021WebSRC: A Dataset for Web-Based Structural Reading Comprehensioncited by 103
  5. 2021MarkupLM: Pre-training of Text and Markup Language for Visually-rich Document Understandingcited by 53
  6. 2022WebFormer: The Web-page Transformer for Structure Information Extractioncited by 36
  7. 2022DOM-LM: Learning Generalizable Representations for HTML Documentscited by 30
  8. 2025HarmMetric Eval: Benchmarking Metrics and Judges for LLM Harmfulness Assessmentcited by 17
  9. 2025DualBreach: Efficient Dual-Jailbreaking via Target-Driven Initialization and Multi-Target Optimizationcited by 13
  10. 2025Beyond Chunking: Discourse-Aware Hierarchical Retrieval for Long Document Question Answeringcited by 10
  11. 2026InfMem: Learning System-2 Memory Control for Long-Context Agentcited by 10
  12. 2026When to Memorize and When to Stop: Gated Recurrent Memory for Long-Context Reasoningcited by 10
7 more
  1. 2026DARWIN: Evolving Jailbreak Adversary and Guardrail for LLM Safety Evaluation and Protectioncited by 9
  2. 2025Toward Medical Deepfake Detection: A Comprehensive Dataset and Novel Methodcited by 8
  3. 2026TRACE: Task-Aware Adaptive Self-Evolving Agentic Jailbreakingcited by 8
  4. 2026DataShield: Uncovering Risky Fine-Tuning Data Across LLMs Through Consensus Subspace Alignmentcited by 5
  5. 2025Dynamic Jailbreaking Attackcited by 4
  6. 2026AgentSnare: Learning to Delay, Divert, and Defuse Autonomous Penetration Agentscited by 4
  7. 2025TrueMoE: Dual-Routing Mixture of Discriminative Experts for Synthetic Image Detectioncited by 3

Built on by

Not cited yet.

Similar, not cited

Close in wording, no citation either way

  1. 2026Toward a Theory of Hierarchical Memory for Language Agents
  2. 2025Tree of Agents: Improving Long-Context Capabilities of Large Language Models through Multi-Perspective Reasoning
  3. 2026ByteRover: Agent-Native Memory Through LLM-Curated Hierarchical Context
  4. 2026MemForest: An Efficient Agent Memory System with Hierarchical Temporal Indexing
  5. 2026SAGE: A Self-Evolving Agentic Graph-Memory Engine for Structure-Aware Associative Memory
  6. 2026Temporal Order Matters for Agentic Memory: Segment Trees for Long-Horizon Agents
  7. 2026Enhancing Web Agents with a Hierarchical Memory Tree
  8. 2026Chain-of-Memory: Lightweight Memory Construction with Dynamic Evolution for LLM Agents