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

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

Introduction

In the pursuit of truly autonomous agents, the ability to learn continuously from an environment is paramount. Unlike traditional machine learning models trained on static, shuffled datasets, real-world agents—such as domestic robots or autonomous drones—encounter information as a continuous, temporally correlated stream. This paradigm, known as Streaming Lifelong Learning (SLL), presents a significant challenge: how can a model learn new information without overwriting previously acquired knowledge?

The Challenge of Streaming Lifelong Learning

SLL represents a rigorous subset of Continual Learning, characterized by three primary constraints:

  1. Single Pass: Each data point is observed only once.
  2. Batch Size of One: Data arrives as individual samples rather than batches.
  3. Anytime Inference: The model must remain operational and accurate throughout its lifespan, precluding separate fine-tuning phases.

The fundamental hurdle in this setting is catastrophic forgetting. As a model adapts to a new object or class, the weight updates often degrade its performance on earlier tasks. VERSE (Virtual-Gradient Aware Streaming Lifelong Learning) addresses this by balancing rapid adaptation with long-term stability.

The VERSE Methodology

The VERSE framework introduces a multi-faceted approach to mitigate forgetting while maintaining high plasticity for new data.

Virtual-Gradient Aware Regularization (VGR)

The core innovation of VERSE is the "virtual gradient" update. Rather than immediately updating the primary model weights upon receiving a new sample, the system performs a "test flight." It creates a temporary virtual model ($\theta^v$) and evaluates its performance against a small episodic buffer of past experiences. The final update to the main model is then conditioned on this evaluation, penalizing updates that would lead to significant performance drops on previous data.

Semantic Memory and Self-Distillation

To provide a stable reference for learning, VERSE maintains a Semantic Memory (SEM). This is an Exponential Moving Average (EMA) of the primary model's weights. By using the SEM to generate "soft labels" for data stored in a Tiny Episodic Memory (TEM), the model performs self-distillation. This process ensures that the current model's decision boundaries remain consistent with its historical knowledge, effectively smoothing the learning trajectory.

Datasets and Evaluation

The efficacy of VERSE was tested on several benchmarks designed to simulate real-world streaming conditions, such as iCub1.0, iCub28, and CoRe50. These datasets often utilize a "Class-Instance" ordering, where an agent sees multiple views of a single object before moving to the next. This is significantly more challenging than shuffled data as it maximizes the potential for local minima and forgetting.

Figure 1: Sequential frames from a streaming dataset, illustrating the temporal correlation and class-instance ordering challenges.

Key Results and Insights

VERSE demonstrates state-of-the-art performance across all tested benchmarks. Notably, on the iCub1.0 dataset, it achieved an improvement of up to 8.6% over existing methods like REMIND and ExStream.

Key takeaways include:

  • Stability through Look-ahead: The virtual gradient mechanism acts as a safeguard, preventing aggressive updates from destabilizing the model.
  • Efficiency: VERSE remains computationally viable for edge deployment. Despite the dual-update process, it maintains high accuracy even with a buffer size representing less than 5% of the total data.
  • Anytime Readiness: The model consistently provides high-quality inference throughout the streaming process, approaching the performance of "offline" models that have the luxury of seeing the entire dataset at once.

Conclusion and Future Directions

VERSE provides a robust framework for anytime inference in streaming environments. While it currently relies on a fixed feature extractor and a small episodic buffer, future work may explore end-to-end feature adaptation and generative replay to eliminate the need for raw data storage. By bridging the gap between static training and continuous real-world learning, VERSE moves us closer to truly adaptive AI agents.

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