SIESTA: Efficient Online Continual Learning with Sleep

Md Yousuf Harun, Jhair Gallardo, Tyler L. Hayes, Ronald Kemker, Christopher Kanan

TL;DR

SIESTA introduces a biologically-inspired "wake/sleep" framework for online continual learning that achieves offline-level accuracy with massive gains in efficiency. By separating rapid, backpropagation-free online updates from periodic, compute-restricted memory consolidation, it enables training on ImageNet-1K in under two hours on a single GPU—a significant milestone for practical on-device learning.

What Problem Does This Paper Address?

Deep Neural Networks (DNNs) are notoriously bad at "continual learning"—learning from a stream of data without forgetting what they previously knew. This phenomenon, called catastrophic forgetting, usually forces engineers to retrain models from scratch as new data arrives, which is incredibly expensive in terms of time, money, and carbon footprint.

Existing continual learning methods often fall into two traps: they are either less accurate than retraining from scratch, or they are actually more computationally expensive than the offline models they aim to replace. Furthermore, many methods rely on unrealistic assumptions, like having access to "task labels" during inference or requiring massive batches of data to learn effectively. SIESTA aims to bridge this gap by providing a resource-efficient algorithm that rivals offline learners on real-world, large-scale datasets.

Methods

SIESTA (Sleep Integration for Episodic STreAming) operates on a dual-phase cycle inspired by how animals consolidate memories:

  1. Wake Phase (Online Learning): As new data arrives, the model performs rapid updates without using backpropagation. It passes inputs through a frozen feature extractor ($H$), compresses the resulting mid-level features using Product Quantization (PQ), and stores them in a buffer. The output layer ($F$) is updated using a simple running class mean. This allows the model to perform immediate inference on new classes with minimal compute.
  2. Sleep Phase (Memory Consolidation): Periodically, the model "sleeps." During this phase, it uses latent rehearsal. It samples compressed features from its buffer, reconstructs them, and uses standard backpropagation to update the upper layers of the network ($G$ and $F$).

Crucially, SIESTA restricts the amount of compute (number of updates) allowed during sleep, ensuring the model remains more efficient than retraining from scratch. The architecture of choice is MobileNetV3-L, a lightweight model better suited for edge devices than the standard ResNet18.

Figure 3: A high-level overview of SIESTA. During the Wake Phase, it transforms raw inputs into intermediate feature representations using network H. The inputs are then compressed with tensor quantization and cached. Then, weights belonging to recently seen classes in network F are updated with a running class mean using the output vectors from G. Finally, inference is performed on the current sample. During the Sleep Phase, a sampler uses a rehearsal policy to choose which examples should be reconstructed from the cached data for each mini-batch. Then, networks G and F are updated with backpropagation in a supervised manner. The wake/sleep cycles alternate.

Datasets

The authors evaluated SIESTA on several challenging benchmarks:

  • ImageNet-1K: The standard large-scale object recognition dataset (1.28 million images).
  • Places365-Standard: A large-scale scene recognition dataset.
  • Places365-LT: A "long-tailed" version of Places365 designed to test robustness against class imbalance.
  • CUB-200: A fine-grained dataset for bird species classification.

Key Insights and Ideas

  • Separation of Concerns: The "aha moment" is that you don't need expensive backpropagation for every single new sample to enable immediate inference. A lightweight "wake" update is sufficient if followed by a rigorous "sleep" consolidation phase.
  • Efficiency as a First-Class Citizen: Unlike many prior works, SIESTA explicitly models and restricts the compute budget ($m$ updates) during the consolidation phase. This makes it 1.9x to 14.9x more efficient in terms of GFLOPS than competitors like REMIND or DER.
  • Latent Rehearsal vs. Raw Rehearsal: By storing quantized mid-level features instead of raw images, SIESTA can fit a much larger "memory" into a small storage footprint, which is vital for preventing forgetting on memory-constrained devices.
  • The "Zero Forgetting" Milestone: In settings without data augmentation, SIESTA achieves the exact same final accuracy as an offline learner trained on the full dataset. This suggests that for certain constraints, catastrophic forgetting can be effectively solved.

Key Results

SIESTA sets a new state-of-the-art for efficient continual learning:

  • Speed: It can learn 900 ImageNet-1K classes in just 1.9 hours on a single NVIDIA A5000 GPU.
  • Accuracy: On ImageNet-1K (without augmentations), SIESTA achieved a final top-5 accuracy of 83.59%, matching the offline learner's 83.31%.
  • Superiority over SOTA: It outperformed DyTox (the previous leader in accuracy) by 3.09% while using 12x fewer network updates and 11x less memory.
Figure 1: Our method, SIESTA, outperforms existing continual learning methods for class-incremental learning on ImageNet-1K while requiring fewer network updates and using fewer parameters, as denoted by circle size.

Limitations and Future Work

  • Universal Feature Dependency: SIESTA relies on the initial layers ($H$) being "universal" enough to handle new classes. If the base initialization (the first 100 classes) isn't representative of the future stream, performance may degrade. The authors suggest using larger, self-supervised pre-training sets to mitigate this.
  • The Augmentation Gap: While SIESTA matches offline performance without augmentations, a small gap (approx. 3.7%) remains when augmentations are used. Closing this gap is a primary goal for future research.
  • Architecture Scope: The current study focused on CNNs. Extending the wake/sleep paradigm to Transformers or Graph Neural Networks is an open area for exploration.

Summary updated

BibTeX
@article{harun2023siesta,
  author = {Md Yousuf Harun and Jhair Gallardo and Tyler L. Hayes and Ronald Kemker and Christopher Kanan},
  title = {{SIESTA: Efficient Online Continual Learning with Sleep}},
  journal = {Accepted by TMLR},
  year = {2023},
  url = {https://openreview.net/forum?id=MqDVlBWRRV},
}
Figure