Recall or Relearn? A Mixture of In-Context Experts for Recurring Concept Drift
Organizations: University of Sydney, Sydney, Australia · Macquarie University, Sydney, Australia · Department of Informatics, University of Oslo, Oslo, Norway · University of Southern Queensland, Toowoomba, Australia ·
Abstract
Tabular foundation models (TFMs) are being applied to Web data streams such as network intrusion detection, where they adapt by updating the labelled rows of their context without retraining. When a past concept returns after leaving the context, a TFM faces a recall-or-relearn decision between restoring stored rows of the concept and relearning it from new labels. We propose MICE (Mixture of In-Context Experts), a training-free learner that cuts the stream into segments at detected changes. It merges a closed segment into a stored context when the TFM's estimated additional error on the segment is within a tolerance, under a capacity limit on stored contexts. A fast level weights the stored contexts and first-in-first-out (FIFO) windows by the log-loss of their predictions on the last labelled batch. We show that, with pure stored contexts and a margin condition, this fast level gains over relearning, in expected accuracy, the normalised positive area between the stored context's accuracy and the TFM's learning curve, up to a first-batch term. A slow level mixes the fast level's prediction with that of the FIFO window of the last labelled rows and bounds the discounted half-Brier regret of MICE against this window at every time. Learning curves measured beforehand predict the ordering of the observed recall gains. MICE outperforms reset, which empties the context at detected drifts, on grid streams with random boundary phases. Merging keeps fewer experts than pools that store every segment, and with fixed segmentation a time-matched snapshot pool matches MICE on the shifted grid. On real streams, MICE has the highest mean accuracy of all policies we compare.
Figures & tables
| Real streams (29) | Controlled grid (24) | Gen. (30) | Indep. (9) | ||||||||||
| Policy | Acc. | F1 | AUC | ECE | Brier | Worst | Acc. | F1 | AUC | ECE | Brier | Acc. | Acc. |
| Trained stream learners | |||||||||||||
| ARF ( Gomes et al., 2017 ) | 73.4 | 58.4 | 85.4 | 6.0 | 18.7 | 37.5 | 67.7 | 65.6 | 83.8 | 11.2 | 22.9 | 88.0 | 98.39 |
| SRP ( Gomes et al., 2019 ) | 76.6 | 62.3 | 87.5 | 6.0 | 16.7 | 19.8 | 69.5 | 68.1 | 84.7 | 8.8 | 21.6 | 86.4 | 98.57 |
| HAT ( Bifet and Gavaldà, 2009 ) | 64.3 | 51.1 | 79.1 | 16.5 | 27.4 | 49.6 | 51.4 | 49.4 | 74.5 | 13.3 | 32.1 | 79.2 | 97.93 |
| Leveraging Bagging ( Bifet et al., 2010 ) | 72.4 | 57.3 | 85.9 | 5.1 | 19.1 | 34.6 | 62.0 | 60.6 | 82.4 | 7.2 | 24.9 | 85.9 | 98.39 |
Appendix figures & tables7 assets
Supplementary material from the paper’s appendix.
Appendix
| Symbol | Meaning |
|---|---|
| a row and its label | |
| , | batch size (100 rows), context budget (1000 rows) |
| , | a context, the stored context |
| the frozen TFM | |
| , | concepts |
| risk on of the TFM given |
| Features, classes, concepts | , 4, 3 |
|---|---|
| Centroids | 5, 30, 100 with |
| Weights | , normalised |
| Class of centroid in concept | , independent |
| Noise | isotropic Gaussian, s.d. 0.15 |
| Block length , cycles | 500 or 2000 rows, 3 |
| Batch size, | 100, 1000 rows |
Concept Drift
Concept drift is change over time in the relationship between data and target outcomes, which can erode the accuracy of deployed models.
See all 91 papers