跳到正文
arXiv cs.AI· Wei Gu, Weiwei Qi, Jiajun Tang, Tianhang Zheng, Bo Chen, Zhibo Zhang, Jinfei Liu, Kui Ren·· 2 小时前AI 评分34

TreeAgent:面向长层级数据的结构感知记忆 Agent

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

AI 导读

arXiv 论文提出 TreeAgent,一种结构感知的记忆智能体,利用输入层级指导分段处理与历史信息访问,解决现有记忆 Agent 平铺分割破坏字段关系、丢失层级信息等局限。

正文 · 原文

View PDF HTML (experimental)

Abstract: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.
Comments: 13 pages, 3 figures, 5 tables, including appendices. Code: this https URL
Subjects: Artificial Intelligence (cs.AI)
Cite as: arXiv:2611.13946 [cs.AI]
  (or arXiv:2611.13946v1 [cs.AI] for this version)
  https://doi.org/10.48550/arXiv.2611.13946

arXiv-issued DOI via DataCite (pending registration)

Submission history

From: Wei Gu [view email]
[v1] Tue, 10 Nov 2026 11:33:05 UTC (417 KB)

来源:arXiv cs.AI · arxiv.org