[Paper Review] Online Continual Learning Without the Storage Constraint
This paper proposes a computationally efficient, storage-unconstrained online continual learning method using an approximate kNN classifier with a fixed, pretrained feature extractor. By leveraging kNN's ability to adapt instantly to new data while retaining all past examples without forgetting, the method achieves over 20% higher accuracy than state-of-the-art methods on large-scale benchmarks like CLOC (39M images, 712 classes) and CGLM (580K images, 10,788 classes), with significantly reduced computational and storage costs.
Traditional online continual learning (OCL) research has primarily focused on mitigating catastrophic forgetting with fixed and limited storage allocation throughout an agent's lifetime. However, a broad range of real-world applications are primarily constrained by computational costs rather than storage limitations. In this paper, we target such applications, investigating the online continual learning problem under relaxed storage constraints and limited computational budgets. We contribute a simple algorithm, which updates a kNN classifier continually along with a fixed, pretrained feature extractor. We selected this algorithm due to its exceptional suitability for online continual learning. It can adapt to rapidly changing streams, has zero stability gap, operates within tiny computational budgets, has low storage requirements by only storing features, and has a consistency property: It never forgets previously seen data. These attributes yield significant improvements, allowing our proposed algorithm to outperform existing methods by over 20% in accuracy on two large-scale OCL datasets: Continual LOCalization (CLOC) with 39M images and 712 classes and Continual Google Landmarks V2 (CGLM) with 580K images and 10,788 classes, even when existing methods retain all previously seen images. Furthermore, we achieve this superior performance with considerably reduced computational and storage expenses. We provide code to reproduce our results at github.com/drimpossible/ACM.
Motivation & Objective
- Address the gap in online continual learning research that focuses on storage constraints rather than computational budgets, which are the primary bottleneck in real-world systems.
- Investigate whether large-scale online continual learning is feasible when storage is no longer a limiting factor, especially in compute-constrained environments.
- Develop a practical, scalable, and efficient continual learning system that maintains high accuracy, rapid adaptation, and perfect memory retention.
- Demonstrate that a simple kNN classifier with a fixed pretrained feature extractor can outperform complex gradient-based methods on large-scale, long-tailed, and concept-drifting datasets.
- Show that computational efficiency and real-time inference are achievable even over decades of continuous data streams, making the approach viable for long-term deployment.
Proposed method
- Use an approximate kNN classifier (ACM) that stores all past features and labels, enabling zero forgetting and instant adaptation to new data.
- Integrate a fixed, pretrained deep neural network (e.g., ResNet50) as a feature extractor, avoiding the need to fine-tune or retrain the backbone.
- Leverage the logarithmic computational complexity of approximate kNN algorithms (e.g., FAISS) to maintain low inference overhead despite massive data storage.
- Update the kNN model incrementally with each incoming sample using explicit insert and retrieve operations, enabling per-sample adaptation.
- Ensure consistency and stability by relying on the inherent properties of kNN: no stability gap, no forgetting, and logarithmic scaling of computation.
- Evaluate the system under realistic computational budgets, using wall-clock time measurements to validate real-time feasibility on large-scale data streams.

Experimental results
Research questions
- RQ1Can online continual learning be significantly improved when storage is no longer a constraint, and computational cost is the primary bottleneck?
- RQ2To what extent can a simple kNN classifier with a fixed feature extractor outperform complex, gradient-based continual learning methods on large-scale, long-tailed, and concept-drifting datasets?
- RQ3How does the computational overhead of maintaining a full data store scale with dataset size, and can it support real-time inference over extended deployment periods?
- RQ4Does the kNN-based approach enable rapid adaptation to distribution shifts and single-sample learning, which are critical for real-world continual learning?
- RQ5Can a system that stores all data and never forgets achieve superior performance even when compared to methods that retain all previous data, under the same computational budget?
Key findings
- The proposed ACM method outperforms existing state-of-the-art methods by over 20% in accuracy on the CLOC (39M images, 712 classes) and CGLM (580K images, 10,788 classes) benchmarks, even when those methods store all previous data.
- The method achieves a maximum inference overhead of only 5 milliseconds per sample for 256-dimensional features, resulting in a total inference cost of ~15 ms per sample on a 16-core CPU—compatible with real-time 30 FPS video processing.
- The system can sustain real-time operation for up to 71 years on a single 16-core CPU server, with annual storage costs estimated at only $20, demonstrating long-term practicality.
- Ablation studies show that removing the kNN classifier leads to a 10–30% drop in performance, confirming that kNN is the primary driver of rapid adaptation and high accuracy.
- The method maintains consistent performance across different backbone architectures, indicating that kNN’s advantages are robust and not dependent on the specific feature extractor.
- The system achieves perfect memory retention: previously seen data is never forgotten, and re-queries yield the same label, ensuring consistency and stability.

Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.