[Paper Review] Lifelong Machine Learning with Deep Streaming Linear Discriminant Analysis
This paper proposes Deep Streaming Linear Discriminant Analysis (Deep SLDA), a lightweight, incremental learning method that trains only the output layer of a CNN using streaming SLDA to mitigate catastrophic forgetting. It achieves state-of-the-art performance on ImageNet and CORe50—surpassing even full-network incremental batch learning methods—while being over 100× faster and using 1,000× less memory.
When an agent acquires new information, ideally it would immediately be capable of using that information to understand its environment. This is not possible using conventional deep neural networks, which suffer from catastrophic forgetting when they are incrementally updated, with new knowledge overwriting established representations. A variety of approaches have been developed that attempt to mitigate catastrophic forgetting in the incremental batch learning scenario, where a model learns from a series of large collections of labeled samples. However, in this setting, inference is only possible after a batch has been accumulated, which prohibits many applications. An alternative paradigm is online learning in a single pass through the training dataset on a resource constrained budget, which is known as streaming learning. Streaming learning has been much less studied in the deep learning community. In streaming learning, an agent learns instances one-by-one and can be tested at any time, rather than only after learning a large batch. Here, we revisit streaming linear discriminant analysis, which has been widely used in the data mining research community. By combining streaming linear discriminant analysis with deep learning, we are able to outperform both incremental batch learning and streaming learning algorithms on both ImageNet ILSVRC-2012 and CORe50, a dataset that involves learning to classify from temporally ordered samples.
Motivation & Objective
- Address the challenge of catastrophic forgetting in deep learning under strict resource constraints and real-time data streams.
- Enable immediate inference after each sample by shifting from incremental batch learning to streaming learning.
- Develop a lightweight, deployable solution for on-device, lifelong learning in embedded systems with limited memory and compute.
- Demonstrate that fine-tuning only the output layer via streaming LDA can match or exceed full-network incremental learning in accuracy and robustness.
Proposed method
- Combine a pre-trained CNN with streaming linear discriminant analysis (SLDA) to train only the final classification layer incrementally.
- Use SLDA’s online update rule to maintain class means and within-class scatter matrices in a recursive, memory-efficient manner.
- Initialize the model using base classes from ImageNet or CORe50, enabling domain transfer without requiring a full retraining phase.
- Apply standard data augmentation (random crops, flips) during offline pre-training of the CNN backbone.
- Use a plastic covariance matrix that adapts during streaming to improve generalization under non-iid data orderings.
- Avoid storing past data or using generative models by relying solely on statistical summaries from SLDA, reducing memory and computational cost.
Experimental results
Research questions
- RQ1Can streaming LDA applied to deep features outperform full-network incremental learning in accuracy and efficiency?
- RQ2How robust is Deep SLDA to non-iid data orderings (e.g., class-ordered or instance-ordered streams) compared to standard baselines?
- RQ3To what extent can domain transfer be achieved by initializing SLDA on ImageNet features and applying it to CORe50 without prior base initialization?
- RQ4Does training only the output layer with SLDA provide sufficient performance to surpass methods that update hidden layers?
- RQ5Can SLDA be effectively used in a lifelong learning setting with minimal memory and computational overhead?
Key findings
- Deep SLDA achieves the highest final top-5 accuracy on ImageNet ILSVRC-2012 among all methods tested, outperforming both streaming and incremental batch learning baselines.
- On CORe50, Deep SLDA exceeds iCaRL by 11% in terms of Ω_all, despite only updating the output layer and using 1,000× less memory.
- The model runs over 100× faster than iCaRL and end-to-end training methods, enabling real-time inference after each sample.
- Initializing the covariance matrix with ones yields the best performance on class-ordered data, suggesting reduced overfitting to base classes.
- SLDA demonstrates strong domain transfer: models initialized on ImageNet achieve within 1.0–5.6% of performance when fine-tuned on CORe50, even without base initialization on CORe50.
- The method is robust to non-iid data streams, maintaining high performance across all data orderings, including challenging class-ordered and instance-ordered sequences.
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.