Black-Mamba: Biologically-Inspired Leaky Accumulation for Conceptual Knowledge under Distribution Drift
Summary
Black-Mamba introduces a test-time adaptive forecasting architecture that uses accumulated surprisal to selectively update memory only upon evidence of distribution drift, achieving efficient adaptation on non-stationary time series.
View Cached Full Text
Cached at: 07/22/26, 08:22 AM
# Black-Mamba: Biologically-Inspired Leaky Accumulation for Conceptual Knowledge under Distribution Drift
Source: [https://arxiv.org/html/2607.18899](https://arxiv.org/html/2607.18899)
Giuseppe Soriano University of Pisa National Research Council \(CNR\) Pisa, Italy giuseppe\.soriano@phd\.unipi\.it &Nicola Tonellotto University of Pisa Pisa, Italy nicola\.tonellotto@unipi\.it &Alberto Gotta National Research Council \(CNR\) Pisa, Italy alberto\.gotta@cnr\.it
###### Abstract
Forecasting under real\-world conditions is inherently non\-stationary, as the conditional distribution of future observations evolves over time\. Recent test\-time adaptive sequence models address this challenge by updating internal states during inference, but tie adaptation to instantaneous prediction errors or surprise\. This coupling can conflate persistent distribution shift with stochastic innovations, leading to unnecessary updates and inefficient adaptation\. We introduce*Black\-Mamba*, a test\-time adaptive forecasting architecture that formulates online adaptation as evidence\-gated state tracking under distribution drift\. The model augments a base predictor with a dynamic memory updated when temporally accumulated surprisal provides sufficient evidence of a regime change\. This turns adaptation into a selective, event\-driven process rather than a continuous one\. Across multiple forecasting benchmarks with non\-stationary dynamics,*Black\-Mamba*achieves competitive or improved predictive performance compared to existing test\-time adaptation methods while significantly reducing the number of memory updates during inference\. Together with mathematical analysis and biological evidence, these results suggest that accumulated surprisal provides a principled signal for distinguishing persistent drift from transient noise, yielding more efficient and robust adaptation\.
## 1Introduction
Time\-series forecasting is often presented as a supervised learning problem over a fixed dataset, but in many practical settings, the target law is itself time\-varying\. Electricity demand changes as weather regimes and human behavior evolve, vehicular traffic flows drift with infrastructure and social rhythms, Internet traffic distribution changes over time driven by the dynamic interplay of emerging applications \(e\.g\., video, AI\-driven services\), evolving user behavior patterns, protocol and platform shifts, physiological signals change across latent clinical states, and financial or industrial processes are shaped by structural changes that are only partially observed\. In such settings, the main difficulty is not only modeling long\-range dependencies but also tracking an evolving environment\.
This observation has produced two major lines of work\. The former improves the*inductive bias*of sequence models\. Patch\-based Transformers show that much of the perceived failure of attention in forecasting originates from suboptimal tokenization and channel mixing rather than from attention itself\(Nieet al\.,[2023](https://arxiv.org/html/2607.18899#bib.bib17)\)\. State\-space and selective recurrent models emphasize temporal bias, linear complexity, and stability for long contexts\(Patro and Agneeswaran,[2024](https://arxiv.org/html/2607.18899#bib.bib19)\)\. More recent multivariate architectures explicitly model time and variate dimensions as distinct but coupled axes, arguing that two\-dimensional inductive bias is essential for multivariate forecasting\(Caoet al\.,[2025](https://arxiv.org/html/2607.18899#bib.bib23); Behrouzet al\.,[2025a](https://arxiv.org/html/2607.18899#bib.bib30); Meskinet al\.,[2025](https://arxiv.org/html/2607.18899#bib.bib26)\)\. This line of work is indispensable, but it still largely assumes that a sufficiently well\-designed static model can explain the sequence\.
The latter moves from static inference to*online adaptation*\. Continual test\-time adaptation methods update model parameters from unlabeled target streams in order to follow non\-stationary domains\(Wanget al\.,[2022](https://arxiv.org/html/2607.18899#bib.bib15)\)\. Test\-time training layers reinterpret the hidden state as a trainable model whose parameters are updated during inference\(Sunet al\.,[2025](https://arxiv.org/html/2607.18899#bib.bib29)\)\. Titans and follow\-up neural\-memory architectures argue that long\-term memory should be explicitly written at test time, allowing the predictor to react to context in a way that standard finite\-window attention cannot\(Behrouzet al\.,[2024](https://arxiv.org/html/2607.18899#bib.bib20),[2025b](https://arxiv.org/html/2607.18899#bib.bib21)\)\. This line is attractive because it acknowledges the moving\-target nature of the problem\. However, most existing formulations are driven by instantaneous loss or surprise, and therefore implicitly assume that every sufficiently large prediction error is evidence of persistent drift\.
That assumption is too strong for non\-stationary forecasting\. Prediction error is a mixture of structured drift and unpredictable innovation\. If the model updates its long\-term memory at every time step, it reacts not only to persistent changes in the conditional law, but also to outliers, transient fluctuations, and irreducible noise\. As a consequence, online plasticity can become variance amplification, error accumulation, or catastrophic forgetting rather than true adaptation\(Wanget al\.,[2022](https://arxiv.org/html/2607.18899#bib.bib15); Luoet al\.,[2025](https://arxiv.org/html/2607.18899#bib.bib24)\)\. The key unresolved question is therefore not whether adaptation should happen, but*when*\.
Our starting point is that forecasting under drift should be cast as*online state estimation*\. We model the environment through a latent regime state that evolves over time and changes the conditional distribution of the next observation\. A memory\-augmented predictor is then useful not because it blindly reacts to surprise, but because its memory can serve as an implicit estimator of that latent regime\. This perspective suggests that the update mechanism should be selective: it should respond to persistent evidence of distributional change, while suppressing zero\-mean innovations\.
This paper proposes*Black\-Mamba*, an event\-triggered memory architecture for inference\-time adaptation\. The biological intuition comes from two classical ideas in the neuroscience of memory\. First, long\-term potentiation shows that durable memory traces arise from sufficiently strong or repeated activation rather than from every local perturbation\(Bliss and Lømo,[1973](https://arxiv.org/html/2607.18899#bib.bib1); Lynch,[2004](https://arxiv.org/html/2607.18899#bib.bib3); Nicoll,[2017](https://arxiv.org/html/2607.18899#bib.bib8)\)\. Second, synaptic tagging and capture separates transient eligibility from durable consolidation: local events create the possibility of memory, but persistence requires temporally coordinated reinforcement\(Redondo and Morris,[2011](https://arxiv.org/html/2607.18899#bib.bib6); Violaet al\.,[2014](https://arxiv.org/html/2607.18899#bib.bib7); Luboeinski and Tetzlaff,[2021](https://arxiv.org/html/2607.18899#bib.bib14)\)\. We combine this memory\-consolidation viewpoint with the leaky integrate\-and\-fire principle, where evidence accumulates with decay and only threshold crossings trigger discrete events\(Burkitt,[2006](https://arxiv.org/html/2607.18899#bib.bib5); Brette and Gerstner,[2005](https://arxiv.org/html/2607.18899#bib.bib4); Gerstner and Kistler,[2002](https://arxiv.org/html/2607.18899#bib.bib2)\)\.
The statistical intuition is parallel\. If drift admits a decomposition into a predictable component and an innovation component, then temporally integrated evidence can enhance the signal\-to\-noise ratio: persistent deviation accumulates coherently, while martingale\-like noise remains centered and bounded\. This yields a natural architectural principle\. Instead of updating memory directly from the instantaneous loss, we first filter a scalar surprisal signal through a leaky integrator and update memory only when the integrated evidence exceeds a threshold\. In this way, adaptation is no longer coupled to every local mismatch, but only to deviations that persist long enough to be statistically meaningful\.
The paper makes three contributions\. First, it formalizes non\-stationary forecasting as prediction over a time\-indexed family of conditional laws, with a precise distinction between explained variation and genuine unresolved drift\. Second, it introduces*Black\-Mamba*, a memory\-augmented architecture whose update mechanism is event\-triggered by surprisal accumulation rather than by instantaneous loss\. Third, it provides a mathematical proof that, under explicit martingale\-noise assumptions, evidence\-gated updating suppresses innovation noise, accumulates sustained drift, and controls false\-trigger probabilities, thereby supporting its use as a general principle for learning at inference time\.
## 2Problem Formulation
Let𝒯⊆ℕ\\mathcal\{T\}\\subseteq\\mathbb\{N\}denote time\. At timet∈𝒯t\\in\\mathcal\{T\}we observe informationℐ\(t\)\\mathcal\{I\}\(t\)and then a target variableY\(t\+1\)∈𝒴Y\(t\+1\)\\in\\mathcal\{Y\}is generated according to a conditional law
Y\(t\+1\)∼Pt,Pt:=P\(⋅∣ℐ\(t\)\)\.Y\(t\+1\)\\sim P\_\{t\},\\qquad P\_\{t\}:=P\(\\cdot\\mid\\mathcal\{I\}\(t\)\)\.The available information may be the recent history of the same process, as in univariate autoregressive forecasting, or a vector of multivariate covariates including lags, exogenous variables, calendar features, and metadata\. The learning objective is to predictY\(t\+1\)Y\(t\+1\)fromℐ\(t\)\\mathcal\{I\}\(t\)\.
The key departure from standard formulations is that we do not assumePtP\_\{t\}to be constant\. Instead, we consider a time\-indexed family of conditional distributions
P:𝒯→𝒫\(𝒴\),P:\\mathcal\{T\}\\to\\mathcal\{P\}\(\\mathcal\{Y\}\),and focus on the non\-stationary regime in whicht↦Ptt\\mapsto P\_\{t\}evolves over time\. A useful interpretation is that the conditional law is modulated by a latent environment statez\(t\)∈𝒵z\(t\)\\in\\mathcal\{Z\}such that
Pt=P\(⋅∣ℐ\(t\),z\(t\)\),z\(t\+1\)=F\(z\(t\)\)\+η\(t\),P\_\{t\}=P\(\\cdot\\mid\\mathcal\{I\}\(t\),z\(t\)\),\\qquad z\(t\+1\)=F\(z\(t\)\)\+\\eta\(t\),whereFFcaptures structured regime dynamics andη\(t\)\\eta\(t\)is an innovation term\. In this view, the optimal predictor
ft⋆\(ℐ\(t\)\):=𝔼\[Y\(t\+1\)∣ℐ\(t\)\]f\_\{t\}^\{\\star\}\(\\mathcal\{I\}\(t\)\):=\\mathbb\{E\}\[Y\(t\+1\)\\mid\\mathcal\{I\}\(t\)\]is itself time\-varying\.
#### Explained variation versus true drift\.
Not every temporal change should be interpreted as unresolved drift\. If the relevant regime information can already be reconstructed from the observed inputs, then temporal variation is*explained*by conditioning and should not trigger adaptation\. This distinction is important for time series because many recurring effects, such as diurnal or weekly cycles, disappear once the proper covariates are included\. We reserve the term*distribution drift*for residual time variation in the conditional law after conditioning on the available information\.
To quantify drift, define the formal increment
Δ\(t\):=Pt\+1−Pt,\\Delta\(t\):=P\_\{t\+1\}\-P\_\{t\},whose magnitude can be measured through a discrepancyd\(Pt\+1,Pt\)d\(P\_\{t\+1\},P\_\{t\}\)such as total variation, Kullback–Leibler divergence, or Wasserstein distance\. The central statistical issue is whether the observed temporal variation contains a predictable component or is dominated by innovation noise\.
Letℋt\\mathcal\{H\}\_\{t\}denote the observable history up to timett\. We decompose drift as
Δ\(t\)=Δpred\(t\)\+Δnoise\(t\),\\Delta\(t\)=\\Delta\_\{\\mathrm\{pred\}\}\(t\)\+\\Delta\_\{\\mathrm\{noise\}\}\(t\),where
Δpred\(t\):=𝔼\[Δ\(t\)∣ℋt\],𝔼\[Δnoise\(t\)∣ℋt\]=0\.\\Delta\_\{\\mathrm\{pred\}\}\(t\):=\\mathbb\{E\}\[\\Delta\(t\)\\mid\\mathcal\{H\}\_\{t\}\],\\qquad\\mathbb\{E\}\[\\Delta\_\{\\mathrm\{noise\}\}\(t\)\\mid\\mathcal\{H\}\_\{t\}\]=0\.This decomposition is the conceptual core of the paper\. The forecasting problem is meaningful only when the cumulative predictable component is large enough, over task\-relevant horizons, to rise above the concentration scale of the innovation process\. Otherwise no adaptation mechanism can reliably distinguish drift from noise\.
This viewpoint also clarifies the limitation of standard loss\-driven updates\. If the prediction loss at timettis
ℓt:=ℓ\(ft\(ℐ\(t\)\),Y\(t\+1\)\),\\ell\_\{t\}:=\\ell\\\!\\left\(f\_\{t\}\(\\mathcal\{I\}\(t\)\),Y\(t\+1\)\\right\),thenℓt\\ell\_\{t\}is influenced by bothΔpred\(t\)\\Delta\_\{\\mathrm\{pred\}\}\(t\)andΔnoise\(t\)\\Delta\_\{\\mathrm\{noise\}\}\(t\)\. An update rule that reacts directly toℓt\\ell\_\{t\}or to its gradient therefore lacks an explicit mechanism to separate persistent drift from transient innovations\.
## 3Black\-Mamba Architecture
### 3\.1Base predictor and adaptive memory
We consider a predictor of the form
Y^\(t\+1\)=fθ,ϕt\(ℐ\(t\)\),\\hat\{Y\}\(t\+1\)=f\_\{\\theta,\\phi\_\{t\}\}\(\\mathcal\{I\}\(t\)\),whereθ\\thetaare static backbone parameters andϕt\\phi\_\{t\}is a dynamic memory state adapted during inference\. This follows the general memory\-augmented view of modern adaptive sequence models\(Behrouzet al\.,[2024](https://arxiv.org/html/2607.18899#bib.bib20); Sunet al\.,[2025](https://arxiv.org/html/2607.18899#bib.bib29); Behrouzet al\.,[2025b](https://arxiv.org/html/2607.18899#bib.bib21)\): the backbone provides a stable representation and the memory tracks the evolving local regime\.
The architectural interpretation is thatϕt\\phi\_\{t\}acts as an implicit estimator of the latent statez\(t\)z\(t\)\. In the idealized case,
ϕt≈h\(z\(t\)\)\\phi\_\{t\}\\approx h\(z\(t\)\)for some task\-dependent representationhh, so adaptingϕt\\phi\_\{t\}online is equivalent to tracking the latent environment\. Unlike standard Titans\-style memory, however, Black\-Mamba does not write to memory at every time step\.
### 3\.2From surprisal to evidence
Letsts\_\{t\}denote a scalar surprisal signal derived from the current prediction error\. We keep the construction abstract and write
st=ψ\(ℓt\),s\_\{t\}=\\psi\(\\ell\_\{t\}\),whereψ\\psimay be the identity, a normalized loss, or another scalar statistic computed from the prediction residual\. We assume that this signal itself admits a decomposition
st=at\+ξt,s\_\{t\}=a\_\{t\}\+\\xi\_\{t\},whereata\_\{t\}is the component induced by predictable drift andξt\\xi\_\{t\}is an innovation term satisfying
𝔼\[ξt∣ℋt−1\]=0\.\\mathbb\{E\}\[\\xi\_\{t\}\\mid\\mathcal\{H\}\_\{t\-1\}\]=0\.
The key architectural move is to decouple*local surprisal*from*memory commitment*\. We introduce a leaky evidence accumulator
ut=λut−1\+st,0<λ<1,u\_\{t\}=\\lambda u\_\{t\-1\}\+s\_\{t\},\\qquad 0<\\lambda<1,which integrates recent evidence while discounting stale information\. The memory is updated only when the accumulated evidence exceeds a threshold:
ifut≥τ,ϕt\+1=𝒰\(ϕt,∇ϕℓt\),\\text\{if \}u\_\{t\}\\geq\\tau,\\quad\\phi\_\{t\+1\}=\\mathcal\{U\}\\\!\\left\(\\phi\_\{t\},\\nabla\_\{\\phi\}\\ell\_\{t\}\\right\),and otherwise
ϕt\+1=ϕt\.\\phi\_\{t\+1\}=\\phi\_\{t\}\.After an update, the accumulator is reset or partially decayed:
ut←ρut,0≤ρ<1\.u\_\{t\}\\leftarrow\\rho u\_\{t\},\\qquad 0\\leq\\rho<1\.For concreteness, we instantiate the memory update as a local gradient step,
𝒰\(ϕt,∇ϕℓt\)=ϕt−η∇ϕℓt,\\mathcal\{U\}\\\!\\left\(\\phi\_\{t\},\\nabla\_\{\\phi\}\\ell\_\{t\}\\right\)=\\phi\_\{t\}\-\\eta\\nabla\_\{\\phi\}\\ell\_\{t\},but any local test\-time adaptation operator can be used in place of this step\.
#### Architecture summary\.
Black\-Mamba is therefore a three\-stage system:
1. 1\.a backbone predictorfθ,ϕtf\_\{\\theta,\\phi\_\{t\}\}that outputs the next\-step forecast;
2. 2\.a surprisal encoderψ\(ℓt\)\\psi\(\\ell\_\{t\}\)that converts instantaneous error into a scalar evidence signal;
3. 3\.a leaky event trigger that decides whether the current evidence justifies a persistent memory update\.
This architecture is intentionally minimal\. It preserves the strengths of memory\-augmented forecasting models while changing only the*policy of when memory is written*\.
## 4Foundations of Temporal Integration
The event\-triggered update rule is justified by a simple statistical principle: persistent drift should accumulate, whereas zero\-mean innovations should not\.
Unrolling the accumulator yields
ut=∑k=1tλt−ksk=∑k=1tλt−kak\+∑k=1tλt−kξk\.u\_\{t\}=\\sum\_\{k=1\}^\{t\}\\lambda^\{t\-k\}s\_\{k\}=\\sum\_\{k=1\}^\{t\}\\lambda^\{t\-k\}a\_\{k\}\+\\sum\_\{k=1\}^\{t\}\\lambda^\{t\-k\}\\xi\_\{k\}\.The first term aggregates structured deviation; the second aggregates innovation noise through a stable linear filter\. Under the standard assumption thatξt\\xi\_\{t\}is a martingale\-difference sequence with bounded conditional variance, the filtered innovation remains centered and uniformly controlled\.
###### Proposition 1\(Filtered innovations remain bounded\)\.
Assume\(ξt\)\(\\xi\_\{t\}\)satisfies
𝔼\[ξt∣ℋt−1\]=0,𝔼\[ξt2∣ℋt−1\]≤σ2\\mathbb\{E\}\[\\xi\_\{t\}\\mid\\mathcal\{H\}\_\{t\-1\}\]=0,\\qquad\\mathbb\{E\}\[\\xi\_\{t\}^\{2\}\\mid\\mathcal\{H\}\_\{t\-1\}\]\\leq\\sigma^\{2\}almost surely\. Define
wt:=∑k=1tλt−kξk,0<λ<1\.w\_\{t\}:=\\sum\_\{k=1\}^\{t\}\\lambda^\{t\-k\}\\xi\_\{k\},\\qquad 0<\\lambda<1\.Then𝔼\[wt∣ℋt−1\]=0\\mathbb\{E\}\[w\_\{t\}\\mid\\mathcal\{H\}\_\{t\-1\}\]=0and
Var\(wt\)≤σ21−λ2\.\\mathrm\{Var\}\(w\_\{t\}\)\\leq\\frac\{\\sigma^\{2\}\}\{1\-\\lambda^\{2\}\}\.
The proposition implies that temporal integration does not cause innovation noise to drift arbitrarily\. By contrast, if the structured component has a persistent positive mean, then the signal term accumulates to a non\-zero steady\-state scale\.
###### Proposition 2\(Persistent drift accumulates\)\.
Ifat≈μ\>0a\_\{t\}\\approx\\mu\>0over a window sufficiently longer than the memory horizon\(1−λ\)−1\(1\-\\lambda\)^\{\-1\}, then
∑k=1tλt−kak≈μ1−λ\.\\sum\_\{k=1\}^\{t\}\\lambda^\{t\-k\}a\_\{k\}\\approx\\frac\{\\mu\}\{1\-\\lambda\}\.Hence the signal grows relative to the centered innovation component as persistence increases\.
#### False\-trigger control\.
Beyond bounding the variance of the filtered innovation, the same martingale view controls spurious update events\. In the no\-drift case, if the calibrated surprisal satisfiesst=ξts\_\{t\}=\\xi\_\{t\}with\|ξt\|≤b\|\\xi\_\{t\}\|\\leq b, Azuma–Hoeffding gives
ℙ\(ut≥τ\)≤exp\(−τ2\(1−λ2\)2b2\)\.\\mathbb\{P\}\(u\_\{t\}\\geq\\tau\)\\leq\\exp\\\!\\left\(\-\\frac\{\\tau^\{2\}\(1\-\\lambda^\{2\}\)\}\{2b^\{2\}\}\\right\)\.Thus the threshold has a direct statistical interpretation: it controls the probability that pure innovation noise triggers a memory write\. A full derivation and the connection to sequential change detection are given in Appendix[D](https://arxiv.org/html/2607.18899#A4)\.
Propositions[1](https://arxiv.org/html/2607.18899#Thmproposition1)–[2](https://arxiv.org/html/2607.18899#Thmproposition2)explain why updating on thresholded accumulated surprisal is preferable to updating on instantaneous error\. The leaky accumulator acts as a low\-pass filter: outliers and transient innovations may perturbutu\_\{t\}, but they do not usually push it across threshold unless they are followed by corroborating deviations\. Gradual drift, by contrast, may produce only weak instantaneous gradients, yet still accumulates until it becomes statistically distinguishable\.
This logic also provides a principled interpretation of the biological analogy\. The instantaneous loss corresponds to a local plasticity signal, not to durable memory by itself\. The accumulatorutu\_\{t\}plays the role of a latent evidence reservoir, and the threshold crossing marks the transition from transient eligibility to persistent consolidation\. In other words,*Black\-Mamba*combines the statistical idea of separating predictable drift from innovation noise with the neurophysiological idea that lasting memory should be committed only after temporally integrated evidence\.
Finally, note that standard loss\-driven test\-time memory models are recovered as a limiting case\. In the boundary caseλ=0\\lambda=0andτ≤inftst\\tau\\leq\\inf\_\{t\}s\_\{t\}, the accumulator reduces to the instantaneous surprisalut=stu\_\{t\}=s\_\{t\}and the trigger fires at every step;*Black\-Mamba*therefore reduces to a purely reactive memory update\. The proposed architecture generalizes existing approaches by introducing a continuous spectrum between always\-update and selectively\-update regimes\.
## 5Experiments
We evaluate Black\-Mamba on public long\-term forecasting benchmarks and controlled synthetic drift streams\. The real suite follows the benchmark organization used by the PatchTST framework\(Nieet al\.,[2023](https://arxiv.org/html/2607.18899#bib.bib17)\), which is also the protocol adopted in the SiMBA evaluation; this allows us to compare the frozen SiMBA backbone and its adaptive variants under the same data organization and forecasting setting\. The real datasets include the ETT family, Electricity, Exchange Rate, Traffic, and Weather, while the synthetic suite contains gradual, recurrent, regime\-based, noisy, and selective\-update drift streams\. All datasets use chronological 0\.45/0\.10/0\.45 train/validation/test splits, with an intentionally long test stream to evaluate whether the held\-out distribution exhibits drift relative to the training regime\. Real forecasting experiments use context length 96 and prediction horizons 96, 192, 336, and 720; synthetic experiments use horizon 1\. Unless explicitly stated otherwise, MSE and MAE refer to standardized target\-space errors following the PatchTST evaluation convention, so that losses remain comparable across datasets and channels with different physical scales\.
The central adaptive comparison is designed to isolate the update policy\. We use a shared frozen SiMBA forecasting backbone\(Patro and Agneeswaran,[2024](https://arxiv.org/html/2607.18899#bib.bib19)\)and attach the same Low\-Rank Adaptation \(LoRA\) forecasting\-head adapter\(Huet al\.,[2021](https://arxiv.org/html/2607.18899#bib.bib13)\)to both adaptive variants\. The continuous\-update baseline implements the inference\-time memory\-writing mechanism described in Titans\-inspired neural\-memory work\(Behrouzet al\.,[2024](https://arxiv.org/html/2607.18899#bib.bib20)\); the official architecture was not public at the time of implementation, so we reproduce the relevant continuous update rule\. Black\-Mamba uses the same backbone and the same LoRA adapter, but replaces continuous writing with the proposed event\-triggered update policy\.
This implementation is intentionally lightweight\. LoRA keeps the online state small, confines inference\-time learning to a low\-rank adapter rather than the full backbone, and makes the update rule portable to other forecasting architectures\. Our goal is therefore not to establish this particular LoRA head as the only or optimal instantiation of Black\-Mamba, but to test the update policy itself: whether selective surprisal accumulation can retain the practical benefit of inference\-time adaptation, reduce the number of online updates, and potentially make adaptation more robust to noisy or transient drift signals, as predicted by the theoretical analysis\.
### 5\.1Benchmark Accuracy
Tables[1](https://arxiv.org/html/2607.18899#S5.T1)and[2](https://arxiv.org/html/2607.18899#S5.T2)report the forecasting losses\. On real long\-term forecasting benchmarks, the frozen SiMBA backbone is already highly competitive, and both adaptive variants change the averaged losses only marginally at benchmark\-table precision\. This should not be read as a failure of adaptation: the real benchmark suite is not uniformly drifting, and our drift diagnostics identify material concept drift only in Exchange Rate and Traffic\. Horizon\-averaged benchmark losses therefore mostly test whether the adaptive mechanism preserves the base forecaster under ordinary benchmark conditions\. Black\-Mamba passes this test: it remains practically indistinguishable from the frozen and continuously updated SiMBA variants on most real datasets\.
The synthetic suite provides the complementary regime, where concept drift is controlled by construction\. Here, both adaptive methods improve strongly over frozen SiMBA across all scenarios, confirming that inference\-time adaptation is useful when the target rule changes\. Continuous updating is usually slightly more accurate than Black\-Mamba, but the average advantage is small:0\.299%0\.299\\%MSE and0\.398%0\.398\\%MAE\. This is the first empirical sign of the trade\-off predicted by the theory\. If every observation carries useful drift evidence, continuous updates can extract a small additional gain; when many observations are redundant or noisy, a selective policy should retain most of the benefit while avoiding unnecessary writes\.
Table 1:Real benchmark results averaged over horizons 96, 192, 336, and 720\. Lower is better\. Bold and underline mark the best and second\-best results across all models; light yellow and light blue mark the best and second\-best results among SiMBA, Cont\. update, and Black\-Mamba, isolating update\-policy effects for the chosen frozen baseline\. Ties are highlighted within the corresponding rank\.Table 2:Synthetic drift benchmark results at horizon 1\. Lower is better\.
### 5\.2Selective Updates and the Theoretical Trade\-off
The theory suggests that inference\-time adaptation should not be treated as a binary choice between a frozen model and continuous learning\. Continuous updates are optimal only under the implicit assumption that each new error provides reliable evidence about the current regime\. Black\-Mamba relaxes this assumption by accumulating surprisal with leak and committing an update only after persistent evidence crosses a threshold\. The empirical prediction is therefore not that Black\-Mamba must always beat continuous updating in raw loss, but that it should approximate its adaptation benefit with fewer writes and greater resistance to transient or noisy drift signals\.
The results match this prediction\. Across the seven synthetic streams, Black\-Mamba uses only52\.19%52\.19\\%of the continuous\-update budget, saving1,506,1071\{,\}506\{,\}107updates out of3,149,9863\{,\}149\{,\}986, while losing only a fraction of a percent in average error relative to continuous updating\. It captures98\.9%98\.9\\%of the MSE improvement obtained by continuous updating over frozen SiMBA\. This is the main empirical support for the proposed update policy: the benefit of online adaptation is largely preserved, but the number of inference\-time parameter writes is almost halved\.
The segment\-level diagnostics further support the mechanism\. Black\-Mamba does not simply update at a uniformly lower rate; its update rate rises where the stream becomes harder\. Across synthetic segments, the correlation between segment MSE and Black\-Mamba update rate is\+0\.819\+0\.819, and the hardest segment quintile receives1\.87×1\.87\\timesmore updates than the easiest quintile\. This is the behavior expected from leaky surprisal accumulation: isolated errors decay, while persistent mismatch accumulates into an update event\.


Figure 1:Synthetic trace dynamics\. Left: Black\-Mamba achieves large update savings with only marginal MSE changes relative to the continuous update adapter\. Right: Black\-Mamba update rate increases with segment difficulty, indicating selective adaptation rather than uniformly weaker adaptation\.
### 5\.3Real Drift Case Study
Exchange Rate is the most informative real benchmark because it is the strongest real\-drift dataset in our diagnostics\. Table[3](https://arxiv.org/html/2607.18899#S5.T3)therefore reports the adaptive\-policy comparison by horizon rather than only as an aggregate\. Black\-Mamba updates only7\.57\.5–10\.4%10\.4\\%of online steps on Exchange Rate, whereas the continuous\-update adapter writes at every step\. At horizons 96, 192, and 336, the differences are small and not statistically significant\. At horizon 720, however, continuous updating is worse than Black\-Mamba by\+1\.797%\+1\.797\\%MSE and\+0\.556%\+0\.556\\%MAE\.
This result is important because it is exactly the failure mode targeted by Black\-Mamba\. Long\-horizon Exchange Rate forecasting exposes the model to persistent distribution shift, but also to noisy local innovations that should not all be written into memory\. Continuous updating reacts to every step, making it more vulnerable to over\-adaptation on the test stream\. Black\-Mamba instead requires accumulated evidence before committing an update, and in this real\-drift long\-horizon case it avoids the degradation observed under continuous writing while using roughly one tenth of the update rate\.
Traffic provides a useful contrast and is reported fully in the appendix\. Although some paired tests detect a consistent advantage for continuous updating on Traffic, the effect size is microscopic, on the order of10−3%10^\{\-3\}\\%or less\. We therefore interpret Traffic as practical equivalence rather than meaningful superiority of continuous adaptation\. Together, Exchange Rate and Traffic support a conservative real\-data conclusion: Black\-Mamba is at least practically equivalent to continuous updating on real drift benchmarks, and in the strongest long\-horizon drift case it is measurably better\.
Table 3:Per\-horizon adaptive\-policy comparison on Exchange Rate, the strongest real\-drift benchmark\.Δ=100⋅\(Cont\.−BM\)/BM\\Delta=100\\cdot\(\\mathrm\{Cont\.\}\-\\mathrm\{BM\}\)/\\mathrm\{BM\}; positive values favor Black\-Mamba\.pdirp\_\{\\mathrm\{dir\}\}is the HAC one\-sided p\-value in the direction of the observed mean difference\.
### 5\.4Statistical Evidence
All adaptive comparisons are paired on matched online forecasting windows\. For real multi\-step horizons, we use one\-sided HAC/Newey–West tests on paired loss differences, setting the lag toH−1H\-1to account for overlappingHH\-step target windows\. Moving\-block bootstrap intervals are reported in the appendix as robustness checks\. The main text reports only the p\-values needed for the central real\-drift claim\.
On Exchange Rate at horizon 720, the degradation of continuous updating relative to Black\-Mamba is statistically significant for MAE \(p=0\.039p=0\.039\) and borderline for MSE \(p=0\.056p=0\.056\)\. Other Exchange Rate horizons are not significant\. These results are consistent with the theory: selective updating is not expected to dominate continuous updating everywhere, but it should reduce unnecessary writes and avoid degradation when instantaneous errors are a noisy proxy for persistent drift\. Full per\-horizon results for Exchange Rate, Traffic, and synthetic streams are provided in Appendix[G](https://arxiv.org/html/2607.18899#A7)\.
## 6Conclusion
Black\-Mamba reframes inference\-time adaptation as selective evidence\-gated memory commitment\. Rather than updating continuously from instantaneous prediction error, it accumulates surprisal with leak and writes to a lightweight LoRA head adapter only when persistent evidence supports an update\. The empirical results support the intended trade\-off: Black\-Mamba preserves practical accuracy while reducing update frequency, and in the strongest real\-drift long\-horizon case it avoids the degradation observed under continuous updating\. On streams without measurable drift, Black\-Mamba leaves the backbone performance essentially unchanged, as desired, which is important since adaptation should not pay an accuracy cost when it is unnecessary\. When drift is present, the comparison with the continuous\-update competitor shows the intended difference: continuous updating can extract small marginal gains in dense synthetic drift, but Black\-Mamba preserves nearly the same practical accuracy with far fewer memory writes and avoids degradation in the strongest real\-drift long\-horizon case\. The method is intentionally modular: because adaptation is implemented as a LoRA adapter on a frozen forecasting head, the update policy can be transferred to other backbones with minimal architectural changes\.
#### Limitations and broader impact\.
The main limitation of this study is the limited availability of real forecasting benchmarks that exhibit measurable concept drift and in which the effect of online adaptation is large enough to be clearly observed\. This is visible in our experiments: the benefits of adaptation are most evident on the synthetic drift streams, whereas the real datasets provide fewer cases with strong, measurable drift\. At the same time, synthetic data can favor continuous updating, because the drift process is controlled, dense, and deliberately constructed to be learnable from the stream\. This makes the practical difference between selective and continuous adaptation harder to isolate on real\-world benchmarks\. Nevertheless, the combination of theoretical analysis, synthetic drift experiments, and the real\-drift evidence on Exchange Rate and Traffic supports the central claim: accumulated surprisal can act as a principled criterion for deciding when inference\-time learning should occur\. Future work should therefore expand the evaluation to domains where concept drift is both frequent and measurable, such as network traffic, information retrieval, recommender systems, industrial monitoring, clinical or wearable sensing, etc\. A complementary direction is to collect or construct new streaming benchmarks specifically designed to evaluate learning under concept drift\. The positive impact of Black\-Mamba is a more efficient and general inference\-time adaptation mechanism: in the limiting case where the trigger always fires, the proposed framework recovers the continuous\-update behavior of Titans\-inspired neural\-memory models, while in the selective regime it reduces unnecessary updates\. The principle is not tied to forecasting or to the LoRA implementation used here; LoRA provides a lightweight and immediately usable instantiation, but the same evidence\-gated update rule can be applied to other learning\-at\-inference\-time architectures whenever online plasticity must be controlled\.
## References
- LETO: Modeling Multivariate Time Series with Memorizing at Test Time\.Cited by:[Appendix A](https://arxiv.org/html/2607.18899#A1.p3.1),[§1](https://arxiv.org/html/2607.18899#S1.p2.1)\.
- A\. Behrouz, Z\. Li, Y\. Deng, P\. Zhong, M\. Razaviyayn, and V\. Mirrokni \(2026\)Memory Caching: RNNs with Growing Memory\.arXiv\.External Links:2602\.24281,[Document](https://dx.doi.org/10.48550/arXiv.2602.24281)Cited by:[Appendix A](https://arxiv.org/html/2607.18899#A1.p4.1)\.
- A\. Behrouz, Z\. Li, P\. Kacham, M\. Daliri, Y\. Deng, P\. Zhong, M\. Razaviyayn, and V\. Mirrokni \(2025b\)ATLAS: Learning to Optimally Memorize the Context at Test Time\.arXiv\.External Links:2505\.23735,[Document](https://dx.doi.org/10.48550/arXiv.2505.23735)Cited by:[Appendix A](https://arxiv.org/html/2607.18899#A1.p4.1),[§1](https://arxiv.org/html/2607.18899#S1.p3.1),[§3\.1](https://arxiv.org/html/2607.18899#S3.SS1.p1.2)\.
- A\. Behrouz, P\. Zhong, and V\. Mirrokni \(2024\)Titans: Learning to Memorize at Test Time\.arXiv\.External Links:2501\.00663,[Document](https://dx.doi.org/10.48550/arXiv.2501.00663)Cited by:[Appendix A](https://arxiv.org/html/2607.18899#A1.p4.1),[§F\.2](https://arxiv.org/html/2607.18899#A6.SS2.p1.1),[§1](https://arxiv.org/html/2607.18899#S1.p3.1),[§3\.1](https://arxiv.org/html/2607.18899#S3.SS1.p1.2),[§5](https://arxiv.org/html/2607.18899#S5.p2.1)\.
- T\. V\. P\. Bliss and T\. Lømo \(1973\)Long\-lasting potentiation of synaptic transmission in the dentate area of the anaesthetized rabbit following stimulation of the perforant path\.The Journal of Physiology232\(2\),pp\. 331–356\.External Links:ISSN 0022\-3751, 1469\-7793,[Document](https://dx.doi.org/10.1113/jphysiol.1973.sp010273)Cited by:[Appendix E](https://arxiv.org/html/2607.18899#A5.p2.1),[§1](https://arxiv.org/html/2607.18899#S1.p6.1)\.
- R\. Brette and W\. Gerstner \(2005\)Adaptive Exponential Integrate\-and\-Fire Model as an Effective Description of Neuronal Activity\.Journal of Neurophysiology94\(5\),pp\. 3637–3642\.External Links:ISSN 0022\-3077, 1522\-1598,[Document](https://dx.doi.org/10.1152/jn.00686.2005)Cited by:[Appendix E](https://arxiv.org/html/2607.18899#A5.p5.1),[§1](https://arxiv.org/html/2607.18899#S1.p6.1)\.
- A\. N\. Burkitt \(2006\)A review of the integrate\-and\-fire neuron model: II\. Inhomogeneous synaptic input and network properties\.Biological Cybernetics95\(2\),pp\. 97–112\.External Links:ISSN 1432\-0770,[Document](https://dx.doi.org/10.1007/s00422-006-0082-8)Cited by:[Appendix E](https://arxiv.org/html/2607.18899#A5.p5.1),[§1](https://arxiv.org/html/2607.18899#S1.p6.1)\.
- D\. Y\. Cao, A\. Behrouz, A\. Parviz, M\. Karami, M\. Santacatterina, and R\. Zabih \(2025\)Effectively Designing 2\-Dimensional Sequence Models for Multivariate Time Series\.Cited by:[Appendix A](https://arxiv.org/html/2607.18899#A1.p3.1),[§1](https://arxiv.org/html/2607.18899#S1.p2.1)\.
- C\. V\. Dong, Q\. Lu, K\. A\. Norman, and S\. Michelmann \(2025\)Towards large language models with human\-like episodic memory\.Trends in Cognitive Sciences29\(10\),pp\. 928–941\.External Links:ISSN 13646613,[Document](https://dx.doi.org/10.1016/j.tics.2025.06.016)Cited by:[Appendix A](https://arxiv.org/html/2607.18899#A1.p6.1)\.
- W\. Gerstner and W\. M\. Kistler \(2002\)Spiking neuron models: Single neurons, populations, plasticity\.Cambridge University Press\.Cited by:[Appendix E](https://arxiv.org/html/2607.18899#A5.p5.1),[§1](https://arxiv.org/html/2607.18899#S1.p6.1)\.
- E\. J\. Hu, Y\. Shen, P\. Wallis, Z\. Allen\-Zhu, Y\. Li, S\. Wang, L\. Wang, and W\. Chen \(2021\)LoRA: Low\-Rank Adaptation of Large Language Models\.arXiv\.External Links:2106\.09685,[Document](https://dx.doi.org/10.48550/arXiv.2106.09685)Cited by:[§5](https://arxiv.org/html/2607.18899#S5.p2.1)\.
- H\. Lee, W\. Yu, H\. Zhang, K\. Ma, J\. Kim, D\. Yu, and M\. Seo \(2025\)Understanding and Enhancing Mamba\-Transformer Hybrids for Memory Recall and Language Modeling\.Proceedings of the First BabyLM Workshop\.External Links:[Document](https://dx.doi.org/10.18653/V1/2025.BABYLM-MAIN.27)Cited by:[Appendix A](https://arxiv.org/html/2607.18899#A1.p5.1)\.
- Y\. Li \(2026\)MoVE: Mixture of Value Embeddings – A New Axis for Scaling Parametric Memory in Autoregressive Models\.arXiv\.org\.External Links:[Document](https://dx.doi.org/10.48550/ARXIV.2601.22887)Cited by:[Appendix A](https://arxiv.org/html/2607.18899#A1.p6.1)\.
- Y\. Li, R\. Xie, Z\. Yang, X\. Sun, S\. Li, W\. Han, Z\. Kang, Y\. Cheng, C\. Xu, D\. Wang, and J\. Jiang \(2026\)TransMamba: A Sequence\-Level Hybrid Transformer\-Mamba Language Model\.arXiv\.External Links:2503\.24067,[Document](https://dx.doi.org/10.48550/arXiv.2503.24067)Cited by:[Appendix A](https://arxiv.org/html/2607.18899#A1.p5.1)\.
- J\. Liu, S\. Elflein, O\. Litany, Z\. Gojcic, and R\. Li \(2026\)Test\-Time Training with KV Binding Is Secretly Linear Attention\.arXiv \(Cornell University\)\.External Links:[Document](https://dx.doi.org/10.48550/ARXIV.2602.21204)Cited by:[Appendix A](https://arxiv.org/html/2607.18899#A1.p5.1)\.
- J\. Luboeinski and C\. Tetzlaff \(2021\)Memory consolidation and improvement by synaptic tagging and capture in recurrent neural networks\.Communications Biology4\(1\),pp\. 275\.External Links:ISSN 2399\-3642,[Document](https://dx.doi.org/10.1038/s42003-021-01778-y)Cited by:[Appendix E](https://arxiv.org/html/2607.18899#A5.p4.1),[§1](https://arxiv.org/html/2607.18899#S1.p6.1)\.
- Y\. Luo, Z\. Yang, F\. Meng, Y\. Li, J\. Zhou, and Y\. Zhang \(2025\)An Empirical Study of Catastrophic Forgetting in Large Language Models During Continual Fine\-tuning\.arXiv\.External Links:2308\.08747,[Document](https://dx.doi.org/10.48550/arXiv.2308.08747)Cited by:[§1](https://arxiv.org/html/2607.18899#S1.p4.1)\.
- M\. A\. Lynch \(2004\)Long\-Term Potentiation and Memory\.Physiol Rev84\.Cited by:[Appendix E](https://arxiv.org/html/2607.18899#A5.p2.1),[§1](https://arxiv.org/html/2607.18899#S1.p6.1)\.
- A\. Meskin, A\. Mirrokni, A\. Najar, and A\. Behrouz \(2025\)Hydra: Dual Exponentiated Memory for Multivariate Time Series Analysis\.arXiv\.External Links:2511\.00989,[Document](https://dx.doi.org/10.48550/arXiv.2511.00989)Cited by:[Appendix A](https://arxiv.org/html/2607.18899#A1.p3.1),[§1](https://arxiv.org/html/2607.18899#S1.p2.1)\.
- G\. Mongaras and E\. C\. Larson \(2025\)On the Expressiveness of Softmax Attention: A Recurrent Neural Network Perspective\.arXiv\.org\.External Links:[Document](https://dx.doi.org/10.48550/ARXIV.2507.23632)Cited by:[Appendix A](https://arxiv.org/html/2607.18899#A1.p5.1)\.
- R\. A\. Nicoll \(2017\)A Brief History of Long\-Term Potentiation\.Neuron93\(2\),pp\. 281–290\.External Links:ISSN 08966273,[Document](https://dx.doi.org/10.1016/j.neuron.2016.12.015)Cited by:[Appendix E](https://arxiv.org/html/2607.18899#A5.p2.1),[§1](https://arxiv.org/html/2607.18899#S1.p6.1)\.
- Y\. Nie, N\. H\. Nguyen, P\. Sinthong, and J\. Kalagnanam \(2023\)A Time Series is Worth 64 Words: Long\-term Forecasting with Transformers\.arXiv\.External Links:2211\.14730,[Document](https://dx.doi.org/10.48550/arXiv.2211.14730)Cited by:[Appendix A](https://arxiv.org/html/2607.18899#A1.p2.1),[§F\.1](https://arxiv.org/html/2607.18899#A6.SS1.p1.1),[§F\.1](https://arxiv.org/html/2607.18899#A6.SS1.p5.8),[§1](https://arxiv.org/html/2607.18899#S1.p2.1),[§5](https://arxiv.org/html/2607.18899#S5.p1.1)\.
- B\. N\. Patro and V\. S\. Agneeswaran \(2024\)SiMBA: Simplified Mamba\-Based Architecture for Vision and Multivariate Time series\.arXiv\.External Links:2403\.15360,[Document](https://dx.doi.org/10.48550/arXiv.2403.15360)Cited by:[Appendix A](https://arxiv.org/html/2607.18899#A1.p2.1),[§F\.2](https://arxiv.org/html/2607.18899#A6.SS2.p1.1),[§1](https://arxiv.org/html/2607.18899#S1.p2.1),[§5](https://arxiv.org/html/2607.18899#S5.p2.1)\.
- R\. L\. Redondo and R\. G\. M\. Morris \(2011\)Making memories last: the synaptic tagging and capture hypothesis\.Nature Reviews Neuroscience12\(1\),pp\. 17–30\.External Links:ISSN 1471\-003X, 1471\-0048,[Document](https://dx.doi.org/10.1038/nrn2963)Cited by:[Appendix E](https://arxiv.org/html/2607.18899#A5.p3.1),[§1](https://arxiv.org/html/2607.18899#S1.p6.1)\.
- R\. Ren, O\. Sheng, H\. Tang, and Y\. Liu \(2025\)Transformers as Intrinsic Optimizers: Forward Inference through the Energy Principle\.arXiv \(Cornell University\)\.External Links:[Document](https://dx.doi.org/10.48550/ARXIV.2511.00907)Cited by:[Appendix A](https://arxiv.org/html/2607.18899#A1.p5.1)\.
- Y\. Sun, X\. Li, K\. Dalal, J\. Xu, A\. Vikram, G\. Zhang, Y\. Dubois, X\. Chen, X\. Wang, S\. Koyejo, T\. Hashimoto, and C\. Guestrin \(2025\)Learning to \(Learn at Test Time\): RNNs with Expressive Hidden States\.arXiv\.External Links:2407\.04620,[Document](https://dx.doi.org/10.48550/arXiv.2407.04620)Cited by:[Appendix A](https://arxiv.org/html/2607.18899#A1.p4.1),[§1](https://arxiv.org/html/2607.18899#S1.p3.1),[§3\.1](https://arxiv.org/html/2607.18899#S3.SS1.p1.2)\.
- H\. Viola, F\. Ballarini, M\. C\. Martínez, and D\. Moncada \(2014\)The Tagging and Capture Hypothesis from Synapse to Memory\.InProgress in Molecular Biology and Translational Science,Vol\.122,pp\. 391–423\.External Links:[Document](https://dx.doi.org/10.1016/B978-0-12-420170-5.00013-1),ISBN 978\-0\-12\-420170\-5Cited by:[Appendix E](https://arxiv.org/html/2607.18899#A5.p3.1),[§1](https://arxiv.org/html/2607.18899#S1.p6.1)\.
- Q\. Wang, O\. Fink, L\. V\. Gool, and D\. Dai \(2022\)Continual Test\-Time Domain Adaptation\.arXiv\.External Links:2203\.13591,[Document](https://dx.doi.org/10.48550/arXiv.2203.13591)Cited by:[§1](https://arxiv.org/html/2607.18899#S1.p3.1),[§1](https://arxiv.org/html/2607.18899#S1.p4.1)\.
- M\. Wind \(2026\)Prometheus Mind: Retrofitting Memory to Frozen Language Models\.arXiv\.External Links:2601\.15324,[Document](https://dx.doi.org/10.48550/arXiv.2601.15324)Cited by:[Appendix A](https://arxiv.org/html/2607.18899#A1.p6.1)\.
- H\. Wu, J\. Xu, J\. Wang, and M\. Long \(2021\)Autoformer: Decomposition Transformers with Auto\-Correlation for Long\-Term Series Forecasting\.Cited by:[§F\.2](https://arxiv.org/html/2607.18899#A6.SS2.p1.1)\.
- O\. Zahn, M\. Beton, and S\. Chana \(2026\)Attention Is Not Retention: The Orthogonality Constraint in Infinite\-Context Architectures\.External Links:[Document](https://dx.doi.org/10.5281/zenodo.18273985)Cited by:[Appendix A](https://arxiv.org/html/2607.18899#A1.p6.1)\.
- A\. Zeng, M\. Chen, L\. Zhang, and Q\. Xu \(2023\)Are Transformers Effective for Time Series Forecasting?\.Proceedings of the AAAI Conference on Artificial Intelligence37\(9\),pp\. 11121–11128\.External Links:ISSN 2374\-3468, 2159\-5399,[Document](https://dx.doi.org/10.1609/aaai.v37i9.26317)Cited by:[§F\.2](https://arxiv.org/html/2607.18899#A6.SS2.p1.1)\.
- H\. Zhou, S\. Zhang, J\. Peng, S\. Zhang, J\. Li, H\. Xiong, and W\. Zhang \(2021\)Informer: Beyond Efficient Transformer for Long Sequence Time\-Series Forecasting\.Proceedings of the AAAI Conference on Artificial Intelligence35\(12\),pp\. 11106–11115\.External Links:ISSN 2374\-3468, 2159\-5399,[Document](https://dx.doi.org/10.1609/aaai.v35i12.17325)Cited by:[§F\.2](https://arxiv.org/html/2607.18899#A6.SS2.p1.1)\.
## Appendix ABroader Context for Memory\-Augmented Forecasting
The argument developed in the main paper is deliberately narrow: it focuses on the problem of*when*a test\-time memory should be updated under non\-stationary conditions\. This appendix places that argument in a broader modeling landscape, because the usefulness of an event\-triggered update policy depends on how one positions the proposal relative to the current architecture literature on time series, sequence modeling, and adaptive inference\.
A first observation is that adaptive memory is not the only way in which recent work has attempted to address the difficulty of non\-stationary or long\-range forecasting\. A substantial portion of the literature argues that the central issue is architectural misalignment between standard sequence models and the inductive structure of time series\. PatchTST, for example, shows that when time series are segmented into subseries\-level patches and channels are modeled independently, Transformer\-style models recover strong performance in long\-term forecasting\[Nieet al\.,[2023](https://arxiv.org/html/2607.18899#bib.bib17)\]\. The significance of this result is conceptual as much as empirical: it suggests that part of the challenge attributed to attention may actually be a challenge of tokenization and representation\. In a similar spirit, SiMBA proposes that state\-space sequence modeling combined with explicit channel mixing can narrow the gap between subquadratic models and strong attention\-based baselines\[Patro and Agneeswaran,[2024](https://arxiv.org/html/2607.18899#bib.bib19)\]\. These works imply that any theory of online adaptation must remain compatible with the possibility that part of apparent drift is simply poorly modeled structure\.
The literature becomes even more instructive in the multivariate case\. Typhon, LETO, and Hydra all emphasize that multivariate time series are not just longer univariate sequences, but objects with two coupled axes: temporal dynamics and cross\-variate interactions\[Caoet al\.,[2025](https://arxiv.org/html/2607.18899#bib.bib23), Behrouzet al\.,[2025a](https://arxiv.org/html/2607.18899#bib.bib30), Meskinet al\.,[2025](https://arxiv.org/html/2607.18899#bib.bib26)\]\. Their common claim is that forecasting models underperform when they either erase temporal inductive bias or assume too naively that cross\-variate structure should always be mixed in the same way\. What matters for the present paper is that these models also report long\-horizon error propagation in purely reactive recurrent systems\. This observation supports our central concern: when the environment changes over time, unrestricted online updates can turn adaptation into instability\.
From this point of view, the recent memory\-augmented literature can be interpreted as a second, complementary response\. Titans introduces a neural long\-term memory that is explicitly written at test time using surprise\-driven updates\[Behrouzet al\.,[2024](https://arxiv.org/html/2607.18899#bib.bib20)\]\. Test\-time training layers generalize this idea by making the hidden state itself a trainable object whose parameters are updated during inference\[Sunet al\.,[2025](https://arxiv.org/html/2607.18899#bib.bib29)\]\. ATLAS, Memory Caching, and related developments then argue that once one accepts the premise of inference\-time adaptation, the next challenge is to make the memory larger, better optimized, or less myopic\[Behrouzet al\.,[2025b](https://arxiv.org/html/2607.18899#bib.bib21),[2026](https://arxiv.org/html/2607.18899#bib.bib41)\]\. In this family of models, the central difficulty is not only how to represent long context, but how to*manage*it online\.
At the same time, the theoretical interpretation of these architectures remains unsettled\. Some authors describe them literally as systems that memorize context at test time, whereas others argue that at least part of their behavior can be reduced to learned forms of linear attention or recurrent optimization\[Liuet al\.,[2026](https://arxiv.org/html/2607.18899#bib.bib46), Mongaras and Larson,[2025](https://arxiv.org/html/2607.18899#bib.bib25), Renet al\.,[2025](https://arxiv.org/html/2607.18899#bib.bib35)\]\. Hybrid architectures such as Mamba–Transformer combinations or sequence\-level switching systems make this ambiguity even more visible by showing that the practical boundary between attention, recurrence, and memory is increasingly fluid\[Leeet al\.,[2025](https://arxiv.org/html/2607.18899#bib.bib36), Liet al\.,[2026](https://arxiv.org/html/2607.18899#bib.bib47)\]\. For our purposes, this ambiguity is not a problem\. The event\-triggering principle proposed in the main paper does not depend on whether a model is ultimately interpreted as memorization or as implicit attention\. It depends only on the claim that some internal state is adapted online, and that such adaptation should be selective rather than indiscriminate\.
Finally, there is a broader systems\-level discussion about whether continuously updated neural memory is sufficient for stable long\-term retention\. Cognitive work on memory\-augmented language models emphasizes episodic segmentation, selective encoding, and competitive retrieval\[Donget al\.,[2025](https://arxiv.org/html/2607.18899#bib.bib28)\]\. Engineering systems such as retrofitted external memory or parametric memory banks provide different operational responses\[Wind,[2026](https://arxiv.org/html/2607.18899#bib.bib44), Li,[2026](https://arxiv.org/html/2607.18899#bib.bib43)\]\. A stronger critique goes further and argues that shared continuous parameter memory may face a fundamental interference barrier under dense episodic storage, which would make discrete addressing unavoidable in some regimes\[Zahnet al\.,[2026](https://arxiv.org/html/2607.18899#bib.bib38)\]\. Although our setting is forecasting rather than factual episodic memory, this discussion is still relevant\. It reinforces the idea that memory should not be written eagerly; once memory is treated as a limited and interference\-prone resource, the question of when to update becomes a first\-order modeling issue rather than a secondary implementation detail\.
## Appendix BDetailed Problem Setting
This section expands the formal framing used in the main paper\. The objective is not simply to restate notation, but to make precise why the forecasting problem considered here is better interpreted as one of tracking an evolving conditional law than of estimating a single static function\.
Let𝒯⊆ℕ\\mathcal\{T\}\\subseteq\\mathbb\{N\}denote time\. Time is not treated as a random variable, but as the deterministic index along which the environment evolves\. At each instantt∈𝒯t\\in\\mathcal\{T\}, the learner has access to informationℐ\(t\)\\mathcal\{I\}\(t\)and wishes to predict the next target valueY\(t\+1\)Y\(t\+1\)\. In a univariate autoregressive formulation,ℐ\(t\)\\mathcal\{I\}\(t\)may coincide with the recent history of the same process,
ℐ\(t\)=ℋt:=\(Y\(1\),…,Y\(t−1\)\)\.\\mathcal\{I\}\(t\)=\\mathcal\{H\}\_\{t\}:=\(Y\(1\),\\dots,Y\(t\-1\)\)\.In a multivariate formulation,ℐ\(t\)\\mathcal\{I\}\(t\)can include lagged observations, exogenous variables, calendar features, metadata, or any other side information\. These two formulations look different at the level of representation, but conceptually they are variants of the same conditional prediction problem\.
The key modeling decision is to define the next\-step law as
Y\(t\+1\)∼Pt,Pt:=P\(⋅∣ℐ\(t\)\)\.Y\(t\+1\)\\sim P\_\{t\},\\qquad P\_\{t\}:=P\(\\cdot\\mid\\mathcal\{I\}\(t\)\)\.This immediately induces a trajectory of conditional distributionst↦Ptt\\mapsto P\_\{t\}\. Stationarity corresponds to the special case where this map is constant\. In the present work we focus instead on the more realistic non\-stationary regime in whichPtP\_\{t\}changes over time\. One may then introduce a latent regime statez\(t\)z\(t\)and write
Pt=P\(⋅∣ℐ\(t\),z\(t\)\),z\(t\+1\)=F\(z\(t\)\)\+η\(t\),P\_\{t\}=P\(\\cdot\\mid\\mathcal\{I\}\(t\),z\(t\)\),\\qquad z\(t\+1\)=F\(z\(t\)\)\+\\eta\(t\),whereFFcaptures structured regime evolution andη\(t\)\\eta\(t\)denotes unpredictable perturbations\. This formulation is useful because it turns non\-stationarity into a structured problem: the environment drifts because an underlying regime evolves, not because the data are assumed to be arbitrarily non\-stationary\.
An important refinement concerns the distinction between*explained variation*and*unresolved drift*\. In forecasting practice, many temporal effects are perfectly genuine but should not be treated as drift if they are already encoded in the observed inputs\. For example, daily or weekly seasonality may disappear once hour\-of\-day or day\-of\-week are included among the covariates\. In that case the conditional law is stable after conditioning, even though the raw sequence is strongly time\-dependent\. By contrast, if the environment changes in ways that remain unobserved after conditioning onℐ\(t\)\\mathcal\{I\}\(t\), then the learner faces genuine residual drift\. The present paper is explicitly about this latter case\.
To describe the temporal change of the predictive law, the main text introduced the formal increment
Δ\(t\)=Pt\+1−Pt\.\\Delta\(t\)=P\_\{t\+1\}\-P\_\{t\}\.Of course, this notation is symbolic: in practice one measures the magnitude of drift through a discrepancy on probability measures\. Common choices include total variation,
dTV\(μ,ν\)=supA∈ℬ\(𝒴\)\|μ\(A\)−ν\(A\)\|,d\_\{\\mathrm\{TV\}\}\(\\mu,\\nu\)=\\sup\_\{A\\in\\mathcal\{B\}\(\\mathcal\{Y\}\)\}\|\\mu\(A\)\-\\nu\(A\)\|,Kullback–Leibler divergence,
DKL\(μ∥ν\)=∫log\(dμdν\)𝑑μ,D\_\{\\mathrm\{KL\}\}\(\\mu\\\|\\nu\)=\\int\\log\\\!\\left\(\\frac\{d\\mu\}\{d\\nu\}\\right\)d\\mu,and thepp\-Wasserstein distance,
Wp\(μ,ν\)=\(infπ∈Π\(μ,ν\)∫ρ\(y,y′\)p𝑑π\(y,y′\)\)1/p\.W\_\{p\}\(\\mu,\\nu\)=\\left\(\\inf\_\{\\pi\\in\\Pi\(\\mu,\\nu\)\}\\int\\rho\(y,y^\{\\prime\}\)^\{p\}\\,d\\pi\(y,y^\{\\prime\}\)\\right\)^\{1/p\}\.The choice among these is application\-dependent\. Total variation captures worst\-case disagreement on measurable events, KL divergence emphasizes directional likelihood mismatch, and Wasserstein distance is often more natural when the output space has an intrinsic geometry\.
The most important conceptual step, however, is not the metric choice but the decomposition of drift into a predictable and an innovation component\. Letℋt\\mathcal\{H\}\_\{t\}denote the observable filtration\. Then one may write
Δ\(t\)=Δpred\(t\)\+Δnoise\(t\),Δpred\(t\):=𝔼\[Δ\(t\)∣ℋt\],\\Delta\(t\)=\\Delta\_\{\\mathrm\{pred\}\}\(t\)\+\\Delta\_\{\\mathrm\{noise\}\}\(t\),\\qquad\\Delta\_\{\\mathrm\{pred\}\}\(t\):=\\mathbb\{E\}\[\\Delta\(t\)\\mid\\mathcal\{H\}\_\{t\}\],with
𝔼\[Δnoise\(t\)∣ℋt\]=0\.\\mathbb\{E\}\[\\Delta\_\{\\mathrm\{noise\}\}\(t\)\\mid\\mathcal\{H\}\_\{t\}\]=0\.This decomposition should be understood as the forecasting analogue of the predictable–martingale split from stochastic\-process theory\. Its significance is direct: adaptation is justified only to the extent that the learner can extract and track the predictable component\. The residual innovation should not be memorized, because by definition it has no stable conditional mean structure available from the observable past\.
## Appendix CFormal Theoretical Foundations of the Problem Formulation
The main paper only uses the minimum amount of formal machinery needed to motivate the architecture\. This section gives the more complete theoretical backbone that originally motivated the formulation\. The goal is twofold\. First, it shows that the distinction between predictable drift and innovation noise is not heuristic, but follows from standard results in probability theory\. Second, it clarifies the precise sense in which temporal integration can improve the identifiability of structured drift\.
### C\.1Conditional expectation as the predictable component
The first relevant fact is that conditional expectation is the optimal predictor, in mean\-square sense, of any square\-integrable random variable given the available information\.
###### Theorem 1\(Conditional expectation as anL2L^\{2\}projection\)\.
Let\(Ω,ℱ,ℙ\)\(\\Omega,\\mathcal\{F\},\\mathbb\{P\}\)be a probability space, let𝒢⊆ℱ\\mathcal\{G\}\\subseteq\\mathcal\{F\}be a sub\-σ\\sigma\-algebra, and letU∈L2\(Ω,ℱ,ℙ\)U\\in L^\{2\}\(\\Omega,\\mathcal\{F\},\\mathbb\{P\}\)\. Then𝔼\[U∣𝒢\]\\mathbb\{E\}\[U\\mid\\mathcal\{G\}\]is the unique element ofL2\(Ω,𝒢,ℙ\)L^\{2\}\(\\Omega,\\mathcal\{G\},\\mathbb\{P\}\)such that
𝔼\[\(U−𝔼\[U∣𝒢\]\)V\]=0for allV∈L2\(Ω,𝒢,ℙ\),\\mathbb\{E\}\\\!\\left\[\(U\-\\mathbb\{E\}\[U\\mid\\mathcal\{G\}\]\)V\\right\]=0\\qquad\\text\{for all \}V\\in L^\{2\}\(\\Omega,\\mathcal\{G\},\\mathbb\{P\}\),and equivalently
𝔼\[U∣𝒢\]=argminV∈L2\(Ω,𝒢,ℙ\)𝔼\[\(U−V\)2\]\.\\mathbb\{E\}\[U\\mid\\mathcal\{G\}\]=\\arg\\min\_\{V\\in L^\{2\}\(\\Omega,\\mathcal\{G\},\\mathbb\{P\}\)\}\\mathbb\{E\}\[\(U\-V\)^\{2\}\]\.
In our setting, this theorem justifies the definition of the predictable component of drift\. IfΔ\(t\)\\Delta\(t\)denotes the drift variable andℋt\\mathcal\{H\}\_\{t\}the observable history, then𝔼\[Δ\(t\)∣ℋt\]\\mathbb\{E\}\[\\Delta\(t\)\\mid\\mathcal\{H\}\_\{t\}\]is the best mean\-square summary of the drift available from past information\. In other words, if there is any component of drift that is in principle learnable from the history, it is represented by that conditional expectation\. This is why we define
Δpred\(t\):=𝔼\[Δ\(t\)∣ℋt\],Δnoise\(t\):=Δ\(t\)−𝔼\[Δ\(t\)∣ℋt\]\.\\Delta\_\{\\mathrm\{pred\}\}\(t\):=\\mathbb\{E\}\[\\Delta\(t\)\\mid\\mathcal\{H\}\_\{t\}\],\\qquad\\Delta\_\{\\mathrm\{noise\}\}\(t\):=\\Delta\(t\)\-\\mathbb\{E\}\[\\Delta\(t\)\\mid\\mathcal\{H\}\_\{t\}\]\.The residual is not merely an error term; it is orthogonal to every square\-integrable function of the available history\.
### C\.2Predictable dynamics and innovation structure
The decomposition above is also consistent with the classical structure theorem for adapted processes\.
###### Theorem 2\(Doob decomposition\)\.
Let\(Xt\)t≥0\(X\_\{t\}\)\_\{t\\geq 0\}be an integrable adapted process with respect to a filtration\(ℱt\)t≥0\(\\mathcal\{F\}\_\{t\}\)\_\{t\\geq 0\}\. Then there exist a predictable process\(At\)t≥0\(A\_\{t\}\)\_\{t\\geq 0\}withA0=0A\_\{0\}=0and a martingale\(Mt\)t≥0\(M\_\{t\}\)\_\{t\\geq 0\}withM0=X0M\_\{0\}=X\_\{0\}such that
Xt=Mt\+Atfor allt≥0\.X\_\{t\}=M\_\{t\}\+A\_\{t\}\\qquad\\text\{for all \}t\\geq 0\.This decomposition is unique up to indistinguishability\.
The role of Theorem[2](https://arxiv.org/html/2607.18899#Thmtheorem2)in the present paper is interpretive\. We do not require the drift process itself to be modeled explicitly as a martingale plus predictable process in every application, but the theorem explains why this is the natural language for online adaptation\. The predictable component is the part that can, in principle, be tracked\. The martingale component is the part that can generate volatility in realized errors without carrying stable directional information\. A memory\-update mechanism that reacts identically to both is therefore misaligned with the statistical structure of the problem\.
### C\.3When drift is statistically distinguishable
To make the problem non\-vacuous, one needs more than a decomposition\. One also needs the innovation term to be sufficiently controlled so that sustained predictable drift is not drowned by fluctuations\.
###### Assumption 1\(Bounded conditional variance of innovations\)\.
There exists a predictable sequence\(σt2\)t≥0\(\\sigma\_\{t\}^\{2\}\)\_\{t\\geq 0\}such that
𝔼\[‖Δnoise\(t\)‖2∣ℋt\]≤σt2almost surely\.\\mathbb\{E\}\\\!\\left\[\\left\\lVert\\Delta\_\{\\mathrm\{noise\}\}\(t\)\\right\\rVert^\{2\}\\mid\\mathcal\{H\}\_\{t\}\\right\]\\leq\\sigma\_\{t\}^\{2\}\\qquad\\text\{almost surely\.\}
Under this assumption, concentration inequalities for martingale sums become relevant\. The classical result that best matches our use case is Freedman’s inequality\.
###### Theorem 3\(Freedman’s inequality\)\.
Let\(Mt,ℱt\)t≥0\(M\_\{t\},\\mathcal\{F\}\_\{t\}\)\_\{t\\geq 0\}be a real\-valued martingale withM0=0M\_\{0\}=0, and let the martingale differences be
ξt:=Mt−Mt−1\.\\xi\_\{t\}:=M\_\{t\}\-M\_\{t\-1\}\.Assume that\|ξt\|≤b\|\\xi\_\{t\}\|\\leq balmost surely for alltt, and define the predictable quadratic variation
Vt:=∑s=1t𝔼\[ξs2∣ℱs−1\]\.V\_\{t\}:=\\sum\_\{s=1\}^\{t\}\\mathbb\{E\}\[\\xi\_\{s\}^\{2\}\\mid\\mathcal\{F\}\_\{s\-1\}\]\.Then for allx,v\>0x,v\>0,
ℙ\(Mt≥xandVt≤v\)≤exp\(−x22\(v\+bx\)\)\.\\mathbb\{P\}\\\!\\left\(M\_\{t\}\\geq x\\ \\text\{and\}\\ V\_\{t\}\\leq v\\right\)\\leq\\exp\\\!\\left\(\-\\frac\{x^\{2\}\}\{2\(v\+bx\)\}\\right\)\.
Theorem[3](https://arxiv.org/html/2607.18899#Thmtheorem3)is not used in the main paper as a technical tool, but as a conceptual bridge\. It says that cumulative innovation has a concentration scale\. Therefore, the forecasting problem becomes meaningful exactly when the cumulative predictable component of drift exceeds that scale over time windows relevant to the task\. This leads to the following informal non\-degeneracy condition: over a window of lengthWW, the magnitude of
∑s=tt\+W−1Δpred\(s\)\\sum\_\{s=t\}^\{t\+W\-1\}\\Delta\_\{\\mathrm\{pred\}\}\(s\)should be comparable to or larger than the typical fluctuation size of
∑s=tt\+W−1Δnoise\(s\)\.\\sum\_\{s=t\}^\{t\+W\-1\}\\Delta\_\{\\mathrm\{noise\}\}\(s\)\.If this condition fails, then no event\-triggering mechanism, however sophisticated, can reliably distinguish signal from noise\.
### C\.4Temporal integration as asymptotic noise suppression
The event\-triggered architecture in the main paper is based on a scalar surprisal signalsts\_\{t\}\. We write
st=at\+ξt,s\_\{t\}=a\_\{t\}\+\\xi\_\{t\},whereata\_\{t\}denotes the structured component induced by predictable drift andξt\\xi\_\{t\}is again a martingale\-difference innovation\. The basic idea that motivates integration is that averaging suppresses martingale differences\.
###### Theorem 4\(Strong law for martingale differences\)\.
Let\(ξt\)\(\\xi\_\{t\}\)be a martingale\-difference sequence with respect to\(ℋt\)\(\\mathcal\{H\}\_\{t\}\)such that
𝔼\[ξt∣ℋt−1\]=0,supt𝔼\[ξt2\]<∞\.\\mathbb\{E\}\[\\xi\_\{t\}\\mid\\mathcal\{H\}\_\{t\-1\}\]=0,\\qquad\\sup\_\{t\}\\mathbb\{E\}\[\\xi\_\{t\}^\{2\}\]<\\infty\.Then
1t∑k=1tξk→0almost surely\.\\frac\{1\}\{t\}\\sum\_\{k=1\}^\{t\}\\xi\_\{k\}\\to 0\\qquad\\text\{almost surely\.\}
The practical limitation of Theorem[4](https://arxiv.org/html/2607.18899#Thmtheorem4)is that uniform averaging is too inertial for drifting environments\. If one gives equal weight to all past evidence, adaptation becomes too slow to follow evolving regimes\. This is the reason for introducing a leaky integrator instead\.
## Appendix DStatistical Rationale for Event\-Triggered Updates
The architecture in the main paper is motivated by a simple but consequential principle: if the update signal combines structured drift and innovation noise, then one should not allow every local fluctuation to write into memory\. This appendix expands that argument and clarifies why a leaky integrator is the natural filtering device\.
Algorithm 1: Evidence\-gated test\-time adaptation\.Input:modelfθ,ϕf\_\{\\theta,\\phi\}, lossℓ\\ell, surprisal encoderψ\\psi, accumulatoru=0u=0, leakλ\\lambda, thresholdτ\\tau, reset factorρ\\rho, update operator𝒰\\mathcal\{U\}\.1\.At timett, predictY^\(t\+1\)=fθ,ϕt\(ℐ\(t\)\)\\hat\{Y\}\(t\+1\)=f\_\{\\theta,\\phi\_\{t\}\}\(\\mathcal\{I\}\(t\)\)\.2\.ObserveY\(t\+1\)Y\(t\+1\)and computeℓt=ℓ\(Y^\(t\+1\),Y\(t\+1\)\)\\ell\_\{t\}=\\ell\(\\hat\{Y\}\(t\+1\),Y\(t\+1\)\)\.3\.Encode surprisalst=ψ\(ℓt\)s\_\{t\}=\\psi\(\\ell\_\{t\}\)and update evidenceu←λu\+stu\\leftarrow\\lambda u\+s\_\{t\}\.4\.Ifu≥τu\\geq\\tau, commit memoryϕt\+1=𝒰\(ϕt,∇ϕℓt\)\\phi\_\{t\+1\}=\\mathcal\{U\}\(\\phi\_\{t\},\\nabla\_\{\\phi\}\\ell\_\{t\}\)and setu←ρuu\\leftarrow\\rho u\.5\.Otherwise, keepϕt\+1=ϕt\\phi\_\{t\+1\}=\\phi\_\{t\}\.
Algorithm 1 shows the architecture\-independent form of the mechanism\. The update operator may be a gradient step, a neural\-memory write, a recurrent\-state refresh, or another local test\-time adaptation rule\. The invariant part is the separation between evidence accumulation and memory commitment\.
Suppose the model produces a scalar surprisal statisticsts\_\{t\}from the current loss, and suppose this statistic can be decomposed as
st=at\+ξt,s\_\{t\}=a\_\{t\}\+\\xi\_\{t\},whereata\_\{t\}represents the structured component induced by persistent misalignment with the current regime, andξt\\xi\_\{t\}is an innovation term satisfying
𝔼\[ξt∣ℋt−1\]=0\.\\mathbb\{E\}\[\\xi\_\{t\}\\mid\\mathcal\{H\}\_\{t\-1\}\]=0\.If one updates memory directly fromsts\_\{t\}, then every realization ofξt\\xi\_\{t\}contributes to plasticity\. In a setting with outliers, heteroskedastic noise, or abrupt but non\-persistent local fluctuations, this is precisely what one would like to avoid\.
The classical remedy is temporal averaging\. If\(ξt\)\(\\xi\_\{t\}\)is a martingale\-difference sequence with uniformly bounded second moments, then one has
1t∑k=1tξk→0a\.s\.\\frac\{1\}\{t\}\\sum\_\{k=1\}^\{t\}\\xi\_\{k\}\\to 0\\quad\\text\{a\.s\.\}ast→∞t\\to\\infty\. This fact already indicates that repeated averaging suppresses innovation noise\. Yet uniform averaging is a poor operational choice for drifting environments because it gives equal weight to stale evidence and recent evidence\. Inference\-time adaptation must remain local enough to follow evolving regimes\. This is why the main paper adopts exponential integration rather than simple running averages\.
The leaky accumulator
ut=λut−1\+st,0<λ<1,u\_\{t\}=\\lambda u\_\{t\-1\}\+s\_\{t\},\\qquad 0<\\lambda<1,implements precisely this compromise\. By unrolling the recursion one obtains
ut=∑k=1tλt−kak\+∑k=1tλt−kξk\.u\_\{t\}=\\sum\_\{k=1\}^\{t\}\\lambda^\{t\-k\}a\_\{k\}\+\\sum\_\{k=1\}^\{t\}\\lambda^\{t\-k\}\\xi\_\{k\}\.The first term is the temporally weighted structured signal, while the second is the filtered innovation process\. Under the bounded\-variance assumption used in the main text, the innovation part remains centered and uniformly controlled\. Hence the leaky filter enhances the signal\-to\-noise ratio whenever the structured component persists over a time horizon comparable to\(1−λ\)−1\(1\-\\lambda\)^\{\-1\}\.
The next proposition formalizes the boundedness of the filtered innovation component and is one of the few technical statements in this appendix for which we provide a full derivation, since it directly justifies the architecture\.
###### Proposition 3\(Variance bound for filtered martingale differences\)\.
Let\(ξt\)\(\\xi\_\{t\}\)be a martingale\-difference sequence such that
𝔼\[ξt2∣ℋt−1\]≤σ2\.\\mathbb\{E\}\[\\xi\_\{t\}^\{2\}\\mid\\mathcal\{H\}\_\{t\-1\}\]\\leq\\sigma^\{2\}\.Define
wt:=∑k=1tλt−kξk,0<λ<1\.w\_\{t\}:=\\sum\_\{k=1\}^\{t\}\\lambda^\{t\-k\}\\xi\_\{k\},\\qquad 0<\\lambda<1\.Then
𝔼\[wt\]=0,\\mathbb\{E\}\[w\_\{t\}\]=0,and
Var\(wt\)≤σ21−λ2\.\\mathrm\{Var\}\(w\_\{t\}\)\\leq\\frac\{\\sigma^\{2\}\}\{1\-\\lambda^\{2\}\}\.
###### Proof\.
The mean claim follows directly from linearity and the martingale\-difference property:
𝔼\[wt\]=∑k=1tλt−k𝔼\[ξk\]=0\.\\mathbb\{E\}\[w\_\{t\}\]=\\sum\_\{k=1\}^\{t\}\\lambda^\{t\-k\}\\mathbb\{E\}\[\\xi\_\{k\}\]=0\.For the second moment one has
𝔼\[wt2\]=𝔼\[\(∑k=1tλt−kξk\)2\]\.\\mathbb\{E\}\[w\_\{t\}^\{2\}\]=\\mathbb\{E\}\\\!\\left\[\\left\(\\sum\_\{k=1\}^\{t\}\\lambda^\{t\-k\}\\xi\_\{k\}\\right\)^\{2\}\\right\]\.Cross terms vanish because martingale differences are orthogonal inL2L^\{2\}, hence
𝔼\[wt2\]=∑k=1tλ2\(t−k\)𝔼\[ξk2\]≤σ2∑k=1tλ2\(t−k\)\.\\mathbb\{E\}\[w\_\{t\}^\{2\}\]=\\sum\_\{k=1\}^\{t\}\\lambda^\{2\(t\-k\)\}\\mathbb\{E\}\[\\xi\_\{k\}^\{2\}\]\\leq\\sigma^\{2\}\\sum\_\{k=1\}^\{t\}\\lambda^\{2\(t\-k\)\}\.The last term is a geometric sum bounded by
σ2∑j=0∞λ2j=σ21−λ2\.\\sigma^\{2\}\\sum\_\{j=0\}^\{\\infty\}\\lambda^\{2j\}=\\frac\{\\sigma^\{2\}\}\{1\-\\lambda^\{2\}\}\.Sincewtw\_\{t\}is centered, this proves the variance bound\. ∎
The proposition is the finite\-memory analogue of the averaging argument in Theorem[4](https://arxiv.org/html/2607.18899#Thmtheorem4)\. It shows that leaky integration suppresses innovation without letting its variance grow unbounded over time\. In other words, the accumulator stores persistent evidence, not a random walk of noise\.
The complementary signal statement is simpler but equally important\. If the structured component has a persistent local meanμ\>0\\mu\>0over a time scale longer than the effective memory horizon, then
∑k=1tλt−kak≈μ1−λ\.\\sum\_\{k=1\}^\{t\}\\lambda^\{t\-k\}a\_\{k\}\\approx\\frac\{\\mu\}\{1\-\\lambda\}\.Thus the structured term accumulates to a non\-zero scale while the innovation remains centered and variance\-controlled\. This asymmetry is the exact reason for introducing a threshold over accumulated surprisal rather than acting on instantaneous loss\.
This observation has three practical implications\. First, gradual drift becomes visible even when instantaneous losses are individually weak\. A sequence of small but coherent deviations may fail to trigger a standard reactive update, yet accumulate under the leaky filter until it crosses threshold\. Second, isolated outliers become less influential because their effect decays unless corroborated by subsequent evidence\. Third, the threshold parameterτ\\tauacquires a transparent interpretation: it controls how much integrated evidence is required before one is willing to treat the observed deviation as a candidate regime change rather than as noise\.
#### Relation to sequential change detection\.
The trigger can also be interpreted as a lightweight form of sequential evidence accumulation\. Classical change\-detection procedures accumulate evidence for a distributional change and raise an alarm when the statistic crosses a threshold\. Black\-Mamba follows the same statistical principle, but the accumulated quantity is a model\-internal surprisal signal rather than an explicit likelihood ratio, and the alarm controls an internal memory update rather than declaring an external change point\. This is useful when the post\-change distribution is unknown or evolves continuously, because the update rule can operate directly on the predictive mismatch already produced by the model\.
###### Proposition 4\(False\-trigger control under calibrated innovation noise\)\.
Assume that there is no predictable drift after validation calibration, so the trigger input isst=ξts\_\{t\}=\\xi\_\{t\}, where\(ξt\)\(\\xi\_\{t\}\)is a martingale\-difference sequence with\|ξt\|≤b\|\\xi\_\{t\}\|\\leq balmost surely\. Let
ut=λut−1\+ξt,0<λ<1,u0=0\.u\_\{t\}=\\lambda u\_\{t\-1\}\+\\xi\_\{t\},\\qquad 0<\\lambda<1,\\qquad u\_\{0\}=0\.Then for any thresholdτ\>0\\tau\>0,
ℙ\(ut≥τ\)≤exp\(−τ2\(1−λ2\)2b2\)\.\\mathbb\{P\}\(u\_\{t\}\\geq\\tau\)\\leq\\exp\\\!\\left\(\-\\frac\{\\tau^\{2\}\(1\-\\lambda^\{2\}\)\}\{2b^\{2\}\}\\right\)\.
###### Proof\.
Unrolling the recursion gives
ut=∑k=1tλt−kξk\.u\_\{t\}=\\sum\_\{k=1\}^\{t\}\\lambda^\{t\-k\}\\xi\_\{k\}\.This is a weighted martingale sum\. Since\|ξk\|≤b\|\\xi\_\{k\}\|\\leq b, the weighted increments are bounded bybλt−kb\\lambda^\{t\-k\}\. Applying Azuma–Hoeffding gives
ℙ\(ut≥τ\)≤exp\(−τ22b2∑k=1tλ2\(t−k\)\)\.\\mathbb\{P\}\(u\_\{t\}\\geq\\tau\)\\leq\\exp\\\!\\left\(\-\\frac\{\\tau^\{2\}\}\{2b^\{2\}\\sum\_\{k=1\}^\{t\}\\lambda^\{2\(t\-k\)\}\}\\right\)\.Because
∑k=1tλ2\(t−k\)≤11−λ2,\\sum\_\{k=1\}^\{t\}\\lambda^\{2\(t\-k\)\}\\leq\\frac\{1\}\{1\-\\lambda^\{2\}\},the stated bound follows\. ∎
Proposition[4](https://arxiv.org/html/2607.18899#Thmproposition4)gives a direct false\-update interpretation to the trigger: increasingτ\\tauor shortening the effective memory length reduces the probability that pure innovation noise commits a memory update\. This complements the variance bound above by controlling threshold crossings, not only the second moment of the filtered noise\.
It is also worth clarifying that the event\-triggering principle is logically independent of the internal update operator\. The main paper instantiates memory updates with a gradient step onϕt\\phi\_\{t\}, but the same trigger could gate a recurrent\-state refresh, a write into an external memory, a cache update, or a more elaborate optimizer over a neural memory module\. What remains invariant is the separation between*evidence accumulation*and*memory commitment*\. That separation is, in our view, the central theoretical contribution of the paper\.
## Appendix ENeurophysiological Motivation and Computational Analogy
The biological motivation for*Black\-Mamba*should not be read as a claim of mechanistic realism\. Rather, it serves to justify the architectural principle that persistent memory should be more selective than transient error correction\. This appendix expands the argument that the proposed event\-triggering mechanism is aligned with well\-established ideas from the neuroscience of memory\.
The starting point is the classical literature on long\-term potentiation \(LTP\)\. From the earliest experiments ofBliss and Lømo \[[1973](https://arxiv.org/html/2607.18899#bib.bib1)\]through later reviews\[Lynch,[2004](https://arxiv.org/html/2607.18899#bib.bib3), Nicoll,[2017](https://arxiv.org/html/2607.18899#bib.bib8)\], a stable lesson emerges: durable memory traces are not formed by every perturbation\. They require sufficiently strong, repeated, or appropriately coordinated activity to produce persistent changes in synaptic efficacy\. This already suggests an important analogy for forecasting under drift\. If every local mismatch between prediction and observation led to a durable update of long\-term memory, the resulting system would be overly reactive and unstable\. Biological memory does not operate in that way\.
The synaptic tagging and capture literature sharpens the analogy\. According to this view, a local event may set a transient tag that makes a synapse eligible for later consolidation, but persistence requires the arrival of additional plasticity\-related resources within a critical time window\[Redondo and Morris,[2011](https://arxiv.org/html/2607.18899#bib.bib6), Violaet al\.,[2014](https://arxiv.org/html/2607.18899#bib.bib7)\]\. The conceptual importance of this framework lies in the explicit separation between*eligibility*and*consolidation*\. In computational terms, instantaneous surprisal should be interpreted not as an immediate command to rewrite memory, but as an indication that the current state of the system may deserve revision if subsequent evidence supports that interpretation\.
This view is reinforced by computational neuroscience\.Luboeinski and Tetzlaff \[[2021](https://arxiv.org/html/2607.18899#bib.bib14)\]show that synaptic tagging and capture mechanisms in recurrent spiking networks do not merely preserve memories; they can improve later recall by stabilizing the right traces over time\. This is particularly relevant for our setting because it suggests that selectivity in memory writing is not merely a strategy for reducing variance\. It can also improve the functional usefulness of memory by preserving only those traces that survive temporal scrutiny\.
The integrate\-and\-fire family of models provides the final piece of the analogy\. In these models, noisy inputs are integrated over time with leak, and discrete events occur only when the resulting latent variable crosses a threshold\[Burkitt,[2006](https://arxiv.org/html/2607.18899#bib.bib5), Brette and Gerstner,[2005](https://arxiv.org/html/2607.18899#bib.bib4), Gerstner and Kistler,[2002](https://arxiv.org/html/2607.18899#bib.bib2)\]\. This does not imply that the accumulator in*Black\-Mamba*is a literal membrane potential\. The analogy is instead structural\. The scalar variableutu\_\{t\}is a latent evidence reservoir: local surprises contribute to it, old evidence decays, repeated deviations add constructively, and only sufficiently persistent evidence causes a discrete event\. The thresholded update is thus the computational counterpart of selective commitment\.
Seen from this perspective, the proposed architecture combines two biologically inspired principles\. The first is*tagging*: instantaneous discrepancy creates eligibility for change\. The second is*integration*: durable commitment requires accumulation over time\. The result is not a biologically detailed memory model, but a computationally disciplined one\. That level of abstraction is exactly what is appropriate for the present paper: we do not need to emulate the biophysics of memory in order to import the more general lesson that persistence should be earned, not assumed\.
## Appendix FExperimental and Reproducibility Details
This section reports the experimental and reproducibility details needed to interpret and replicate the evaluation\.
### F\.1Datasets, splits, and preprocessing
We follow the public long\-term forecasting benchmark protocol popularized by the PatchTST framework\[Nieet al\.,[2023](https://arxiv.org/html/2607.18899#bib.bib17)\]\. This choice is deliberate: SiMBA is evaluated on the same benchmark family, and our implementation preserves the same data organization and forecasting protocol in order to make the comparison with the frozen SiMBA backbone and the adaptive variants as direct as possible\. For all datasets, we use chronological splits with proportions 0\.45/0\.10/0\.45 for training, validation, and test, respectively\. We use this relatively large test split to make the test distribution sufficiently long for measuring whether the test stream exhibits drift relative to the training regime\.
The real benchmark suite includes the following datasets\. The ETT family contains four electricity\-transformer temperature datasets: ETTh1 and ETTh2 are hourly series, while ETTm1 and ETTm2 are 15\-minute series, all taken from the public ETDataset repository\.111[https://github\.com/zhouhaoyi/ETDataset](https://github.com/zhouhaoyi/ETDataset)Electricity is the UCI Electricity Load Diagrams dataset, containing client\-level electricity consumption time series\.222[https://archive\.ics\.uci\.edu/ml/datasets/ElectricityLoadDiagrams20112014](https://archive.ics.uci.edu/ml/datasets/ElectricityLoadDiagrams20112014)Exchange Rate is the multivariate exchange\-rate benchmark distributed in the multivariate time\-series data repository\.333[https://github\.com/laiguokun/multivariate\-time\-series\-data](https://github.com/laiguokun/multivariate-time-series-data)Traffic is based on PeMS traffic sensor measurements from California freeway systems\.444[https://pems\.dot\.ca\.gov/](https://pems.dot.ca.gov/)Weather is built from the Jena weather archive\.555[https://www\.bgc\-jena\.mpg\.de/wetter/](https://www.bgc-jena.mpg.de/wetter/)In our drift\-oriented version of Weather, we use observations from 2003\-01\-01 up to the last date available in our collected copy, 2026\-04\-07, in order to provide a long temporal span for concept\-drift diagnostics\.
Real benchmark experiments use context length 96 and prediction horizons 96, 192, 336, and 720 when available\. All real datasets are processed chronologically, without shuffling across time, and the validation split is used for model selection and adapter calibration before streaming evaluation on the held\-out test stream\.
The synthetic suite contains seven non\-stationary streams designed to isolate different forms of concept drift\. Each stream is generated as a controlled multivariate process with an underlying regime variable that changes the conditional relationship between recent observations and the next target\. Thelgradualstream introduces a smooth transition between regimes, whilelgradual\_noisyadds observation noise to the same gradual drift structure\. Therecurrent\_seasonal\_boundarystream alternates between recurring seasonal decision boundaries, andrecurrent\_seasonal\_boundary\_noisyadds noise to make boundary recovery less stable\. Theregime\_plateau\_driftstream contains extended plateaus separated by regime changes, withregime\_plateau\_drift\_noisyadding noise to the plateau\-drift process\. Finally,selective\_update\_stressis designed to stress the update policy: long easy regions require few updates, while later difficult regions require rapid adaptation\. Synthetic forecasting uses horizon 1 and paired online traces of 449,999 windows per adaptive run\.
Following the PatchTST evaluation framework\[Nieet al\.,[2023](https://arxiv.org/html/2607.18899#bib.bib17)\], which is also the benchmark protocol used to evaluate SiMBA, we report losses in the standardized target space in order to make results comparable across datasets and target channels with different physical units and scales\. This is the metric convention used throughout our comparison\. Letμctrain\\mu\_\{c\}^\{\\mathrm\{train\}\}andσctrain\\sigma\_\{c\}^\{\\mathrm\{train\}\}denote the mean and standard deviation of target channelcc, computed on the training split only\. For a target valueyt,h,cy\_\{t,h,c\}and predictiony^t,h,c\\hat\{y\}\_\{t,h,c\}at windowtt, horizon stephh, and channelcc, the standardized quantities are
y~t,h,c=yt,h,c−μctrainσctrain,y^~t,h,c=y^t,h,c−μctrainσctrain\.\\tilde\{y\}\_\{t,h,c\}=\\frac\{y\_\{t,h,c\}\-\\mu\_\{c\}^\{\\mathrm\{train\}\}\}\{\\sigma\_\{c\}^\{\\mathrm\{train\}\}\},\\qquad\\tilde\{\\hat\{y\}\}\_\{t,h,c\}=\\frac\{\\hat\{y\}\_\{t,h,c\}\-\\mu\_\{c\}^\{\\mathrm\{train\}\}\}\{\\sigma\_\{c\}^\{\\mathrm\{train\}\}\}\.The reported standardized MSE and MAE are therefore
MSEstd=1N∑t,h,c\(y^~t,h,c−y~t,h,c\)2=1N∑t,h,c\(y^t,h,c−yt,h,cσctrain\)2,\\mathrm\{MSE\}\_\{\\mathrm\{std\}\}=\\frac\{1\}\{N\}\\sum\_\{t,h,c\}\\left\(\\tilde\{\\hat\{y\}\}\_\{t,h,c\}\-\\tilde\{y\}\_\{t,h,c\}\\right\)^\{2\}=\\frac\{1\}\{N\}\\sum\_\{t,h,c\}\\left\(\\frac\{\\hat\{y\}\_\{t,h,c\}\-y\_\{t,h,c\}\}\{\\sigma\_\{c\}^\{\\mathrm\{train\}\}\}\\right\)^\{2\},MAEstd=1N∑t,h,c\|y^~t,h,c−y~t,h,c\|=1N∑t,h,c\|y^t,h,c−yt,h,cσctrain\|\.\\mathrm\{MAE\}\_\{\\mathrm\{std\}\}=\\frac\{1\}\{N\}\\sum\_\{t,h,c\}\\left\|\\tilde\{\\hat\{y\}\}\_\{t,h,c\}\-\\tilde\{y\}\_\{t,h,c\}\\right\|=\\frac\{1\}\{N\}\\sum\_\{t,h,c\}\\left\|\\frac\{\\hat\{y\}\_\{t,h,c\}\-y\_\{t,h,c\}\}\{\\sigma\_\{c\}^\{\\mathrm\{train\}\}\}\\right\|\.These quantities are scale\-normalized errors, not min–max normalized scores, and are not constrained to lie in\[0,1\]\[0,1\]\. A value above one simply means that the forecasting error is larger than the corresponding training\-set scale\.
### F\.2Baselines, hyperparameters, and implementation
The non\-adaptive baselines are Autoformer, Informer, DLinear, Linear, NLinear, and frozen SiMBA\[Wuet al\.,[2021](https://arxiv.org/html/2607.18899#bib.bib11), Zhouet al\.,[2021](https://arxiv.org/html/2607.18899#bib.bib12), Zenget al\.,[2023](https://arxiv.org/html/2607.18899#bib.bib16), Patro and Agneeswaran,[2024](https://arxiv.org/html/2607.18899#bib.bib19)\]\. The adaptive comparison uses a shared frozen SiMBA backbone and a shared LoRA forecasting\-head adapter\. The continuous update adapter implements the inference\-time update mechanism described in the Titans\-inspired neural\-memory literature\[Behrouzet al\.,[2024](https://arxiv.org/html/2607.18899#bib.bib20)\], but not the unavailable official architecture\. Black\-Mamba uses the same adapter and differs only in the event\-triggered update policy\.
The adapter is a low\-rank LoRA module on the forecasting head with rank 4, alpha 4, dropout 0, and validation calibration for one epoch\. The online update uses thematmul\_b\_onlyimplementation: the LoRAAAmatrix is initialized from calibration and kept fixed online, while theBBcomponent is updated from streaming gradients\. The default leaky accumulator uses integration coefficientλ=0\.97\\lambda=0\.97, with trigger threshold calibration from the validation surprisal quantile\. Online learning rates are bounded by the validation\-normalized update budget, with minimum10−610^\{\-6\}and maximum10−410^\{\-4\}in the recorded runs\. Backbone training uses Adam with learning rate10−410^\{\-4\}, train/eval batch size 512 in the representative synthetic runs, and effective test batch size 1 for streaming evaluation\. Exact per\-run configurations are stored in the run summary JSON files\.
### F\.3Statistical testing protocol
The comparison between Black\-Mamba and the continuous\-update adapter is performed on the same online forecasting stream\. This means that, for a fixed dataset and prediction horizon, both methods produce a prediction for exactly the same test windows\. We therefore treat the evaluation as a paired comparison: for each test windowtt, we compute the loss of the continuous\-update adapter and the loss of Black\-Mamba on the same target window, and then compare their difference\.
Formally, let
ℓtcont\\ell\_\{t\}^\{\\mathrm\{cont\}\}be the loss of the continuous\-update adapter on test windowtt, and let
ℓtBM\\ell\_\{t\}^\{\\mathrm\{BM\}\}be the corresponding loss of Black\-Mamba on the same window\. We define the paired loss difference as
dt=ℓtcont−ℓtBM\.d\_\{t\}=\\ell\_\{t\}^\{\\mathrm\{cont\}\}\-\\ell\_\{t\}^\{\\mathrm\{BM\}\}\.With this convention,dt\>0d\_\{t\}\>0means that the continuous\-update adapter has larger loss than Black\-Mamba on that window, whiledt<0d\_\{t\}<0means that the continuous\-update adapter is better on that window\. The quantity of interest is the average paired difference,
d¯=1T∑t=1Tdt\.\\bar\{d\}=\\frac\{1\}\{T\}\\sum\_\{t=1\}^\{T\}d\_\{t\}\.A positive value ofd¯\\bar\{d\}indicates that, on average, continuous updating performs worse than Black\-Mamba\.
A standard pairedtt\-test would assume that the sequence of differences\(dt\)\(d\_\{t\}\)is independent across test windows\. This assumption is not appropriate for our forecasting traces, because consecutive windows strongly overlap in time and their errors are autocorrelated\. To account for this temporal dependence, we use a HAC/Newey–West standard error ford¯\\bar\{d\}\. The resulting test statistic is
z=d¯se^HAC\(d¯\),z=\\frac\{\\bar\{d\}\}\{\\widehat\{\\mathrm\{se\}\}\_\{\\mathrm\{HAC\}\}\(\\bar\{d\}\)\},wherese^HAC\(d¯\)\\widehat\{\\mathrm\{se\}\}\_\{\\mathrm\{HAC\}\}\(\\bar\{d\}\)estimates the uncertainty of the mean difference while allowing nearby windows to be correlated\. For the real forecasting experiments, we set the HAC lag to the prediction horizon minus one, so that the standard error accounts for the overlap induced by multi\-step forecasting windows\.
We test the paired one\-sided hypothesisH0:𝔼\[dt\]≤0H\_\{0\}:\\mathbb\{E\}\[d\_\{t\}\]\\leq 0versusH1:𝔼\[dt\]\>0H\_\{1\}:\\mathbb\{E\}\[d\_\{t\}\]\>0, with moving\-block bootstrap confidence intervals used only as a robustness check on the sign and scale of the estimated difference\. For synthetic streams,H=1H=1, so adjacent predictions have no target\-horizon overlap; the protocol therefore reduces to a lag\-zero HAC estimate and an iid bootstrap over paired differences\.
We usep<0\.05p<0\.05as a conventional threshold for local statistical significance\. However, we do not interpret p\-values in isolation: each result is discussed together with the percentage effect size and the confidence interval\. This is important because, on long traces, extremely small differences can become statistically detectable while remaining practically irrelevant\. The main text reports only the real\-drift p\-values used in the central discussion, while full per\-horizon results are reported in Appendix[G](https://arxiv.org/html/2607.18899#A7)\.
### F\.4Compute resources
Compute\-intensive runs were executed on a DGX system with 8 NVIDIA A100 40GB GPUs\. Most development, trace processing, plotting, and routine analysis were performed on a workstation with an NVIDIA RTX 4070 Ti GPU\. The final statistical analyses and figures in this draft were generated from saved CSV/JSON trace artifacts and do not require re\-training\.
## Appendix GAdditional Results
This section reports the additional results supporting the experimental discussion in the main paper\. We include full per\-horizon benchmark tables, complete paired adaptive\-policy comparisons, synthetic trace diagnostics, noise and stress ablations, update\-gate sensitivity observations, and the concept\-drift diagnostics used to identify the real\-drift cases\.
### G\.1Full Real Benchmark Tables
Table[4](https://arxiv.org/html/2607.18899#A7.T4)expands the averaged real benchmark table from the main paper into per\-horizon results\. The table confirms that most differences among frozen SiMBA, the continuous\-update adapter, and Black\-Mamba are below standard benchmark\-table precision on real datasets\. This supports the interpretation used in the main text: on most real benchmarks, online adaptation does not materially change aggregate forecasting accuracy because the test streams are not uniformly drifting\. The relevant evidence is therefore not broad real\-data dominance, but whether Black\-Mamba preserves the backbone while reducing updates and whether it avoids degradation in the strongest real\-drift cases\.
Table 4:Full real benchmark results by dataset and horizon\. Each cell reports standardized MSE and MAE; lower is better\. Bold and underline mark the best and second\-best results across all models; light yellow and light blue mark the best and second\-best results among SiMBA, Cont\. update, and Black\-Mamba, isolating update\-policy effects for the chosen frozen baseline\. Ties are highlighted within the corresponding rank\.
### G\.2Full Adaptive\-Policy Comparisons
Table[5](https://arxiv.org/html/2607.18899#A7.T5)reports the paired adaptive\-policy comparison for the real material\-drift datasets and the synthetic drift streams\. Positive deltas favor Black\-Mamba, while negative deltas favor the continuous\-update adapter\. The real results show practical equivalence except for Exchange Rate at horizon 720, where continuous updating is worse than Black\-Mamba\.
The synthetic results show that continuous updating often obtains slightly lower losses, especially when the drift signal is dense and consistently informative\. This is expected: in synthetic streams where almost every new point contributes useful information about the current regime, an always\-update policy can extract small additional gains\. The key observation is that these gains remain numerically small, while Black\-Mamba substantially reduces inference\-time writes\. This supports the intended trade\-off rather than contradicting it: Black\-Mamba is not designed to dominate continuous adaptation in every loss cell, but to preserve most of its benefit with fewer and more selective updates\.
Table 5:Full adaptive\-policy comparison between Black\-Mamba and the Titans\-inspired continuous\-update adapter\.Δ=100⋅\(Cont\.−BM\)/BM\\Delta=100\\cdot\(\\mathrm\{Cont\.\}\-\\mathrm\{BM\}\)/\\mathrm\{BM\}; positive values favor Black\-Mamba\.pdirp\_\{\\mathrm\{dir\}\}is the HAC one\-sided p\-value in the direction of the observed mean difference\.Dataset / scenarioHorizonBM update rateΔ\\DeltaMSEpdirp\_\{\\mathrm\{dir\}\}Δ\\DeltaMAEpdirp\_\{\\mathrm\{dir\}\}Exchange Rate967\.5%\-0\.685%0\.370\-0\.599%0\.27019210\.4%\+0\.087%0\.420\-0\.160%0\.2083369\.9%\-0\.926%0\.283\-0\.286%0\.3717209\.1%\+1\.797%0\.056\+0\.556%0\.039Traffic9646\.5%\-0\.001%<10−3<10^\{\-3\}\-0\.003%<10−3<10^\{\-3\}19243\.8%\-0\.000%0\.002\-0\.001%<10−3<10^\{\-3\}33642\.5%\-0\.000%0\.007\-0\.001%<10−3<10^\{\-3\}72046\.3%\-0\.000%<10−3<10^\{\-3\}\-0\.000%<10−3<10^\{\-3\}L\-Gradual153\.4%\-0\.329%<10−3<10^\{\-3\}\-0\.353%<10−3<10^\{\-3\}L\-Gradual noisy149\.2%\-0\.408%<10−3<10^\{\-3\}\-0\.287%<10−3<10^\{\-3\}Recurrent seasonal140\.9%\-0\.847%<10−3<10^\{\-3\}\-0\.502%<10−3<10^\{\-3\}Recurrent seasonal noisy138\.6%\-0\.454%<10−3<10^\{\-3\}\-1\.064%<10−3<10^\{\-3\}Regime plateau156\.6%\-0\.360%<10−3<10^\{\-3\}\-0\.391%<10−3<10^\{\-3\}Regime plateau noisy148\.1%\-0\.315%<10−3<10^\{\-3\}\-0\.231%<10−3<10^\{\-3\}Selective stress178\.4%\+0\.114%<10−3<10^\{\-3\}\-0\.105%<10−3<10^\{\-3\}
### G\.3Synthetic Update\-Efficiency Diagnostics
Table[6](https://arxiv.org/html/2607.18899#A7.T6)reports diagnostics that are not captured by the aggregate adaptive\-policy table\. It measures whether Black\-Mamba allocates updates selectively across the stream\. For each synthetic scenario, we compare the Black\-Mamba update rate in the easiest and hardest segment quartiles, where segment difficulty is measured by segment MSE\. The positive correlations and hard/easy update\-rate ratios show that the gate is not merely reducing updates uniformly: it increases update intensity when the stream becomes harder\.
The heatmaps in Figure[2](https://arxiv.org/html/2607.18899#A7.F2)visualize the same behavior over time\. The update\-rate heatmap shows that Black\-Mamba remains sparse in easier regions but increases update frequency in difficult segments\. The relative\-MSE heatmap shows that these difficult regions are not uniformly distributed across the stream, which is precisely the setting in which a selective policy is meaningful: the model should not pay the cost of continuous adaptation when the stream is locally stable, but should become more active when mismatch accumulates\.
The last two columns of Table[6](https://arxiv.org/html/2607.18899#A7.T6)report how often Black\-Mamba has lower MSE than the continuous\-update adapter at segment and rolling\-window level\. These counts are especially informative for the selective\-update stress stream, where Black\-Mamba wins 18/20 segments and 384/449 rolling windows\. This supports the intended mechanism: transient or corrupted errors need not be written immediately, while persistent mismatch still accumulates enough evidence to trigger adaptation\.
Finally, Figure[3](https://arxiv.org/html/2607.18899#A7.F3)relates update rate to the fraction of the continuous\-update gain over frozen SiMBA captured by Black\-Mamba\. Across the six synthetic scenarios with the frozen SiMBA trace, Black\-Mamba captures98\.9%98\.9\\%of the MSE improvement obtained by continuous updating while using substantially fewer updates\. This is the most direct efficiency interpretation of the synthetic results: Black\-Mamba does not remove the benefit of test\-time adaptation; it obtains almost all of it with a much smaller write budget\.
Table 6:Synthetic selectivity diagnostics\. “Easy” and “hard” refer to the lowest\- and highest\-MSE segment quartiles\. BM wins count segments or rolling windows where Black\-Mamba has lower MSE than the continuous\-update adapter\.

Figure 2:Black\-Mamba temporal diagnostics\. Left: update rate by scenario and segment\. Right: relative segment MSE\. The two panels show that update intensity tends to rise where the stream becomes harder\.Figure 3:Baseline\-capture diagnostic\. In the six synthetic scenarios with a frozen SiMBA trace in the analysis index, Black\-Mamba captures on average 98\.9% of the MSE improvement obtained by continuous updating over frozen SiMBA, while using substantially fewer updates\.
### G\.4Update\-Policy Hyperparameters
Black\-Mamba is adaptive at inference time, but its update policy still depends on hyperparameters that define how evidence is accumulated and when an update is triggered\. In our experiments, these parameters are not fixed from arbitrary constants alone: the trigger calibration is selected on the validation stream, while the leak controls the time scale over which surprisal evidence persists\. This is important because the update gate is itself part of the deployed system\. It determines which errors are treated as transient noise and which errors are interpreted as evidence of persistent drift\.
This also introduces a slower form of aging\. A frozen forecasting model can become obsolete when the data\-generating process changes, but an adaptive model can still inherit assumptions from the validation period through its update policy\. If the validation stream underestimates or overestimates the drift intensity, noise level, or regime persistence of the deployment stream, the gate may become too conservative or too reactive\. In this sense, Black\-Mamba reduces the need to continuously retrain the forecasting model, but it does not remove the need to monitor whether the update policy remains calibrated to the operational domain\.
This limitation is also an opportunity for domain\-specific deployment\. In domains where practitioners have prior knowledge about drift time scales, such as network traffic, recommender systems, information retrieval logs, energy demand, financial streams, or sensor networks, the leak and trigger calibration can be tied to meaningful operational frequencies\. For example, one may ask whether the update\-policy calibration should be refreshed daily, weekly, after detected regime changes, or only when validation\-style monitoring shows that the gate is under\- or over\-triggering\. This refresh schedule is likely to be much cheaper than full model retraining, but it should still be studied explicitly\.
We therefore view update\-policy calibration as a separate layer of adaptation\. The experiments in this paper show that a validation\-calibrated gate can reduce inference\-time writes while preserving most of the benefit of continuous updating, but they do not exhaust the design space of time\-varying gates\. Future work should study how leak, trigger thresholds, and surprisal calibration evolve under long deployments, and how often they must be refreshed relative to full backbone retraining\.
### G\.5Noise and Stress Ablations
The noisy synthetic variants ablate the reliability of the drift signal by adding noise to the gradual, recurrent seasonal, and regime\-plateau streams\. In these settings, the continuous\-update adapter remains slightly better than Black\-Mamba in most MSE and MAE comparisons, consistent with the data construction: noise perturbs the stream, but the underlying drift signal remains dense and continuously informative\. Since the continuous adapter writes at nearly every step, it can exploit frequent small signals more aggressively than a thresholded policy\.
This does not invalidate the proposed update rule\. The claim is not that selective updating must always minimize raw loss when every observation is useful, but that continuous updating pays for marginal gains with a much larger update budget and can become vulnerable when instantaneous errors are unreliable evidence of persistent drift\. The noisy ablations sharpen this trade\-off: even when continuous updating benefits from dense synthetic supervision, Black\-Mamba remains close in accuracy while using substantially fewer updates\.
The selective\-update stress stream tests the opposite regime: long easy regions, transient corrupted bursts, and later persistent difficulty\. This setting matches the failure mode targeted by Black\-Mamba, where not every large error should be written into the adapter\. The result supports leaky surprisal accumulation: transient corruptions can decay without permanent updates, while persistent mismatch still accumulates enough evidence to trigger adaptation\.
### G\.6Concept\-Drift Diagnostics
The drift diagnostics explain why the main text does not claim broad real\-data superiority from online adaptation\. We use a model\-based concept\-transfer probe: a reference predictorf0f\_\{0\}is trained on the initial regime, while a window\-local predictorfwf\_\{w\}is trained on the first half of a later window and evaluated againstf0f\_\{0\}on the second half\. For forecasting windows, we define
Dw=max\(0,RMSE\(f0,w\)RMSE\(f0,val\)−1\),Gw=max\(0,RMSE\(f0,w\)−RMSE\(fw,w\)RMSE\(f0,w\)\),D\_\{w\}=\\max\\left\(0,\\frac\{\\mathrm\{RMSE\}\(f\_\{0\},w\)\}\{\\mathrm\{RMSE\}\(f\_\{0\},\\mathrm\{val\}\)\}\-1\\right\),\\qquad G\_\{w\}=\\max\\left\(0,\\frac\{\\mathrm\{RMSE\}\(f\_\{0\},w\)\-\\mathrm\{RMSE\}\(f\_\{w\},w\)\}\{\\mathrm\{RMSE\}\(f\_\{0\},w\)\}\\right\),and reportconcept\_scorew=max\(DwGw,Gw\)\\mathrm\{concept\\\_score\}\_\{w\}=\\max\(D\_\{w\}G\_\{w\},G\_\{w\}\)\. Thus, drift evidence increases when the train\-regime predictor degrades and a local predictor recovers loss on the same window\.
Among the real forecasting datasets, only Exchange Rate and Traffic are classified as material concept drift\. Exchange Rate is the most severe case, with 6 strong windows and maximum concept score 18\.410; Traffic has 7 strong windows but a smaller maximum concept score of 1\.811\. ETTh1 is weak or inconclusive, while the remaining real datasets are classified as no material concept drift\.
Table 7:Real\-dataset drift diagnostics\.All seven synthetic datasets contain drift by construction; five are material, while the two recurrent variants are weak/inconclusive because recurring regimes reduce persistent degradation\.Similar Articles
PIMSM: Physics-Informed Multi-Scale Mamba for Stable Neural Representations under Distribution Shift
This paper proposes Physics-Informed Multi-Scale Mamba (PIMSM), a state-space architecture that aligns model memory with physical timescales to improve robustness under distribution shift in scientific time series, demonstrating improvements on fMRI and weather forecasting tasks.
ReTAMamba: Reliability-Aware Temporal Aggregation with Mamba for Irregular Clinical Time Series Prediction
Proposes ReTAMamba, a method using reliability-aware temporal aggregation with Mamba for irregular clinical time series prediction, achieving significant AUPRC gains on MIMIC-IV, eICU, and PhysioNet 2012.
MambaLSTM: A Spatio-Temporal Framework for Enhanced Traffic Accident Risk Prediction
The paper proposes MambaLSTM, a framework combining Mamba state-space models and LSTM for spatio-temporal traffic accident risk prediction, addressing noise in feature fusion and global spatial correlation.
Has Anyone Actually Solved Memory Drift?
Discusses the problem of memory drift in AI systems where preferences and facts become outdated but are only appended, leading to conflicting versions and unreliable retrieval.
Attention-based Experience Replay Framework for Continual Learning of Agnostic Time Series Forecasting Models
This paper introduces a novel continual learning framework for time series forecasting that uses attention-guided experience replay to enable models to adapt to new data distributions while avoiding catastrophic forgetting, evaluated on benchmarks and real-world piezometric data.