Telling Drift from New Classes by Asking Several Encoders

A deployed image classifier usually faces two kinds of surprise. An old category can change its appearance: "computer" once meant a beige tower and now means a laptop. Or a category the system has never heard of can start appearing. The right responses are opposite. A changed category should have its stored examples refreshed under its old name. A new category needs a new name and someone to label it. Most systems cannot tell the two apart. The concept-drift literature names this separation as open, and single models tend to absorb newcomers into dominant existing classes (Adapting Multi-modal Large Language Model to Concept Drift in the Long-tailed Open World).

This proposal tests one specific claim. Take several differently trained, frozen image encoders, and give each its own memory of labeled example embeddings ("prototypes") keyed by class name rather than by output index. When a cluster of unfamiliar inputs arrives, the encoders will tend to agree on which old class it resembles if it is a drifted version of that class. They will scatter their votes across unrelated classes if it is genuinely new. The point of the ensemble here is to produce this disagreement signal, not to average away errors. The disagreement signal then decides between two maintenance actions on the memory: refresh the prototypes of a drifted class, or open a new class.

Core Claim

Cross-encoder agreement on the nearest stored class, computed over a cluster of low-confidence stream samples, separates "existing class has drifted" from "new class has appeared." It does so better than any single-encoder confidence signal, and better than one encoder built by concatenating the same features. Acting on this signal also keeps a prototype memory from going stale under drift without retraining any backbone.

Let $U$ be a cluster of flagged stream samples, and let $c_m(x)$ be the nearest class key that member $m$ of $M$ encoders assigns to input $x$. The agreement score is

$$A(U) = \max_{c} \frac{1}{M}\sum_{m=1}^{M} \mathbf{1}\left[\operatorname{mode}_{x \in U} c_m(x) = c\right],$$

which is the fraction of members whose majority vote over the cluster lands on the same class. High $A$ with low per-sample similarity is read as drift of class $\arg\max_c$. Low $A$ is read as a novel class. The prediction we test is that $A$ separates the two events substantially better than single-model margin or entropy does.

How This Relates to Prior Work

Three groups of prior work each cover two of the three ingredients.

The first group motivates the problem: continual learning methods for drift that keep a growing class set but use one model. Class-Incremental Experience Replay for Continual Learning Under Concept Drift clusters its replay buffer and reacts to falling cluster purity. It needs labels to measure purity and relies on synthetic label flips. Holistic Continual Learning under Concept Drift with Adaptive Memory Realignment shows the "replay paradox": large buffers hurt once classes drift. It flushes drifting classes after a Kolmogorov-Smirnov test on prediction uncertainty. Both assume a closed head grown in known stages, and neither has to decide whether something is new. We borrow the AMR flush-and-repopulate action and apply it to a prototype memory instead of a training buffer.

The second group supplies the label-flexible machinery: classifiers that score against a replaceable memory of examples. Memory-Modular Classification freezes CLIP and attends over swappable web memory. Image Classifier with Dynamic Set of Known Classes retrieves nearest neighbors per class and rejects samples below a threshold. Visual Recognition with Deep Nearest Centroids replaces the parametric head with centroids. PANDAS discovers new classes by clustering features. All four assume a stationary world and one backbone. MML's authors also report that it degrades under domain gap, which is exactly what drift produces.

The third group is the closest relative on the ensemble side. Diverse Instance-Weighting Ensemble (DiwE) already uses disagreement between members to locate drift, which is why it is the nearest prior. Its disagreement is over which instances look drifted. It is computed by low-dimensional nearest-neighbor learners, and it operates in a fixed label set, so it can never propose a new class. We move disagreement to the level of class identity across heterogeneous deep encoders, and we use it for exactly the decision DiwE cannot make.

The Yang et al. paper also constrains the design. Head-class crowding means the novel-class signal must not rest on a single embedding geometry. That is part of why the members are heterogeneous.

Research Program

The system has $M$ frozen encoders, initially three to four that differ in training objective. Candidates are a vision-language contrastive model, a self-supervised model such as the MoCo-style encoder used in The CLEAR Benchmark, and a supervised ImageNet network. Each member keeps its own prototype memory keyed by class name.

Aggregation works over the union of names. A member that has no entry for a class abstains on it rather than contributing zero probability. This is what lets members hold asynchronous vocabularies, for example when a new class has been registered in one member's memory but not yet in another's.

The stream is processed in windows. Within a window, samples whose fused similarity falls below a threshold are clustered, and $A(U)$ is computed for each cluster. A drift verdict triggers an AMR-style replacement: the oldest prototypes of the implicated class are swapped for the cluster's embeddings in every member. A novel verdict creates a provisional class key from the cluster, which receives a label once a delayed annotation arrives. Ambiguous clusters are held for the next window.

The analysis part asks when the agreement signal works. We will measure how separation varies with the number of members, with how different their training objectives are, with cluster size, and with semantic closeness between the novel class and existing ones. The horse-versus-sheep confusion reported for PANDAS predicts that fine-grained novelty is the hardest case.

Baselines

The do-nothing reference is a single frozen encoder with a prototype memory written once at the start and never updated. This measures how much natural drift costs a frozen metric classifier. It should reproduce CLEAR's finding that accuracy drops on the next time bucket.

The strongest existing method on the drift side is AMR adapted to an open setting. We use the same encoder, a trainable head, a KS test on uncertainty, flushing of flagged classes, and class addition whenever a label for an unseen name arrives. It is the strongest competitor because it already reacts to drift at the class level at low compute. Its paper reports cost below 25% of full relearning while matching its accuracy, but the file gives no per-dataset accuracy, and I found no reported result on Lacuna for AMR accuracy on CLEAR-10. We will therefore run it ourselves with the same encoders, stream, label latency and hyperparameter search budget.

RSB is included as the label-dependent drift reference. Its reported drifting-stream accuracy is above 91%, against 50–60% for standard continual baselines, on its label-flip benchmarks (Class-Incremental Experience Replay). DiwE is run on the same frozen embeddings as the closed-label drift ensemble. Zero-shot prompting of the vision-language member is included as the open-vocabulary reference. On static CUB, MML reports 76.7% against 70.3% for zero-shot CLIP (Memory-Modular Classification).

Three ablations isolate the key ingredient. In the first, the per-member memories are replaced by one memory over concatenated features. In the second, $A(U)$ is replaced by single-encoder agreement across test-time augmentations. In the third, the drift-versus-novel router is replaced by entropy or margin thresholds on the best single member.

The proposal beats these baselines if two things hold. First, its drift-versus-novel area under the ROC curve (AUROC) exceeds every single-encoder and concatenation variant by a margin outside seed variance. Second, its end-to-end next-bucket accuracy matches or exceeds open-AMR at no more than $M$ times the forward-pass cost of one encoder and with no backbone gradient steps.

Why not just…?

Why not just run one encoder with a sliding-window prototype memory and a KS drift test? This is the most serious threat. It inherits AMR's demonstrated behavior and is cheaper by a factor of $M$. It refreshes stale prototypes well, but it has no principled way to decide drift versus novelty beyond a confidence threshold. The Yang et al. crowding result suggests such thresholds misassign newcomers to head classes. The router ablation tests this directly. If entropy or margin matches $A(U)$ on routing AUROC, the ensemble is not justified, and the contribution shrinks to prototype-memory maintenance under drift.

Why not just concatenate the encoders into one bigger embedding? Concatenation keeps all the information but collapses it into one nearest-neighbor decision, which destroys the cross-member vote that $A(U)$ relies on. The concatenation ablation settles whether separation helps. If concatenation plus margin performs equally well, we will report that the benefit comes from feature diversity rather than from disagreement.

Why not just get the disagreement from augmentations or checkpoints of one model? This would be far cheaper, and checkpoint ensembles are a known source of diversity (One Model to Pronounce Them All). Our hypothesis is that views of a single encoder share its blind spots, so they agree wrongly on novel inputs. If augmentation agreement comes within noise of heterogeneous-encoder agreement, we will switch the method to the cheaper signal and say so.

Why not just adapt the backbone at test time instead of keeping it frozen? Test-Time Training with Masked Autoencoders realigns features under input shift. However, updating an encoder silently moves every stored prototype, which breaks the label-flexible memory, the tension MML's freezing is meant to avoid. We will include test-time training on one member as a variant, with prototypes re-embedded at each update. Comparing its accuracy and its compute against memory refresh shows which way the trade-off falls.

Proposed Experiments

The main testbed is CLEAR-10 (The CLEAR Benchmark): eleven classes, ten yearly buckets, and natural drift. We modify the protocol by withholding three classes until later buckets, so the stream contains both natural drift and true class birth with known ground truth. The models are evaluated on the next bucket rather than on held-out data from the same bucket, to avoid the inflated scores CLEAR documents for within-bucket testing.

For controlled drift we use CIFAR100-CD and Tiny-ImageNet-CD from AMR, with half the classes held back as late arrivals. Because their rotations and permutations make drift timing exact, they allow clean routing labels. BIRDS 400 tests fine-grained novelty. Its reported dynamic-addition accuracy of about 93% for ten added classes (Image Classifier with Dynamic Set of Known Classes) serves as a sanity anchor for our memory classifier before streaming begins.

Labels arrive with a fixed delay for a fixed fraction of samples, identical across methods. The metrics are:

  • AUROC for drift versus novel on flagged clusters;
  • next-bucket accuracy on known classes;
  • clustering accuracy on novel classes once named;
  • the number of stale prototypes retained;
  • total forward and backward compute.

The decisive check is the routing AUROC comparison on the withheld-class streams. Heterogeneous-encoder agreement must beat single-encoder margin, concatenated features, and augmentation agreement. If it does not, the core claim is false regardless of end-to-end accuracy. The secondary check is whether correct routing translates into accuracy, measured as the gap between the proposal and open-AMR in the buckets immediately after a withheld class appears, which is where misrouting would hurt most.