Sample Weight Estimation Using Meta-Updates for Online Continual Learning

Hamed Hemati, Damian BortharXiv 2024 · DOI

Introduction

Online Continual Learning (CL) requires models to learn from a continuous stream of data without forgetting previously acquired knowledge, a phenomenon known as catastrophic forgetting. A common strategy is Experience Replay (ER), which stores a subset of past data in a buffer to be interleaved with new samples. However, standard ER typically assigns equal importance to every sample in a mini-batch. In real-world scenarios, data streams often contain noise, mislabeled samples, or redundant information that can hinder learning and accelerate forgetting. This paper introduces OMSI (Online Meta-learning for Sample Importance), a method that dynamically estimates the importance of each sample to prioritize high-quality data.

The OMSI Framework

OMSI treats sample weights as meta-parameters optimized through a bi-level optimization loop. For each incoming mini-batch, the model performs the following steps:

  1. Inner Update (Simulation): The model simulates a training step on a mini-batch $X_i$ (comprising new stream data and old buffer data) using initial uniform weights. This produces a temporary model state.
  2. Meta-Loss Calculation: This temporary model is evaluated against a "proxy" set of samples drawn from the memory buffer, which serves as a representative of the cumulative data distribution observed so far.
  3. Meta-Update: The gradient of the meta-loss with respect to the initial sample weights is calculated. The weights are then updated to down-weight samples that negatively impact performance on the proxy set.
  4. Final Parameter Update: The actual model parameters are updated using the original mini-batch, weighted by the newly optimized importance values.
Overview of the OMSI bi-level optimization process for sample weight estimation.

Crucially, OMSI is task-agnostic, requiring no explicit signals regarding task boundaries, making it highly suitable for seamless online learning.

Experimental Evaluation

The effectiveness of OMSI was tested across several benchmarks to evaluate its versatility and robustness:

  • Noisy Split-MNIST: Evaluates resilience by introducing random label noise into specific mini-batches.
  • Split-CIFAR-100: Tests performance on more complex image classification tasks.
  • Split-MetaAlbum-V1: A diverse benchmark spanning nine distinct domains (e.g., microscopy, plant diseases) to assess cross-domain adaptation.

Results and Discussion

OMSI demonstrates significant performance gains over standard ER, particularly in challenging environments where data quality is compromised.

Resilience to Noise

In experiments with 50% label noise on Split-MNIST, OMSI achieved a learning accuracy of 88.6%, a dramatic improvement over the 48.2% achieved by standard ER. This suggests that uniform weighting is a sub-optimal heuristic when data quality is inconsistent. 3D visualizations of the meta-parameters confirm that OMSI successfully identifies and assigns near-zero weights to noisy samples while maintaining high weights for clean data, effectively acting as an automatic noise filter.

Performance metrics and 3D visualization of sample weights in noisy vs. normal batches.

Memory and Generalization

On the standard Split-MNIST benchmark, OMSI improved Retained Accuracy—the ability to remember old tasks—by approximately 14.8% over ER. Furthermore, on the complex MetaAlbum benchmark, which tests adaptation across very different domains, OMSI outperformed established strategies like MER, DER, and AGEM. It reached the highest scores in both learning (77.3%) and retained accuracy (68.1%). Even on difficult datasets like CIFAR-100, OMSI provided a consistent ~1% boost in performance over standard replay methods.

Efficiency and Practicality

A key finding for real-world deployment is that a single inner update ($K=1$) is sufficient to capture most of the performance benefits. This efficiency is crucial for online learning applications where computational resources and time are limited. By allowing the model to "learn how to weight," it becomes significantly more robust to the messy reality of streaming data without requiring excessive overhead.

Conclusion

OMSI provides a robust mechanism for autonomous sample selection in online continual learning. By leveraging the memory buffer as a meta-objective, the model learns to filter out harmful data dynamically. While the method is sensitive to buffer representation and involves additional computational overhead for meta-updates, its ability to handle "messy" real-world data streams represents a significant step forward for robust CL systems. Future research may explore alternative meta-objectives beyond cross-entropy loss to further refine the definition of sample importance.

Summary updated

BibTeX
@misc{hemati2024sample,
  author = {Hamed Hemati and Damian Borth},
  title = {{Sample Weight Estimation Using Meta-Updates for Online Continual Learning}},
  year = {2024},
  eprint = {2401.15973},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2401.15973},
}
Figure