VERSE: Virtual-Gradient Aware Streaming Lifelong Learning with Anytime Inference

Soumya Banerjee, Vinay Kumar Verma, Avideep Mukherjee, Deepak Gupta, Vinay P. Namboodiri, Piyush Rai

Abstract

Lifelong learning or continual learning is the problem of training an AI agent continuously while also preventing it from forgetting its previously acquired knowledge. Streaming lifelong learning is a challenging setting of lifelong learning with the goal of continuous learning in a dynamic non-stationary environment without forgetting. We introduce a novel approach to lifelong learning, which is streaming (observes each training example only once), requires a single pass over the data, can learn in a class-incremental manner, and can be evaluated on-the-fly (anytime inference). To accomplish these, we propose a novel virtual gradients based approach for continual representation learning which adapts to each new example while also generalizing well on past data to prevent catastrophic forgetting. Our approach also leverages an exponential-moving-average-based semantic memory to further enhance performance. Experiments on diverse datasets with temporally correlated observations demonstrate our method's efficacy and superior performance over existing methods.

Introduction

Continual Learning (CL) research often assumes idealized conditions: large data batches, multiple passes, or dedicated fine-tuning phases before evaluation. However, real-world applications like robotics or autonomous drones encounter data as a continuous, non-shuffled stream. In this Streaming Lifelong Learning (SLL) setting, an agent might see the same object from dozens of slightly different angles in a row, leading to high temporal correlation.

Temporally correlated observations from the iCub dataset, illustrating the challenge of learning from sequential, non-i.i.d. data streams.

SLL presents three primary hurdles:

  1. Catastrophic Forgetting: New information often overwrites previously learned knowledge.
  2. Temporal Correlation: Sequential data lacks the independent and identically distributed (i.i.d.) property, biasing the model toward recent observations.
  3. Anytime Inference: The model must remain ready to make predictions at any point during the learning process without requiring a separate "rehearsal" phase.

Methodology: The VERSE Framework

The proposed VERSE (Virtual GradiEnt AwaRe Streaming LEarning) framework addresses these challenges through three core components:

Virtual Gradient Regularization (VGR)

VGR is the central innovation of VERSE. Instead of a direct update using a new sample, the system performs a "virtual" update to create a temporary model ($\theta^v$). This virtual model is evaluated against a subset of historical data from a buffer. The final global update is then derived from the gradient of the virtual model's performance, ensuring that learning new samples inherently minimizes the degradation of past knowledge.

Dual-Memory System

  • Tiny Episodic Memory (TEM): VERSE maintains a small buffer (often <5% of the dataset) using reservoir sampling and class balancing to store diverse past examples.
  • Semantic Memory (SEM): Inspired by biological brains, SEM maintains a stable "long-term" representation using an Exponential Moving Average (EMA) of the primary model's weights. This acts as a teacher for self-distillation, stabilizing decision boundaries against the volatility of single-sample updates.

Experimental Evaluation

The authors evaluated VERSE on benchmarks designed for temporal coherence: iCub1.0, iCub28, CoRe50, and ImageNet100. Testing spanned various orderings, with "Streaming Class-Instance" being the most difficult, where all instances of a class appear sequentially.

Key Results

Performance was measured using the $\Omega_{all}$ metric, comparing the streaming model to an offline baseline with access to the full dataset.

  • State-of-the-Art Performance: On the iCub1.0 class-instance task, VERSE outperformed the leading competitor, REMIND, by 8.6%.
  • Efficiency: VERSE achieves these results with significantly smaller buffers than previous methods. For instance, it requires only 230 samples for iCub, whereas methods like REMIND often utilize up to a million.
  • Anytime Readiness: Unlike methods like GDumb, which require a fine-tuning phase, VERSE maintains high accuracy throughout the stream, fulfilling the requirement for anytime inference.

Conclusion and Future Work

VERSE demonstrates that virtual gradient awareness combined with a dual-memory architecture can effectively mitigate catastrophic forgetting in streaming environments. While the current implementation utilizes a pre-trained ResNet-18 backbone, future work may explore training entire networks from scratch or applying these principles to multi-modal data. The "look-ahead" nature of virtual gradients provides a robust path forward for agents operating in dynamic, real-world environments.

Summary updated

BibTeX
@inproceedings{banerjee2024verse,
  author = {Soumya Banerjee and Vinay Kumar Verma and Avideep Mukherjee and Deepak Gupta and Vinay P. Namboodiri and Piyush Rai},
  title = {{VERSE: Virtual-Gradient Aware Streaming Lifelong Learning with Anytime Inference}},
  booktitle = {IEEE International Conference on Robotics and Automation},
  year = {2024},
  doi = {10.1109/icra57147.2024.10610702},
}
Figure