Summarizing Stream Data for Memory-Constrained Online Continual Learning

Jianyang Gu, Kai Wang, Wei Jiang, Yang You

Abstract

Online continual learning (OCL) faces a significant challenge: catastrophic forgetting in highly memory-constrained environments. Traditional replay-based methods store a subset of raw images, which often fails to capture the full data distribution when the buffer is extremely small. We present Summarizing Stream Data (SSD), a novel approach that leverages dataset distillation to condense incoming data streams into highly informative "summarized" samples. By matching gradients and feature relationships, SSD maximizes the information density of the memory buffer, significantly outperforming state-of-the-art methods on standard benchmarks like CIFAR-100 and Tiny-ImageNet.

Introduction: The Challenge of Limited Memory

Artificial intelligence models often suffer from catastrophic forgetting, where learning new tasks leads to the erasure of previously acquired knowledge. Replay-based methods mitigate this by maintaining a small "auxiliary memory" or buffer of past samples. However, in real-world "online" scenarios, data arrives in a non-stationary stream and is seen only once.

When the memory buffer is severely restricted (e.g., storing only one image per class), raw images are often insufficient to represent the diversity of the underlying distribution. The authors argue that current research under-investigates how to maximize the utility of this limited storage space. SSD addresses this by treating the buffer as a space for distilled information rather than just raw data storage.

Methods: Summarizing via Gradient Matching

The core of SSD is the integration of Dataset Distillation into the continual learning pipeline. Instead of simply selecting representative images, SSD synthesizes "summarized" samples that encapsulate the knowledge of the entire stream.

The SSD architecture overview, illustrating the gradient matching and relationship matching processes for summarizing stream data.

The methodology consists of four key components:

  1. Gradient Matching: SSD initializes summarized samples and updates them so that the training gradients they produce on the model match the gradients produced by the incoming real data. This ensures the summarized image "teaches" the model the same features as the full stream.
  2. Dynamic Memory Management: The system maintains a balanced mix of summarized and original samples to ensure diverse class representation.
  3. Past-assisted Summarizing: To prevent conflicts with prior knowledge, SSD uses images from previous tasks in the buffer to provide "gradient supervision," maintaining a global perspective of the data distribution.
  4. Relationship Matching: SSD explicitly constrains the feature similarity between new summarized samples and "anchors" from past tasks, ensuring consistency in the overall feature space.

To maintain low computational overhead suitable for online settings, SSD employs a lightweight 3-layer ConvNet as a proxy for feature extraction during the distillation process.

Experimental Setup

SSD was evaluated on three standard continual learning benchmarks modified for sequential, task-by-task online settings:

  • Sequential CIFAR-100: 10 tasks, 10 classes each.
  • Sequential Mini-ImageNet: 10 tasks, 10 classes each.
  • Sequential Tiny-ImageNet: 20 tasks, 10 classes each.

The experiments focused on "restricted memory" settings with buffer sizes ($K$) of 100, 500, and 1000 images.

Key Results and Insights

SSD consistently outperformed state-of-the-art (SOTA) methods, particularly in the most memory-constrained scenarios.

Performance comparison of SSD against other SOTA methods, showing Average End Accuracy vs. Training Time. SSD achieves superior accuracy with competitive efficiency.
  • Superior Accuracy: On CIFAR-100 with $K=100$, SSD achieved 12.1% accuracy, a significant improvement over the baseline SCR (9.0%) and the previous SOTA, RAR (9.7%). Similar gains were observed on Mini-ImageNet, where SSD reached 10.3% accuracy.
  • Information Density: The results validate that a single distilled image can be more mathematically representative of a class distribution than any single real image. SSD treats the memory buffer as a space for information, not just storage.
  • Efficiency and Orthogonality: While distillation adds some cost, SSD provides a better accuracy-to-compute trade-off than complex methods like RAR. Furthermore, SSD is "orthogonal" to existing schemes and can be integrated into other baselines (e.g., ER, DVC) to consistently boost performance.

Limitations and Future Work

Despite its success, SSD has limitations. The distillation process, while optimized, is more computationally intensive than simple random sampling, which may be a bottleneck for ultra-high-speed streams. Additionally, the reliance on a small "proxy" network for distillation warrants further investigation into how performance scales with different main model architectures. Future research may explore more efficient memory construction or holistic cross-task summarization techniques.

Summary updated

BibTeX
@inproceedings{gu2024summarizing,
  author = {Jianyang Gu and Kai Wang and Wei Jiang and Yang You},
  title = {{Summarizing Stream Data for Memory-Constrained Online Continual Learning}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2024},
  doi = {10.1609/aaai.v38i11.29111},
}
Figure