Dual-Layer Agentic Memory with Fast Write Routing and Slow Consolidation
Summary
This paper proposes a Dual-Layer Agentic Memory framework for LLM agents that manages knowledge lifecycle through fast write routing and slow consolidation to prune redundant external memory while maintaining performance.
View Cached Full Text
Cached at: 08/25/26, 04:28 AM
# Dual-Layer Agentic Memory with Fast Write Routing and Slow Consolidation
Source: [https://arxiv.org/html/2608.22215](https://arxiv.org/html/2608.22215)
Dong NieAffiliation:Indepedent ResearcherTongtong LyuAffiliation:XiaohongshuRui LanAffiliation:XiaohongshuPeiyao WangAffiliation:Independent ResearcherLingzi HongAffiliation:University of North TexasWeihang PanAffiliation:Zhejiang UniversityBoyuan PanAffiliation:Zhejiang UniversityYao HuAffiliation:Zhejiang University
###### Abstract
Large language model \(LLM\) agents operate in dynamic environments where knowledge continuously evolves\. Existing memory systems typically treat external memory as a monotonically growing repository, inevitably leading to retrieval degradation and increasing computational costs over time\. We argue that the core challenge is not retrieval alone, but managing the*knowledge lifecycle*: deciding what to externalize, update, or ultimately internalize\. Inspired by Complementary Learning Systems \(CLS\) theory in neuroscience, we proposeDual\-Layer Agentic Memory, a framework that shifts memory management to the write phase through cost\-aware epistemic routing and periodic parametric consolidation\. Incoming information is categorized asnon\-write,write\-new, orwrite\-update, and routed through a small\-to\-large model cascade that minimizes routing overhead while filtering redundant memories\. A subsequent write\-back phase selectively consolidates high\-value external memories into model parameters via supervised fine\-tuning\. Experiments demonstrate the dual efficiency of our approach: a 1\.7B/8B cascade prunes up to 68% of redundant external memory while escalating fewer than 50% of inputs, yet retains over 98% of the downstream QA Exact Match \(EM\) achieved by an exhaustive retention baseline\. We further show that periodic consolidation successfully internalizes external knowledge, allowing the router to adaptively suppress redundant writes as the model’s epistemic boundaries evolve\. Overall, our framework presents a unified paradigm for agent memory: selective externalization followed by selective internalization\. Code and dataset will be released upon acceptance\.
## 1Introduction
Large language model \(LLM\) agents are increasingly deployed in long\-horizon, dynamic environments such as multi\-session dialogue, autonomous research, personal assistants, and continual decision\-making systems\. In these settings, knowledge evolves over time rather than remaining static\. An agent may repeatedly encounter information that is already captured by its parameters, genuinely novel facts that lie beyond its current parametric memory, or updates that directly conflict with stale internal beliefs\. For example, an assistant may accumulate many user interaction logs that are redundant or outdated, while failing to preserve a newly stated user preference or revise a previously incorrect assumption\. As a result, effective memory management is essential for persistent and coherent reasoning in agent systems\.
Most existing approaches tackle this challenge by equipping agents with explicit external memory mechanisms, typically implemented through retrieval\-augmented generation \(RAG\)\[[1](https://arxiv.org/html/2608.22215#bib.bib1)\], memory logs\[[2](https://arxiv.org/html/2608.22215#bib.bib2)\], hierarchical buffers\[[3](https://arxiv.org/html/2608.22215#bib.bib3)\], or structured external memory\. These systems improve persistence beyond the context window, but they usually treat external memory as an unconditional log into which observations are monotonically appended\[[2](https://arxiv.org/html/2608.22215#bib.bib2)\]\. Because filtering mechanisms operate primarily in the*read*phase—relying on downstream queries to condition retrieval—systems cannot proactively reject redundant information at the source\. This design leads to a fundamental storage–performance trade\-off: as external memory grows, retrieval becomes noisier, more expensive, and more latency\-sensitive\.
A different line of work attempts to bypass retrieval by directly incorporating new knowledge into model parameters through knowledge editing\[[4](https://arxiv.org/html/2608.22215#bib.bib4),[5](https://arxiv.org/html/2608.22215#bib.bib5)\]or continual learning\[[6](https://arxiv.org/html/2608.22215#bib.bib6)\]\. While this enables fast retrieval\-free access, it comes with its own limitations: parameter updates are computationally expensive and prone to interference or catastrophic forgetting\. More importantly, both retrieval\-heavy and parametric\-only approaches implicitly assume a fixed storage substrate\. Knowledge is either externalized or internalized, but is rarely treated as something that should be dynamically allocated, revised, and migrated across memory substrates over time\.
We argue that this view is fundamentally incomplete\. Rather than deferring filtering decisions to a query\-driven read phase, the core challenge is managing knowledge across its full lifecycle the moment it enters the system\. When a new fact arrives, the agent should immediately evaluate it against its parametric memory to decide whether the fact is redundant, whether it must be written into external memory, and whether it should later be consolidated into model parameters\. In particular, external memory should not serve as a permanent dumping ground\. Instead, it should function as a selective and temporary store for knowledge that is either missing from parametric memory or in conflict with stale internal beliefs\.
This perspective is naturally connected to memory mechanisms in neuroscience\. Complementary learning systems \(CLS\) theory\[[7](https://arxiv.org/html/2608.22215#bib.bib7)\]posits that biological memory relies on two interacting subsystems: a fast\-learning hippocampus capable of rapidly encoding novel experiences, and a slower neocortex that gradually consolidates stable knowledge into long\-term representations, typically via offline replay during sleep\. From this perspective, external memory acts as the fast, editable hippocampal buffer for novel or conflict\-prone information, while parametric memory serves as the slower, stable cortical substrate\. Inspired by this analogy, we formulate agent memory as a*dual\-layer knowledge lifecycle*problem consisting of fast write routing and slow consolidation \(analogous to sleep\-dependent memory replay\)\.
Concretely, we propose a dual\-layer system with two types of memory and two forms of decisions\. At thecarrier layer, the agent maintains*parametric memory*for stable, compressed, low\-cost knowledge and*external memory*for dynamic, editable, high\-risk facts\. At thedecision layer, we separate*fast write routing*from*slow write\-back*\(the consolidation mechanism\)\. We conceptualize every incoming piece of knowledge through an operational taxonomy of three classes:non\-write,write\-new, andwrite\-update\. Here,non\-writedenotes knowledge already safely answerable from parametric memory,write\-newdenotes knowledge missing from parametric memory, andwrite\-updatedenotes knowledge for which the model produces a non\-refusal but incorrect answer, indicating stale or conflicting internal knowledge\. To manage admission efficiently, the write router bypasses explicit three\-way classification and directly optimizes a continuous storage–performance trade\-off through a binary admission decision:*write*or*discard*\. Here,*write*and*discard*are router\-level actions used for cost\-aware decision\-making, while the precise handling of novel versus stale facts is deferred to the subsequent consolidation stage\.
A central systems contribution of our framework is that write routing is implemented as a*small\-to\-large cascade*\. Instead of relying on a large model for every routing decision, we use a lightweight model to perform cheap front\-end screening and resolve easy cases early, while only uncertain or ambiguous knowledge items are escalated to a stronger model\. This design is crucial because write routing is itself a resource\-allocation problem: if the router always requires the large model, then routing becomes too expensive to justify\. The cascade therefore optimizes not only memory usage, but also the computational cost of the routing policy itself\.
To operationalize this formulation, we construct a behavioral labeling pipeline over raw\(knowledge,query,answer\)\(\\text\{knowledge\},\\text\{query\},\\text\{answer\}\)triples\. For each triple, we compare zero\-shot answering against answering with explicit memory support\. If the model answers correctly zero\-shot, the corresponding knowledge is labeled asnon\-write; if the model fails zero\-shot but succeeds with memory, it is write\-worthy\. We further distinguishwrite\-newfromwrite\-updatebased on whether the zero\-shot failure manifests as an explicit refusal or a confident but incorrect answer\. These labels allow us to train and evaluate write routers using model behavior rather than abstract semantic judgments\.
Figure 1:Comparison of agent memory paradigms\.\(a\) Pure external memory:Monotonically appending facts to an external database often leads to memory bloat and degrades retrieval precision\.\(b\) Pure parametric memory:Directly incorporating continuous updates into model weights is computationally expensive and susceptible to catastrophic forgetting\.\(c\) Dual\-Layer Agentic Memory \(ours\):We formulate memory as a knowledge lifecycle\. A cost\-aware cascade router \(Fast Write Routing\) filters incoming facts, escalating uncertain items to maintain a compact external memory\. Retained external memories are periodically internalized via supervised fine\-tuning \(Slow Consolidation\)\. This process updates the model’s parametric knowledge, shifting its epistemic boundaries to reduce future reliance on external memory\.Finally, we study*write\-back*as the slow half of the lifecycle by converting selectedwrite\-newandwrite\-updatememories into fine\-tuning supervision and testing whether previously retrieval\-dependent facts become internally answerable\. In this sense, our framework is not only about selective storage, but also about selective internalization: the agent first externalizes only high\-value knowledge, and later consolidates stable, validated memories back into parametric memory to reduce future dependence on retrieval\. Because the write router operates directly on the model’s hidden states and uncertainty profiles, it naturally senses this consolidation; once a fact is internalized, its shifted internal representations prompt the router to discard future encounters of the same knowledge, effectively closing the knowledge lifecycle loop\.
Our contributions are summarized as follows:
- •We formulate agent memory as adual\-layer knowledge lifecycle systemthat unifies external memory, parametric memory, fast write routing, and slow consolidation\.
- •We introduce anoperational memory taxonomy\(non\-write,write\-new,write\-update\) together with acost\-aware small\-to\-large routing cascadethat frames memory admission as an accuracy–efficiency optimization problem\.
- •We propose a periodic write\-back consolidation mechanism that enablesknowledge internalizationand adaptiveepistemic shift, progressively reducing reliance on external memory as parametric knowledge evolves\.
- •We construct an onlinestreaming evaluation benchmarkthat decouples write\-time admission from read\-time retrieval, showing that selective externalization and consolidation mitigate memory bloat while closely matching exhaustive\-memory performance\.
## 2Related work
##### Memory architectures in LLM\-based agents\.
Long\-horizon LLM agents typically extend working memory via external RAG\[[1](https://arxiv.org/html/2608.22215#bib.bib1)\], with early systems such as Generative Agents and MemGPT introducing long\-term memory management\[[2](https://arxiv.org/html/2608.22215#bib.bib2),[3](https://arxiv.org/html/2608.22215#bib.bib3)\]\. As memory becomes central to lifelong LLM agents\[[8](https://arxiv.org/html/2608.22215#bib.bib8)\], recent systems further improve working\-memory compression and memory organization through hierarchical chunking, dynamic linking, and structured memory representations\[[9](https://arxiv.org/html/2608.22215#bib.bib9),[10](https://arxiv.org/html/2608.22215#bib.bib10),[11](https://arxiv.org/html/2608.22215#bib.bib11)\]\. Yet these approaches mainly manage active context or organize stored memories, lacking a mechanism to close the knowledge lifecycle loop between external and parametric memory\. Consequently, external memory can accumulate redundant facts, leading to memory bloat\[[12](https://arxiv.org/html/2608.22215#bib.bib12)\]and degraded access\[[13](https://arxiv.org/html/2608.22215#bib.bib13)\]despite structured retrieval mechanisms\. In contrast, our Dual\-Layer Agentic Memory addresses this by formulating memory as a knowledge lifecycle, where fast write routing and slow consolidation work in tandem to achieve selective externalization followed by selective internalization\.
##### Retrieval\-augmented generation and routing\.
To mitigate the latency and noise of exhaustive retrieval, recent frameworks dynamically route memory operations\. However, these routing mechanisms operate primarily in thereadphase, relying on downstream queries to condition retrieval decisions\[[14](https://arxiv.org/html/2608.22215#bib.bib14),[15](https://arxiv.org/html/2608.22215#bib.bib15),[16](https://arxiv.org/html/2608.22215#bib.bib16),[17](https://arxiv.org/html/2608.22215#bib.bib17),[18](https://arxiv.org/html/2608.22215#bib.bib18)\]\. To address the foundational problem of memory admission—deciding what to externalize before storage occurs—we explicitly shift the focus to thewritephase\. Drawing inspiration from cascaded inference, which is widely used to optimize LLM generation\[[19](https://arxiv.org/html/2608.22215#bib.bib19),[20](https://arxiv.org/html/2608.22215#bib.bib20)\], we adapt a cost\-aware small\-to\-large cascade to strictly gate memory admission\.
##### Knowledge editing and continual parametric updating\.
Techniques like ROME\[[4](https://arxiv.org/html/2608.22215#bib.bib4)\]and MEMIT\[[5](https://arxiv.org/html/2608.22215#bib.bib5)\]update specific model parameters to correct stale facts, while recent methods extend editing to long\-form, diverse\-format, or parameter\-preserving multi\-hop settings\[[21](https://arxiv.org/html/2608.22215#bib.bib21),[22](https://arxiv.org/html/2608.22215#bib.bib22),[23](https://arxiv.org/html/2608.22215#bib.bib23)\]\. However, continuous parametric updates are computationally expensive and highly susceptible to catastrophic forgetting\[[24](https://arxiv.org/html/2608.22215#bib.bib24),[6](https://arxiv.org/html/2608.22215#bib.bib6)\]\. This motivates using external memory as a fast, editable buffer, with parameter modifications reserved for slower offline consolidation\.
##### Neuroscience\-inspired memory and consolidation\.
Our architectural design is motivated by the CLS framework\[[25](https://arxiv.org/html/2608.22215#bib.bib25),[7](https://arxiv.org/html/2608.22215#bib.bib7)\], modeling the interplay between the fast\-learning hippocampus and the slow\-learning neocortex\. Recent AI systems adopt CLS\-inspired consolidation to prevent forgetting through structured memory, reconstructive persistence, or hybrid memory circuits\[[26](https://arxiv.org/html/2608.22215#bib.bib26),[27](https://arxiv.org/html/2608.22215#bib.bib27)\]\. Related continual\-learning work further shows that sleep\-like unsupervised replay can improve retention under limited or imbalanced data\[[28](https://arxiv.org/html/2608.22215#bib.bib28)\]\. Motivated by this consolidation view, we translate the sleep phase into periodic supervised fine\-tuning \(SFT\), physically consolidating transient external memory into the model’s parameters\.
## 3Dual\-Layer Agentic Memory
We model agent memory as a*dual\-layer knowledge lifecycle*problem\. Our framework contains two layers\. At thecarrier layer, the agent maintains two memory substrates: parametric memoryΘ\\Theta, which is stable, compressed, and cheap to access, and external memoryEE, which is explicit, editable, and suited to dynamic or conflict\-prone facts\. At thedecision layer, the system contains a fast*write router*, which decides whether incoming knowledge should enter external memory, and a slow*write\-back*mechanism, which selectively internalizes high\-value external memories intoΘ\\Thetathrough supervised fine\-tuning\.
### 3\.1Operational memory taxonomy
We define write labels based on model behavior under zero\-shot versus memory\-supported answering\. Given a knowledge itemffand its associated factual probes, we distinguish three cases:
- •non\-write: the agent can already answer the associated query correctly from parametric memory alone, so external memory is unnecessary;
- •write\-new: the agent produces a refusal answer in the zero\-shot setting, and becomes correct when the relevant knowledge is provided, indicating that the fact is missing from parameters;
- •write\-update: the agent produces a non\-refusal but incorrect answer in the zero\-shot setting, and becomes correct when the relevant knowledge is provided, indicating stale parametric memory\.
### 3\.2Problem setup
Letffdenote an incoming knowledge item\. At storage time, the router evaluatesffto produce a binary admission decision:*discard*\(relying solely on parametric memoryΘ\\Theta\) or*write*\(appendingffto external memoryEE\)\. The lifecycle is:
f→write routing\{discardwrite⟶E→optional write\-backΘ′f\\xrightarrow\{\\text\{write routing\}\}\\begin\{cases\}\\text\{discard\}\\\\ \\text\{write\}\\longrightarrow E\\xrightarrow\{\\text\{optional write\-back\}\}\\Theta^\{\\prime\}\\end\{cases\}\(1\)Subsequently, the items written toEEare utilized during the slow write\-back stage for parametric consolidation, ultimately updating the model toΘ′\\Theta^\{\\prime\}\.
### 3\.3Small\-to\-large cost\-aware write routing
Write routing is implemented as asmall\-to\-large cascade\. Physically, each router consists of a frozen Large Language Model \(LLM\) backbone—serving as a feature extractor—paired with a trained lightweight Multi\-Layer Perceptron \(MLP\) decision head\. A small routerMsmallM\_\{\\mathrm\{small\}\}\(utilizing a smaller LLM backbone\) first performs cheap front\-end screening and resolves easy cases\. Only uncertain or ambiguous examples are escalated to a stronger but more computationally expensive large routerMlargeM\_\{\\mathrm\{large\}\}\(utilizing a larger LLM backbone\)\.
For each factff,MsmallM\_\{\\mathrm\{small\}\}predicts whether the fact should be written to external memory \(asmall∈\{W,D\}a\_\{\\mathrm\{small\}\}\\in\\\{W,D\\\}\)\. A gating module then estimates whether escalating is worth the additional compute cost\. If escalation is triggered, the final decision becomesalarge∈\{W,D\}a\_\{\\mathrm\{large\}\}\\in\\\{W,D\\\}determined byMlargeM\_\{\\mathrm\{large\}\}\.
#### 3\.3\.1Routing objective
Letλs\\lambda\_\{s\}denote the storage penalty andλe\\lambda\_\{e\}the escalation penalty\. Writing a fact is rewarded only when its marginal task\-performance gain outweighs the combined penaltyλs\+λe\\lambda\_\{s\}\+\\lambda\_\{e\}\. For a given fact, letEM\(W\)\\mathrm\{EM\}\(W\)denote the downstream QA Exact Match \(EM\) obtained when the fact is written to external memory, andEM\(D\)\\mathrm\{EM\}\(D\)when discarded\. We define the write reward asr\(W\)=EM\(W\)−EM\(D\)−λsr\(W\)=\\mathrm\{EM\}\(W\)\-\\mathrm\{EM\}\(D\)\-\\lambda\_\{s\}, and the discard reward asr\(D\)=0r\(D\)=0\.
#### 3\.3\.2Escalation gate
The small router predicts rewardsr^small\(W\)\\hat\{r\}\_\{\\mathrm\{small\}\}\(W\)andr^small\(D\)\\hat\{r\}\_\{\\mathrm\{small\}\}\(D\), and the large router predictsr^large\(W\)\\hat\{r\}\_\{\\mathrm\{large\}\}\(W\)andr^large\(D\)\\hat\{r\}\_\{\\mathrm\{large\}\}\(D\)\. We define the expected value of stopping at the small router asVsmall=r\(asmall\)V\_\{\\mathrm\{small\}\}=r\(a\_\{\\mathrm\{small\}\}\), and the expected value of escalation asVlarge=r\(alarge\)−λeV\_\{\\mathrm\{large\}\}=r\(a\_\{\\mathrm\{large\}\}\)\-\\lambda\_\{e\}\. The gate is trained to predict the gain of escalation:g∗=Vlarge−Vsmallg^\{\*\}=V\_\{\\mathrm\{large\}\}\-V\_\{\\mathrm\{small\}\}\. At inference time, the example is escalated if and only if the predicted gain is positive \(gpred\>0g\_\{\\mathrm\{pred\}\}\>0\)\.
#### 3\.3\.3Feature construction and neural parameterization
The decision heads forMsmallM\_\{\\mathrm\{small\}\}andMlargeM\_\{\\mathrm\{large\}\}consume semantic and uncertainty features extracted from their respective LLM backbones\. Let\{ht\}t=1L\\\{h\_\{t\}\\\}\_\{t=1\}^\{L\}be the final\-layer hidden states produced by the LLM for the tokenized factff\. We compute a global semantic embedding using mean pooling:
e=1L∑t=1Lht\.e=\\frac\{1\}\{L\}\\sum\_\{t=1\}^\{L\}h\_\{t\}\.\(2\)To capture epistemic uncertainty, letℓt=−logp\(xt∣x<t\)\\ell\_\{t\}=\-\\log p\(x\_\{t\}\\mid x\_\{<t\}\)be the token\-level negative log\-likelihood\. We compute the mean NLLℓ¯=1L∑t=1Lℓt\\bar\{\\ell\}=\\frac\{1\}\{L\}\\sum\_\{t=1\}^\{L\}\\ell\_\{t\}, and resample the sequence NLL curve into a fixed\-length representation:
c=Interp64\(\[ℓ1,ℓ2,…,ℓL\]\)\.c=\\mathrm\{Interp\}\_\{64\}\(\[\\ell\_\{1\},\\ell\_\{2\},\\dots,\\ell\_\{L\}\]\)\.\(3\)The resulting uncertainty vector incorporates the sequence length and the resampled curve:
u=\[ℓ¯;log\(1\+L\);c\]\.u=\[\\bar\{\\ell\};\\log\(1\+L\);c\]\.\(4\)
Using these features, the MLP head of the small router \(zsmallz\_\{\\mathrm\{small\}\}\), the escalation gate \(zgz\_\{g\}\), and the MLP head of the large router \(zlargez\_\{\\mathrm\{large\}\}\) respectively consume:
zsmall\\displaystyle z\_\{\\mathrm\{small\}\}=\[esmall\],\\displaystyle=\[e\_\{\\mathrm\{small\}\}\],\(5\)zg\\displaystyle z\_\{g\}=\[esmall;usmall;r^small\(W\);r^small\(D\);\|r^small\(W\)−r^small\(D\)\|\],\\displaystyle=\[e\_\{\\mathrm\{small\}\};u\_\{\\mathrm\{small\}\};\\hat\{r\}\_\{\\mathrm\{small\}\}\(W\);\\hat\{r\}\_\{\\mathrm\{small\}\}\(D\);\|\\hat\{r\}\_\{\\mathrm\{small\}\}\(W\)\-\\hat\{r\}\_\{\\mathrm\{small\}\}\(D\)\|\],\(6\)zlarge\\displaystyle z\_\{\\mathrm\{large\}\}=\[elarge\]\.\\displaystyle=\[e\_\{\\mathrm\{large\}\}\]\.\(7\)All decision heads are parameterized as MLPs \(utilizing LayerNorm, GELU activations, and Dropout\) trained to regress reward targets using mean squared error, while the LLM backbones remain frozen\. At deployment, the policies trace the Pareto frontier across EM–storage–compute trade\-offs\.We defer full stagewise training and deployment protocols to Appendix[C](https://arxiv.org/html/2608.22215#A3)\.
### 3\.4Write\-back as slow consolidation
We introducewrite\-back, a slow consolidation stage that internalizes selected external memories into model parameters\. LetE=\{fi\}i=1NE=\\\{f\_\{i\}\\\}\_\{i=1\}^\{N\}denote the routed external memory\. Each retained factfif\_\{i\}is associated with a set of factual probes𝒬i=\{\(qi1,ai1\),…,\(qimi,aimi\)\}\\mathcal\{Q\}\_\{i\}=\\\{\(q\_\{i1\},a\_\{i1\}\),\\dots,\(q\_\{im\_\{i\}\},a\_\{im\_\{i\}\}\)\\\}\. Write\-back is applied only to facts labeledwrite\-neworwrite\-update\.
Each selected fact is converted into two complementary forms of supervision: independent question\-level examples \(xijqa=qij,yijqa=aijx^\{\\mathrm\{qa\}\}\_\{ij\}=q\_\{ij\},y^\{\\mathrm\{qa\}\}\_\{ij\}=a\_\{ij\}\) and sentence\-level targets \(xisent,fix^\{\\mathrm\{sent\}\}\_\{i\},f\_\{i\}\)\. We optimize the standard SFT causal language modeling objective over assistant tokens:
ℒSFT\(Θ\)=−∑k=1K∑t∈𝒜klogpΘ\(yk,t∣xk,yk,<t\)\.\\mathcal\{L\}\_\{\\mathrm\{SFT\}\}\(\\Theta\)=\-\\sum\_\{k=1\}^\{K\}\\sum\_\{t\\in\\mathcal\{A\}\_\{k\}\}\\log p\_\{\\Theta\}\(y\_\{k,t\}\\mid x\_\{k\},y\_\{k,<t\}\)\.\(8\)
A fact is removed from external memory only if consolidation is validated, i\.e\., the updated model answers its probes correctly without retrieval:1mi∑j=1miEM\(AnsΘ′\(qij\),aij\)≥τflush\\frac\{1\}\{m\_\{i\}\}\\sum\_\{j=1\}^\{m\_\{i\}\}\\mathrm\{EM\}\\large\(\\mathrm\{Ans\}\_\{\\Theta^\{\\prime\}\}\(q\_\{ij\}\),a\_\{ij\}\\large\)\\geq\\tau\_\{\\mathrm\{flush\}\}\. Otherwise, it remains in external memory\. For successfully consolidated facts, this completes the knowledge lifecycle: initial externalization intoEE, subsequent internalization intoΘ′\\Theta^\{\\prime\}, and final eviction fromEE\.
## 4Experiments and results
To evaluate the dual\-layer knowledge lifecycle, we construct an online streaming benchmark and compare our framework against various memory admission baselines\.
### 4\.1The streaming knowledge lifecycle benchmark
Existing memory benchmarks typically present background knowledge and downstream queries simultaneously\. This static setup conflates two distinct challenges: deciding*whether*to store an incoming statement, and deciding*what*to retrieve\. Because the query is already known when facts are processed, most systems bypass write\-time gating entirely—either unconditionally memorizing all inputs or relying exclusively on the downstream query to filter information at read time\. To explicitly isolate the admission bottleneck, we cast memory management as an*online streaming task*\. By requiring the agent to make immediate write\-versus\-discard decisions as facts arrive sequentially—strictly prior to encountering any associated queries—we effectively decouple memory admission from retrieval\.
##### Offline dataset and behavioral labeling\.
We derive the fact corpus from the Zero\-Shot Relation Extraction \(ZsRE\) benchmark\[[29](https://arxiv.org/html/2608.22215#bib.bib29)\]\. To establish targets for memory admission, we probe a frozenqwen3\-8Bbaseline on6,040,5606\{,\}040\{,\}560fact\-related queries\. By comparing zero\-shot answers against memory\-supported answers, we quantify the model’s parametric blind spots\. Based on these behavioral signals, we map each fact into an operational taxonomy:non\-write,write\-new, orwrite\-update\(see Appendix[A](https://arxiv.org/html/2608.22215#A1)for mathematical formulations and label distributions\)\.
##### Online benchmark environment and trajectory generation\.
We evaluate continuous memory management overE=300E=300streaming episodes from the test split\. Each episode containsT=500T=500temporally interleaved conversational turns withK=100K=100candidate fact injections and downstream QA interactions\. This streaming setup simulates realistic agent environments where knowledge injection and reasoning co\-occur, requiring the system to decide at write\-time whether each incoming fact should be externalized\. The injected facts preserve the natural distribution of the offline taxonomy, includingnon\-writedistractors, while satisfying causal admissibility \(i\.e\., queries never precede supporting facts\)\. A typical interaction trajectory is shown in Figure[3](https://arxiv.org/html/2608.22215#A1.F3), and the full synthesis procedure is provided in Appendix[A](https://arxiv.org/html/2608.22215#A1)\.
##### Metrics\.
We evaluate downstream QA quality using Exact Match \(EM\), token\-levelF1F\_\{1\}, and refusal rate\. Storage decision quality is scored at the knowledge\-injection level against the fact\-level labels via storage ratio together with Store Precision, Store Recall, and StoreF1F\_\{1\}\(see Appendix[A](https://arxiv.org/html/2608.22215#A1)for specific details on memory admission targets\)\. Finally, system efficiency is reported as routing compute cost\.
### 4\.2Baselines and compared methods
We compare againstStatic Policies\(No Store,Full Store,Random Store\),Heuristic Policies\(Heuristic Store,PPL\-Conditional Store\), andSupervised Policies\(Logistic Regression,MLP Classifier\)\. For our cascaded methods, we explicitly instantiateMsmallM\_\{\\mathrm\{small\}\}usingqwen3\-1\.7Bas the backbone, andMlargeM\_\{\\mathrm\{large\}\}usingqwen3\-8B\[[30](https://arxiv.org/html/2608.22215#bib.bib30)\]\. We evaluateWrite Router, which operates on features extracted from the frozen base models, andWrite RouterSFT\{\}\_\{\\text\{SFT\}\}, where both the 1\.7B and 8B backbones have undergone the write\-back consolidation phase to maintain aligned knowledge distributions\.Detailed implementation and thresholding strategies for all heuristic and supervised baselines are provided in Appendix[B](https://arxiv.org/html/2608.22215#A2)\.All experiments are conducted on a single compute node equipped with 4 NVIDIA H20 GPUs\.
### 4\.3Main results: end\-to\-end online benchmark
We evaluate all methods on the online streaming benchmark\. Table[1](https://arxiv.org/html/2608.22215#S4.T1)reports downstream QA quality together with storage and routing compute efficiency\. The overarching question is whether our dual\-layer framework can approach the performance of exhaustive storage while simultaneously avoiding external memory bloat and exorbitant routing costs\.
Table 1:End\-to\-end results on the dynamic online benchmark\. Our cascadedWrite Routerimproves the storage–performance frontier by reducing both routing compute and external memory usage: it escalates only∼\\sim40–49% of inputs to the 8B model, prunes up to 68% of redundant memory, and still retains over 98\.2% ofFull StoreEM\.PolicyQAEMTok\.F1F\_\{1\}Ref\.RateStore\(↓\\downarrow\)StorePrec\.StoreRecallStoreF1F\_\{1\}Routing Cost†\(↓\\downarrow\)Base Model Framework \(qwen3\-8B\)No Store38\.02%0\.40392\.8%0\.0%–0\.0%–0Random Store\(p=0\.5\)\(p=0\.5\)62\.95%0\.65171\.6%50\.0%76\.63%50\.06%60\.56%0Random Store\(p=0\.8\)\(p=0\.8\)78\.07%0\.80200\.7%80\.0%76\.60%80\.07%78\.30%0Full Store87\.79%0\.89800\.1%100\.0%76\.54%100\.0%86\.71%0Heuristic Store73\.56%0\.76050\.6%59\.08%86\.06%66\.43%74\.98%2×Gen8B2\\times\\text\{Gen\}\_\{8\\text\{B\}\}PPL\-Cond\. Store78\.95%0\.81440\.5%71\.74%83\.58%78\.35%80\.88%1×Fwd8B1\\times\\text\{Fwd\}\_\{8\\text\{B\}\}Logistic Regression83\.84%0\.86110\.2%68\.50%95\.68%85\.64%90\.38%1×Fwd8B1\\times\\text\{Fwd\}\_\{8\\text\{B\}\}MLP Classifier83\.18%0\.85480\.3%65\.36%96\.87%82\.72%89\.24%1×Fwd8B1\\times\\text\{Fwd\}\_\{8\\text\{B\}\}Write Router\(λs=0\.2,λe=0\.008\)\(\\lambda\_\{s\}=0\.2,\\,\\lambda\_\{e\}=0\.008\)83\.97%0\.86220\.3%64\.81%95\.76%81\.09%87\.82%Fwd1\.7B\+49\.0%Fwd8B\\text\{Fwd\}\_\{1\.7\\text\{B\}\}\\\!\+\\\!\{49\.0\\%\}\\,\\text\{Fwd\}\_\{8\\text\{B\}\}Write Router\(λs=0\.08,λe=0\.005\)\(\\lambda\_\{s\}=0\.08,\\,\\lambda\_\{e\}=0\.005\)86\.35%0\.88460\.2%77\.00%91\.06%91\.61%91\.33%Fwd1\.7B\+39\.7%Fwd8B\\text\{Fwd\}\_\{1\.7\\text\{B\}\}\\\!\+\\\!\{39\.7\\%\}\\,\\text\{Fwd\}\_\{8\\text\{B\}\}SFT Model Framework \(Knowledge\-adapted qwen3\-8B\)No Store69\.16%0\.71540\.0%0\.0%–0\.0%–0Full Store92\.29%0\.93030\.0%100\.0%76\.54%100\.0%86\.71%0Write RouterSFT\{\}\_\{\\text\{SFT\}\}\(λs=0\.2,λe=0\.008\)\(\\lambda\_\{s\}=0\.2,\\,\\lambda\_\{e\}=0\.008\)89\.77%0\.91690\.0%32\.08%97\.85%41\.01%∗57\.80%Fwd1\.7B\+45\.8%Fwd8B\\text\{Fwd\}\_\{1\.7\\text\{B\}\}\\\!\+\\\!\{45\.8\\%\}\\,\\text\{Fwd\}\_\{8\\text\{B\}\}Write RouterSFT\{\}\_\{\\text\{SFT\}\}\(λs=0\.08,λe=0\.005\)\(\\lambda\_\{s\}=0\.08,\\,\\lambda\_\{e\}=0\.005\)90\.71%0\.92530\.0%47\.85%93\.07%58\.19%∗71\.61%Fwd1\.7B\+43\.3%Fwd8B\\text\{Fwd\}\_\{1\.7\\text\{B\}\}\\\!\+\\\!\{43\.3\\%\}\\,\\text\{Fwd\}\_\{8\\text\{B\}\}
†Routing cost measures inference overhead\.Gen8B\\text\{Gen\}\_\{8\\text\{B\}\}denotes autoregressive generation with the 8B model, whileFwd8B\\text\{Fwd\}\_\{8\\text\{B\}\}andFwd1\.7B\\text\{Fwd\}\_\{1\.7\\text\{B\}\}denote a single forward pass\. The cascadedWrite Routerfilters all inputs with the 1\.7B model and escalates only a subset to the 8B model\.
∗Store Recall forWrite RouterSFT\\texttt\{Write Router\}\_\{\\text\{SFT\}\}is evaluated against static base\-model targets\.
##### Limitations of static and heuristic policies\.
Under the base model framework, relying purely on parametric memory yields poor performance, whereas exhaustive retention provides a theoretical upper bound\. As shown in Table[1](https://arxiv.org/html/2608.22215#S4.T1), whileStatic PolicieslikeRandom Storecan partially recover accuracy, they are highly memory\-inefficient\.Heuristic Policies\(Heuristic StoreandPPL\-Conditional Store\) improve the storage–performance frontier but remain suboptimal compared toSupervised Policies\(Logistic RegressionandMLP Classifier\)\. This indicates that optimal write decisions require explicit training on model\-internal features\.
##### Dual efficiency via cascade routing\.
Beyond storage footprint, the inference overhead of routing is a critical bottleneck\. Explicit probing \(Heuristic Store\) and full\-model feature extraction \(Supervised Policies\) incur substantial computational costs\. OurWrite Routeraddresses this through a small\-to\-large cascade\. By deployingqwen3\-1\.7Bas an efficient proxy, it escalates only 39\.7% to 49\.0% of uncertain queries to the 8B model, reducing the expected inference cost by roughly 30% to 39%\. Furthermore, it establishes a strictly superior storage–performance frontier for the base model\. It decisively outperforms not only static and heuristic baselines but also full\-8BSupervised Policiesat a fraction of the compute cost\. Ultimately, theWrite Routertightly tracks the theoretical optimum, retaining over 98\.3% of the exhaustive retention upper bound \(Full Store\) while significantly reducing both memory bloat and routing compute overhead\.
##### Knowledge internalization and epistemic shift\.
Table[1](https://arxiv.org/html/2608.22215#S4.T1)\(bottom\) evaluatesWrite RouterSFT\{\}\_\{\\text\{SFT\}\}\. Periodic SFT facilitatesknowledge internalization, significantly improving baseline QA performance and inducing anepistemic shift\. Sensing this updated parametric capacity, the router correctly discards newly internalized facts—a behavior that mathematically manifests as an apparent drop in Store Recall when evaluated against static base\-model targets\. Together, this adaptive discarding and the precise targeting of remaining blind spots \(97\.85% Store Precision\) allow the router to drastically reduce the storage footprint to just 32\.08%\. Despite this minimal external memory reliance, the agent achieves 90\.71% QA EM, retaining over 98\.2% of theFull Storeupper bound\.
### 4\.4Cascade gating analysis and architectures
Figure 2:EM–storage Pareto frontiers for the main cascade configuration under escalation thresholdsρ∈\{0\.4,0\.6\}\\rho\\in\\\{0\.4,0\.6\\\}\.To determine the optimal cascade parameterization, we conduct ablations on the held\-out routing test split\. Semantic features combined with epistemic uncertainty, mean pooling, and MSE optimization yield the strongest Pareto frontier \(detailed in Appendix[D](https://arxiv.org/html/2608.22215#A4)\)\. Figure[2](https://arxiv.org/html/2608.22215#S4.F2)evaluates whether the thresholded small\-to\-large cascade can recover large\-router performance at lower computational cost\.
As shown in Figure[2](https://arxiv.org/html/2608.22215#S4.F2), the cascade consistently closes the small–large router gap across storage budgets\. Even under strict escalation limits, it closely tracks the large\-router upper bound, with negligible EM degradation and substantial gains over the standalone small router \(see Appendix[D\.3](https://arxiv.org/html/2608.22215#A4.SS3)\)\. This validates our design: escalating only uncertain inputs preserves near\-optimal routing quality while reducing memory\-admission inference cost\.
### 4\.5Write\-back and consolidation analysis
The final lifecycle stage, write\-back, converts selected external memories into SFT supervision\. The objective is*selective internalization*—embedding factual updates into parametric memory \(Θ′\\Theta^\{\\prime\}\) to reduce subsequent retrieval dependence\. As shown previously, the write\-back phase alters the agent’s baseline QA performance and reduces the required storage ratio from 64\.81% to 32\.08%\.
Table 2:Post\-write\-back label transition matrix\. While many facts becomenon\-write, 1,752 previously stable facts degrade, indicating parametric interference\.Base \\ SFTnon\-writewrite\-newwrite\-updateTotal \(Base\)non\-write5,34701,7527,099write\-new5,78507,93913,724write\-update4,89804,4829,380Total \(SFT\)16,030014,17330,203To analyze this epistemic shift at the fact level, we track the behavioral labels of 30,203 held\-out knowledge items before and after consolidation in Table[2](https://arxiv.org/html/2608.22215#S4.T2)\. The SFT stage alters the labels of 67\.46% of the knowledge base, revealing three distinct phenomena:
- •Parametric Internalization:A total of 10,683 retrieval\-dependent facts \(5,785write\-newand 4,898write\-update\) transition tonon\-write\. This indicates that the model can now answer these queries using parametric memory alone, effectively reducing reliance on external memory\.
- •Partial Absorption:7,939write\-newfacts shift towrite\-update\. Here, the model moves from explicit zero\-shot refusals to generating incorrect answers\. This suggests that the model acquires partial semantic familiarity during SFT but still relies on external memory support for exact factual correction\.
- •Parametric Interference:We observe that 1,752 previously stablenon\-writefacts degrade intowrite\-update\. This reflects the catastrophic forgetting common in continuous parametric memory updating\. This interference provides empirical motivation for the dual\-layer architecture: because slow consolidation can corrupt existing knowledge, maintaining an external memory layer is necessary to override newly induced parametric errors\.
## 5Discussion & conclusion
In this work, we formalize LLM agent memory not as a passive, monotonically growing repository, but as a dynamic*knowledge lifecycle*problem\. Drawing inspiration from complementary learning systems, our dual\-layer architecture integrates fast, selective write routing with slow parametric consolidation\. Our empirical evaluations yield three primary conclusions\. First,cost\-aware selective externalizationvia a small\-to\-large cascaded router efficiently filters redundant facts, preserving downstream accuracy near the theoretical upper bound while drastically reducing both external memory bloat and routing compute overhead\. Second,write\-back enables internalization, leveraging the external memory as a temporary buffer that allows the agent to internalize retrieval\-dependent facts through periodic SFT\. Because the router is conditioned on the model’s internal states, it adaptively recognizes this shifted parametric capacity and further suppresses the external memory ratio\. Finally,parametric interference motivates the dual\-layer design: our fact\-level transition analysis reveals that while continuous parametric updates internalize vast knowledge, they inherently disrupt a subset of previously stable facts\. This confirms the necessity of maintaining a fast\-routing external memory layer: it acts as an essential buffer to dynamically correct the inevitable epistemic regressions caused by periodic parametric consolidation\.
##### Limitations and future work\.
While our framework provides a principled memory lifecycle, several limitations motivate future work\. First, the offline SFT write\-back introduces internalization latency and high compute costs; exploring continuous, parameter\-efficient adaptation \(e\.g\., online LoRA\) could tighten this loop\. Second, treating the external buffer as a uniform dataset during consolidation lacks a principled mechanism to resolve temporally conflicting updates accumulated between cycles\. Finally, while the external layer effectively buffers parametric interference, actively mitigating this catastrophic forgetting during write\-back—such as via episodic replay or weight regularization—remains a critical challenge for lifelong agent learning\.
## Acknowledgments and Disclosure of Funding
## References
- Lewis et al\. \[2020\]Patrick Lewis, Ethan Perez, Aleksandra Piktus, Fabio Petroni, Vladimir Karpukhin, Naman Goyal, Heinrich Küttler, Mike Lewis, Wen\-tau Yih, Tim Rocktäschel, et al\.Retrieval\-augmented generation for knowledge\-intensive nlp tasks\.*Advances in neural information processing systems*, 33:9459–9474, 2020\.
- Park et al\. \[2023\]Joon Sung Park, Joseph O’Brien, Carrie Jun Cai, Meredith Ringel Morris, Percy Liang, and Michael S Bernstein\.Generative agents: Interactive simulacra of human behavior\.In*Proceedings of the 36th annual acm symposium on user interface software and technology*, pages 1–22, 2023\.
- Packer et al\. \[2023\]Charles Packer, Sarah Wooders, Kevin Lin, Vivian Fang, Shishir G Patil, Ion Stoica, and Joseph E Gonzalez\.Memgpt: Towards llms as operating systems\.*arXiv preprint arXiv:2310\.08560*, 2023\.
- Meng et al\. \[2022a\]Kevin Meng, David Bau, Alex Andonian, and Yonatan Belinkov\.Locating and editing factual associations in gpt\.*Advances in neural information processing systems*, 35:17359–17372, 2022a\.
- Meng et al\. \[2022b\]Kevin Meng, Arnab Sen Sharma, Alex Andonian, Yonatan Belinkov, and David Bau\.Mass\-editing memory in a transformer\.*arXiv preprint arXiv:2210\.07229*, 2022b\.
- Wu et al\. \[2024\]Tongtong Wu, Linhao Luo, Yuan\-Fang Li, Shirui Pan, Thuy\-Trang Vu, and Gholamreza Haffari\.Continual learning for large language models: A survey\.*arXiv preprint arXiv:2402\.01364*, 2024\.
- Kumaran et al\. \[2016\]Dharshan Kumaran, Demis Hassabis, and James L McClelland\.What learning systems do intelligent agents need? complementary learning systems theory updated\.*Trends in cognitive sciences*, 20\(7\):512–534, 2016\.
- Zheng et al\. \[2026\]Junhao Zheng, Chengming Shi, Xidi Cai, Qiuke Li, Duzhen Zhang, Chenxing Li, Dong Yu, and Qianli Ma\.Lifelong learning of large language model based agents: A roadmap\.*IEEE Transactions on Pattern Analysis and Machine Intelligence*, 2026\.
- Hu et al\. \[2025\]Mengkang Hu, Tianxing Chen, Qiguang Chen, Yao Mu, Wenqi Shao, and Ping Luo\.Hiagent: Hierarchical working memory management for solving long\-horizon agent tasks with large language model\.In*Proceedings of the 63rd Annual Meeting of the Association for Computational Linguistics \(Volume 1: Long Papers\)*, pages 32779–32798, 2025\.
- Xu et al\. \[2025\]Wujiang Xu, Zujie Liang, Kai Mei, Hang Gao, Juntao Tan, and Yongfeng Zhang\.A\-mem: Agentic memory for llm agents\.*arXiv preprint arXiv:2502\.12110*, 2025\.
- Zeng et al\. \[2024\]Ruihong Zeng, Jinyuan Fang, Siwei Liu, and Zaiqiao Meng\.On the structural memory of llm agents\.*arXiv preprint arXiv:2412\.15266*, 2024\.
- Salama et al\. \[2025\]Rana Salama, Jason Cai, Michelle Yuan, Anna Currey, Monica Sunkara, Yi Zhang, and Yassine Benajiba\.Meminsight: Autonomous memory augmentation for llm agents\.In*Proceedings of the 2025 Conference on Empirical Methods in Natural Language Processing*, pages 33124–33140, 2025\.
- Liu et al\. \[2024\]Nelson F Liu, Kevin Lin, John Hewitt, Ashwin Paranjape, Michele Bevilacqua, Fabio Petroni, and Percy Liang\.Lost in the middle: How language models use long contexts\.*Transactions of the association for computational linguistics*, 12:157–173, 2024\.
- Asai et al\. \[2024\]Akari Asai, Zeqiu Wu, Yizhong Wang, Avirup Sil, and Hannaneh Hajishirzi\.Self\-rag: Learning to retrieve, generate, and critique through self\-reflection\.In*International conference on learning representations*, 2024\.
- Jeong et al\. \[2024\]Soyeong Jeong, Jinheon Baek, Sukmin Cho, Sung Ju Hwang, and Jong C\. Park\.Adaptive\-rag: Learning to adapt retrieval\-augmented large language models through question complexity\.In*Proceedings of the 2024 conference of the north american chapter of the association for computational linguistics*, 2024\.
- Labruna et al\. \[2025\]Tiziano Labruna, Jon Ander Campos, and Gorka Azkune\.When to retrieve: Teaching llms to utilize information retrieval effectively\.In*Proceedings of the 15th International Conference on Recent Advances in Natural Language Processing\-Natural Language Processing in the Generative AI Era*, pages 623–632, 2025\.
- Yao et al\. \[2025\]Zijun Yao, Weijian Qi, Liangming Pan, Shulin Cao, Linmei Hu, Liu Weichuan, Lei Hou, and Juanzi Li\.Seakr: Self\-aware knowledge retrieval for adaptive retrieval augmented generation\.In*Proceedings of the 63rd Annual Meeting of the Association for Computational Linguistics \(Volume 1: Long Papers\)*, pages 27022–27043, 2025\.
- Wu et al\. \[2025a\]Di Wu, Jia\-Chen Gu, Kai\-Wei Chang, and Nanyun Peng\.Self\-routing rag: Binding selective retrieval with knowledge verbalization\.*arXiv preprint arXiv:2504\.01018*, 2025a\.
- Dekoninck et al\. \[2025\]Jasper Dekoninck, Maximilian Baader, and Martin Vechev\.A unified approach to routing and cascading for LLMs\.In*International conference on machine learning*, 2025\.
- Ong et al\. \[2025\]Isaac Ong, Amjad Almahairi, Vincent Wu, Wei\-Lin Chiang, Tianhao Wu, Joseph E\. Gonzalez, M\. Waleed Kadous, and Ion Stoica\.Routellm: Learning to route llms from preference data\.In*International conference on learning representations*, 2025\.
- Jiang et al\. \[2025\]Houcheng Jiang, Junfeng Fang, Ningyu Zhang, Guojun Ma, Mingyang Wan, Xiang Wang, Xiangnan He, and Tat\-seng Chua\.Anyedit: Edit any knowledge encoded in language models\.*arXiv preprint arXiv:2502\.05628*, 2025\.
- Wang et al\. \[2025\]Changyue Wang, Weihang Su, Qingyao Ai, Yujia Zhou, and Yiqun Liu\.Decoupling reasoning and knowledge injection for in\-context knowledge editing\.In*Findings of the Association for Computational Linguistics: ACL 2025*, pages 24543–24562, 2025\.
- Wu et al\. \[2025b\]Yuchen Wu, Liang Ding, Li Shen, and Dacheng Tao\.Robust knowledge editing via explicit reasoning chains for distractor\-resilient multi\-hop qa\.*arXiv preprint arXiv:2509\.01468*, 2025b\.
- Shi et al\. \[2025a\]Haizhou Shi, Zihao Xu, Hengyi Wang, Weiyi Qin, Wenyuan Wang, Yibin Wang, Zifeng Wang, Sayna Ebrahimi, and Hao Wang\.Continual learning of large language models: A comprehensive survey\.*ACM Computing Surveys*, 58\(5\):1–42, 2025a\.
- McClelland et al\. \[1995\]James L McClelland, Bruce L McNaughton, and Randall C O’Reilly\.Why there are complementary learning systems in the hippocampus and neocortex: insights from the successes and failures of connectionist models of learning and memory\.*Psychological review*, 102\(3\):419, 1995\.
- Hsing \[2026\]Nicole Hsing\.MIRROR: Complementary encoding and reconstructive consolidation for persistent state in LLM systems\.In*ICLR 2026 Workshop on Memory for LLM\-Based Agentic Systems*, 2026\.URL[https://openreview\.net/forum?id=IviO4bIZc7](https://openreview.net/forum?id=IviO4bIZc7)\.
- Shi et al\. \[2025b\]Qianqian Shi, Faqiang Liu, Hongyi Li, Guangyu Li, Luping Shi, and Rong Zhao\.Hybrid neural networks for continual learning inspired by corticohippocampal circuits\.*Nature Communications*, 16\(1\):1272, 2025b\.
- Bazhenov et al\. \[2024\]Anthony Bazhenov, Pahan Dewasurendra, Giri P Krishnan, and Jean Erik Delanois\.Unsupervised replay strategies for continual learning with limited data\.In*2024 International Joint Conference on Neural Networks \(IJCNN\)*, pages 1–10\. IEEE, 2024\.
- Levy et al\. \[2017\]Omer Levy, Minjoon Seo, Eunsol Choi, and Luke Zettlemoyer\.Zero\-shot relation extraction via reading comprehension\.In*Proceedings of the 21st Conference on Computational Natural Language Learning \(CoNLL 2017\)*, pages 333–342, Vancouver, Canada, 2017\. Association for Computational Linguistics\.doi:10\.18653/v1/K17\-1034\.
- Yang et al\. \[2025\]An Yang, Anfeng Li, Baosong Yang, Beichen Zhang, Binyuan Hui, Bo Zheng, Bowen Yu, Chang Gao, Chengen Huang, Chenxu Lv, et al\.Qwen3 technical report\.*arXiv preprint arXiv:2505\.09388*, 2025\.
## Appendix AExtended dataset and benchmark details
This section details the mathematical formulations, empirical distributions, and algorithmic synthesis of the streaming benchmark introduced in Section[4\.1](https://arxiv.org/html/2608.22215#S4.SS1)\.
### A\.1Offline routing dataset and behavioral supervision
We build on the Zero\-Shot Relation Extraction \(ZsRE\) benchmark\[[29](https://arxiv.org/html/2608.22215#bib.bib29)\], which pairs each factual*\(subject, relation, object\)*triple with crowd\-sourced paraphrases of the underlying relation\. After enforcing a strict “exactlym=30m\{=\}30paraphrased probes per fact” filter, we retainN=201,352N\{=\}201\{,\}352unique fact instancesfif\_\{i\}, each accompanied by a set of factual probes𝒬i=\{\(qij,aij\)\}j=1m\\mathcal\{Q\}\_\{i\}=\\\{\(q\_\{ij\},a\_\{ij\}\)\\\}\_\{j=1\}^\{m\}\. The queries \(qijq\_\{ij\}\) within thesemmdiverse probes evaluate the model’s robustness to linguistic variations of the same underlying knowledge, yielding a total ofNm=6,040,560Nm\{=\}6\{,\}040\{,\}560distinct probes\.
To establish behavioral labels that serve as evaluation targets for memory admission, analytical markers for tracking parametric memory shifts, and supervision for classifier baselines, we evaluate a frozen baseline LLM \(qwen3\-8B, greedy decoding\) twice per probe: once*zero\-shot*\(using only the queryqijq\_\{ij\}\) and once*memory\-supported*\(where the corresponding factfif\_\{i\}is prepended toqijq\_\{ij\}\)\. Comparing the two generated responses against the gold answeraija\_\{ij\}partitions the probes into four operational classes:internal\-answerable\(correct zero\-shot\),missing\-knowledge\(refused zero\-shot but correct with the fact; corresponding tomnewm\_\{\\text\{new\}\}\),stale\-knowledge\(incorrect zero\-shot but correct with the fact; corresponding tomupdatem\_\{\\text\{update\}\}\), andunsolved\(incorrect even when the factfif\_\{i\}is provided\)\. The substantial proportion ofstale\-knowledgecases \(19\.4%19\.4\\%of probes\) is particularly informative: it identifies a large slice of parametric knowledge that is not merely missing but*stale*, which an effective memory must*override*rather than simply supplement\.
To aggregate these probe\-level signals into a fact\-level taxonomy, we compute the overall fraction of probes requiring external memory support \(ρi\\rho\_\{i\}\) and the fraction of these memory\-dependent probes indicating stale parametric memory \(γi\\gamma\_\{i\}\):
ρi=mnew\+mupdatem,γi=mupdatemnew\+mupdate\\rho\_\{i\}=\\frac\{m\_\{\\text\{new\}\}\+m\_\{\\text\{update\}\}\}\{m\},\\quad\\gamma\_\{i\}=\\frac\{m\_\{\\text\{update\}\}\}\{m\_\{\\text\{new\}\}\+m\_\{\\text\{update\}\}\}\(9\)Based on these metric ratios, the fact\-level write labelℓi\\ell\_\{i\}is strictly determined as follows:non\-writeifρi<0\.01\\rho\_\{i\}<0\.01;write\-updateifρi≥0\.01\\rho\_\{i\}\\geq 0\.01andγi≥0\.5\\gamma\_\{i\}\\geq 0\.5; andwrite\-newotherwise \(ρi≥0\.01\\rho\_\{i\}\\geq 0\.01andγi<0\.5\\gamma\_\{i\}<0\.5\)\. This deterministic assignment provides the ground\-truth labels for training and evaluating the memory admission policies\. The empirical class proportions arenon\-write:write\-new:write\-update= 23\.5: 45\.1: 31\.4 \(%\)\. The inclusion of a non\-trivialnon\-writefraction is essential to penalize indiscriminate memory admission\.
### A\.2Streaming evaluation protocol and episode synthesis
We instantiateE=300E\{=\}300test\-split*episodes*, each modeled as a finite\-horizon environment ofT=500T\{=\}500turns over a private fact pool of sizeK=100K\{=\}100\. Facts are drawn without replacement from the test split to ensure no fact appears in more than one episode\. A typical interaction trajectory is formally structured as follows:
Figure 3:Illustration of the streaming interaction format used in our benchmark\.Episodes are synthesized automatically by a scheduler that samples from the fact pool subject to four critical properties:
\(P1\) Coverage\.Every sampled fact is injected exactly once and probed at least once\.
\(P2\) Causality\.No queryqkjq\_\{kj\}testingfkf\_\{k\}may appear before the turn at whichfkf\_\{k\}is injected\.
\(P3\) Liveness\.Turn00admits at least one knowledge injection, ensuring the first query is causally answerable\.
\(P4\) Distractor exposure\.The empirical class mix matches the underlying test\-split distribution, exposing the agent tonon\-writedistractors at their natural base rate\.
##### Algorithm design and guarantees\.
To satisfy these temporal and causal constraints efficiently, we employ a three\-stage deterministic generation pipeline \(Algorithm[1](https://arxiv.org/html/2608.22215#alg1)\) driven by a seeded random number generator\.
First, facts are distributed across the timeline using a stratified sampling approach \(Stage 1\)\. Instead of randomly assigning injection times, the timeline is partitioned into buckets, guaranteeing that every fact is injected early enough to leave sufficient room for subsequent probes\. A post\-hoc check ensures at least one fact is injected at turn 0 to satisfy liveness \(P3\)\.
Second, the algorithm allocates a precise probe budget to each fact \(Stage 2\)\. It uses a forward greedy pass to dynamically assign probe counts, ensuring the total number of queries perfectly matches the episode length \(TT\)\. Because of the stratified injection in Stage 1, the algorithm inherently avoids bottlenecks where too many facts are injected too late to be probed\.
Finally, probes are sequentially streamed to the agent \(Stage 3\)\. We maintain an active pool of valid queries \(𝒫\\mathcal\{P\}\)\. A query only enters this active pool at or after the exact turn its corresponding fact is injected\. By strictly sampling queries from𝒫\\mathcal\{P\}, the algorithm naturally enforces causal admissibility \(P2\)\.
This pipeline runs inO\(TlogT\)O\(T\\log T\)time and provides a highly robust, bit\-exactly reproducible mechanism\. By relying on structural scheduling rather than complex constraint solvers, it seamlessly simulates continuous knowledge evolution while strictly respecting all evaluation requirements\.
Algorithm 1Episode synthesis\(K,T,m,rng\)\(K,T,m,\\mathrm\{rng\}\)\.1:Stage 1: Stratified injection schedule
2:for
k=1,…,Kk=1,\\dots,Kdo
3:
lk←⌊\(k−1\)T/K⌋l\_\{k\}\\\!\\leftarrow\\\!\\lfloor\(k\{\-\}1\)T/K\\rfloor,
rk←min\{T−1,⌊kT/K⌋−1\}r\_\{k\}\\\!\\leftarrow\\\!\\min\\\{T\{\-\}1,\\lfloor kT/K\\rfloor\{\-\}1\\\}
4:
ι\(k\)∼𝒰\{lk,…,rk\}\\iota\(k\)\\\!\\sim\\\!\\mathcal\{U\}\\\{l\_\{k\},\\dots,r\_\{k\}\\\}⊳\\trianglerightAssign fact injection turnsι\(k\)\\iota\(k\)
5:endfor
6:if
0∉ι\(\[K\]\)0\\notin\\iota\(\[K\]\)then
ι\(argminkι\(k\)\)←0\\iota\(\\arg\\min\_\{k\}\\iota\(k\)\)\\leftarrow 0
7:endif
8:Stage 2: Probe budget allocation
9:
σ←\\sigma\\leftarrowpermutation of
\[K\]\[K\]in ascending
ι\\iota;
n←𝟏Kn\\leftarrow\\mathbf\{1\}\_\{K\};
c←Kc\\leftarrow K
10:for
r=1,…,Kr=1,\\dots,Kdo
11:
t⋆←ι\(σ\(r\+1\)\)t^\{\\star\}\\leftarrow\\iota\(\\sigma\(r\{\+\}1\)\)if
r<Kr<Kelse
TT;
s←t⋆−cs\\leftarrow t^\{\\star\}\-c
12:advance
nσ\(r\),nσ\(r−1\),…n\_\{\\sigma\(r\)\},n\_\{\\sigma\(r\{\-\}1\)\},\\dotsin turn \(up to cap
mm\) until
ssis absorbed, updating
cc
13:endfor
14:Distribute the residual
T−∑knkT\-\\sum\_\{k\}n\_\{k\}uniformly at random subject to
nk≤mn\_\{k\}\\leq m
15:Stage 3: Causal probe streaming
16:for
k=1,…,Kk=1,\\dots,Kdo
Pk←P\_\{k\}\\leftarrowuniform sample of
nkn\_\{k\}probes from
𝒬k\\mathcal\{Q\}\_\{k\}
17:endfor
18:
𝒫←∅\\mathcal\{P\}\\leftarrow\\emptyset
19:for
t=0,…,T−1t=0,\\dots,T\{\-\}1do
20:
𝒫←𝒫∪\{\(k,p\):p∈Pk,ι\(k\)=t\}\\mathcal\{P\}\\leftarrow\\mathcal\{P\}\\cup\\\{\(k,p\):p\\in P\_\{k\},\\,\\iota\(k\)\{=\}t\\\}⊳\\trianglerightAdd probe to pool only after injection
21:
π\(t\)←\\pi\(t\)\\leftarrowuniform sample from
𝒫\\mathcal\{P\};
𝒫←𝒫∖\{π\(t\)\}\\mathcal\{P\}\\leftarrow\\mathcal\{P\}\\setminus\\\{\\pi\(t\)\\\}
22:endfor
23:return
\(ι,n,π\)\(\\iota,n,\\pi\)
### A\.3Evaluation metrics
We report three families of metrics\. Downstream QA quality is scored per turn by evaluating the agent’s generated response to the current query against the corresponding ground\-truth answer using Exact Match \(EM\), token\-levelF1F\_\{1\}, and refusal rate\. Storage decision quality is scored at the knowledge\-injection level against the fact\-level labelsℓi\\ell\_\{i\}via storage ratio together with Store Precision, Store Recall, and StoreF1F\_\{1\}\. Here, behavioral labelswrite\-newandwrite\-updateare merged and treated as positive targets for memory admission, whilenon\-writeacts as the negative target\. Finally, system efficiency is reported as routing compute cost \(inference overhead per decision\)\.
## Appendix BImplementation of baselines and compared methods
Due to space constraints in the main text, we detail the implementation of heuristic and supervised baselines here:
- •Heuristic Store: Explicitly probes the model before making a write decision\. Given an incoming fact, it generates a factual question, answers that question, and uses a high/low confidence judgment to decide whether the fact should be stored\.
- •PPL\-Conditional Store: Thresholds the model’s per\-token cross\-entropy on the input fact, using linguistic surprisal as a proxy for prior familiarity\. The threshold is selected via a validation split\.
- •Logistic Regression&MLP Classifier: Trained on automatically constructed binarywritevs\.non\-writelabels\. TheMLP Classifiershares the exact same architecture as our large routerMlargeM\_\{\\mathrm\{large\}\}and uses the same semantic/uncertainty features, but is optimized with standard binary cross\-entropy \(BCE\) instead of our reward\-based objective\.
## Appendix CTraining and deployment protocols
Training proceeds stagewise\. We first train the small router and the large router to regress reward targets using mean squared error\. After freezing both routers, we construct gate supervision from their greedy actions and train the gate to predict escalation gain\. In deployment, routing policies are not chosen by maximizing QA Exact Match \(EM\) alone, since that would trivially collapse toward writing everything\. Instead, we sweep\(λs,λe\)\(\\lambda\_\{s\},\\lambda\_\{e\}\)on the validation split, tracing the Pareto frontier in the EM\-storage\-compute space to select the optimal deployment trade\-off\.
## Appendix DExtended router architectural ablations
We analyzed the write router in the controlled offline setting to isolate the contributions of feature design, pooling strategy, loss function, and cascade gating design\.
### D\.1Feature ablation
We performed a3×33\\times 3ablation study comparing feature sources fromMsmallM\_\{\\mathrm\{small\}\},MlargeM\_\{\\mathrm\{large\}\}, and their concatenation against semantic, uncertainty, and combined features\.
Figure 4:Step 1 single\-layer feature ablation on the held\-out test set\.As shown in Figure[4](https://arxiv.org/html/2608.22215#A4.F4), uncertainty\-only inputs are clearly weaker than semantic inputs on the small side: to reach test EM0\.860\.86,single\_small\_uncertaintyrequires storage0\.8470\.847, whereassingle\_small\_semanticrequires only0\.7100\.710\. On the large router, concatenating small\-side features offers almost no benefit: at storage≤0\.8\\leq 0\.8,single\_large\_semanticreaches test EM0\.8740\.874versus0\.8750\.875forsingle\_small\_large\_semantic\.At EM≥0\.86\\geq 0\.86, the required storage is0\.6580\.658versus0\.6620\.662\.
### D\.2Pooling and loss ablation
Retaining the strongest feature candidates, we compared pooling strategies \(meanvs\.last\_token\) and training objectives \(MSE vs\. Margin Ranking\)\.
Figure 5:Step 2 pooling\-and\-loss ablation on the held\-out test set\.Figure[5](https://arxiv.org/html/2608.22215#A4.F5)shows mean pooling with MSE gives the strongest overall frontier\. On the large\-semantic router, at storage≤0\.8\\leq 0\.8,mean\+msereaches test EM0\.8750\.875, compared with0\.8740\.874formean\+margin\_ranking,0\.8730\.873forlast\_token\+mse, and0\.8600\.860forlast\_token\+margin\_ranking\. At EM≥0\.86\\geq 0\.86, it requires storage0\.6580\.658, versus0\.6800\.680,0\.6780\.678, and0\.6900\.690, respectively\.
### D\.3Escalation thresholds analysis
In Section[4\.4](https://arxiv.org/html/2608.22215#S4.SS4), we summarized the thresholded cascade’s performance\. Here we provide the precise ablation numbers supporting Figure[2](https://arxiv.org/html/2608.22215#S4.F2)\. At storage caps 0\.6, 0\.7, and 0\.8, theρ≤0\.6\\rho\\leq 0\.6cascade frontier is only0\.00040\.0004,0\.00220\.0022, and0\.00100\.0010EM below the large router frontier,while improving over the small router frontier by0\.01200\.0120,0\.00480\.0048, and0\.00210\.0021, respectively\. Even under the stricterρ≤0\.4\\rho\\leq 0\.4budget, the gap to the large router stays within0\.00310\.0031over the same range, proving that moderate escalation tightly bounds the theoretical optimum\.
### D\.4Cascade gate design ablation
To isolate the contribution of the escalation controller itself, we conducted a dedicated cascade\-gate ablation\.
Figure 6:Step 3 cascade\-gate ablation on the held\-out test set under escalation thresholdsρ∈\{0\.4,0\.6\}\\rho\\in\\\{0\.4,0\.6\\\}\.Figure[6](https://arxiv.org/html/2608.22215#A4.F6)shows that all learned gates close most of the gap between the small router and large router anchors\. Underρ≤0\.6\\rho\\leq 0\.6, thecascade\_gate\_semanticgate reaches test EM0\.84510\.8451at storage≤0\.6\\leq 0\.6and0\.86560\.8656at storage≤0\.7\\leq 0\.7, compared with0\.84280\.8428and0\.86380\.8638forcascade\_gate\_score\_only\. The fullcascade\_gate\_semantic\_uncertaintygate then recovers the strongest high\-storage endpoint, reaching EM0\.87430\.8743at storage≤0\.8\\leq 0\.8, only0\.00030\.0003below the large router frontier\. Under the stricterρ≤0\.4\\rho\\leq 0\.4budget,cascade\_gate\_semantic\_uncertaintyalso reaches EM≥0\.85\\geq 0\.85at the lowest storage \(0\.62670\.6267\), compared with0\.64640\.6464forcascade\_gate\_semanticand0\.67660\.6766forcascade\_gate\_score\_only\.
## NeurIPS Paper Checklist
1. 1\.Claims
2. Question: Do the main claims made in the abstract and introduction accurately reflect the paper’s contributions and scope?
3. Answer:\[Yes\]
4. Justification: The main claims regarding the dual\-layer memory architecture, cost\-aware write routing, and slow consolidation are clearly stated in Section 1 and directly supported by the empirical evaluations in Section 4\.
5. Guidelines: - •The answer\[N/A\]means that the abstract and introduction do not include the claims made in the paper\. - •The abstract and/or introduction should clearly state the claims made, including the contributions made in the paper and important assumptions and limitations\. A\[No\]or\[N/A\]answer to this question will not be perceived well by the reviewers\. - •The claims made should match theoretical and experimental results, and reflect how much the results can be expected to generalize to other settings\. - •It is fine to include aspirational goals as motivation as long as it is clear that these goals are not attained by the paper\.
6. 2\.Limitations
7. Question: Does the paper discuss the limitations of the work performed by the authors?
8. Answer:\[Yes\]
9. Justification: The limitations, including the computational cost of offline SFT write\-back and the lack of a principled mechanism to resolve temporally conflicting updates, are explicitly discussed in Section 5\.
10. Guidelines: - •The answer\[N/A\]means that the paper has no limitation while the answer\[No\]means that the paper has limitations, but those are not discussed in the paper\. - •The authors are encouraged to create a separate “Limitations” section in their paper\. - •The paper should point out any strong assumptions and how robust the results are to violations of these assumptions \(e\.g\., independence assumptions, noiseless settings, model well\-specification, asymptotic approximations only holding locally\)\. The authors should reflect on how these assumptions might be violated in practice and what the implications would be\. - •The authors should reflect on the scope of the claims made, e\.g\., if the approach was only tested on a few datasets or with a few runs\. In general, empirical results often depend on implicit assumptions, which should be articulated\. - •The authors should reflect on the factors that influence the performance of the approach\. For example, a facial recognition algorithm may perform poorly when image resolution is low or images are taken in low lighting\. Or a speech\-to\-text system might not be used reliably to provide closed captions for online lectures because it fails to handle technical jargon\. - •The authors should discuss the computational efficiency of the proposed algorithms and how they scale with dataset size\. - •If applicable, the authors should discuss possible limitations of their approach to address problems of privacy and fairness\. - •While the authors might fear that complete honesty about limitations might be used by reviewers as grounds for rejection, a worse outcome might be that reviewers discover limitations that aren’t acknowledged in the paper\. The authors should use their best judgment and recognize that individual actions in favor of transparency play an important role in developing norms that preserve the integrity of the community\. Reviewers will be specifically instructed to not penalize honesty concerning limitations\.
11. 3\.Theory assumptions and proofs
12. Question: For each theoretical result, does the paper provide the full set of assumptions and a complete \(and correct\) proof?
13. Answer:\[N/A\]
14. Justification: The paper is primarily empirical and systems\-oriented; it does not present formal theoretical proofs or theorems\.
15. Guidelines: - •The answer\[N/A\]means that the paper does not include theoretical results\. - •All the theorems, formulas, and proofs in the paper should be numbered and cross\-referenced\. - •All assumptions should be clearly stated or referenced in the statement of any theorems\. - •The proofs can either appear in the main paper or the supplemental material, but if they appear in the supplemental material, the authors are encouraged to provide a short proof sketch to provide intuition\. - •Inversely, any informal proof provided in the core of the paper should be complemented by formal proofs provided in appendix or supplemental material\. - •Theorems and Lemmas that the proof relies upon should be properly referenced\.
16. 4\.Experimental result reproducibility
17. Question: Does the paper fully disclose all the information needed to reproduce the main experimental results of the paper to the extent that it affects the main claims and/or conclusions of the paper \(regardless of whether the code and data are provided or not\)?
18. Answer:\[Yes\]
19. Justification: The full experimental setup, baseline definitions, hyperparameter trade\-offs, routing methodology, and the deterministic dataset synthesis algorithms are detailed in Sections 3 and 4, as well as Appendices A\-C\.
20. Guidelines: - •The answer\[N/A\]means that the paper does not include experiments\. - •If the paper includes experiments, a\[No\]answer to this question will not be perceived well by the reviewers: Making the paper reproducible is important, regardless of whether the code and data are provided or not\. - •If the contribution is a dataset and/or model, the authors should describe the steps taken to make their results reproducible or verifiable\. - •Depending on the contribution, reproducibility can be accomplished in various ways\. For example, if the contribution is a novel architecture, describing the architecture fully might suffice, or if the contribution is a specific model and empirical evaluation, it may be necessary to either make it possible for others to replicate the model with the same dataset, or provide access to the model\. In general\. releasing code and data is often one good way to accomplish this, but reproducibility can also be provided via detailed instructions for how to replicate the results, access to a hosted model \(e\.g\., in the case of a large language model\), releasing of a model checkpoint, or other means that are appropriate to the research performed\. - •While NeurIPS does not require releasing code, the conference does require all submissions to provide some reasonable avenue for reproducibility, which may depend on the nature of the contribution\. For example 1. \(a\)If the contribution is primarily a new algorithm, the paper should make it clear how to reproduce that algorithm\. 2. \(b\)If the contribution is primarily a new model architecture, the paper should describe the architecture clearly and fully\. 3. \(c\)If the contribution is a new model \(e\.g\., a large language model\), then there should either be a way to access this model for reproducing the results or a way to reproduce the model \(e\.g\., with an open\-source dataset or instructions for how to construct the dataset\)\. 4. \(d\)We recognize that reproducibility may be tricky in some cases, in which case authors are welcome to describe the particular way they provide for reproducibility\. In the case of closed\-source models, it may be that access to the model is limited in some way \(e\.g\., to registered users\), but it should be possible for other researchers to have some path to reproducing or verifying the results\.
21. 5\.Open access to data and code
22. Question: Does the paper provide open access to the data and code, with sufficient instructions to faithfully reproduce the main experimental results, as described in supplemental material?
23. Answer:\[No\]
24. Justification: As stated in the abstract, the code and synthesized dataset will be fully released upon acceptance\. Detailed algorithmic descriptions and implementation protocols are provided in Section 3, Section 4, and Appendix A\-C to facilitate reproduction\.
25. Guidelines: - •The answer\[N/A\]means that paper does not include experiments requiring code\. - • - •While we encourage the release of code and data, we understand that this might not be possible, so\[No\]is an acceptable answer\. Papers cannot be rejected simply for not including code, unless this is central to the contribution \(e\.g\., for a new open\-source benchmark\)\. - •The instructions should contain the exact command and environment needed to run to reproduce the results\. See the NeurIPS code and data submission guidelines \([https://neurips\.cc/public/guides/CodeSubmissionPolicy](https://neurips.cc/public/guides/CodeSubmissionPolicy)\) for more details\. - •The authors should provide instructions on data access and preparation, including how to access the raw data, preprocessed data, intermediate data, and generated data, etc\. - •The authors should provide scripts to reproduce all experimental results for the new proposed method and baselines\. If only a subset of experiments are reproducible, they should state which ones are omitted from the script and why\. - •At submission time, to preserve anonymity, the authors should release anonymized versions \(if applicable\)\. - •Providing as much information as possible in supplemental material \(appended to the paper\) is recommended, but including URLs to data and code is permitted\.
26. 6\.Experimental setting/details
27. Question: Does the paper specify all the training and test details \(e\.g\., data splits, hyperparameters, how they were chosen, type of optimizer\) necessary to understand the results?
28. Answer:\[Yes\]
29. Justification: The training strategies, data splits, and evaluation metrics are detailed in Section 4 and Appendix A\. The hyperparameter selection process \(e\.g\., sweeping penalty termsλs\\lambda\_\{s\},λe\\lambda\_\{e\}on the validation split\) and specific optimization details are explicitly documented in Appendix B and C\.
30. Guidelines: - •The answer\[N/A\]means that the paper does not include experiments\. - •The experimental setting should be presented in the core of the paper to a level of detail that is necessary to appreciate the results and make sense of them\. - •The full details can be provided either with the code, in appendix, or as supplemental material\.
31. 7\.Experiment statistical significance
32. Question: Does the paper report error bars suitably and correctly defined or other appropriate information about the statistical significance of the experiments?
33. Answer:\[No\]
34. Justification: Error bars are not reported because the online streaming benchmark evaluates deterministic routing policies over a fixed, large\-scale dataset of 300 test episodes \(150,000 queries total\), making variance negligible\.
35. Guidelines: - •The answer\[N/A\]means that the paper does not include experiments\. - •The authors should answer\[Yes\]if the results are accompanied by error bars, confidence intervals, or statistical significance tests, at least for the experiments that support the main claims of the paper\. - •The factors of variability that the error bars are capturing should be clearly stated \(for example, train/test split, initialization, random drawing of some parameter, or overall run with given experimental conditions\)\. - •The method for calculating the error bars should be explained \(closed form formula, call to a library function, bootstrap, etc\.\) - •The assumptions made should be given \(e\.g\., Normally distributed errors\)\. - •It should be clear whether the error bar is the standard deviation or the standard error of the mean\. - •It is OK to report 1\-sigma error bars, but one should state it\. The authors should preferably report a 2\-sigma error bar than state that they have a 96% CI, if the hypothesis of Normality of errors is not verified\. - •For asymmetric distributions, the authors should be careful not to show in tables or figures symmetric error bars that would yield results that are out of range \(e\.g\., negative error rates\)\. - •If error bars are reported in tables or plots, the authors should explain in the text how they were calculated and reference the corresponding figures or tables in the text\.
36. 8\.Experiments compute resources
37. Question: For each experiment, does the paper provide sufficient information on the computer resources \(type of compute workers, memory, time of execution\) needed to reproduce the experiments?
38. Answer:\[Yes\]
39. Justification: We explicitly state the hardware compute resources \(a node equipped with 4 NVIDIA H20 GPUs\) used for the experiments in Section 4\.2\.
40. Guidelines: - •The answer\[N/A\]means that the paper does not include experiments\. - •The paper should indicate the type of compute workers CPU or GPU, internal cluster, or cloud provider, including relevant memory and storage\. - •The paper should provide the amount of compute required for each of the individual experimental runs as well as estimate the total compute\. - •The paper should disclose whether the full research project required more compute than the experiments reported in the paper \(e\.g\., preliminary or failed experiments that didn’t make it into the paper\)\.
41. 9\.Code of ethics
43. Answer:\[Yes\]
44. Justification: The research is strictly methodological and fully conforms to the NeurIPS Code of Ethics\.
45. Guidelines: - •The answer\[N/A\]means that the authors have not reviewed the NeurIPS Code of Ethics\. - •If the authors answer\[No\], they should explain the special circumstances that require a deviation from the Code of Ethics\. - •The authors should make sure to preserve anonymity \(e\.g\., if there is a special consideration due to laws or regulations in their jurisdiction\)\.
46. 10\.Broader impacts
47. Question: Does the paper discuss both potential positive societal impacts and negative societal impacts of the work performed?
48. Answer:\[No\]
49. Justification: The paper focuses on foundational agent memory optimization and architecture design\. It does not introduce specific downstream societal risks beyond those inherent to general large language models\.
50. Guidelines: - •The answer\[N/A\]means that there is no societal impact of the work performed\. - •If the authors answer\[N/A\]or\[No\], they should explain why their work has no societal impact or why the paper does not address societal impact\. - •Examples of negative societal impacts include potential malicious or unintended uses \(e\.g\., disinformation, generating fake profiles, surveillance\), fairness considerations \(e\.g\., deployment of technologies that could make decisions that unfairly impact specific groups\), privacy considerations, and security considerations\. - •The conference expects that many papers will be foundational research and not tied to particular applications, let alone deployments\. However, if there is a direct path to any negative applications, the authors should point it out\. For example, it is legitimate to point out that an improvement in the quality of generative models could be used to generate Deepfakes for disinformation\. On the other hand, it is not needed to point out that a generic algorithm for optimizing neural networks could enable people to train models that generate Deepfakes faster\. - •The authors should consider possible harms that could arise when the technology is being used as intended and functioning correctly, harms that could arise when the technology is being used as intended but gives incorrect results, and harms following from \(intentional or unintentional\) misuse of the technology\. - •If there are negative societal impacts, the authors could also discuss possible mitigation strategies \(e\.g\., gated release of models, providing defenses in addition to attacks, mechanisms for monitoring misuse, mechanisms to monitor how a system learns from feedback over time, improving the efficiency and accessibility of ML\)\.
51. 11\.Safeguards
52. Question: Does the paper describe safeguards that have been put in place for responsible release of data or models that have a high risk for misuse \(e\.g\., pre\-trained language models, image generators, or scraped datasets\)?
53. Answer:\[N/A\]
54. Justification: We do not release any new pre\-trained base models or scraped datasets that pose a high risk for misuse\.
55. Guidelines: - •The answer\[N/A\]means that the paper poses no such risks\. - •Released models that have a high risk for misuse or dual\-use should be released with necessary safeguards to allow for controlled use of the model, for example by requiring that users adhere to usage guidelines or restrictions to access the model or implementing safety filters\. - •Datasets that have been scraped from the Internet could pose safety risks\. The authors should describe how they avoided releasing unsafe images\. - •We recognize that providing effective safeguards is challenging, and many papers do not require this, but we encourage authors to take this into account and make a best faith effort\.
56. 12\.Licenses for existing assets
57. Question: Are the creators or original owners of assets \(e\.g\., code, data, models\), used in the paper, properly credited and are the license and terms of use explicitly mentioned and properly respected?
58. Answer:\[Yes\]
59. Justification: Existing assets, including the foundational ZsRE benchmark and the Qwen base models used for evaluation, are appropriately cited in the main text\.
60. Guidelines: - •The answer\[N/A\]means that the paper does not use existing assets\. - •The authors should cite the original paper that produced the code package or dataset\. - •The authors should state which version of the asset is used and, if possible, include a URL\. - •The name of the license \(e\.g\., CC\-BY 4\.0\) should be included for each asset\. - •For scraped data from a particular source \(e\.g\., website\), the copyright and terms of service of that source should be provided\. - •If assets are released, the license, copyright information, and terms of use in the package should be provided\. For popular datasets,[paperswithcode\.com/datasets](https://paperswithcode.com/datasets)has curated licenses for some datasets\. Their licensing guide can help determine the license of a dataset\. - •For existing datasets that are re\-packaged, both the original license and the license of the derived asset \(if it has changed\) should be provided\. - •If this information is not available online, the authors are encouraged to reach out to the asset’s creators\.
61. 13\.New assets
62. Question: Are new assets introduced in the paper well documented and is the documentation provided alongside the assets?
63. Answer:\[Yes\]
64. Justification: The paper introduces multiple new assets: \(1\) A novel streaming memory benchmark, whose synthesis algorithm \(Algorithm 1\), behavioral labeling taxonomy, and structural guarantees are thoroughly documented in Appendix A\. \(2\) The codebase and algorithmic framework for the Dual\-Layer Agentic Memory, which includes the implementations of the small\-to\-large cost\-aware write router cascade, the escalation gating mechanism, and the periodic write\-back \(SFT\) pipeline\. Detailed mathematical formulations, training objectives, and deployment protocols for these algorithms are provided in Section 3 and Appendices B and C\. As stated in the abstract, the complete benchmark datasets, evaluation environment, and framework source code will be publicly released upon acceptance to ensure full reproducibility\.
65. Guidelines: - •The answer\[N/A\]means that the paper does not release new assets\. - •Researchers should communicate the details of the dataset/code/model as part of their submissions via structured templates\. This includes details about training, license, limitations, etc\. - •The paper should discuss whether and how consent was obtained from people whose asset is used\. - •At submission time, remember to anonymize your assets \(if applicable\)\. You can either create an anonymized URL or include an anonymized zip file\.
66. 14\.Crowdsourcing and research with human subjects
67. Question: For crowdsourcing experiments and research with human subjects, does the paper include the full text of instructions given to participants and screenshots, if applicable, as well as details about compensation \(if any\)?
68. Answer:\[N/A\]
69. Justification: The research does not involve crowdsourcing or human subjects\.
70. Guidelines: - •The answer\[N/A\]means that the paper does not involve crowdsourcing nor research with human subjects\. - •Including this information in the supplemental material is fine, but if the main contribution of the paper involves human subjects, then as much detail as possible should be included in the main paper\. - •According to the NeurIPS Code of Ethics, workers involved in data collection, curation, or other labor should be paid at least the minimum wage in the country of the data collector\.
71. 15\.Institutional review board \(IRB\) approvals or equivalent for research with human subjects
72. Question: Does the paper describe potential risks incurred by study participants, whether such risks were disclosed to the subjects, and whether Institutional Review Board \(IRB\) approvals \(or an equivalent approval/review based on the requirements of your country or institution\) were obtained?
73. Answer:\[N/A\]
74. Justification: The research does not involve human subjects\.
75. Guidelines: - •The answer\[N/A\]means that the paper does not involve crowdsourcing nor research with human subjects\. - •Depending on the country in which research is conducted, IRB approval \(or equivalent\) may be required for any human subjects research\. If you obtained IRB approval, you should clearly state this in the paper\. - •We recognize that the procedures for this may vary significantly between institutions and locations, and we expect authors to adhere to the NeurIPS Code of Ethics and the guidelines for their institution\. - •For initial submissions, do not include any information that would break anonymity \(if applicable\), such as the institution conducting the review\.
76. 16\.Declaration of LLM usage
77. Question: Does the paper describe the usage of LLMs if it is an important, original, or non\-standard component of the core methods in this research? Note that if the LLM is used only for writing, editing, or formatting purposes and does*not*impact the core methodology, scientific rigor, or originality of the research, declaration is not required\.
78. Answer:\[N/A\]
79. Justification: LLMs were used solely for writing assistance and text editing \(e\.g\., grammar, spelling, word choice\), which does not impact the core methodology and does not require a formal declaration per NeurIPS guidelines\.
80. Guidelines: - •The answer\[N/A\]means that the core method development in this research does not involve LLMs as any important, original, or non\-standard components\. - •Please refer to our LLM policy in the NeurIPS handbook for what should or should not be described\.Similar Articles
Learning What to Retain: Gated-Memory Routing for Efficient Collaboration in Multi-Agent LLM Systems
The paper proposes Gated-Memory Routing, a framework for multi-agent LLM systems that uses learned gates to manage memory, improving accuracy and reducing inference costs on reasoning and code-generation benchmarks.
Human-Inspired Memory Architecture for LLM Agents
Microsoft researchers propose a biologically-inspired memory architecture for LLM agents that incorporates mechanisms like sleep-phase consolidation and interference-based forgetting to manage persistent memory efficiently.
RecMem: Recurrence-based Memory Consolidation for Efficient and Effective Long-Running LLM Agents
RecMem is a recurrence-based memory consolidation method for long-running LLM agents that reduces token consumption by up to 87% while improving accuracy, by only invoking LLMs when semantically similar interactions recur.
Shared Selective Persistent Memory for Agentic LLM Systems
This paper introduces shared selective persistent memory for agentic LLM systems, which retains reusable context like task specs and data schemas while discarding session-specific reasoning traces, achieving 96% task completion and significant token cost reductions in enterprise scenarios.
Selective Memory Retention for Long-Horizon LLM Agents
This paper presents TraceRetain, a lightweight framework for bounded external memory in frozen LLM agents, demonstrating that selective retention differentiates from cache heuristics primarily when memory streams contain noise, offering task-success and efficiency benefits.