Online Continual Learning Without the Storage Constraint

Ameya Prabhu, Zhipeng Cai, Puneet K. Dokania, Philip H. S. Torr, Vladlen Koltun, Ozan Sener · DOI

Introduction

In the field of Online Continual Learning (OCL), the prevailing paradigm has long centered on the "storage constraint." Researchers have focused on developing sophisticated buffer management strategies to decide which small subset of data to retain to prevent catastrophic forgetting. However, this paper challenges that fundamental assumption by highlighting a shift in economic realities: storage has become remarkably inexpensive, while computation remains a significant bottleneck.

For instance, storing the 39 million images of the CLOC dataset costs approximately $100 today, whereas training a standard model on that same data using cloud infrastructure can exceed $2,000. This suggests that for many real-world applications, from edge devices to large-scale servers, we are "compute-constrained" rather than "storage-constrained." The primary challenge is not deciding what to store, but how to efficiently learn from and retrieve information from an ever-growing history of data.

The Adaptive Continual Memory (ACM) Framework

To address this, the authors propose Adaptive Continual Memory (ACM), a system that prioritizes computational efficiency and information retention over storage minimization.

The ACM workflow: (1) Incoming images are processed by (2) a fixed feature extractor. (3) Features are stored and retrieved using approximate kNN. (4) Predictions are made, (5) labels are revealed, and (6) new samples are inserted into memory.

ACM consists of two primary components:

  1. A Fixed Feature Extractor: A pretrained backbone (e.g., ResNet50) that maps images into a high-dimensional embedding space. By keeping the weights fixed, the system avoids the optimization loops that lead to catastrophic forgetting.
  2. Approximate k-Nearest Neighbors (HNSW): A memory bank that stores every feature vector encountered. It utilizes the Hierarchical Navigable Small World (HNSW) algorithm to perform lookups and insertions in logarithmic time ($O(\log n)$).

This architecture allows the system to scale to tens of millions of samples while maintaining millisecond-level latency for both inference and updates.

Key Advantages

ACM introduces several properties that distinguish it from traditional gradient-descent-based OCL methods:

  • Consistency and Retention: Unlike neural networks that overwrite old knowledge, ACM is "consistent." If a previously seen sample is queried, the system will always retrieve the correct label.
  • Zero Stability Gap: Traditional models often experience a performance dip when transitioning between tasks as they re-optimize. ACM bypasses this "stability gap" entirely because it does not rely on iterative optimization.
  • Instantaneous Learning: The system can incorporate new information from a single sample immediately, whereas gradient-based methods typically require multiple iterations or large batches to integrate new data effectively.

Empirical Evaluation

The authors evaluated ACM on two large-scale datasets: Continual Google Landmarks V2 (CGLM), which features 580,000 images across over 10,000 classes, and Continual LOCalization (CLOC), a massive stream of 39 million images.

Performance comparison on CGLM and CLOC datasets. ACM (cyan) consistently outperforms state-of-the-art replay-based methods in both online accuracy and backward transfer (information retention).

The results demonstrate a significant performance gap. On CGLM, ACM achieved a 35% higher absolute accuracy margin compared to state-of-the-art OCL methods. On the CLOC dataset, ACM showed a 5% improvement in rapid adaptation and a 20% lead in information retention over 39 million updates. Furthermore, the system is exceptionally fast; it can process video at 30 FPS on a standard CPU and is estimated to be capable of running for over 70 years before requiring further optimization.

Conclusion and Future Directions

By rethinking the constraints of continual learning, ACM proves that a simple, non-parametric approach can outperform complex neural architectures when storage is no longer the limiting factor. While the system's performance is currently tied to the quality of its fixed feature extractor, it sets a new benchmark for efficiency and retention. Future research may explore methods to update the feature representations continually without sacrificing the stability and speed that make ACM so effective.

Summary updated

BibTeX
@misc{prabhu2023online,
  author = {Ameya Prabhu and Zhipeng Cai and Puneet K. Dokania and Philip H. S. Torr and Vladlen Koltun and Ozan Sener},
  title = {{Online Continual Learning Without the Storage Constraint}},
  year = {2023},
  eprint = {2305.09253},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2305.09253},
}
Figure