Caching for the Future: Scrub Jay Episodic Memory Principles for Agent Memory Systems

arXiv cs.CL 论文

摘要

This paper introduces ScrubJay-MEM, an LLM agent memory system inspired by scrub jay episodic memory, which uses type-conditioned temporal decay to manage memory perishability. It also proposes the Temporal Generalization Test (TGT) benchmark and shows improved performance over existing memory systems on temporal reasoning tasks.

arXiv:2608.04746v1 Announce Type: new Abstract: LLM agents that persist across sessions accumulate stored memories whose validity varies enormously by content type, yet existing memory architectures treat all memories as equally persistent and systematically contaminate retrieved context with outdated facts. We show that per-memory, type-conditioned temporal decay, a property of western scrub jay episodic memory, can be operationalized as an auto-classified coefficient $\pi_i$ in an external LLM-agent memory store, yielding ScrubJay-MEM: each memory is encoded as a jointly-bound What--Where--When tuple with an estimated perishability $\pi_i$ and utility horizon $\tau_i$, retrieved by query-adaptive scoring, and revised retroactively at $O(1)$ LLM calls per update. We introduce the Temporal Generalization Test (TGT), a benchmark with held-out retention intervals and a Generalization Gap (GenGap) metric. On TGT, ScrubJay-MEM is the only retrieval-based system with substantially positive GenGap ($+0.108$); on MemoryAgentBench EventQA-64k it improves F1 by $+2.66$ over Mem0 and $+3.09$ over Qwen3-Embedding-4B under a llm backbone. A decay ablation collapses GenGap by $5.7\times$, establishing type-conditioned decay as necessary for the result. Gains narrow under stronger backbones and reverse on fact-consolidation tasks, scoping the contribution to temporal reasoning over perishable facts.
查看原文
查看缓存全文

缓存时间: 2026/08/06 07:50

# Caching for the Future: Scrub Jay Episodic Memory Principles for Agent Memory Systems
Source: [https://arxiv.org/html/2608.04746](https://arxiv.org/html/2608.04746)
Kartikey Singh BhandariAarya WadhwaniDhruv KumarPratik Narang Birla Institute of Technology and Science, Pilani \{p20241006,f20230759\}@pilani\.bits\-pilani\.ac\.in \{dhruv\.kumar,pratik\.narang\}@pilani\.bits\-pilani\.ac\.in

###### Abstract

LLM agents that persist across sessions accumulate stored memories whose validity varies enormously by content type, yet existing memory architectures treat all memories as equally persistent and systematically contaminate retrieved context with outdated facts\. We show that per\-memory, type\-conditioned temporal decay, a property of western scrub jay episodic memory, can be operationalized as an auto\-classified coefficientπi\\pi\_\{i\}in an external LLM\-agent memory store, yieldingScrubJay\-MEM: each memory is encoded as a jointly\-bound What–Where–When tuple with an estimated perishabilityπi\\pi\_\{i\}and utility horizonτi\\tau\_\{i\}, retrieved by query\-adaptive scoring, and revised retroactively atO​\(1\)O\(1\)LLM calls per update\. We introduce the*Temporal Generalization Test*\(TGT\), a benchmark with held\-out retention intervals and a Generalization Gap \(GenGap\) metric\. On TGT, ScrubJay\-MEM is the only retrieval\-based system with substantially positive GenGap \(\+0\.108\+0\.108\); on MemoryAgentBench EventQA\-64k it improves F1 by\+2\.66\+2\.66over Mem0 and\+3\.09\+3\.09over Qwen3\-Embedding\-4B under a llm backbone\. A decay ablation collapses GenGap by5\.7×5\.7\\times, establishing type\-conditioned decay as necessary for the result\. Gains narrow under stronger backbones and reverse on fact\-consolidation tasks, scoping the contribution to temporal reasoning over perishable facts\.

Caching for the Future: Scrub Jay Episodic Memory Principles for Agent Memory Systems

Kartikey Singh BhandariAarya WadhwaniDhruv KumarPratik NarangBirla Institute of Technology and Science, Pilani\{p20241006,f20230759\}@pilani\.bits\-pilani\.ac\.in\{dhruv\.kumar,pratik\.narang\}@pilani\.bits\-pilani\.ac\.in

## 1Introduction

A western scrub jay caching food in autumn does something current LLM agent memory systems cannot\. Faced with a choice between stored worms and stored peanuts, the bird recovers worms when caches are fresh and peanuts when the worms have rotted\(Clayton and Dickinson,[1998](https://arxiv.org/html/2608.04746#bib.bib6); Worsfold et al\.,[2025](https://arxiv.org/html/2608.04746#bib.bib40)\)\. It tracks not only what it cached and where, but also*when*, and uses this to infer perishability\. The integrated What–Where–When \(WWW\) trace it forms is robust to time in a way that LLM agent memory architectures, despite recent sophistication\(Packer et al\.,[2023](https://arxiv.org/html/2608.04746#bib.bib24); Xu et al\.,[2026](https://arxiv.org/html/2608.04746#bib.bib42); Chhikara et al\.,[2025](https://arxiv.org/html/2608.04746#bib.bib4)\), have not yet achieved\. Recent reviews of this literature argue the computational implications of WWW memory remain underexplored\(Salwiczek et al\.,[2010](https://arxiv.org/html/2608.04746#bib.bib32)\)\.

This matters because LLM agents now operate over horizons measured in weeks\. A user’s profession may remain valid for years; their meeting room for the morning is stale by afternoon; their current branch name may not survive lunch\. As the memory store grows, the share of retrievals that surface outdated facts grows with it\(Wu et al\.,[2025](https://arxiv.org/html/2608.04746#bib.bib41)\)\. The right memory at the wrong time is no better than the wrong memory\.

The naive fix \(discount all memories by age\) does not work\. Different memory types decay at fundamentally different rates\. A uniform decay either discounts stable knowledge too aggressively or retains ephemeral facts too long\. A binary short\-term / long\-term partition covers only two points on a continuum that contains at least four distinguishable rates \(§[3\.2](https://arxiv.org/html/2608.04746#S3.SS2)\)\. Worse, perishability is not static: a memory initially classified as stable can become time\-sensitive when context shifts\. Solving the temporal memory problem therefore requires*per\-memory*,*type\-conditioned*, and*retroactively revisable*decay: properties no agent memory system currently combines\.

The scrub jay’s brain provides a template\. We proposeScrubJay\-MEM, an agent memory architecture in which each memory is stored as an Episodic Memory Unit: a jointly\-bound tuple of semantic content, task context, timestamp, and an auto\-classified perishability coefficientπi\\pi\_\{i\}\. Retrieval combines all four signals through query\-adaptive weights\[α,β,γ,δ\]\[\\alpha,\\beta,\\gamma,\\delta\]\. A Prospective Memory Buffer pre\-loads anticipated memories before task execution, analogous to jays’ future\-oriented caching\(Raby et al\.,[2007](https://arxiv.org/html/2608.04746#bib.bib28)\)\. Retroactive Contextual Integration revises decay parameters when new information arrives, mirroring how jays update cache values when ecological signals change\(Clayton et al\.,[2001](https://arxiv.org/html/2608.04746#bib.bib7)\)\. Each component traces to a cognitive observation rather than an engineering choice\.

We evaluate ScrubJay\-MEM on two complementary benchmarks\. On MemoryAgentBench EventQA\-64k\(Hu et al\.,[2025](https://arxiv.org/html/2608.04746#bib.bib14)\), the system achieves 61\.58 F1, the strongest of the systems evaluated, including A\-MEM, Mem0, and Contriever\. We additionally release the*Temporal Generalization Test*\(TGT\), a controlled benchmark with held\-out retention intervals, designed as the computational analog of Clayton and Dickinson’s retention\-interval experiment\. On TGT, ScrubJay\-MEM is the only retrieval\-based system with substantially positive Generalization Gap \(\+0\.108\+0\.108vs\.≤−0\.022\\leq\-0\.022for all flat\-retrieval baselines\)\. Ablating type\-conditioned decay collapses this gain by5\.7×5\.7\\times, establishing decay as*necessary*for the GenGap result\.

#### Contributions\.

- •A biologically grounded memory architecture\(§[3](https://arxiv.org/html/2608.04746#S3)\) translating the scrub jay’s WWW system into computational form, with four mechanisms \(EMU, type\-conditioned perishability decay, Retroactive Contextual Integration, Prospective Memory Buffer\) derived from a single cognitive model\.
- •Two formal results\(Proposition[1](https://arxiv.org/html/2608.04746#Thmproposition1), Proposition[2](https://arxiv.org/html/2608.04746#Thmproposition2); proofs in Appendix[E](https://arxiv.org/html/2608.04746#A5)\): per\-update boundedness withwhat\-contraction for RCI, and expected sub\-linear retrieval cost for the Prospective Memory Buffer\.
- •The Temporal Generalization Test \(TGT\)\(§[4\.2](https://arxiv.org/html/2608.04746#S4.SS2); construction details in Appendix[B](https://arxiv.org/html/2608.04746#A2)\), a controlled benchmark with held\-out retention intervals, designed to measure whether memory systems generalise temporal decay knowledge to unseen intervals\.
- •Type\-conditioned decay as the necessary mechanism for TGT generalisation\(§[4](https://arxiv.org/html/2608.04746#S4)\)\. Ablating perishability decay collapses GenGap by5\.7×5\.7\\timeswhile leaving staleness\-detection accuracy intact, evidence that the GenGap gain requires the decay component, even if independent contributions from the remaining three primitives are not isolated here\.

![Refer to caption](https://arxiv.org/html/2608.04746v1/x1.png)Figure 1:ScrubJay\-MEM architecture \(blueprint view\)\.222Scrub jay photograph: Linda Tanner, "Western Scrub Jay," via Wikimedia Commons, licensed under CC BY 2\.0\. Source:[https://en\.wikipedia\.org/wiki/File:Aphelocoma\_californica\_3\.jpg](https://en.wikipedia.org/wiki/File:Aphelocoma_californica_3.jpg)\.The system encodes each experience as an integrated WWW \(what–where–when\) episodic memory with perishabilityπ\\piand horizonτ\\tau, organizes memories in a hypergraph, retrieves via a four\-factor adaptive score, preloads likely\-to\-be\-needed memories proactively \(PMB\), and retroactively updates utility and decay when new information arrives \(RCI\)\.*The figure depicts the full architectural blueprint with trainable primitives; the implementation evaluated in this paper substitutes parameter\-free surrogates at three points \(§[3\.1](https://arxiv.org/html/2608.04746#S3.SS1)–[3\.3](https://arxiv.org/html/2608.04746#S3.SS3)\): a fixed\-weight gated fusion in place of cross\-attention binding, an LLM\-prompt classifier with keyword fallback in place of the learned perishability MLP, and heuristic keyword\-triggered logits in place of the learned adaptive\-weighting head\.*

## 2Related Work

#### LLM agent memory architectures\.

External memory dominates long\-horizon agent design\. MemGPT\(Packer et al\.,[2023](https://arxiv.org/html/2608.04746#bib.bib24)\)pages between main and archival stores; Mem0\(Chhikara et al\.,[2025](https://arxiv.org/html/2608.04746#bib.bib4)\)separates short\- and long\-term tiers; A\-MEM\(Xu et al\.,[2026](https://arxiv.org/html/2608.04746#bib.bib42)\)introduces Zettelkasten linking with LLM\-driven evolution\. LiCoMemory\(Huang et al\.,[2025](https://arxiv.org/html/2608.04746#bib.bib15)\), Zep\(Rasmussen et al\.,[2025](https://arxiv.org/html/2608.04746#bib.bib30)\), Synapse\(Jiang et al\.,[2026](https://arxiv.org/html/2608.04746#bib.bib17)\), ReadAgent\(Lee et al\.,[2024](https://arxiv.org/html/2608.04746#bib.bib19)\), and MemoryBank\(Zhong et al\.,[2024](https://arxiv.org/html/2608.04746#bib.bib45)\)add graph linking, temporal entities, dynamic relations, gist compression, and consolidation loops respectively\. Generative Agents\(Park et al\.,[2023](https://arxiv.org/html/2608.04746#bib.bib26)\)score by importance, recency, and relevance; Hindsight\(Latimer et al\.,[2025](https://arxiv.org/html/2608.04746#bib.bib18)\)reinterprets memories textually post\-hoc\. MemoryAgentBench\(Hu et al\.,[2025](https://arxiv.org/html/2608.04746#bib.bib14)\)formalises memory evaluation across four competencies; we adopt its EventQA\-64k as our primary benchmark\.*ScrubJay\-MEM departs from this landscape by assigning each memory an auto\-classified perishability coefficientπi\\pi\_\{i\}that governs type\-conditioned exponential decay, and by routing retrieval through query\-adaptive What–Where–When weights rather than fixed similarity\. Temporal validity becomes an inspectable architectural parameter rather than an LLM\-derived textual attribute\.*

#### Temporal decay and forgetting\.

The Ebbinghaus curve\(Ebbinghaus,[1913](https://arxiv.org/html/2608.04746#bib.bib10); Anderson et al\.,[2004](https://arxiv.org/html/2608.04746#bib.bib1); Brown et al\.,[2007](https://arxiv.org/html/2608.04746#bib.bib3)\)models decay as a global function of time\. The Forgetting Transformer\(Lin et al\.,[2025](https://arxiv.org/html/2608.04746#bib.bib21)\)adds forget gates inside attention; FadeMem\(Wei et al\.,[2026](https://arxiv.org/html/2608.04746#bib.bib39)\)and MemoryBank\(Zhong et al\.,[2024](https://arxiv.org/html/2608.04746#bib.bib45)\)apply uniform Ebbinghaus decay to external memory; Oblivion\(Rana et al\.,[2026](https://arxiv.org/html/2608.04746#bib.bib29)\)and selective\-forgetting variants\(Ge et al\.,[2024](https://arxiv.org/html/2608.04746#bib.bib12); Wang et al\.,[2025](https://arxiv.org/html/2608.04746#bib.bib38); Mu et al\.,[2023](https://arxiv.org/html/2608.04746#bib.bib23); Zhang et al\.,[2023](https://arxiv.org/html/2608.04746#bib.bib44)\)make binary retain/discard decisions\.*Our work differs along three axes: decay isper\-memoryrather than global, the rate istype\-conditionedthrough an auto\-classifiedπi\\pi\_\{i\}, and the rate isretroactively revisablethrough parameter\-space updates that costO​\(1\)O\(1\)LLM calls regardless of how many memories are affected\.*

#### Episodic memory and anticipation\.

Episodic\-memory architectures\(Tulving,[1972](https://arxiv.org/html/2608.04746#bib.bib37); Pritzel et al\.,[2017](https://arxiv.org/html/2608.04746#bib.bib27); Ritter et al\.,[2021](https://arxiv.org/html/2608.04746#bib.bib31); Graves et al\.,[2016](https://arxiv.org/html/2608.04746#bib.bib13)\)predate LLM agents; WWW memory itself has appeared in robotics and virtual agents\(Stachowicz and Kruijff,[2011](https://arxiv.org/html/2608.04746#bib.bib35); Brom and Lukavsky,[2009](https://arxiv.org/html/2608.04746#bib.bib2); Crystal,[2010](https://arxiv.org/html/2608.04746#bib.bib9)\)but not as an LLM\-agent memory substrate\. Recent behavioural work extends the corvid WWW literature with new controlled analyses\(Worsfold et al\.,[2025](https://arxiv.org/html/2608.04746#bib.bib40)\)\. Prospective cognition\(Szpunar et al\.,[2014](https://arxiv.org/html/2608.04746#bib.bib36); Schacter et al\.,[2007](https://arxiv.org/html/2608.04746#bib.bib33)\)and prefetching\(Smith,[1982](https://arxiv.org/html/2608.04746#bib.bib34); Leviathan et al\.,[2023](https://arxiv.org/html/2608.04746#bib.bib20); Gao et al\.,[2023](https://arxiv.org/html/2608.04746#bib.bib11)\)provide antecedents for our Prospective Memory Buffer\.*To our knowledge, ScrubJay\-MEM is the first system to operationalise integrated WWW episodic memory specifically for LLM agents, jointly binding content, context, and temporal metadata into a single retrieval\-ready embedding\. The Prospective Memory Buffer further translates anticipatory caching into an expected sub\- linear retrieval mechanism with bounded per\-update guarantees \(Proposition[1](https://arxiv.org/html/2608.04746#Thmproposition1), Appendix[E](https://arxiv.org/html/2608.04746#A5)\)\.*

## 3ScrubJay\-MEM

We describe ScrubJay\-MEM in five parts: the core memory representation \(§[3\.1](https://arxiv.org/html/2608.04746#S3.SS1)–[3\.2](https://arxiv.org/html/2608.04746#S3.SS2)\), the retrieval mechanism \(§[3\.3](https://arxiv.org/html/2608.04746#S3.SS3)–[3\.4](https://arxiv.org/html/2608.04746#S3.SS4)\), the two active maintenance processes \(§[3\.5](https://arxiv.org/html/2608.04746#S3.SS5)–[3\.6](https://arxiv.org/html/2608.04746#S3.SS6)\), the encoding strategy \(§[3\.7](https://arxiv.org/html/2608.04746#S3.SS7)\), and the pruning rule \(§[3\.8](https://arxiv.org/html/2608.04746#S3.SS8)\)\. Figure[1](https://arxiv.org/html/2608.04746#S1.F1)gives an overview\.

### 3\.1Episodic Memory Unit \(EMU\)

Each memorymim\_\{i\}is an integrated 4\-tuple analogous to a single caching episode:

mi=\(𝐰iwhat,𝐰iwhere,\(ti,τi\),πi\),m\_\{i\}=\\bigl\(\\,\\mathbf\{w\}\_\{i\}^\{\\textsc\{what\}\},\\;\\mathbf\{w\}\_\{i\}^\{\\textsc\{where\}\},\\;\(t\_\{i\},\\,\\tau\_\{i\}\),\\;\\pi\_\{i\}\\,\\bigr\),\(1\)where𝐰iwhat∈ℝd1\\mathbf\{w\}\_\{i\}^\{\\textsc\{what\}\}\\\!\\in\\\!\\mathbb\{R\}^\{d\_\{1\}\}encodes the*semantic content*of the memory \(food type→\\toinformation content\),𝐰iwhere∈ℝd2\\mathbf\{w\}\_\{i\}^\{\\textsc\{where\}\}\\\!\\in\\\!\\mathbb\{R\}^\{d\_\{2\}\}encodes the*task context*in which it was created \(cache site→\\toconversation/task state\),tit\_\{i\}is the creation timestamp,τi∈ℝ\+\\tau\_\{i\}\\\!\\in\\\!\\mathbb\{R\}\_\{\+\}is the estimated utility horizon, andπi∈\(0,1\]\\pi\_\{i\}\\\!\\in\\\!\(0,1\]is the*perishability coefficient*\(π≈1\\pi\\\!\\approx\\\!1for ephemeral facts,π≈0\\pi\\\!\\approx\\\!0for stable knowledge\)\.

The four fields are combined into a single binding vector𝐡i\\mathbf\{h\}\_\{i\}via a deterministic gated fusion that approximates integrated WWW retrieval at parameter\-free cost\. Let𝐠i=σ​\(𝐰iwhat⊙𝐰iwhere\)\\mathbf\{g\}\_\{i\}=\\sigma\\bigl\(\\mathbf\{w\}\_\{i\}^\{\\textsc\{what\}\}\\odot\\mathbf\{w\}\_\{i\}^\{\\textsc\{where\}\}\\bigr\)be the elementwise sigmoid of the Hadamard product \(a content\-context coactivation gate\)\. The binding is a fixed convex mixture

𝐡i=0\.55​𝐰iwhat\+0\.35​𝐰iwhere\+0\.10​𝐠i,\\mathbf\{h\}\_\{i\}\\;=\\;0\.55\\,\\mathbf\{w\}\_\{i\}^\{\\textsc\{what\}\}\+0\.35\\,\\mathbf\{w\}\_\{i\}^\{\\textsc\{where\}\}\+0\.10\\,\\mathbf\{g\}\_\{i\},\(2\)followed by an L2 normalisation\. Log\-scaled temporal positional offsetslog⁡\(ti\+1\)\\log\(t\_\{i\}\+1\)andlog⁡\(τi\+1\)\\log\(\\tau\_\{i\}\+1\)\(each modulo a fixed period\) are added to the first two coordinates of𝐡i\\mathbf\{h\}\_\{i\}to encodewhen\. The fusion weights and gate are fixed \(parameter\-free\); replacing them with trained cross\-attention is left to future work\.

### 3\.2Perishability\-Aware Utility

The temporal utility ofmim\_\{i\}at query timetqt\_\{q\}is

U​\(mi,tq\)=Vi⋅exp⁡\(−πi⋅tq−tiτi\),U\(m\_\{i\},t\_\{q\}\)=V\_\{i\}\\cdot\\exp\\\!\\Bigl\(\-\\pi\_\{i\}\\cdot\\frac\{t\_\{q\}\-t\_\{i\}\}\{\\tau\_\{i\}\}\\Bigr\),\(3\)with base valueVi∈ℝ\+V\_\{i\}\\\!\\in\\\!\\mathbb\{R\}\_\{\+\}\(learned\)\. Critically, the decay rate is*type\-conditioned*: stable world knowledge \(π≈0\.05\\pi\\\!\\approx\\\!0\.05\) retains utility over long horizons while ephemeral interaction details \(π≈0\.9\\pi\\\!\\approx\\\!0\.9\) decay rapidly \(Table[3](https://arxiv.org/html/2608.04746#A2.T3)\)\.

Perishability and horizon are estimated at storage time by an LLM\-prompt classifier with a deterministic keyword\-heuristic fallback\. The LLM is asked to assign one of four labels\{factual,procedural,task\_specific,ephemeral\}\\\{\\text\{factual\},\\,\\text\{procedural\},\\,\\text\{task\\\_specific\},\\,\\text\{ephemeral\}\\\}and to emit a numericalπ∈\(0,1\]\\pi\\in\(0,1\]andτ∈ℝ\+\\tau\\in\\mathbb\{R\}\_\{\+\}as strict JSON; on parse failure or LLM unavailability the system falls back to a small keyword rule over the memory text and context \(e\.g\.,today/immediate→\\toephemeral withπ=0\.9\\pi\\\!=\\\!0\.9;how to/steps/procedure→\\toprocedural withπ=0\.3\\pi\\\!=\\\!0\.3\)\. Estimates are clipped to\[τmin,τmax\]\[\\tau\_\{\\min\},\\tau\_\{\\max\}\]to bound the utility horizon\. We refer to this classifier compactly as

π^i,τ^i=ϕ​\(texti,ctxi,𝐰iwhat,𝐰iwhere\),\\hat\{\\pi\}\_\{i\},\\;\\hat\{\\tau\}\_\{i\}=\\phi\\\!\\bigl\(\\text\{text\}\_\{i\},\\,\\text\{ctx\}\_\{i\},\\,\\mathbf\{w\}\_\{i\}^\{\\textsc\{what\}\},\\,\\mathbf\{w\}\_\{i\}^\{\\textsc\{where\}\}\\bigr\),\(4\)emphasising that the production of\(π^,τ^\)\(\\hat\{\\pi\},\\hat\{\\tau\}\)in this v1 system is an LLM call plus a heuristic fallback rather than a trained neural network; the classifier prompt is reproduced verbatim in Appendix[F](https://arxiv.org/html/2608.04746#A6)\. A trained\-MLP variant is left to future work\.

### 3\.3Integrated WWW Retrieval

Given query𝐪\\mathbf\{q\}at timetqt\_\{q\}with task context𝐜q\\mathbf\{c\}\_\{q\}, the retrieval score for memorymim\_\{i\}is

S​\(mi,𝐪,tq\)\\displaystyle S\(m\_\{i\},\\mathbf\{q\},t\_\{q\}\)=αq​sim⁡\(𝐰iwhat,𝐞q\)⏟What\+βq​sim⁡\(𝐰iwhere,𝐜q\)⏟Where\\displaystyle=\\alpha\_\{q\}\\,\\underbrace\{\\operatorname\{sim\}\\\!\\left\(\\mathbf\{w\}\_\{i\}^\{\\textsc\{what\}\},\\mathbf\{e\}\_\{q\}\\right\)\}\_\{\\textbf\{What\}\}\+\\beta\_\{q\}\\,\\underbrace\{\\operatorname\{sim\}\\\!\\left\(\\mathbf\{w\}\_\{i\}^\{\\textsc\{where\}\},\\mathbf\{c\}\_\{q\}\\right\)\}\_\{\\textbf\{Where\}\}\(5\)\+γq​U​\(mi,tq\)⏟When\+δq​Φ​\(mi,𝒢\)⏟Graph\.\\displaystyle\\quad\+\\gamma\_\{q\}\\,\\underbrace\{U\(m\_\{i\},t\_\{q\}\)\}\_\{\\textbf\{When\}\}\+\\delta\_\{q\}\\,\\underbrace\{\\Phi\(m\_\{i\},\\mathcal\{G\}\)\}\_\{\\textbf\{Graph\}\}\.where𝐞q=Enc⁡\(𝐪\)\\mathbf\{e\}\_\{q\}=\\operatorname\{Enc\}\(\\mathbf\{q\}\)\. The weights\[αq,βq,γq,δq\]\[\\alpha\_\{q\},\\beta\_\{q\},\\gamma\_\{q\},\\delta\_\{q\}\]are*query\-adaptive*, produced by a heuristic scoring function that combines fixed base logits, embedding\-norm scales, and keyword\-triggered query biases:

𝐰q\\displaystyle\\mathbf\{w\}\_\{q\}=\[αqβqγqδq\]⊤\\displaystyle=\\begin\{bmatrix\}\\alpha\_\{q\}&\\beta\_\{q\}&\\gamma\_\{q\}&\\delta\_\{q\}\\end\{bmatrix\}^\{\\\!\\top\}\(6\)=softmax⁡\[1\.5\+bqwhat\+0\.20​‖𝐞q‖1\.0\+bqwhere\+0\.10​‖𝐜q‖1\.0\+bqwhen\+min⁡\(2\.0,15​log⁡\(Δ​tq\+1\)\)1\.0\+bqgraph\]\.\\displaystyle=\\operatorname\{softmax\}\\\!\\begin\{bmatrix\}1\.5\+b\_\{q\}^\{\\textsc\{what\}\}\+0\.20\\,\\\|\\mathbf\{e\}\_\{q\}\\\|\\\\ 1\.0\+b\_\{q\}^\{\\textsc\{where\}\}\+0\.10\\,\\\|\\mathbf\{c\}\_\{q\}\\\|\\\\ 1\.0\+b\_\{q\}^\{\\textsc\{when\}\}\+\\min\\\!\\bigl\(2\.0,\\tfrac\{1\}\{5\}\\log\(\\Delta t\_\{q\}\+1\)\\bigr\)\\\\ 1\.0\+b\_\{q\}^\{\\textsc\{graph\}\}\\end\{bmatrix\}\.where the bias termsbqXb\_\{q\}^\{X\}are keyword\-triggered scalars that detect query intent \(e\.g\.latest/recent/today/stalecontribute\+1\.5\+1\.5tobqwhenb\_\{q\}^\{\\textsc\{when\}\};context/project/session/workspacecontribute\+1\.0\+1\.0tobqwhereb\_\{q\}^\{\\textsc\{where\}\};what/which/fact/detail/remembercontribute\+0\.8\+0\.8tobqwhatb\_\{q\}^\{\\textsc\{what\}\};related/connected/neighbor/linkcontribute\+0\.8\+0\.8tobqgraphb\_\{q\}^\{\\textsc\{graph\}\}\)\. Temporally urgent queries thus up\-weightγ\\gamma\(When\) and context\-sensitive queries up\-weightβ\\beta\(Where\)\. The weighting is parameter\-free in this v1 system; a learned weighting headWθW\_\{\\theta\}that replaces the heuristic is left to future work\. This contrasts with A\-MEM’s fixed\-weight keyword/embedding lookup\.

### 3\.4Episodic Hypergraph

We maintain a typed graph𝒢=\(𝒱,ℰ\)\\mathcal\{G\}=\(\\mathcal\{V\},\\mathcal\{E\}\)over the memory store with three edge classes: semantic \(what–what\), contextual \(where–where\), and temporal co\-occurrence \(when–when\), combined via a fixed convex mixture \(in our experimentswS=0\.40w\_\{S\}\\\!=\\\!0\.40,wC=0\.30w\_\{C\}\\\!=\\\!0\.30,wT=0\.30w\_\{T\}\\\!=\\\!0\.30; see Appendix[F](https://arxiv.org/html/2608.04746#A6)\):

ei​j=wS​ei​jS\+wC​ei​jC\+wT​ei​jT,e\_\{ij\}=w\_\{S\}\\,e\_\{ij\}^\{S\}\+w\_\{C\}\\,e\_\{ij\}^\{C\}\+w\_\{T\}\\,e\_\{ij\}^\{T\},\(7\)whereei​jSe\_\{ij\}^\{S\}andei​jCe\_\{ij\}^\{C\}are thresholded cosine similarities between the respective embeddings, andei​jT=exp⁡\(−λT​\|ti−tj\|\)​1​\[\|ti−tj\|<ΔT\]e\_\{ij\}^\{T\}=\\exp\(\-\\lambda\_\{T\}\|t\_\{i\}\-t\_\{j\}\|\)\\,\\mathbb\{1\}\[\|t\_\{i\}\-t\_\{j\}\|<\\Delta\_\{T\}\]\. The graph bonus formim\_\{i\}is computed by one\-hop message passing:

Φ​\(mi,𝒢\)=∑j∈𝒩​\(i\)ei​j​S​\(mj,𝐪,tq\)​U​\(mj,tq\),\\Phi\(m\_\{i\},\\mathcal\{G\}\)=\\sum\_\{j\\in\\mathcal\{N\}\(i\)\}e\_\{ij\}\\,S\(m\_\{j\},\\mathbf\{q\},t\_\{q\}\)\\,U\(m\_\{j\},t\_\{q\}\),\(8\)which propagates both semantic relevance*and*temporal utility from neighbors: links to decayed memories are automatically down\-weighted\. This extends A\-MEM’s semantic\-only Zettelkasten graph\.

### 3\.5Retroactive Contextual Integration \(RCI\)

When new information𝐧\\mathbf\{n\}arrives at timetnt\_\{n\}\(e\.g\., a user preference change\), RCI updates the*latent parameters*of all affected memories without a per\-memory LLM call\.

#### Step 1: Identify affected memories\.

Compute the cosine relevanceρi​n=sim⁡\(𝐰iwhat,𝐰nwhat\)\\rho\_\{in\}=\\operatorname\{sim\}\(\\mathbf\{w\}\_\{i\}^\{\\textsc\{what\}\},\\mathbf\{w\}\_\{n\}^\{\\textsc\{what\}\}\)and gate on the thresholdθRCI\\theta\_\{\\text\{RCI\}\}\. Memories withρi​n≤θRCI\\rho\_\{in\}\\leq\\theta\_\{\\text\{RCI\}\}are skipped\. For memories above the threshold, we rescale the similarity into a threshold\-relative affinityαi​n=\(ρi​n−θRCI\)/\(1−θRCI\)∈\(0,1\]\\alpha\_\{in\}=\(\\rho\_\{in\}\-\\theta\_\{\\text\{RCI\}\}\)/\(1\-\\theta\_\{\\text\{RCI\}\}\)\\in\(0,1\]that drives the magnitude of all subsequent updates\.

#### Step 2: Update parameters\.

A*single*LLM call parses𝐧\\mathbf\{n\}into bounded update deltas\(Δ​V​\(𝐧\),Δ​π​\(𝐧\),Δ​τ​\(𝐧\)\)\(\\Delta V\(\\mathbf\{n\}\),\\,\\Delta\\pi\(\\mathbf\{n\}\),\\,\\Delta\\tau\(\\mathbf\{n\}\)\)and a textual summary;Δ​τ\\Delta\\tauis interpreted as a relative ratio \(soΔ​τ=\+0\.2\\Delta\\tau=\+0\.2denotes a\+20%\+20\\%change inτ\\tau\)\. The deltas are applied to each affected memory via lightweight vector operations, modulated by the affinityαi​n\\alpha\_\{in\}from Step 1:

Vi\\displaystyle V\_\{i\}←max⁡\(0,Vi\+ηV​αi​n​Δ​V​\(𝐧\)\),\\displaystyle\\leftarrow\\max\\\!\\bigl\(0,\\,V\_\{i\}\+\\eta\_\{V\}\\,\\alpha\_\{in\}\\,\\Delta V\(\\mathbf\{n\}\)\\bigr\),\(9\)πi\\displaystyle\\pi\_\{i\}←clip⁡\(πi\+ηπ​αi​n​Δ​π​\(𝐧\),0,1\),\\displaystyle\\leftarrow\\operatorname\{clip\}\\\!\\bigl\(\\pi\_\{i\}\+\\eta\_\{\\pi\}\\,\\alpha\_\{in\}\\,\\Delta\\pi\(\\mathbf\{n\}\),\\;0,\\;1\\bigr\),\(10\)τi\\displaystyle\\tau\_\{i\}←clip\(τi⋅max\(0\.1,1\+ηταi​nΔτ\(𝐧\)\),\\displaystyle\\leftarrow\\operatorname\{clip\}\\\!\\Bigl\(\\tau\_\{i\}\\cdot\\max\\\!\\bigl\(0\.1,\\,1\+\\eta\_\{\\tau\}\\,\\alpha\_\{in\}\\,\\Delta\\tau\(\\mathbf\{n\}\)\\bigr\),τmin,τmax\)\.\\displaystyle\\hskip 93\.89418pt\\tau\_\{\\min\},\\,\\tau\_\{\\max\}\\Bigr\)\.\(11\)TheVVandπ\\piupdates are additive offsets \(withπ\\piclipped to\[0,1\]\[0,1\]\); theτ\\tauupdate is multiplicative becauseΔ​τ\\Delta\\tauis a relative ratio\. All three are bounded per update by the LLM’s fixed delta dynamic range and the affinity gate \(Appendix[E](https://arxiv.org/html/2608.04746#A5)\); the clip onτ\\taukeeps the horizon inside the operating interval\[τmin,τmax\]\[\\tau\_\{\\min\},\\tau\_\{\\max\}\]regardless of repeated updates\. Learning rates\(ηV,ηπ,ητ\)\(\\eta\_\{V\},\\,\\eta\_\{\\pi\},\\,\\eta\_\{\\tau\}\)are reported in Appendix[F](https://arxiv.org/html/2608.04746#A6)\.

#### Step 3: Soft semantic fusion\.

Thewhatembedding is moved toward the new evidence by a damped step using the same affinity gate, followed by L2 re\-normalisation:

𝐰iwhat\\displaystyle\\mathbf\{w\}\_\{i\}^\{\\textsc\{what\}\}←L2​\(𝐰iwhat\+ηw​αi​n​\(𝐰nwhat−𝐰iwhat\)\)\.\\displaystyle\\leftarrow\\mathrm\{L2\}\\\!\\Bigl\(\\mathbf\{w\}\_\{i\}^\{\\textsc\{what\}\}\+\\eta\_\{w\}\\,\\alpha\_\{in\}\\bigl\(\\mathbf\{w\}\_\{n\}^\{\\textsc\{what\}\}\-\\mathbf\{w\}\_\{i\}^\{\\textsc\{what\}\}\\bigr\)\\Bigr\)\.\(12\)Total per\-event cost isO​\(1\)O\(1\)LLM calls \(for delta parsing\) plusO​\(\|\{i:ρi​n\>θRCI\}\|\)O\(\|\\\{i:\\rho\_\{in\}\>\\theta\_\{\\text\{RCI\}\}\\\}\|\)vector operations, compared with A\-MEM’sO​\(N\)O\(N\)LLM calls forNNaffected memories\.

###### Proposition 1\(RCI Per\-Update Boundedness andwhat\-Contraction\)\.

Let the parsed deltas be bounded:\|Δ​V​\(𝐧\)\|≤Δ​Vmax\|\\Delta V\(\\mathbf\{n\}\)\|\\\!\\leq\\\!\\Delta V\_\{\\max\},\|Δ​π​\(𝐧\)\|≤Δ​πmax\|\\Delta\\pi\(\\mathbf\{n\}\)\|\\\!\\leq\\\!\\Delta\\pi\_\{\\max\}, andΔ​τ​\(𝐧\)∈\[Δ​τmin,Δ​τmax\]\\Delta\\tau\(\\mathbf\{n\}\)\\\!\\in\\\!\[\\Delta\\tau\_\{\\min\},\\Delta\\tau\_\{\\max\}\]with1\+ητ​Δ​τmin≥0\.11\+\\eta\_\{\\tau\}\\,\\Delta\\tau\_\{\\min\}\\geq 0\.1\(enforced by the clamp in Eq\.[11](https://arxiv.org/html/2608.04746#S3.E11)\)\. Then for any memorymim\_\{i\}and any affinityαi​n∈\[0,1\]\\alpha\_\{in\}\\\!\\in\\\!\[0,1\]:\(i\)theVV\-update satisfies\|Δ​Vi\|≤ηV​Δ​Vmax\|\\Delta V\_\{i\}\|\\\!\\leq\\\!\\eta\_\{V\}\\,\\Delta V\_\{\\max\};\(ii\)theπ\\pi\-update satisfies\|Δ​πi\|≤ηπ​Δ​πmax\|\\Delta\\pi\_\{i\}\|\\\!\\leq\\\!\\eta\_\{\\pi\}\\,\\Delta\\pi\_\{\\max\}inside the\[0,1\]\[0,1\]clip;\(iii\)τi\\tau\_\{i\}remains in\[τmin,τmax\]\[\\tau\_\{\\min\},\\tau\_\{\\max\}\]after clipping;\(iv\)thewhat\-update \([12](https://arxiv.org/html/2608.04746#S3.E12)\) is, prior to renormalisation, a contraction toward𝐰nwhat\\mathbf\{w\}\_\{n\}^\{\\textsc\{what\}\}with Lipschitz constant\(1−ηw​αi​n\)\(1\-\\eta\_\{w\}\\,\\alpha\_\{in\}\); wheneverηw​αi​n<1\\eta\_\{w\}\\,\\alpha\_\{in\}\\\!<\\\!1and𝐰nwhat\\mathbf\{w\}\_\{n\}^\{\\textsc\{what\}\}is held fixed, repeated application converges geometrically\.

Proof\.See Appendix[E](https://arxiv.org/html/2608.04746#A5)\.

### 3\.6Prospective Memory Buffer \(PMB\)

Before executing task𝒯\\mathcal\{T\}, ScrubJay\-MEM pre\-loads a buffer ofKKmemories most likely to be needed, inspired by the jay’s anticipatory caching behavior\.

#### Anticipatory scoring\.

P​\(mi∣𝒯\)=σ​\(𝐯𝒯⊤​𝐰iwhat\+𝐮𝒯⊤​𝐰iwhere\+b𝒯\),P\(m\_\{i\}\\mid\\mathcal\{T\}\)=\\sigma\\\!\\bigl\(\\mathbf\{v\}\_\{\\mathcal\{T\}\}^\{\\top\}\\mathbf\{w\}\_\{i\}^\{\\textsc\{what\}\}\+\\mathbf\{u\}\_\{\\mathcal\{T\}\}^\{\\top\}\\mathbf\{w\}\_\{i\}^\{\\textsc\{where\}\}\+b\_\{\\mathcal\{T\}\}\\bigr\),\(13\)where\(𝐯𝒯,𝐮𝒯,b𝒯\)\(\\mathbf\{v\}\_\{\\mathcal\{T\}\},\\mathbf\{u\}\_\{\\mathcal\{T\}\},b\_\{\\mathcal\{T\}\}\)are light\-weight task\-encoder parameters\.

#### Buffer population\.

ℬ𝒯=top​\-​K\{P\(mi∣𝒯\)⋅U\(mi,t0\)\}i=1\|ℳ\|\\mathcal\{B\}\_\{\\mathcal\{T\}\}=\\operatorname\{top\\text\{\-\}K\}\\\{P\(m\_\{i\}\\mid\\mathcal\{T\}\)\\cdot U\(m\_\{i\},t\_\{0\}\)\\\}\_\{i=1\}^\{\|\\mathcal\{M\}\|\}\.

#### Two\-stage retrieval\.

At query time the system first searches the buffer \(O​\(K\)O\(K\)\); if the best score exceeds a confidence thresholdθℬ\\theta\_\{\\mathcal\{B\}\}, it is returned immediately\. Otherwise, a fallback full\-store search \(O​\(N\)O\(N\)\) is performed\.

###### Proposition 2\(Sub\-linear Retrieval\)\.

LetPhit=Pr⁡\[answer∈ℬ𝒯\]P\_\{\\mathrm\{hit\}\}=\\Pr\[\\text\{answer\}\\in\\mathcal\{B\}\_\{\\mathcal\{T\}\}\]\. Then expected retrieval cost isK\+\(1−Phit\)⋅NK\+\(1\-P\_\{\\mathrm\{hit\}\}\)\\cdot N\. As the task encoder improves,Phit→1P\_\{\\mathrm\{hit\}\}\\\!\\to\\\!1and retrieval becomesO​\(K\)O\(K\)\.

### 3\.7Future\-Oriented Encoding

Following evidence that prospective encoding improves later recall\(Szpunar et al\.,[2014](https://arxiv.org/html/2608.04746#bib.bib36)\), each new experiencexix\_\{i\}is augmented at storage time with a brief prospective annotation:

x~i\\displaystyle\\tilde\{x\}\_\{i\}=\[xi;LLMθ⁡\(“When useful?”∥xi\)\],\\displaystyle=\\bigl\[x\_\{i\}\\,;\\;\\operatorname\{LLM\}\_\{\\theta\}\(\\text\{\`\`When useful?''\}\\,\\\|\\,x\_\{i\}\)\\bigr\],\(14\)𝐰iwhat\\displaystyle\\mathbf\{w\}\_\{i\}^\{\\textsc\{what\}\}=Enc⁡\(x~i\)\.\\displaystyle=\\operatorname\{Enc\}\(\\tilde\{x\}\_\{i\}\)\.This biases thewhatembedding toward anticipated retrieval scenarios, improving recall on future queries\.

### 3\.8Value\-Weighted Memory Consolidation

At session boundaries, memories whose utility has decayed below thresholdϵ\\epsilonare pruned, unless they serve as high\-connectivity hubs in𝒢\\mathcal\{G\}:

ℳ′=\{mi∈ℳ:\\displaystyle\\mathcal\{M\}^\{\\prime\}=\\bigl\\\{m\_\{i\}\\in\\mathcal\{M\}:U​\(mi,tnow\)\>ϵ\\displaystyle U\(m\_\{i\},t\_\{\\text\{now\}\}\)\>\\epsilon\(15\)orΦ\(mi,𝒢\)\>ϵG\}\.\\displaystyle\\text\{or\}\\;\\Phi\(m\_\{i\},\\mathcal\{G\}\)\>\\epsilon\_\{G\}\\bigr\\\}\.The second condition prevents fragmentation of the episodic hypergraph by retaining low\-utility but structurally important nodes\.

### 3\.9Full Pipeline Summary

The complete system operates in four phases\.\(1\) Storage: new experiences are prospectively annotated \(§[3\.7](https://arxiv.org/html/2608.04746#S3.SS7)\), encoded into an EMU \(§[3\.1](https://arxiv.org/html/2608.04746#S3.SS1)\), assigned auto\-estimated\(π^,τ^\)\(\\hat\{\\pi\},\\hat\{\\tau\}\)\(§[3\.2](https://arxiv.org/html/2608.04746#S3.SS2)\), and integrated into𝒢\\mathcal\{G\}\(§[3\.4](https://arxiv.org/html/2608.04746#S3.SS4)\)\.\(2\) Prospective loading: the PMB pre\-populates a buffer ofKKanticipated memories for the upcoming task \(§[3\.6](https://arxiv.org/html/2608.04746#S3.SS6)\)\.\(3\) Retrieval: incoming queries are scored against the buffer \(then full store on miss\) via adaptive WWW scoring \(§[3\.3](https://arxiv.org/html/2608.04746#S3.SS3)\)\.\(4\) Maintenance: RCI updates affected memory parameters when new information arrives \(§[3\.5](https://arxiv.org/html/2608.04746#S3.SS5)\); consolidation prunes low\-utility memories at session end \(§[3\.8](https://arxiv.org/html/2608.04746#S3.SS8)\)\.

## 4Experiments

### 4\.1Temporal Reasoning on MemoryAgentBench \(EventQA\-64k\)

We evaluate ScrubJay\-MEM on the EventQA subset of MemoryAgentBench\(Hu et al\.,[2025](https://arxiv.org/html/2608.04746#bib.bib14)\), which tests an agent’s ability to retrieve and reason over time\-ordered event sequences embedded in long narrative passages\. EventQA is the most temporally demanding subset of MAB, making it the closest public analog to the kind of task ScrubJay\-MEM’s perishability mechanism is designed for\.

#### Setup\.

The benchmark consists of 5 long\-form contexts \(median length 64K tokens\) with 100 questions each, for a total of 500 queries\. We use MAB’s official scorer \(metrics\_summarization\) which reports exact\-match \(EM\), token\-level F1, substring EM \(sEM\), and ROUGE\-L F1, with no LLM\-as\-judge component\. All systems share the same backbone \(llama3\.1:8b\) and embedding model \(nomic\-embed\-text, 768\-dim\), served locally via Ollama for reproducibility and to eliminate provider\-specific confounds\. Five baselines are evaluated: lexical \(BM25\), dense \(Contriever\(Izacard et al\.,[2022](https://arxiv.org/html/2608.04746#bib.bib16)\), Qwen3\-Embedding\-4B\(Zhang et al\.,[2025](https://arxiv.org/html/2608.04746#bib.bib43)\)\), and agentic\-memory \(Mem0\(Chhikara et al\.,[2025](https://arxiv.org/html/2608.04746#bib.bib4)\), A\-MEM\(Xu et al\.,[2026](https://arxiv.org/html/2608.04746#bib.bib42)\)\)\. Numbers are reported with the same top\-k=5k=5retrieval depth and chunk size \(4096\) across systems\.

#### Results\.

ScrubJay\-MEM achieves the highest F1 \(61\.58\) and the highest exact\-match \(41\.00\) on EventQA\-64k, outperforming the strongest agentic baseline \(Mem0\) by \+2\.66 F1 / \+5\.00 EM and the strongest embedding baseline \(Qwen3\-Embedding\-4B\) by \+3\.09 F1 / \+4\.40 EM \([Table˜1](https://arxiv.org/html/2608.04746#S4.T1)\)\.

Table 1:EventQA\-64k results with thellama3\.1:8bbackbone\. All systems use MAB’s official scorer\.Bold: best in column\.
#### Sensitivity to backbone capability\.

A natural concern is whether ScrubJay\-MEM’s advantage persists with a stronger generation model\. To probe this, we re\-ran the full sweep withqwen3:30b\-instruct\([Table˜11](https://arxiv.org/html/2608.04746#A3.T11), appendix\)\. With the stronger backbone, dense\-retrieval baselines close the gap considerably \(Contriever F1 78\.68 vs\. ScrubJay\-MEM 72\.82\), suggesting that some of the temporal benefit our architecture confers can be matched by a sufficiently capable LLM reasoning over dense retrievals\. We frame this honestly:*ScrubJay\-MEM’s contribution is largest in the resource\-constrained regime that characterizes most deployed memory agents*, where the backbone LLM is not large enough to internally compensate for a temporally\-naive retriever\.

#### Honest scoping: where ScrubJay\-MEM does*not*help\.

We also evaluated on MAB’s Conflict\-Resolution subsets \(Factconsolidation\-MH, Factconsolidation\-SH\)\. On these tasks, where factual updates supersede earlier statements but stale facts must remain visible for the consolidation step, our perishability mechanism is actively miscalibrated: type\-conditioned decay suppresses the very memories the task requires\. We report this in the appendix \([Table˜12](https://arxiv.org/html/2608.04746#A4.T12)\) rather than the main results, but flag it explicitly: ScrubJay\-MEM targets*temporal reasoning over perishable facts*, not generic fact retrieval\. This delineation is a feature, not a limitation: the next subsection \([Section˜4\.2](https://arxiv.org/html/2608.04746#S4.SS2)\) quantifies the architectural property responsible for our win\.

### 4\.2Temporal Generalization to Unseen Retention Intervals

EventQA establishes that ScrubJay\-MEM helps on temporal benchmarks overall\. This subsection isolates*why*: we introduce the Temporal Generalization Test \(TGT\), a controlled diagnostic that asks whether a memory system can generalize its temporal behavior to retention intervals it has never been calibrated on\. The benchmark is designed as the computational analog of the scrub jay retention interval experiment ofClayton et al\. \([2003](https://arxiv.org/html/2608.04746#bib.bib5)\), which demonstrated that western scrub jays generalize cache\-decay knowledge to intermediate, unseen retention intervals, a property we argue any biologically\-plausible memory system should exhibit\.

#### Benchmark design\.

TGT consists of 20 instances, each comprising 96 memories sampled across four perishability classes \(Ephemeral, Session\-Specific, Durable Preference, Stable Knowledge; 24 per class\) and 66 queries issued at five retention intervals:I1I\_\{1\}\(immediate, 0–1 sessions\),I2I\_\{2\}\(short, 3–5\),I3I\_\{3\}\(medium, 8–12,unseen\),I4I\_\{4\}\(long, 20–25\), andI5I\_\{5\}\(very long, 40–60,unseen\)\.I3I\_\{3\}tests interpolation to an unseen interval between two seen ones;I5I\_\{5\}tests extrapolation beyond the calibration range\. The full benchmark contains 1,320 queries\.

#### Metric: Generalization Gap\.

We define the*Generalization Gap*as

GenGap=Acc​\(I2\)\+Acc​\(I4\)−2⋅Acc​\(I3\),\\mathrm\{GenGap\}\\;=\\;\\mathrm\{Acc\}\(I\_\{2\}\)\+\\mathrm\{Acc\}\(I\_\{4\}\)\-2\\cdot\\mathrm\{Acc\}\(I\_\{3\}\),\(16\)which measures how far the system’s accuracy at the unseen interpolation interval falls below the linear interpolation of its accuracy at the two adjacent seen intervals\. A system with continuous temporal modeling should haveGenGap≈0\\mathrm\{GenGap\}\\approx 0; a system that has memorized behavior only at the seen intervals will haveGenGap≪0\\mathrm\{GenGap\}\\ll 0\. Positive GenGap indicates*robust*generalization—accuracy at the unseen interval at or above the seen\-interval baseline\. We additionally report the Temporal Generalization ScoreTGS=15​∑kAcc​\(Ik\)\\mathrm\{TGS\}=\\tfrac\{1\}\{5\}\\sum\_\{k\}\\mathrm\{Acc\}\(I\_\{k\}\), and Combined / Factual / Staleness accuracy at the per\-query level \(definitions in[Section˜B\.7](https://arxiv.org/html/2608.04746#A2.SS7)\)\.

#### Baselines\.

We compare against a stratified set of nine baselines spanning the spectrum of memory designs: a random control \(B0\), an LLM\-only condition with no retrieval \(B1\), lexical retrieval \(B2: BM25\), dense retrieval \(B3:nomic\-embed\-texttop\-1\), hybrid retrieval \(B4: BM25 \+ dense via reciprocal rank fusion\), a recency\-prior baseline \(B5: dense \+ global exponential recency\), vanilla RAG \(B6: dense retrieval \+ LLM answer generation\), and RAG with explicit temporal prompting \(B7: B6 with session\-age annotations and type\-perishability instructions in the prompt\)\. The B5 baseline is included specifically to test whether a single global decay rate matches type\-conditioned perishability; B7 tests whether a strong LLM with explicit age annotations can match an explicit decay model\.

#### Setup\.

All TGT systems shareqwen3:30b\-instructas the generation model \(where applicable\) andnomic\-embed\-text\(768\-dim\) as the embedder; retrieval depth is top\-k=10k=10and we use a single seed \(4242\)\. The benchmark itself is naturalised at construction time byqwen3:30b\-instruct\(Appendix[B](https://arxiv.org/html/2608.04746#A2)\); systems consume the released benchmark unchanged\. To avoid self\-preference bias\(Panickssery et al\.,[2024](https://arxiv.org/html/2608.04746#bib.bib25)\), we usellama3\.2:3bas the answer\-correctness judge, a different model family \(Meta\) from the Alibaba\-trained generation backbone, chosen for cross\-family separation rather than capacity\. Each query is scored on \(i\) factual correctness against ground\-truth memory content and \(ii\) temporal validity \(staleness\) judgment; combined accuracy requires both\.

#### Results\.

[Table˜2](https://arxiv.org/html/2608.04746#S4.T2)shows the full E3 TGT results\.

Table 2:Temporal Generalization Test results\. 20 instances, 1,320 queries,qwen3:30b\-instructgeneration \+llama3\.2:3bjudge \(cross\-family\)\.Bold: best in column among retrieval\-based systems \(excluding LLM\-only and trivial controls\)\. GenGap \> 0 indicates robust generalization to the unseen interpolation interval\. Tier categorises systems by per\-query LLM usage:*retrieval\-based*systems \(including ours\) produce the answer as the top\-1 retrieved memory text without invoking the generator at query time;*RAG*systems retrieve then generate via the LLM\. ScrubJay\-MEM uses LLM calls at ingest and on RCI events \(§[3\.2](https://arxiv.org/html/2608.04746#S3.SS2),[3\.5](https://arxiv.org/html/2608.04746#S3.SS5),[3\.7](https://arxiv.org/html/2608.04746#S3.SS7)\) but not at query time\.SystemTierCombined↑\\uparrowFactual↑\\uparrowStaleness↑\\uparrowTGS↑\\uparrowGenGap↑\\uparrow*LLM\-based and trivial controls*Random \(B0\)Trivial28\.629\.384\.10\.296\+0\.071\+0\.071LLM\-only \(B1\)LLM\-only44\.444\.495\.20\.459\+0\.181\+0\.181RAG\-vanilla \(B6\)RAG62\.767\.191\.50\.633\+0\.039\+0\.039RAG\-temporal \(B7\)RAG67\.271\.590\.70\.678−0\.018\-0\.018*Retrieval\-based systems*BM25 \(B2\)Lexical35\.240\.277\.70\.353\+0\.039\+0\.039Dense top\-1 \(B3\)Dense37\.041\.773\.60\.372−0\.022\-0\.022BM25⊕\\\!\\oplus\\\!Dense RRF \(B4\)Hybrid39\.445\.074\.60\.395−0\.054\-0\.054Dense \+ recency \(B5\)Temporal37\.541\.974\.50\.377−0\.046\-0\.046ScrubJay\-MEM \(no decay\)Ours\-abl\.35\.839\.182\.30\.366\+0\.019\+0\.019ScrubJay\-MEM \(full\)Ours37\.139\.882\.30\.378\+0\.108\\mathbf\{\+0\.108\}We organize the discussion around three findings\.

Finding 1: ScrubJay\-MEM is the only retrieval\-based system that generalizes to unseen intervals\.Among all retrieval\-based methods, only ScrubJay\-MEM \(full\) achieves substantially positive GenGap \(\+0\.108\+0\.108\)\. Every flat\-retrieval baseline \(lexical, dense, hybrid, even hybrid with a recency prior\) has*negative*GenGap, meaning their accuracy at the unseenI3I\_\{3\}interval is below the linear interpolation of the seenI2I\_\{2\}andI4I\_\{4\}accuracies\. The next\-best retrieval system on GenGap \(hybrid RRF\) sits at−0\.054\-0\.054, giving ScrubJay\-MEM a16\.2\-percentage\-point marginon this metric\.

Finding 2: Type\-conditioned decay, not flat recency, is the mechanism\.The decay ablation \(ScrubJay\-MEM \(no decay\)\) collapses GenGap from\+0\.108\+0\.108to\+0\.019\+0\.019\(a5\.7×5\.7\\timesreduction\) while staleness accuracy is preserved \(both variants at82\.3%82\.3\\%\)\. The flat\-recency baseline \(B5, GenGap−0\.046\-0\.046\) performs*worse*than the no\-temporal\-model baseline \(B3, GenGap−0\.022\-0\.022\), directly refuting the conjecture that a single global decay rate is sufficient\. Naive recency penalizes durable memories along with ephemeral ones; type\-conditioned perishability decays only what should decay \([Figure˜2](https://arxiv.org/html/2608.04746#A2.F2)\)\.

Finding 3: LLM\-based methods achieve higher combined accuracy but via a different mechanism\.RAG\-temporal \(B7\) achieves the highest combined accuracy on E3 \(67\.2%67\.2\\%vs\. our37\.1%37\.1\\%\), driven by the LLM’s ability to reason over session\-age annotations at inference time\. We do not contest this result; we contextualize it\. B7’s GenGap is−0\.018\-0\.018, indicating that its temporal competence does not generalize as a learned property but must be re\-derived at each query through prompt\-level reasoning, at the cost of one LLM call per query\. ScrubJay\-MEM encodes temporal validity as architectural parameters \(π,τ\\pi,\\tau\), enabling sub\-linear retrieval \(via the Prospective Memory Buffer,[Section˜3\.6](https://arxiv.org/html/2608.04746#S3.SS6)\) and an inspectable decay curve\. We view the two approaches as complementary rather than competing: prompting captures temporal reasoning at inference cost; perishability captures it at architectural cost\. The two regimes occupy distinct Pareto frontiers in the joint \(combined, staleness\) plane \([Figure˜4](https://arxiv.org/html/2608.04746#A2.F4)\): ScrubJay\-MEM sits at the top of the retrieval frontier, matching LLM\-grade staleness judgment without a per\-query LLM call\.

#### A note on the LLM\-only baseline\.

LLM\-only\(B1\) has the highest GenGap of all systems \(\+0\.181\+0\.181\) but only44\.4%44\.4\\%factual accuracy\. This is an artifact of low\-accuracy systems exhibiting no systematic per\-interval bias: when answers are near\-random with respect to memory content, they are also near\-random with respect to retention interval, giving artificially positive GenGap\. Among retrieval\-grounded systems with factual accuracy above35%35\\%, ScrubJay\-MEM’s GenGap is the highest by a substantial margin\.

## 5Conclusion

ScrubJay\-MEM translates four mechanisms of western scrub jay episodic memory—integrated WWW encoding, a per\-memory perishability coefficientπi\\pi\_\{i\}, retroactive contextual integration atO​\(1\)O\(1\)LLM calls per update, and a Prospective Memory Buffer—into an inspectable architecture for LLM\-agent memory\. Underllama3\.1:8b, the system improves EventQA\-64k F1 by\+2\.66\+2\.66over Mem0 and\+3\.09\+3\.09over Qwen3\-Embedding\-4B; on the Temporal Generalization Test introduced here, it is the only retrieval\-based system with substantially positive GenGap \(\+0\.108\+0\.108\), and ano\-decayablation collapses this gain by5\.7×5\.7\\times, isolating type\-conditioned decay as the responsible mechanism and operationalising a comparative\-cognition primitive as an inspectable architectural parameter of LLM\-agent memory\.

## Limitations

#### Scope\.

Our gains concentrate on temporal reasoning over perishable facts\. Under a stronger backbone \([Appendix˜C](https://arxiv.org/html/2608.04746#A3)\), dense retrieval matches us on EventQA\-64k, and on MemoryAgentBench Conflict\-Resolution \([Appendix˜D](https://arxiv.org/html/2608.04746#A4)\) flat retrieval is better\-suited than type\-conditioned decay; fact\-consolidation requires that stale facts remain visible\. ScrubJay\-MEM is therefore best understood as a temporally\-perishable fact retriever, complementary to flat retrievers for consolidation tasks and to prompt\-level temporal reasoning for systems with abundant backbone capacity\.

#### TGT is a controlled diagnostic\.

TGT is LLM\-naturalised from deterministic templates with held\-out retention intervals and a known validity schedule, properties that enable a mechanistic claim about generalisation but limit external validity to in\-distribution conversational logs\. TGT’s four perishability classes shareπ\\pi\-ranges with our internal taxonomy \([Tables˜3](https://arxiv.org/html/2608.04746#A2.T3)and[6](https://arxiv.org/html/2608.04746#A2.T6)\); the no\-decay ablation, which collapses GenGap by5\.7×5\.7\\times, controls for the concern that the benchmark and the architecture share categorical primitives\. Reported numbers useqwen3:30b\-instructfor generation and a cross\-familyllama3\.2:3bjudge to mitigate self\-preference bias\(Panickssery et al\.,[2024](https://arxiv.org/html/2608.04746#bib.bib25)\); the qualitative ranking we report is robust to per\-query verdicts\.

## Ethical Considerations

#### Synthetic data, no real subjects\.

TGT contains no real\-user data: memory text is composed from a controlled vocabulary of fictional names and slot values \(Appendix[B\.6](https://arxiv.org/html/2608.04746#A2.SS6)\) and naturalised by an LLM under a leakage\-prevention protocol \(Appendix[B\.5](https://arxiv.org/html/2608.04746#A2.SS5)\)\. Biological motivations cite prior captive\-animal behavioural studies; we ran no animal experiments of our own\.

#### Misuse: silent forgetting of sensitive content\.

ScrubJay\-MEM selectively forgets information based on an auto\-classified perishability coefficientπi\\pi\_\{i\}\. A production deployment could silently drop user\-relevant medical, financial, or safety\-critical content mislabelled as ephemeral\. We recommend treatingπi\\pi\_\{i\}as advisory and gating deletion of any sensitive memory class behind an explicit retention policy rather than the classifier alone\.

## References

- Anderson et al\. \(2004\)John R Anderson, Daniel Bothell, Michael D Byrne, Scott Douglass, Christian Lebiere, and Yulin Qin\. 2004\.An integrated theory of the mind\.*Psychological review*, 111\(4\):1036\.
- Brom and Lukavsky \(2009\)Cyril Brom and J Lukavsky\. 2009\.Towards virtual characters with a full episodic memory ii: The episodic memory strikes back\.In*Proc\. empathic agents, AAMAS workshop*, pages 1–9\.
- Brown et al\. \(2007\)Gordon DA Brown, Ian Neath, and Nick Chater\. 2007\.A temporal ratio model of memory\.*Psychological review*, 114\(3\):539\.
- Chhikara et al\. \(2025\)Prateek Chhikara, Dev Khant, Saket Aryan, Taranjeet Singh, and Deshraj Yadav\. 2025\.Mem0: Building production\-ready ai agents with scalable long\-term memory\.*arXiv preprint arXiv:2504\.19413*\.
- Clayton et al\. \(2003\)Nicola S Clayton, Timothy J Bussey, and Anthony Dickinson\. 2003\.Can animals recall the past and plan for the future?*Nature Reviews Neuroscience*, 4\(8\):685–691\.
- Clayton and Dickinson \(1998\)Nicola S Clayton and Anthony Dickinson\. 1998\.Episodic\-like memory during cache recovery by scrub jays\.*Nature*, 395\(6699\):272–274\.
- Clayton et al\. \(2001\)Nicola S Clayton, Kara Shirley Yu, and Anthony Dickinson\. 2001\.Scrub jays \(aphelocoma coerulescens\) form integrated memories of the multiple features of caching episodes\.*Journal of Experimental Psychology: Animal Behavior Processes*, 27\(1\):17\.
- Correia et al\. \(2007\)Sérgio PC Correia, Anthony Dickinson, and Nicola S Clayton\. 2007\.Western scrub\-jays anticipate future needs independently of their current motivational state\.*Current Biology*, 17\(10\):856–861\.
- Crystal \(2010\)Jonathon D Crystal\. 2010\.Episodic\-like memory in animals\.*Behavioural Brain Research*, 215\(2\):235–243\.
- Ebbinghaus \(1913\)Hermann Ebbinghaus\. 1913\.*Memory*\.
- Gao et al\. \(2023\)Yunfan Gao, Yun Xiong, Xinyu Gao, Kangxiang Jia, Jinliu Pan, Yuxi Bi, Yixin Dai, Jiawei Sun, Haofen Wang, Haofen Wang, and 1 others\. 2023\.Retrieval\-augmented generation for large language models: A survey\.*arXiv preprint arXiv:2312\.10997*, 2\(1\):32\.
- Ge et al\. \(2024\)Suyu Ge, Yunan Zhang, Liyuan Liu, Minjia Zhang, Jiawei Han, and Jianfeng Gao\. 2024\.Model tells you what to discard: Adaptive kv cache compression for llms\.In*International Conference on Learning Representations*, volume 2024, pages 22975–22988\.
- Graves et al\. \(2016\)Alex Graves, Greg Wayne, Malcolm Reynolds, Tim Harley, Ivo Danihelka, Agnieszka Grabska\-Barwińska, Sergio Gómez Colmenarejo, Edward Grefenstette, Tiago Ramalho, John Agapiou, and 1 others\. 2016\.Hybrid computing using a neural network with dynamic external memory\.*Nature*, 538\(7626\):471–476\.
- Hu et al\. \(2025\)Yuanzhe Hu, Yu Wang, and Julian McAuley\. 2025\.Evaluating memory in llm agents via incremental multi\-turn interactions\.*arXiv preprint arXiv:2507\.05257*\.
- Huang et al\. \(2025\)Zhengjun Huang, Zhoujin Tian, Qintian Guo, Fangyuan Zhang, Yingli Zhou, Di Jiang, Zeying Xie, and Xiaofang Zhou\. 2025\.Licomemory: Lightweight and cognitive agentic memory for efficient long\-term reasoning\.*arXiv preprint arXiv:2511\.01448*\.
- Izacard et al\. \(2022\)Gautier Izacard, Mathilde Caron, Lucas Hosseini, Sebastian Riedel, Piotr Bojanowski, Armand Joulin, and Edouard Grave\. 2022\.Unsupervised dense information retrieval with contrastive learning\.*Transactions on Machine Learning Research*\.
- Jiang et al\. \(2026\)Hanqi Jiang, Junhao Chen, Yi Pan, Ling Chen, Weihang You, Yifan Zhou, Ruidong Zhang, Andrea Sikora, Lin Zhao, Yohannes Abate, and 1 others\. 2026\.Synapse: Empowering llm agents with episodic\-semantic memory via spreading activation\.*arXiv preprint arXiv:2601\.02744*\.
- Latimer et al\. \(2025\)Chris Latimer, Nicoló Boschi, Andrew Neeser, Chris Bartholomew, Gaurav Srivastava, Xuan Wang, and Naren Ramakrishnan\. 2025\.Hindsight is 20/20: Building agent memory that retains, recalls, and reflects\.*arXiv preprint arXiv:2512\.12818*\.
- Lee et al\. \(2024\)Kuang\-Huei Lee, Xinyun Chen, Hiroki Furuta, John Canny, and Ian Fischer\. 2024\.A human\-inspired reading agent with gist memory of very long contexts\.In*International Conference on Machine Learning*, pages 26396–26415\. PMLR\.
- Leviathan et al\. \(2023\)Yaniv Leviathan, Matan Kalman, and Yossi Matias\. 2023\.Fast inference from transformers via speculative decoding\.In*International Conference on Machine Learning*, pages 19274–19286\. PMLR\.
- Lin et al\. \(2025\)Zhixuan Lin, Evgenii Nikishin, Xu He, and Aaron Courville\. 2025\.Forgetting transformer: Softmax attention with a forget gate\.In*International Conference on Learning Representations*, volume 2025, pages 69704–69738\.
- Maharana et al\. \(2024\)Adyasha Maharana, Dong\-Ho Lee, Sergey Tulyakov, Mohit Bansal, Francesco Barbieri, and Yuwei Fang\. 2024\.Evaluating very long\-term conversational memory of llm agents\.*arXiv preprint arXiv:2402\.17753*\.
- Mu et al\. \(2023\)Jesse Mu, Xiang Li, and Noah Goodman\. 2023\.Learning to compress prompts with gist tokens\.*Advances in Neural Information Processing Systems*, 36:19327–19352\.
- Packer et al\. \(2023\)Charles Packer, Vivian Fang, Shishir\_G Patil, Kevin Lin, Sarah Wooders, and Joseph\_E Gonzalez\. 2023\.Memgpt: towards llms as operating systems\.
- Panickssery et al\. \(2024\)Arjun Panickssery, Samuel R Bowman, and Shi Feng\. 2024\.Llm evaluators recognize and favor their own generations\.*Advances in Neural Information Processing Systems*, 37:68772–68802\.
- Park et al\. \(2023\)Joon Sung Park, Joseph O’Brien, Carrie Jun Cai, Meredith Ringel Morris, Percy Liang, and Michael S Bernstein\. 2023\.Generative agents: Interactive simulacra of human behavior\.In*Proceedings of the 36th annual acm symposium on user interface software and technology*, pages 1–22\.
- Pritzel et al\. \(2017\)Alexander Pritzel, Benigno Uria, Sriram Srinivasan, Adria Puigdomenech Badia, Oriol Vinyals, Demis Hassabis, Daan Wierstra, and Charles Blundell\. 2017\.Neural episodic control\.In*International conference on machine learning*, pages 2827–2836\. PMLR\.
- Raby et al\. \(2007\)Caroline R Raby, Dean M Alexis, Anthony Dickinson, and Nicola S Clayton\. 2007\.Planning for the future by western scrub\-jays\.*Nature*, 445\(7130\):919–921\.
- Rana et al\. \(2026\)Ashish Rana, Chia\-Chien Hung, Qumeng Sun, Julian Martin Kunkel, and Carolin Lawrence\. 2026\.Oblivion: Self\-adaptive agentic memory control through decay\-driven activation\.*arXiv preprint arXiv:2604\.00131*\.
- Rasmussen et al\. \(2025\)Preston Rasmussen, Pavlo Paliychuk, Travis Beauvais, Jack Ryan, and Daniel Chalef\. 2025\.Zep: a temporal knowledge graph architecture for agent memory\.*arXiv preprint arXiv:2501\.13956*\.
- Ritter et al\. \(2021\)Samuel Ritter, Ryan Faulkner, Laurent Sartran, Adam Santoro, Matthew Botvinick, and David Raposo\. 2021\.Rapid task\-solving in novel environments\.In*International Conference on Learning Representations*\.
- Salwiczek et al\. \(2010\)Lucie H Salwiczek, Arii Watanabe, and Nicola S Clayton\. 2010\.Ten years of research into avian models of episodic\-like memory and its implications for developmental and comparative cognition\.*Behavioural Brain Research*, 215\(2\):221–234\.
- Schacter et al\. \(2007\)Daniel L Schacter, Donna Rose Addis, and Randy L Buckner\. 2007\.Remembering the past to imagine the future: the prospective brain\.*Nature reviews neuroscience*, 8\(9\):657–661\.
- Smith \(1982\)Alan Jay Smith\. 1982\.Cache memories\.*ACM Computing Surveys \(CSUR\)*, 14\(3\):473–530\.
- Stachowicz and Kruijff \(2011\)Dennis Stachowicz and Geert\-Jan M Kruijff\. 2011\.Episodic\-like memory for cognitive robots\.*IEEE Transactions on Autonomous Mental Development*, 4\(1\):1–16\.
- Szpunar et al\. \(2014\)Karl K Szpunar, R Nathan Spreng, and Daniel L Schacter\. 2014\.A taxonomy of prospection: Introducing an organizational framework for future\-oriented cognition\.*Proceedings of the National Academy of Sciences*, 111\(52\):18414–18421\.
- Tulving \(1972\)Endel Tulving\. 1972\.Episodic and semantic memory\.*Organization of memory*, 1\(381\-403\):1\.
- Wang et al\. \(2025\)Guanzhi Wang, Yuqi Xie, Yunfan Jiang, Ajay Mandlekar, Chaowei Xiao, Yuke Zhu, Linxi Fan, and Anima Anandkumar\. 2025\.Voyager: An open\-ended embodied agent with large language models\.*Transactions on Machine Learning Research*\.
- Wei et al\. \(2026\)Lei Wei, Xiao Peng, Xu Dong, Niantao Xie, and Bin Wang\. 2026\.[Fademem: Biologically\-inspired forgetting for efficient agent memory](https://arxiv.org/abs/2601.18642)\.*Preprint*, arXiv:2601\.18642\.
- Worsfold et al\. \(2025\)Ella Worsfold, Nicola S Clayton, and Lucy G Cheke\. 2025\.Revisiting episodic\-like memory in scrub jays: Is there more we can still learn from what–where–when caching behaviour?*Learning & Behavior*, 53\(1\):65–79\.
- Wu et al\. \(2025\)Di Wu, Hongwei Wang, Wenhao Yu, Yuwei Zhang, Kai\-Wei Chang, and Dong Yu\. 2025\.Longmemeval: Benchmarking chat assistants on long\-term interactive memory\.In*The Thirteenth International Conference on Learning Representations*\.
- Xu et al\. \(2026\)Wujiang Xu, Zujie Liang, Kai Mei, Hang Gao, Juntao Tan, and Yongfeng Zhang\. 2026\.A\-mem: Agentic memory for llm agents\.*Advances in Neural Information Processing Systems*, 38:17577–17604\.
- Zhang et al\. \(2025\)Yanzhao Zhang, Mingxin Li, Dingkun Long, Xin Zhang, Huan Lin, Baosong Yang, Pengjun Xie, An Yang, Dayiheng Liu, Junyang Lin, and 1 others\. 2025\.Qwen3 embedding: Advancing text embedding and reranking through foundation models\.*arXiv preprint arXiv:2506\.05176*\.
- Zhang et al\. \(2023\)Zhenyu Zhang, Ying Sheng, Tianyi Zhou, Tianlong Chen, Lianmin Zheng, Ruisi Cai, Zhao Song, Yuandong Tian, Christopher Ré, Clark Barrett, and 1 others\. 2023\.H2o: Heavy\-hitter oracle for efficient generative inference of large language models\.*Advances in Neural Information Processing Systems*, 36:34661–34710\.
- Zhong et al\. \(2024\)Wanjun Zhong, Lianghong Guo, Qiqi Gao, He Ye, and Yanlin Wang\. 2024\.Memorybank: Enhancing large language models with long\-term memory\.In*Proceedings of the AAAI conference on artificial intelligence*, volume 38, pages 19724–19731\.

## Appendix ABiological Background: Episodic Memory in Western Scrub Jays

Western scrub jays \(Aphelocoma californica\) are among the few non\-human species that exhibit*episodic\-like*memory: the ability to recall the*what*,*where*, and*when*of a past event as an integrated representation rather than three independent features\(Clayton and Dickinson,[1998](https://arxiv.org/html/2608.04746#bib.bib6)\)\. Four empirical findings from this literature motivate every component of our framework\.

#### Integrated What–Where–When \(WWW\) retrieval\.

When jays cache perishable \(worms\) and durable \(peanuts\) food at distinct spatial sites, they later recover the correct item from the correct location after the correct delay, demonstrating that the three dimensions are bound into a single episodic trace and that cueing any one dimension activates the others\(Clayton and Dickinson,[1998](https://arxiv.org/html/2608.04746#bib.bib6); Clayton et al\.,[2001](https://arxiv.org/html/2608.04746#bib.bib7)\)\.

#### Perishability\-aware temporal decay\.

Jays preferentially recover worms after short retention intervals \(when worms are still fresh\) but switch to peanuts after long intervals \(when worms have decayed\)\. Memory utility is therefore a joint function of elapsed time and the item’s intrinsic decay rate, not a uniform recency signal\(Clayton et al\.,[2003](https://arxiv.org/html/2608.04746#bib.bib5)\)\.

#### Retroactive contextual integration\.

When jays learn*after*caching that a food type decays faster than expected, they revise their recovery strategy accordingly\(Clayton et al\.,[2001](https://arxiv.org/html/2608.04746#bib.bib7)\)\. This retroactive update operates on the existing episodic trace; no new caching episode is required\.

#### Prospective caching \(future planning\)\.

Jays cache more food in compartments where they anticipate being hungry the following morning, independently of their current motivational state\(Raby et al\.,[2007](https://arxiv.org/html/2608.04746#bib.bib28); Correia et al\.,[2007](https://arxiv.org/html/2608.04746#bib.bib8)\)\. This constitutes anticipatory memory loading: encoding is biased by*future*retrieval needs, not solely past experience\.

Table[4](https://arxiv.org/html/2608.04746#A2.T4)summarizes the mapping from each biological finding to its computational counterpart in ScrubJay\-MEM; the architecture is described in full in §[3](https://arxiv.org/html/2608.04746#S3)\.

## Appendix BTemporal Generalization Test: Construction Details

Table 3:Perishability taxonomy \(auto\-classified at encoding time\)\.Table 4:Mapping from scrub jay cognition to ScrubJay\-MEM components\.![Refer to caption](https://arxiv.org/html/2608.04746v1/x2.png)Figure 2:Accuracy across the five retention intervals on E3 TGT\. Shaded bands mark the two unseen intervals \(I3I\_\{3\}, interpolation;I5I\_\{5\}, extrapolation\)\. ScrubJay\-MEM \(full\) maintains a smooth monotonic profile across both unseen intervals; dense, lexical, and recency baselines all show characteristic dips atI3I\_\{3\}\(negative GenGap\)\. The decay ablation curve shows ScrubJay\-MEM losing itsI3I\_\{3\}smoothness when type\-conditioned perishability is removed\.![Refer to caption](https://arxiv.org/html/2608.04746v1/x3.png)Figure 3:Generalization Gap across all evaluated systems on E3 TGT, sorted by GenGap\. Among retrieval\-based systems \(blue\), only ScrubJay\-MEM \(full\) achieves substantially positive GenGap; every flat\-retrieval baseline has GenGap≤0\\leq 0\. The decay ablation \(hatched\) reduces GenGap by5\.7×5\.7\\times, isolating type\-conditioned perishability as the responsible mechanism\. Note that LLM\-only \(B1, gray\) has positive GenGap at low factual accuracy \(44\.4%44\.4\\%\), reflecting that uninformed answers carry no interval\-specific bias\.![Refer to caption](https://arxiv.org/html/2608.04746v1/x4.png)Figure 4:Operating\-point view of E3 TGT: staleness accuracy vs\. combined \(factual∧\\wedgestaleness\) accuracy\. The plot exposes two distinct Pareto frontiers: an LLM\-frontier traced by RAG\-vanilla and RAG\-temporal \(one LLM call per query\) and a retrieval\-frontier traced by lexical/dense/hybrid baselines \(no per\-query LLM call\)\. ScrubJay\-MEM sits at the top of the retrieval frontier, matching LLM\-only’s staleness accuracy \(82%82\\%vs\.95%95\\%\) at retrieval\-grade per\-query cost; flat retrieval baselines collapse to73​–​78%73\\text\{\-\-\}78\\%staleness accuracy\. The decay ablation collapses GenGap \([Figure˜3](https://arxiv.org/html/2608.04746#A2.F3)\) but barely moves this operating point, confirming that decay drives*generalization*rather than mean accuracy\.This appendix specifies the TGT benchmark in full: memory taxonomy, interval schedule, query design, generation pipeline, controlled vocabularies, quality audit, and validation methodology\. The benchmark, generation scripts, and a frozen2020\-instance release artifact is available in the supplementary\.

Table 5:Ground\-truth validity schedule\. A memory of typeXXqueried at intervalIkI\_\{k\}is valid iff the corresponding cell is ✓\. Held\-out intervals are shaded\.### B\.1Memory Taxonomy

Each memory belongs to one of four perishability classes with type\-specific ranges for the ground\-truth decay parameters \(πi\\pi\_\{i\},τi\\tau\_\{i\}\) used by ScrubJay\-MEM and reported alongside every memory for evaluation purposes:

Table 6:Memory taxonomy\.πi\\pi\_\{i\}is the perishability coefficient used by ScrubJay\-MEM’s utility function \([Section˜3\.2](https://arxiv.org/html/2608.04746#S3.SS2)\);τi\\tau\_\{i\}is the utility horizon in sessions\. Ground\-truth values are sampled uniformly within the listed ranges\. Both parameters are stored alongside each memory to enable post\-hoc analysis but are not visible to systems during retrieval\.![Refer to caption](https://arxiv.org/html/2608.04746v1/x5.png)Figure 5:Per\-cell accuracy by memory type \(AA–DD\) and retention interval \(I1I\_\{1\}–I5I\_\{5\}\)\. Dashed columns mark the two held\-out intervals\. ScrubJay\-MEM \(full, left\) outperforms the no\-decay ablation \(middle\) most strongly on Type\-AAephemeral memories at long intervals, in particular atI4I\_\{4\}\(0\.780\.78vs\.0\.670\.67\) andI5I\_\{5\}\(0\.720\.72vs\.0\.700\.70\), where type\-conditioned perishability correctly suppresses stale ephemeral facts\. The flat\-hybrid baseline \(BM25\+Embed RRF, right\) wins on the Type\-DDstable row by retrieving everything indiscriminately; ScrubJay\-MEM trades Type\-DDaccuracy for stronger generalization across the perishable types\.Twenty categories total span the four classes:

Type A:current\_location,todays\_plan,transient\_mood,immediate\_context,real\_time\_status\.

Type B:project\_decision,meeting\_outcome,recent\_preference\_shift,active\_bug,short\_term\_goal\.

Type C:food\_preference,communication\_style,tool\_preference,working\_hours,aesthetic\_preference\.

Type D:occupation,location,long\_term\_goal,family\_info,education\.

### B\.2Retention Intervals

Each instance issues queries at five retention intervals\. The session offsetΔ​t\\Delta tfor each query is sampled uniformly within the interval’s session range:

Table 7:Retention interval schedule\. “Held out” intervals are never available for calibration; they test the system’s ability to interpolate \(I3I\_\{3\}\) or extrapolate \(I5I\_\{5\}\) its temporal model\.
### B\.3Query Types

For every \(interval, type\) pair, three queries are generated, totaling5×4×3=605\\times 4\\times 3=60*base*queries per instance:

1. 1\.Factual recall:*“What is\{\\\{subject\}\\\}’s\{\\\{attribute\_label\}\\\}?”*— tests retrieval grounded in the target memory\.
2. 2\.Comparative staleness:*“Has\{\\\{subject\}\\\}’s\{\\\{attribute\_label\}\\\}changed recently?”*— tests temporal validity judgment\. By construction, this template never contains the answer \(see audit,[Section˜B\.10](https://arxiv.org/html/2608.04746#A2.SS10)\)\.
3. 3\.Prospective:*“What should I remember about\{\\\{subject\}\\\}’s\{\\\{attribute\_label\}\\\}for\{\\\{future\_task\}\\\}?”*— tests forward\-looking memory use\.

### B\.4Stale Distractor Queries

To prevent the system from defaulting to “always valid” at early intervals,66*stale\-distractor*queries are injected atI1I\_\{1\}andI2I\_\{2\}\(one per query type per interval,2×3=62\\times 3=6\)\. Each targets a Type\-A memory explicitly markedground​\_​truth​\_​valid=False\\mathrm\{ground\\\_truth\\\_valid\}=\\mathrm\{False\}to simulate an already\-expired ephemeral fact \(e\.g\., the user’s location “today” is no longer current because the session is one day later\)\. With distractors, the always\-valid trivial baseline drops from70%70\\%to63\.6%63\.6\\%, restoring discriminative signal at the two earliest intervals\.

Each instance thus contains60\+6=6660\+6=66queries\.

### B\.5Generation Pipeline

TGT supports two generation modes\.*Template mode*composes memories from controlled vocabularies \(see[Section˜B\.6](https://arxiv.org/html/2608.04746#A2.SS6)\) using deterministic templates for each category; it is used for unit testing and reproducibility checks\.*Ollama mode*adds an LLM naturalization pass \(qwen3:30b\-instruct\) that rewrites both memories and queries in natural prose while preserving the factual slots\. All reported numbers are from Ollama mode\.

#### Memory naturalization\.

The LLM is instructed to rewrite the template memory keeping every factual slot \(subject, attribute, value, future task\) intact and returning a single declarative sentence of at most two clauses\. A checkpoint tag of the form “This was logged in checkpoint P\{pool\_id\}\-\{type\_id\}\{index\}\.” is appended to every memory to give the retrieval layer a unique identifier\-like surface form\.

#### Query naturalization with leakage prevention\.

For*comparative staleness*queries the LLM prompt includesFORBIDDEN ANSWER CONTENT: \{answer\_text\}and instructs the model to ask about the attribute generically without revealing the value\. A post\-hoc safety check rejects any naturalized query whose lowercased text containsanswer\_text; the template is used as a fallback\.

#### Diversity controls\.

Without\-replacement targeting:within an instance, each \(interval, type\) pair selects a target memory not yet used by any other interval for that type; the used\-set resets only when the type’s pool of2424memories is exhausted\. This raises intra\-instance query\-text uniqueness from∼\\sim65% \(with replacement\) to a measured mean of96%96\\%\(min88%88\\%, max100%100\\%\)\.One pool per instance:the production configuration uses2020pools for2020instances \(1:11\{:\}1\)\. Earlier configurations sharing55pools across2020instances produced only55statistically independent samples and were rejected by the audit \([Section˜B\.10](https://arxiv.org/html/2608.04746#A2.SS10)\)\.

### B\.6Controlled Vocabularies

Memory and query templates draw from the following pools:1212names,66office areas,66cities,66project codenames,55filenames,55programming languages,55developer tools,55data stores,55frameworks,55foods,44communication styles,44aesthetic preferences,66companies,55universities,66child names,44long\-term goals,44build statuses,44mood descriptors\. Together these support roughly5⋅10115\\cdot 10^\{11\}distinct memory slot combinations before LLM naturalization, far exceeding the1,9201\{,\}920memories used in the full benchmark and ensuring the validation step \([Section˜B\.10](https://arxiv.org/html/2608.04746#A2.SS10)\) finds no duplicate memory text\.

### B\.7Metrics

Per\-query scoring is performed by an LLM judge \(llama3\.2:3b, from a different model family than the generation backboneqwen3:30b\-instruct\) which returns a structured JSON with two binary fields:

- •factual\_correct∈\{0,1\}\\in\\\{0,1\\\}— does the answer contain the ground\-truth attribute value?
- •staleness\_aware∈\{0,1\}\\in\\\{0,1\\\}— is the answer’s validity judgment consistent with the ground\-truth type×\\timesinterval schedule \([Table˜5](https://arxiv.org/html/2608.04746#A2.T5)\)?

*Combined accuracy*requires both:combined​\(q\)=𝟏​\[factual\_correct​\(q\)=1∧staleness\_aware​\(q\)=1\]\\mathrm\{combined\}\(q\)=\\mathbf\{1\}\[\\texttt\{factual\\\_correct\}\(q\)=1\\wedge\\texttt\{staleness\\\_aware\}\(q\)=1\]\. Per\-interval accuracy is the mean over queries withq\.interval=Ikq\.\\mathrm\{interval\}=I\_\{k\}\. The Temporal Generalization Score is the mean across all five intervals,TGS​\(f\)=15​∑k=15Acc​\(f,Ik\)\\mathrm\{TGS\}\(f\)=\\tfrac\{1\}\{5\}\\sum\_\{k=1\}^\{5\}\\mathrm\{Acc\}\(f,I\_\{k\}\)\. GenGap is given by[Equation˜16](https://arxiv.org/html/2608.04746#S4.E16)\. Additional decompositions reported in the appendix include factual and staleness accuracy in isolation, per\-type\-per\-interval accuracy, Recall@55, MRR, and per\-query latency\.

A heuristic fallback judge \(token\-overlap factual matching with a 60% threshold; staleness detected via uncertainty markers such as “stale”, “outdated”, “cannot confirm”\) is available for reproducibility runs without an LLM judge, but is not used for any reported numbers\.

![Refer to caption](https://arxiv.org/html/2608.04746v1/x6.png)Figure 6:Temporal Generalization Score \(TGS\) leaderboard: mean accuracy acrossI1I\_\{1\}–I5I\_\{5\}\. RAG variants lead on raw mean accuracy because of LLM\-driven answer generation; the retrieval\-only band \(BM25, dense, hybrid, ScrubJay variants\) is tightly clustered\. ScrubJay\-MEM’s contribution is on the generalization axis \([Figure˜3](https://arxiv.org/html/2608.04746#A2.F3)\), not on raw TGS\.
### B\.8Decay Ablation: Per\-Metric Decomposition

[Figure˜2](https://arxiv.org/html/2608.04746#A2.F2)visualizes the decay ablation across retention intervals;[Figure˜7](https://arxiv.org/html/2608.04746#A2.F7)decomposes the same ablation across the four TGT metrics\. Removing type\-conditioned decay leaves factual, staleness, and combined accuracy essentially unchanged \(\|Δ\|≤1\.3\|\\Delta\|\\\!\\leq\\\!1\.3percentage points each\), but collapses GenGap from\+10\.8\+10\.8to\+1\.9\+1\.9\(a5\.7×5\.7\\timesreduction\)\. This decomposition is the basis for our claim that decay is the mechanism responsible for generalization rather than for mean accuracy\.

![Refer to caption](https://arxiv.org/html/2608.04746v1/x7.png)Figure 7:Decay ablation decomposed per metric\. ScrubJay\-MEM \(full\) vs\. ScrubJay\-MEM \(no decay\) on Combined, Factual, and Staleness accuracy \(left three groups\) and GenGap \(right,×100\\times 100for visual scale\)\. All non\-GenGap metrics shift by≤1\.3\\leq 1\.3points; GenGap moves by\+8\.9\+8\.9points\. Type\-conditioned decay is isolated as the generalization mechanism\.
### B\.9Trivial Baselines

Several trivial strategies establish the floor of the metric:

Table 8:Trivial baseline combined accuracy on TGT\.The always\-valid floor of63\.6%63\.6\\%is a consequence of the validity schedule \([Table˜5](https://arxiv.org/html/2608.04746#A2.T5)\) and the stale\-distractor injection; no system should be credited for combined accuracy below this baseline on factual\+staleness joint scoring\.

### B\.10Quality Audit and Construction Fixes

The initial benchmark generation surfaced several issues, each of which was resolved before the reported runs\. We report the audit transparently because two of the issues \(answer leakage and pool reuse\) would have materially inflated baseline scores if uncorrected\.

Table 9:Quality audit: pre\- and post\-fix metrics\. All numbers measured against2020generated instances \(1,3201\{,\}320queries\)\. The reported experiments use only the post\-fix benchmark\.CriterionBefore fixesAfter fixesThresholdAnswer leakage rate8\.7% \(104/1200\)0\.0%0% requiredEffective independent samples520≥20\\geq 20preferredMemory uniqueness25%100%\>\>95%Intra\-instance query uniqueness∼\\sim65% \(min\)96% mean\>\>90%Stale queries atI1I\_\{1\}0%20%\>\>0% requiredStale queries atI2I\_\{2\}0%20%\>\>0% requiredAlways\-valid baseline70\.0%63\.6%<<70% preferredPer\-cell sample size \(min\)2020≥10\\geq 10requiredKeyword solvability8\.0%0\.0%<<5%Validation errors000 requiredThe five concrete fixes were:\(F1\) Answer leakageeliminated by rewriting the*comparative staleness*template to ask about the attribute generically \(“HasXX’sYYchanged recently?”\), never about the value, and by adding theFORBIDDEN ANSWER CONTENTclause and post\-hoc safety check to query naturalization\.\(F2\) Pool reuseeliminated by settinge3\_num\_pools==e3\_instancesso each instance gets a unique memory pool\.\(F3\) Intra\-instance duplicationreduced by adding without\-replacement target selection per \(interval, type\) pair\.\(F4\) Missing staleness at early intervalsresolved by injecting six stale\-distractor queries per instance atI1I\_\{1\}andI2I\_\{2\}\.\(F5\) Validation strengthenedto include leakage detection, intra\-instance uniqueness, pool\-reuse ratios, and stale\-query presence as audit conditions\.

### B\.11Validation Methodology

Programmatic validation runs on every generated dataset before the benchmark is released to a run\. The validator checks: memory counts per type \(must equal2424each\); memory uniqueness within instance \(no duplicatetext\); target memory presence in candidate pool; consistency betweenground​\_​truth​\_​valid\\mathrm\{ground\\\_truth\\\_valid\}and the type×\\timesinterval schedule \(stale distractors exempted\); absence ofanswer\_textverbatim inquery\_text; per\-cell sample size; and pool\-reuse ratio\.

The released benchmark passes all checks with zero errors\.

### B\.12Comparison to Existing Benchmarks

Table 10:TGT vs\. public memory benchmarks\. “Held\-out intervals” refers to retention intervals never seen during any calibration phase; only TGT explicitly tests interpolation/extrapolation of the temporal model\.TGT is complementary to existing benchmarks rather than a replacement: LongMemEval and LoCoMo test long\-horizon recall over realistic conversation histories; MemoryAgentBench tests several skills including fact retrieval and conflict resolution\. TGT isolates the temporal generalization axis specifically, with held\-out intervals and a type\-stratified validity schedule\. We report ScrubJay\-MEM on MemoryAgentBench EventQA \([Section˜4\.1](https://arxiv.org/html/2608.04746#S4.SS1)\) for direct comparison to published memory systems, and on TGT \([Section˜4\.2](https://arxiv.org/html/2608.04746#S4.SS2)\) for the mechanistic claim\.

### B\.13Release

We provide in supplementary: \(i\) the frozen2020\-instance benchmark used in[Section˜4\.2](https://arxiv.org/html/2608.04746#S4.SS2)\(1,3201\{,\}320queries,1,9201\{,\}920memories\) as a single JSON file with full ground\-truth annotations; \(ii\) the generation scripts and seeds needed to reproduce the benchmark, including the controlled vocabularies and template specifications; \(iii\) the LLM\-judge prompts and the heuristic fallback judge; \(iv\) reference implementations of all nine baselines evaluated in[Section˜4\.2](https://arxiv.org/html/2608.04746#S4.SS2)\.

## Appendix CEventQA\-64k with stronger backbone \(qwen3:30b\)

To probe whether ScrubJay\-MEM’s advantage in[Section˜4\.1](https://arxiv.org/html/2608.04746#S4.SS1)depends on backbone scale, we re\-ran the EventQA\-64k sweep withqwen3:30b\-instructas the generation model while keeping the embedding model \(nomic\-embed\-text\) and retrieval depth \(k=5k=5\) fixed\. With this larger backbone, dense retrieval closes the gap and slightly overtakes ScrubJay\-MEM, suggesting that some of the temporal inductive bias the architecture provides can be recovered at inference time by a capable LLM reasoning over dense retrievals \([Table˜11](https://arxiv.org/html/2608.04746#A3.T11)\)\.

Table 11:EventQA\-64k withqwen3:30b\-instructbackbone\. With a more capable backbone, dense\-retrieval baselines close the gap, indicating that ScrubJay\-MEM’s largest gains are in the small\-LLM regime\.
## Appendix DConflict\-Resolution: where ScrubJay\-MEM does not help

[Section˜4\.1](https://arxiv.org/html/2608.04746#S4.SS1)flags that ScrubJay\-MEM is miscalibrated on MemoryAgentBench Conflict\-Resolution: type\-conditioned decay suppresses the very memories the consolidation step requires\.[Table˜12](https://arxiv.org/html/2608.04746#A4.T12)reports the numbers\.

Table 12:MemoryAgentBench Conflict\-Resolution subsets \(Factconsolidation\-MH, Factconsolidation\-SH\)\. ScrubJay\-MEM underperforms dense and lexical baselines by 14–18 F1: type\-conditioned decay suppresses facts that the consolidation task requires\.
## Appendix EProof of Proposition[1](https://arxiv.org/html/2608.04746#Thmproposition1)

Following §[3\.5](https://arxiv.org/html/2608.04746#S3.SS5), the per\-event LLM call emits bounded deltas\(Δ​V​\(𝐧\),Δ​π​\(𝐧\),Δ​τ​\(𝐧\)\)\(\\Delta V\(\\mathbf\{n\}\),\\,\\Delta\\pi\(\\mathbf\{n\}\),\\,\\Delta\\tau\(\\mathbf\{n\}\)\), with the dynamic ranges enforced by parsing the JSON response and clipping out\-of\-range outputs\. The threshold\-rescaled affinity satisfiesαi​n∈\[0,1\]\\alpha\_\{in\}\\in\[0,1\]by construction\. The four claims of Proposition[1](https://arxiv.org/html/2608.04746#Thmproposition1)follow componentwise\.

#### \(i\) BoundedVV\-update\.

The update is the linear map

TV​\(Vi\)=max⁡\(0,Vi\+ηV​αi​n​Δ​V​\(𝐧\)\)\.T\_\{V\}\(V\_\{i\}\)\\;=\\;\\max\\\!\\bigl\(0,\\;V\_\{i\}\+\\eta\_\{V\}\\,\\alpha\_\{in\}\\,\\Delta V\(\\mathbf\{n\}\)\\bigr\)\.The change inViV\_\{i\}satisfies\|TV​\(Vi\)−Vi\|≤ηV​αi​n​\|Δ​V​\(𝐧\)\|≤ηV​Δ​Vmax\|T\_\{V\}\(V\_\{i\}\)\-V\_\{i\}\|\\leq\\eta\_\{V\}\\,\\alpha\_\{in\}\\,\|\\Delta V\(\\mathbf\{n\}\)\|\\leq\\eta\_\{V\}\\,\\Delta V\_\{\\max\}, where the inequality usesαi​n≤1\\alpha\_\{in\}\\leq 1\. The non\-negativity clip is a non\-expansion ontoℝ≥0\\mathbb\{R\}\_\{\\geq 0\}and preserves the bound\.

#### \(ii\) Boundedπ\\pi\-update\.

Without the clip, the same argument applies toπi\+ηπ​αi​n​Δ​π​\(𝐧\)\\pi\_\{i\}\+\\eta\_\{\\pi\}\\,\\alpha\_\{in\}\\,\\Delta\\pi\(\\mathbf\{n\}\), giving\|Δ​πi\|≤ηπ​Δ​πmax\|\\Delta\\pi\_\{i\}\|\\leq\\eta\_\{\\pi\}\\,\\Delta\\pi\_\{\\max\}\. The clipclip⁡\(⋅,0,1\)\\operatorname\{clip\}\(\\cdot,0,1\)is the projection ofℝ\\mathbb\{R\}onto\[0,1\]\[0,1\]and is11\-Lipschitz \(non\-expansive\), so the post\-clip change is no larger than the pre\-clip change\. Hence\|Δ​πi\|post\-clip≤ηπ​Δ​πmax\|\\Delta\\pi\_\{i\}\|\_\{\\text\{post\-clip\}\}\\leq\\eta\_\{\\pi\}\\,\\Delta\\pi\_\{\\max\}inside\[0,1\]\[0,1\]\.

#### \(iii\)τ\\tauconfined to\[τmin,τmax\]\[\\tau\_\{\\min\},\\tau\_\{\\max\}\]\.

The update is

Tτ​\(τi\)\\displaystyle T\_\{\\tau\}\(\\tau\_\{i\}\)=clip\(τi⋅max\(0\.1,1\+ηταi​nΔτ\(𝐧\)\),\\displaystyle=\\operatorname\{clip\}\\\!\\Bigl\(\\tau\_\{i\}\\cdot\\max\\\!\\bigl\(1,1\+\\eta\_\{\\tau\}\\,\\alpha\_\{in\}\\,\\Delta\\tau\(\\mathbf\{n\}\)\\bigr\),\(17\)τmin,τmax\)\.\\displaystyle\\hskip 79\.6678pt\\tau\_\{\\min\},\\,\\tau\_\{\\max\}\\Bigr\)\.The innermax⁡\(0\.1,⋅\)\\max\(0\.1,\\cdot\)guarantees the multiplicative factor is strictly positive \(soτ\\taunever becomes non\-positive\), and the outer clip projects onto the operating interval\. HenceTτ:\[τmin,τmax\]→\[τmin,τmax\]T\_\{\\tau\}:\[\\tau\_\{\\min\},\\tau\_\{\\max\}\]\\to\[\\tau\_\{\\min\},\\tau\_\{\\max\}\]for any choice ofαi​n\\alpha\_\{in\}andΔ​τ\\Delta\\tauin the assumed ranges\. The multiplicative form does not in general contract toward a unique target\. Under repeated application of the sameΔ​τ\>0\\Delta\\tau\\\!\>\\\!0it saturates againstτmax\\tau\_\{\\max\}, and againstτmin\\tau\_\{\\min\}for repeatedΔ​τ<0\\Delta\\tau\\\!<\\\!0\. The clip endpoints are absorbing\.

#### \(iv\)𝐰what\\mathbf\{w\}^\{\\textsc\{what\}\}\-update is a contraction toward𝐰n\\mathbf\{w\}\_\{n\}\.

Ignoring the L2 normalisation step \(which is a radial projection onto the unit sphere and is non\-expansive in the chordal metric\), the update \([12](https://arxiv.org/html/2608.04746#S3.E12)\) can be rewritten as

Tw​\(𝐰iwhat\)=\(1−ηw​αi​n\)​𝐰iwhat\+ηw​αi​n​𝐰nwhat\.T\_\{w\}\(\\mathbf\{w\}\_\{i\}^\{\\textsc\{what\}\}\)\\;=\\;\(1\-\\eta\_\{w\}\\,\\alpha\_\{in\}\)\\,\\mathbf\{w\}\_\{i\}^\{\\textsc\{what\}\}\+\\eta\_\{w\}\\,\\alpha\_\{in\}\\,\\mathbf\{w\}\_\{n\}^\{\\textsc\{what\}\}\.For any𝐮,𝐯∈ℝd1\\mathbf\{u\},\\mathbf\{v\}\\in\\mathbb\{R\}^\{d\_\{1\}\},

‖Tw​\(𝐮\)−Tw​\(𝐯\)‖=\(1−ηw​αi​n\)​‖𝐮−𝐯‖,\\\|T\_\{w\}\(\\mathbf\{u\}\)\-T\_\{w\}\(\\mathbf\{v\}\)\\\|\\;=\\;\(1\-\\eta\_\{w\}\\,\\alpha\_\{in\}\)\\,\\\|\\mathbf\{u\}\-\\mathbf\{v\}\\\|,soTwT\_\{w\}is a contraction in the Euclidean norm with Lipschitz constant\(1−ηw​αi​n\)∈\[0,1\)\(1\-\\eta\_\{w\}\\,\\alpha\_\{in\}\)\\in\[0,1\)wheneverηw​αi​n<1\\eta\_\{w\}\\,\\alpha\_\{in\}<1\. The Banach fixed\-point theorem then gives a unique fixed point𝐰nwhat\\mathbf\{w\}\_\{n\}^\{\\textsc\{what\}\}and geometric convergence at rate\(1−ηw​αi​n\)k\(1\-\\eta\_\{w\}\\,\\alpha\_\{in\}\)^\{k\}when𝐰nwhat\\mathbf\{w\}\_\{n\}^\{\\textsc\{what\}\}is held fixed across iterations\. The final L2 normalisation is a non\-expansion on the unit sphere and preserves the contraction property in the chordal metric\.□\\square

#### Practical reading\.

Claims \(i\)\-\(iii\) say that no single RCI event can move a memory’s latent parameters by more than the LLM’s parsed delta times the learning\-rate\-affinity product, and that the horizonτ\\tauremains inside its operating window indefinitely\. Claim \(iv\) says that thewhatembedding moves*toward*the new evidence at a controlled rate; this is the only update among the four with a genuine contraction structure under the implementation\. The additive forms in \(i\)\-\(ii\) and the multiplicative form in \(iii\) guarantee boundedness rather than convergence to a fixed point; unbounded drift under repeated application is prevented by theαi​n\\alpha\_\{in\}gate \(irrelevant evidence hasαi​n=0\\alpha\_\{in\}\\\!=\\\!0\) and the clips, not by a contraction property\.

## Appendix FHyperparameters, Prompts, and Compute Environment

This appendix specifies every numerical and textual constant used by the v1 reference implementation of ScrubJay\-MEM, so that an independent replication can produce the numbers reported in §[4](https://arxiv.org/html/2608.04746#S4)from the released code without further tuning\.

### F\.1Hyperparameters

Engine defaults \(EngineConfigin the reference implementation\):

Table 13:ScrubJay\-MEM v1 hyperparameter values\.
### F\.2Compute environment and benchmark\-specific model choices

All reported numbers are produced by a single\-machine local deployment: a workstation with an NVIDIA RTX A4500 20GB GPU running an Ollama daemon at localhost:11434 that serves the chat and judge models on demand and the embedding model \(nomic\-embed\-text, 768\-dim\)\. The reference implementation is single\-process Python; FAISS is used as the dense\-index backend when available, with a numpy fallback\. The two benchmarks use different model configurations \([Table˜14](https://arxiv.org/html/2608.04746#A6.T14)\); the EventQA configuration uses MemoryAgentBench’s official non\-LLM scorer, while TGT uses an LLM judge from a different model family than the system generator to mitigate self\-preference bias\(Panickssery et al\.,[2024](https://arxiv.org/html/2608.04746#bib.bib25)\)\.

Table 14:Benchmark\-specific model configurations for the runs reported in this paper\. Family abbreviations: Meta \(M\), Alibaba \(A\), Nomic \(N\)\.We report no wall\-clock or throughput numbers because absolute timings depend on the Ollama configuration of the host machine, but component\-level latencies \(LLM call per RCI event, embedding latency per ingest\) are recorded in the released run artefacts\.

### F\.3Perishability\-classification prompt

The LLM\-prompt classifierϕ\\phiof §[3\.2](https://arxiv.org/html/2608.04746#S3.SS2)uses the following template; the response is required to be strict JSON\.

> Classify memory perishability and utility horizon\. Return strict JSON: \{"label": str, "pi": float, "tau\_sec": float\}\. Labels: factual, procedural, task\_specific, ephemeral\. Context: \{context\} Memory: \{text\}

On parse failure or LLM unavailability, the system falls back to a deterministic keyword heuristic over the concatenated memory and context text: presence of any of \{today,immediate,right now,session,temporary\}→\\toephemeral withπ=0\.9\\pi\\\!=\\\!0\.9,τ=2\\tau\\\!=\\\!2h; \{how to,steps,process,procedure,workflow\}→\\toprocedural withπ=0\.3\\pi\\\!=\\\!0\.3,τ=10\\tau\\\!=\\\!10days; \{task,ticket,issue,meeting,project\}→\\totask\-specific withπ=0\.6\\pi\\\!=\\\!0\.6,τ=24\\tau\\\!=\\\!24h\. Otherwise the memory is treated as factual / world knowledge withπ≈0\.1\\pi\\\!\\approx\\\!0\.1andτ\\tauset to4545days, with a small \(≤0\.05\\leq 0\.05\) contextual\-divergence perturbation\.

### F\.4RCI delta\-extraction prompt

The RCIΔ\\Delta\-parser of §[3\.5](https://arxiv.org/html/2608.04746#S3.SS5)uses:

> Given new information, infer latent memory update deltas\. Return strict JSON: \{"delta\_value": float, "delta\_pi": float, "delta\_tau": float, "summary": str\}\. delta\_tau is relative ratio change where \+0\.2 means \+20%\. Context: \{context\} New information: \{new\_info\_text\}

The three numerical deltas are bounded at parsing time before being applied via Eqs\. \([9](https://arxiv.org/html/2608.04746#S3.E9)\)–\([11](https://arxiv.org/html/2608.04746#S3.E11)\)\.

### F\.5Future\-oriented annotation prompt

The prospective annotation of §[3\.7](https://arxiv.org/html/2608.04746#S3.SS7)concatenates the LLM’s response to the following prompt onto the raw memory text before embedding:

> Summarize in one sentence when this memory will be useful in future tasks\. Return plain text only\. Context: \{context\} Memory: \{text\}

相似文章

AdMem:面向任务求解智能体的高级记忆系统

arXiv cs.AI

本文介绍AdMem,一种面向基于LLM的智能体的统一记忆框架,整合语义记忆、情景记忆和程序性记忆,并采用双层短期与长期存储结构,通过多智能体架构实现自动记忆生成与自适应检索。实验表明,该方法在长程多轮任务中提升了鲁棒性和成功率。

在关键时刻记住:面向长周期代理的前瞻性记忆代理

Hugging Face Daily Papers

本文介绍了一种前瞻性记忆代理,它与动作代理并行运行,以防止长周期任务中的行为状态衰减,在Terminal-Bench2.0和τ^2-Bench上取得了显著提升。作者还使用SFT和GRPO训练了Qwen3.5-27B,作为迈向开放权重记忆策略的初步步骤。