A Temporal Algebraic Framework for Data Stream Evaluation Under Delayed Labels and Distribution Shifts

Ronaldo C. Prati, Elaine Ribeiro de Faria
11/16/2026
cs.LGcs.AIcs.DB

No confident code implementation found for this paper.

Abstract

In data streams, labels often arrive late or only for some instances, class prevalence drifts, and rare classes vanish from short windows. Standard evaluation then confuses a degraded decision boundary with a change in prevalence, and is biased when labels are delayed or selected by the model.

Show full abstract

We extend an algebraic framework that obtains pooled (micro) and per-class (macro) measures from one confusion matrix to streams, weighting the counts in time by exponential fading or a sliding window; the update costs O(m^2) per step, whatever the stream length, and each pooled measure stays a weighted combination of the per-class ones. Delayed and selective feedback enter as an observation mask: until its label arrives, an instance is counted with the model's calibrated class probabilities, and the bias of this interim estimate is driven by their calibration error. Audited conventions report no value for a class without verified instances. We separate prior shift from concept drift by monitoring prior-free coordinates (recall and specificity) and attribute a change in a measure to the two sources with a first-order Jacobian decomposition. On synthetic streams and four real datasets, a detector on these coordinates with a memory per class raises no excess false alarms under label shift, unlike the Jacobian alarm and error-rate detectors. The correction for delayed labels recovers recall in some real settings and is only partial for precision, specificity and F1. Twenty-five statements are checked in Lean 4, and the code is in the aggmetrics package.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. Any repos shown below are weak matches — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{prati2026temporal,
  title  = {A Temporal Algebraic Framework for Data Stream Evaluation Under Delayed Labels and Distribution Shifts},
  author = {Ronaldo C. Prati and Elaine Ribeiro de Faria},
  year   = {2026},
  eprint = {2611.21914},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2611.21914v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2611.21914.svg)](https://codeofpaper.com/paper/2611.21914)

Discussion