Stratum 论文提出跨会话仓库记忆架构,突破编码智能体上下文窗口限制
Stratum: Repository Memory for Coding Agents Beyond the Context Window
AI 导读
arXiv 论文 Stratum 提出为编码智能体构建持久的、经验感知的仓库记忆,使知识跨会话保留。作者测量显示中等规模项目已超最大生产上下文窗口,KV cache 存储代价是指定文本的 10^4 至 10^5 倍;752 个真实 bug 修复提交的中位数只改 2 个文件,瓶颈在选择而非容量。
正文 · 原文
Abstract:Context windows have grown a thousand-fold, yet coding agents still start every session with no memory of their past work. They re-read files, retry failed approaches, and forget root causes they established hours earlier. This is not a context-length problem but a memory-architecture problem. Our hypothesis: coding agents need persistent, experience-aware repository memory, so that knowledge survives from one session to the next. Three measurements on real repositories motivate the design. First, mid-size projects already exceed the largest production context windows, and storing knowledge inside the model's key-value (KV) cache costs $10^4$ to $10^5$ times more bytes than storing it as indexed text. Second, across 752 real bug-fix commits, the median fix edits two files, and these files plus their direct imports amount to less than 10% of the repository; the bottleneck is selection, not capacity. Third, even with transitive import reachability and test links, 47% of co-edited file pairs remain structurally disconnected; the knowledge needed for selection must be mined from history and experience. We sketch Stratum, a tiered memory that lives with the repository and serves it through page-safe tools: every response states what was returned, what remains, and what it cost. Retrieval over a store of one million nodes takes 1.7 ms at the median. In a multi-session experiment on eight real bugs, a fresh agent that inherited a prior session's memory, written by a different model, identified the root-cause file in 21 of 24 trials versus 6 of 24 for a retrieval-only baseline (Fisher $p<10^{-4}$), at 4.5x lower median token cost. With the notes of all eight investigations pooled in one store, success remained 8/8.
| Comments: | 5 pages, 1 figure, 1 table. Replication package: this https URL |
| Subjects: | Software Engineering (cs.SE); Artificial Intelligence (cs.AI) |
| ACM classes: | D.2.7; I.2.11 |
| Cite as: | arXiv:2610.36153 [cs.SE] |
| (or arXiv:2610.36153v1 [cs.SE] for this version) | |
| https://doi.org/10.48550/arXiv.2610.36153 arXiv-issued DOI via DataCite (pending registration) |
Submission history
From: Yuvraj Sehgal [view email]
[v1]
Mon, 26 Oct 2026 18:53:45 UTC (64 KB)
来源:arXiv cs.AI · arxiv.org