Posteriors That Age: Delay-Aware Bayesian Updating for Chronologically Split Data

Models deployed on security or financial data are trained on the past and asked to predict a future that keeps drifting away. On the Android malware benchmark LAMDA, a gradient-boosted classifier falls from 97.49% F1 on data from its own training years to 47.24% on data four or more years later. Sequential Bayesian updating is the textbook answer to learning from a stream. The model keeps a probability distribution over its parameters, and each period's posterior becomes the next period's prior. That recursion was built for continual learning, where the goal is to remember old tasks. In a chronological deployment the goal is to forecast, and old evidence should count for less as it ages. Deployment adds a second wrinkle: labels arrive late, 38 days in one bank's pipeline. The belief a model uses today was therefore formed from data that is already stale.

This note proposes treating that staleness explicitly. Between the moment a posterior is formed and the moment it is used, the posterior should widen, the same way a Kalman filter's uncertainty grows between observations. How fast it widens should be set online, with no hindsight validation set, from how surprising each newly arrived batch of labels is under the aged belief. A single mechanism then handles three things together: gradual drift, sudden structural breaks such as the 2014 DNS traffic jump in AnoShift, and label delay.

Core Claim

Sequential Bayesian updating on real chronological streams needs a time-transition step whose strength scales with elapsed time and is estimated online. Without this step, recursive updating over-anchors to obsolete years. That is the risk flagged by the finding in On the Impact of Industrial Delays when Mitigating Distribution Drifts that full-history retraining is often worse than recent-window retraining. With the step, the posterior should beat both fixed sliding windows and detector-triggered retraining. The advantage should be largest where the drift rate or the label delay changes over the stream, because there a window size or forgetting rate fixed in advance is wrong for part of the time.

Concretely, let $q_s(\theta)$ be the approximate posterior over parameters $\theta$ built from labels available up to time $s$. To predict at time $t = s + d$, where $d$ is the label delay, we use an aged belief formed by mixing the posterior with the initial broad prior $\pi_0$:

$$\tilde q_{t}(\theta) = (1-\gamma_{d})\, q_s(\theta) + \gamma_{d}\, \pi_0(\theta), \qquad \gamma_d = 1-(1-\rho)^{d}.$$

Here $\rho$ is a per-step probability that the world has changed. It compounds over the $d$ steps of delay; this form is the change-point prior of Learning in Volatile Environments With the Bayes Factor Surprise iterated over $d$ steps.

When the labels $(X_s, Y_s)$ for time $s$ finally arrive, we compute the Bayes factor surprise. This is the ratio of how well the initial prior explains the batch to how well the aged belief explains it:

$$S_{BF} = \frac{p(Y_s \mid X_s, \pi_0)}{p(Y_s \mid X_s, \tilde q_{s})}.$$

A large value means the old belief is failing. The surprise then sets how much the update resets toward $\pi_0$, and it also feeds an online estimate of $\rho$. For the deep model, the mixture is implemented as a covariance inflation of a Laplace posterior, which keeps the posterior a single Gaussian rather than a growing mixture.

Research Program

The method reuses existing machinery. For the posterior we use the Kronecker-factored Laplace approximation from Online Structured Laplace Approximations for Overcoming Catastrophic Forgetting. That work captures correlations between weights within each layer and held accuracy over 50 synthetic tasks. It relied on a temperature factor chosen by retrospective validation, which our online estimate of $\rho$ replaces.

The surprise-modulated reset comes from the same volatile-environments paper. Its update rules (VarSMiLe, a message-passing variant, and particle filtering) were derived and tested only for one- and two-dimensional exponential-family models. For a network we compute the surprise from predictive likelihoods under a linearized network, so the two evidence terms are cheap Gaussian integrals rather than full posterior integrals.

This design is deliberately the opposite of Temporal-Difference Variational Continual Learning. TD-VCL regularizes each update against a discounted history of older posteriors. That fights accumulated approximation error, but it anchors harder to the past. We expect this to hurt under the permanent breaks that real streams contain, and we test it directly.

The work has three parts. First, a delay-aware streaming protocol. We cut LAMDA, AnoShift, and the public financial streams used in the industrial-delays paper (Lending Club and Electricity) into monthly or weekly steps. Each step exposes inputs immediately and releases labels $d$ steps later, following the formulation of Label Delay in Online Continual Learning. We report both the IID/NEAR/FAR horizons of LAMDA and AnoShift and the Area Under Time metric of TESSERACT. For malware test windows we keep TESSERACT's realistic 10% malware base rate.

Second, the aged-posterior learner with online estimation of $\rho$.

Third, an analysis of when aging helps. We relate the gain over a fixed window to the variability of the per-step surprise sequence. The prediction is that the gain should vanish when drift is stationary in rate.

AnoShift is unsupervised, so there the likelihood is a density model over traffic features and no labels are delayed. It serves as a clean test of break detection alone, without the delay component.

Baselines

The naive reference is a network trained once on the initial years and never updated. It is reported next to the static LightGBM of LAMDA, which reaches 59.48% F1 on NEAR and 47.24% on FAR with a 64.10% FAR false negative rate. Beating a frozen model is not the claim. It only calibrates how much drift each benchmark contains.

The strongest competitor on the practical question is detector-triggered retraining with a Hoeffding-bound drift detector on the error rate (HDDM-W). This is the Pareto-best of the 16 schedules in the industrial-delays study, where it needed 32 retrainings against 136 for aggressive periodic retraining. The file reports no Matthews correlation value for it that we can quote, so we re-run it ourselves. It receives the same delayed label stream and the same network architecture as our method. We also run a LightGBM version, since tree ensembles are the incumbent on tabular data.

For label delay specifically, the strongest method is Importance Weighted Memory Sampling (IWMS) from the label-delay paper. It replays buffered examples weighted by their similarity to the current unlabeled batch. It is run with a matched buffer size and matched gradient steps per stream step.

On LAMDA we additionally cite the concept-drift active-learning result of 43% F1 with a 400-sample labeling budget, reported in LAMDA. That setting uses fewer labels than ours, so it is a reference point rather than a head-to-head comparison.

The Bayesian comparators, all given the identical delayed stream, are:

  • the same Kronecker-Laplace learner with plain recursion ($\rho=0$);
  • TD-VCL;
  • Variational Continual Learning with a small coreset, i.e. a stored subset of past examples.

The ablation that isolates the key ingredient is the aged posterior with a fixed $\rho$. This fixed $\rho$ is chosen by grid search with full hindsight on the test stream, which is an unfair advantage we grant deliberately.

Every method gets the same per-step compute cap and the same tuning budget, measured in configurations evaluated on the 2013–2014 split only, except for the deliberately oracle-tuned ablation. Beating a baseline means higher Area Under Time and higher FAR F1, averaged over five seeds with non-overlapping confidence intervals. On the financial streams the metric is Matthews correlation coefficient at equal or fewer model updates.

Why not just…?

Why not just use a sliding window of the right size? This is the most serious threat. The industrial-delays study found recent windows beat full history, and a tuned window is essentially exponential forgetting with a hard cutoff. That same study also found that a window tuned for one delay degrades when the delay changes. So we run a delay-switch experiment: the label delay changes partway through the stream, from 1 to 6 months on LAMDA, and from short to long on Lending Club. If a hindsight-tuned window matches our method both on constant-delay and on delay-switch streams, the Bayesian machinery adds nothing for prediction. We would then reduce the claim to uncertainty quality alone.

Why not just fine-tune with exponentially down-weighted old data? Aging the posterior with a fixed $\rho$ is close to this. The fixed-$\rho$ oracle ablation settles the question. If online surprise-driven estimation of $\rho$ does not beat the best fixed rate chosen in hindsight on streams that contain a known break, the surprise component is unnecessary. We report that outcome honestly rather than tuning around it.

Why not just retrain when a drift detector fires? Detector-triggered retraining is cheap and was the best schedule studied on real financial data. Its weakness is that each retrain either discards the past or keeps all of it. Our method moves continuously between those extremes, and moves by an amount set by the surprise signal. The HDDM-W comparison at matched update counts directly tests whether that continuity pays off.

Why not just use IWMS replay under delay? IWMS recovers the whole delay gap on CGLM at delay 10 but helps only marginally on Yearbook. It also produces no uncertainty. We compare against it on accuracy. We additionally compare calibration error on the FAR split and the false negative rate at 5% abstention, which is where aged, wider posteriors should flag unfamiliar malware families.

Proposed Experiments

The primary experiment runs every method on LAMDA's monthly stream from 2016 to 2025 with delays of 0, 1, 3, and 6 months. It reports Area Under Time, NEAR and FAR F1, false negative rate, and expected calibration error.

A second experiment replays AnoShift unsupervised. It checks whether $S_{BF}$ on the density model spikes at the 2014 DNS break, and whether the reset recovers ROC-AUC faster than LOF, which falls from 91.50 to 34.96 on FAR in AnoShift, and faster than the distillation variant reported there.

The delay-switch experiment on Lending Club and Electricity measures Matthews correlation against the number of model updates.

As a sanity check that the time-transition step does not harm the continual-learning setting, we also run PermutedMNIST-Hard. There forgetting should be nearly zero, and online estimation should drive $\rho$ toward zero. The decisive result would be the aged posterior beating both HDDM-W retraining and the oracle-tuned fixed rate on the delay-switch and structural-break streams, while tying on stationary ones. If it only ties everywhere, the proposal's predictive claim is refuted.