Abstract
The ability to dynamically adapt neural networks to newly-available data without performance deterioration would revolutionize deep learning applications. Streaming learning (i.e., learning from one data example at a time) has the potential to enable such real-time adaptation, but current approaches i) freeze a majority of network parameters during streaming and ii) are dependent upon offline, base initialization procedures over large subsets of data, which damages performance and limits applicability. To mitigate these shortcomings, we propose Cold Start Streaming Learning (CSSL), a simple, end-to-end approach for streaming learning with deep networks that uses a combination of replay and data augmentation to avoid catastrophic forgetting. Because CSSL updates all model parameters during streaming, the algorithm is capable of beginning streaming from a random initialization, making base initialization optional. Going further, the algorithm's simplicity allows theoretical convergence guarantees to be derived using analysis of the Neural Tangent Random Feature (NTRF). In experiments, we find that CSSL outperforms existing baselines for streaming learning in experiments on CIFAR100, ImageNet, and Core50 datasets. Additionally, we propose a novel multi-task streaming learning setting and show that CSSL performs favorably in this domain.
Introduction
In an ideal scenario, deep learning models would emulate human learning: processing one example at a time, integrating it instantly, and retaining prior knowledge. This paradigm, known as streaming learning, is currently hindered by catastrophic forgetting, where new gradients overwrite previously learned features.
To combat this, existing state-of-the-art methods typically employ a "warm start" strategy. They pre-train on a massive static dataset and then freeze the majority of the network's layers to preserve the feature extractor. However, this "stiffness" leads to two critical failures: reduced plasticity, where the model cannot adapt to novel data distributions, and a heavy dependency on large initial datasets. CSSL addresses these by enabling full parameter updates from the very first data point, even starting from a random initialization.
The CSSL Framework
CSSL replaces complex, multi-step training pipelines with a streamlined end-to-end loop. The process begins with either random weights (Cold Start) or pre-trained weights. As new data arrives, the system maintains a fixed-size replay buffer to provide "memories" of previous classes.
The core of the CSSL methodology lies in its update cycle:
- Replay & Augment: New data is combined with samples from the replay buffer. This mixture undergoes a sophisticated augmentation pipeline, including Mixup, Cutmix, and AutoAugment. This acts as a powerful regularizer, preventing the model from overfitting to the sparse data seen in each step.
- Full Parameter Update: Unlike frozen-layer methods, CSSL performs standard SGD updates on all model parameters.
- Efficient Storage: To manage memory, CSSL utilizes data-independent compression (such as 4-bit quantization or JPEG) for the replay buffer, allowing it to store thousands of images with a minimal footprint.
The Importance of Full Plasticity
A central finding of this research is that freezing layers—a common practice in streaming learning—acts as a performance bottleneck. By maintaining full plasticity, CSSL allows the model to refine its internal representations as it encounters new tasks.
As shown in the experimental data, there is a direct correlation between the ratio of frozen parameters and a drop in test accuracy. CSSL operates at the 0% frozen mark, maximizing the model's ability to learn from new information without the constraints of a static feature extractor.
Experimental Results
The researchers evaluated CSSL across several benchmarks, including CIFAR100, ImageNet, and Core50. Key highlights include:
- State-of-the-Art Performance: CSSL significantly outperformed previous leaders like REMIND on CIFAR100 across various buffer sizes.
- Cold Start Success: In a novel multi-task streaming setting (sequentially learning datasets like MIT Scenes and Oxford Flowers), CSSL achieved a 22% to 35% absolute boost in accuracy over baselines when starting without pre-training.
- Superior Regularization: On the Core50 dataset, CSSL achieved an $\Omega_{all}$ score greater than 1.0, indicating it performed better than traditional offline models, likely due to the superior regularization provided by its augmentation strategy.
- Improved Calibration: Models trained with CSSL are better calibrated; they are less prone to the overconfidence often seen in frozen-layer models.
Conclusion and Future Work
CSSL demonstrates that the complicated pipelines currently used in streaming learning can be replaced with a simple, end-to-end approach that updates all parameters. While this increases the computational cost per update compared to linear-probing methods, the gains in plasticity and accuracy are substantial. Future research will focus on reducing the latency of these full-network updates and exploring more aggressive compression techniques to further optimize the replay buffer for edge devices.
Summary updated