Introduction
Most machine learning models are trained on static, shuffled datasets. However, real-world applications—such as autonomous vehicles or medical diagnostics—require Continual Learning (CL), where a model learns from a sequential stream of data. The primary challenge in CL is overcoming catastrophic forgetting: the tendency for neural networks to overwrite old knowledge when learning new information.
While many CL methods rely on "batch" learning, this research focuses on the more demanding Streaming Learning scenario, where the batch size is exactly one. In this setting, standard techniques like Stochastic Gradient Descent (SGD) become unstable, and traditional "Softmax" layers often develop a heavy bias toward the most recently observed classes.
Methodology: Deep SRDA
The authors propose Deep Streaming Regularized Discriminant Analysis (Deep SRDA). The architecture decouples feature extraction from classification to maintain stability during streaming.
Architecture Components
- Frozen Backbone: A pre-trained ResNet-18 convolutional neural network acts as a fixed feature extractor, converting images into high-dimensional vectors.
- Trainable SRDA Head: Instead of a standard fully connected layer, the model uses a generative classifier based on Discriminant Analysis.
The Regularization Mechanism
Discriminant analysis typically takes two forms: Linear (LDA), which assumes a shared covariance matrix across all classes, and Quadratic (QDA), which assigns a unique covariance matrix to each class. While LDA is stable, it lacks flexibility; conversely, QDA is flexible but often fails in high-dimensional spaces due to insufficient data for accurate matrix estimation.
SRDA introduces a regularization parameter ($\alpha$) to balance these two approaches. It calculates a weighted average of the class-specific covariance (QDA) and the global pooled covariance (LDA). The authors derived incremental mathematical updates that allow these matrices to be updated one image at a time without revisiting prior data.
Experimental Results
The model was evaluated on the ImageNet ILSVRC-2012 benchmark. To simulate a class-incremental scenario, the model was initialized on 100 classes and then required to learn the remaining 900 classes sequentially from a stream.
Deep SRDA established a new state-of-the-art for streaming learning on ImageNet:
- Accuracy: It achieved a normalized accuracy ($\Omega_{all}$) of 0.801, outperforming the previous leading method (SLDA) by approximately 5%.
- Comparison to Batch Methods: SRDA outperformed popular representation learning methods like iCaRL (by 11%) and End-to-End (by 2%), despite those methods having the advantage of multiple iterations over the data.
- Efficiency: While more computationally intensive than the simpler SLDA (12 hours vs. 30 minutes), it remained significantly faster than competitors like ExStream (64 hours).
Key Insights
- Post-Hoc Tuning: A unique advantage of SRDA is that the $\alpha$ parameter can be tuned after training. Since LDA and QDA components are calculated independently, the balance can be adjusted at the end to optimize performance.
- Generative Advantage: By modeling the data distribution rather than just class boundaries, the model avoids the "recency bias" common in discriminative (Softmax-based) networks.
- Dimensionality Management: The research highlights that regularization is essential in high-dimensional image tasks, as pure SQDA fails to accurately estimate class shapes from limited samples.
Limitations and Future Work
Despite its performance, SRDA has a higher memory footprint than LDA, requiring approximately 1.05 GB of RAM for ImageNet due to the storage of class-specific covariance matrices. Additionally, the reliance on a frozen backbone means performance may degrade if the streaming data differs significantly from the pre-training distribution. Future research may explore more efficient modern backbones, such as EfficientNets, to further enhance accuracy and reduce computational overhead.
Summary updated