arXiv:2607.26637cs.CLcs.AI2026-07

探索大模型代理用文件系统存长期记忆的组织与可持续性。

Filesystem-Based Memory for LLM Agents: Organization, Evolution, and Sustainability

论文配图:Filesystem-Based Memory for LLM Agents: Organization, Evolution, and Sustainability
图 1 · 摘自论文原文
  • 用管理、搜索、执行三角色构建文件系统记忆架构
  • 有组织的存储可降低近一半检索成本,但多数代理无法维持组织性
  • 工具链选择比模型本身对存储形态影响更大,适合系统设计者

部署中的大模型代理越来越多地将长期记忆以文件系统形式保存:一个由代理自己读写和重组的Markdown文件目录树。然而,现有研究大多忽略这一方式:以往系统采用定制化记忆表示并研究其检索,而未验证文件系统的两个默认假设——代理能否在记忆不断增长、冲突和过期时保持组织性,以及这种组织是否真正带来收益。本文首次系统研究了基于文件系统的代理记忆。我们将场景形式化为三个角色围绕同一内存文件系统运作:管理代理整合并组织新内容,搜索代理通过引用来源回答查询,执行代理提供任务轨迹并提炼为技能,统一了陈述性记忆与技能于单一存储。在长对话基准和具身任务中,我们测试了记忆结构(代理组织层级、原样转储、分块检索)、流规模、工具使用方式(沙盒壳、记忆工具型函数、不同搜索工具)及管理/搜索代理强度,追踪答案质量、成本与存储健康度随记忆增长的变化。结果显示,组织性可靠带来的收益是检索成本减半;但当前代理普遍无法维持组织性,且无一能将组织性转化为更优答案。值得注意的是,模型并非唯一影响存储形态的因素:仅更换工具集即可如换模型般显著重塑存储结构。本研究将文件系统从默认假设转变为代理记忆的设计空间。

原文摘要 · Abstract (English)

Deployed LLM agents increasingly keep their long-term memory as a filesystem: a directory tree of markdown files that the agent itself reads, writes, and reorganizes through generic file tools. Yet research has largely passed over this medium: prior systems design bespoke memory representations and study retrieval over them, leaving the default's two working assumptions untested: that an agent can keep a growing store organized as memories accumulate, conflict, and go stale, and that this organization pays. We present the first systematic exploration of filesystem-based memory for LLM agents. We formalize the setting as three roles around one memory filesystem: a management agent integrates and organizes incoming content, a search agent answers queries with cited sources, and an execution agent supplies task trajectories that are distilled into skills, unifying declarative memory and skills in a single store. Across long-conversation benchmarks and embodied tasks, we vary memory shape (agent-organized hierarchy, verbatim dump, chunk retrieval), stream scale, tool harness (sandboxed shell, memory-tool-style functions, varied search tooling), and the strengths of the management and search agents, tracking answer quality, cost, and store health as memory grows. What organization reliably buys is search economy: organized stores roughly halve retrieval cost where material is large. Today's agents, however, fall short of the default's promise: in our growth study, organization erodes for all but the strongest management agent, and no agent we measure converts organization itself into better answers. And the model is not the only lever over a store's shape: changing the tool set alone reshapes the store as strongly as swapping the model. The study turns the filesystem default from an assumption into a design space for agent memory.

大模型代理文件系统记忆管理

Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。