Class Incremental Online Streaming Learning

Soumya Banerjee, Vinay Kumar Verma, Toufiq Parag, Maneesh Singh, Vinay P. Namboodiri

Teaching machine learning models to learn continuously from a stream of data—one example at a time, without revisiting old samples—is a significant challenge. This paper introduces CIOSL (Class Incremental Online Streaming Learning), a framework designed for "single-pass" learning where data arrives sequentially and cannot be revisited.

The Challenge of Online Streaming

Most continual learning research focuses on Incremental Batch Learning (IBL), where models can iterate over batches of new data multiple times. In contrast, real-world scenarios, such as a robot exploring a new environment, involve an Online Streaming setting.

The streaming learning paradigm: data arrives sequentially and is processed in a single pass.

This setting imposes three strict constraints:

  1. Single-Pass: You see an image once, and then it is gone. No looping or multi-epoch training.
  2. Non-i.i.d. Data: Real-world data is temporally correlated (e.g., a robot seeing only chairs for ten minutes), which typically causes "catastrophic forgetting" of previous categories.
  3. Anytime Evaluation: The model must be ready to be tested at any moment, not just after a specific training phase ends.

The CIOSL Framework

CIOSL splits the neural network into a frozen feature extractor (pre-trained on ImageNet) and a plastic Bayesian Neural Network (BNN) classifier. The framework relies on three main components to manage the streaming constraints:

Dual Regularization

To prevent the weights from shifting too much and causing forgetting, CIOSL uses two types of "anchors":

  • Explicit (Bayesian): An online Bayesian framework that treats the previous model's weights as a "prior" for the new update.
  • Implicit (Functional): Knowledge Distillation that forces the new model to produce similar outputs to the old model for samples stored in memory.

Embedding Memory

Instead of storing raw, bulky images in the replay buffer, CIOSL stores embeddings (the mathematical essence of the image). This saves massive amounts of memory and avoids the need to re-process images through the early layers of the network during replay.

Smart Buffer Management

The authors introduced two novel strategies to ensure the most informative data is retained:

  • LAWRRR (Loss-Aware Weighted Random Replacement): A reservoir strategy that weighs samples by their loss, making it more likely to keep samples the model is currently struggling with.
  • UAPN (Uncertainty-Aware Positive-Negative Sampling): For replay, it selects a mix of samples the model is very sure about and samples it is very uncertain about, ensuring both stability and new learning.

Experimental Results

The researchers tested CIOSL against benchmarks like CIFAR, ImageNet100, and iCubWorld 1.0. The latter is particularly important as it contains video sequences mimicking how a robot perceives the world.

Performance comparison ($\Omega_{all}$ results) across Class-iid and Class-instance settings.

CIOSL consistently outperformed strong baselines like REMIND, TinyER, and AGEM. On the iCubWorld dataset, CIOSL achieved an improvement of 6.26% to 8.58% over state-of-the-art methods. Whether the data was shuffled (i.i.d.) or arrived class-by-class, CIOSL remained stable, whereas other methods saw their performance drop significantly when faced with class-based correlations.

Limitations and Future Work

The method currently relies on a pre-trained feature extractor. If the model encounters data wildly different from the pre-training set (e.g., medical X-rays after natural image training), the "frozen" part of the network might not provide useful features. Future work may involve "unfreezing" parts of the feature extractor in a controlled way to allow the model to adapt to entirely new domains.

Summary updated

BibTeX
@misc{banerjee2021class,
  author = {Soumya Banerjee and Vinay Kumar Verma and Toufiq Parag and Maneesh Singh and Vinay P. Namboodiri},
  title = {{Class Incremental Online Streaming Learning}},
  year = {2021},
  eprint = {2110.10741},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2110.10741},
}
Figure