Coresets via Bilevel Optimization for Continual Learning and Streaming

Zalán Borsos, Mojmír Mutný, Andreas Krause

Introduction

In continual learning and streaming data environments, neural networks often suffer from catastrophic forgetting—the tendency to lose previously acquired knowledge when learning from new, non-stationary data. A common mitigation strategy is "replay," where a small buffer or coreset of past data is stored and interleaved with new samples during training. However, selecting which samples to retain is a non-trivial challenge. Standard heuristics like uniform reservoir sampling often fail to capture data diversity or preserve rare but critical samples.

Methodology: Bilevel Optimization for Coreset Selection

This paper proposes a principled framework for coreset selection formulated as a cardinality-constrained bilevel optimization problem. The goal is to select a subset of data such that a model trained on this subset (the inner loop) performs optimally on the entire dataset (the outer loop).

Efficient Selection via Proxy Models

Directly solving this bilevel problem for deep neural networks is computationally prohibitive due to the need for repeated Hessian calculations. To address this, the authors introduce Neural Tangent Kernels (NTK) as proxy models. By treating the network as a kernelized model during the selection phase, the parameter space is reduced to the size of the coreset, achieving a speedup of approximately 200x.

The Merge-Reduce Framework

For streaming applications where the full dataset is never available simultaneously, the authors employ a Merge-Reduce framework. This hierarchical tree structure merges small coresets and reduces them back to a fixed size, ensuring the summary remains representative over the entire stream duration.

Key Insights: Diversity and Influence

The proposed method naturally prioritizes "hard" or highly informative samples. Mathematically, the selection process is equivalent to identifying points with the highest Influence Function values—those that would most significantly move the model's parameters in the correct direction.

Comparison of reservoir sampling versus the proposed streaming coreset method. The coreset approach maintains a more balanced representation of classes compared to the majority-class bias of reservoir sampling.

Unlike reservoir sampling, which treats all points with equal probability, this optimization-based approach ensures class representation even in highly imbalanced streams, as shown in the visual comparison above.

Empirical Results

The framework was evaluated on standard benchmarks including MNIST, CIFAR-10, and their "Split" variants designed for continual learning.

Test accuracy across different subset sizes for MNIST and CIFAR-10. The bilevel coreset method consistently outperforms uniform sampling and active learning baselines across various architectures.

Performance Highlights

  • Accuracy Gains: On SplitMNIST, the bilevel coreset achieved an average accuracy of 95.87%, significantly outperforming uniform sampling at 92.80%.
  • Robustness to Imbalance: In imbalanced streaming scenarios, the method maintained 92.30% accuracy, whereas reservoir sampling performance dropped to 80.60% due to its inability to preserve rare class samples.
  • Efficiency: Selecting 100 coreset points from a pool of 1000 takes roughly 21-25 seconds on standard hardware, demonstrating practical viability for real-world training loops.

Conclusion and Future Work

This work provides a theoretically grounded yet efficient approach to data summarization for deep learning. While the $O(m^3)$ scaling of kernel operations limits the method to relatively small coresets (typically <500 points), the use of NTK proxies opens new avenues for optimization-based data selection. Future research may explore alternative proxies, such as last-layer embeddings, to further enhance scalability and performance across diverse architectures.

Summary updated

BibTeX
@inproceedings{borsos2020coresets,
  author = {Zalán Borsos and Mojmír Mutný and Andreas Krause},
  title = {{Coresets via Bilevel Optimization for Continual Learning and Streaming}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2020},
  url = {https://openreview.net/forum?id=tMIUkyI6Yn},
}
Figure