SCALE: Online Self-Supervised Lifelong Learning without Prior Knowledge
About
Unsupervised lifelong learning refers to the ability to learn over time while memorizing previous patterns without supervision. Although great progress has been made in this direction, existing work often assumes strong prior knowledge about the incoming data (e.g., knowing the class boundaries), which can be impossible to obtain in complex and unpredictable environments. In this paper, motivated by real-world scenarios, we propose a more practical problem setting called online self-supervised lifelong learning without prior knowledge. The proposed setting is challenging due to the non-iid and single-pass data, the absence of external supervision, and no prior knowledge. To address the challenges, we propose Self-Supervised ContrAstive Lifelong LEarning without Prior Knowledge (SCALE) which can extract and memorize representations on the fly purely from the data continuum. SCALE is designed around three major components: a pseudo-supervised contrastive loss, a self-supervised forgetting loss, and an online memory update for uniform subset selection. All three components are designed to work collaboratively to maximize learning performance. We perform comprehensive experiments of SCALE under iid and four non-iid data streams. The results show that SCALE outperforms the state-of-the-art algorithm in all settings with improvements up to 3.83%, 2.77% and 5.86% in terms of kNN accuracy on CIFAR-10, CIFAR-100, and TinyImageNet datasets.
Related benchmarks
| Task | Dataset | Result | Rank | |
|---|---|---|---|---|
| Class-incremental learning | CIFAR-100 20 tasks | -- | 58 | |
| Class-incremental learning | ImageNet-100 20 tasks | -- | 16 | |
| Class-incremental classification | CIFAR100 50 tasks | Accuracy31.23 | 14 | |
| Online Continual Self-Supervised Learning | CLEAR100 11 experiences (streaming online) | Final Accuracy44.2 | 9 | |
| Online Continual Self-Supervised Learning | CIFAR-100 streaming online 20 experiences | Final Accuracy31.9 | 9 | |
| Online Continual Self-Supervised Learning | ImageNet100 streaming online 20 experiences | Final Accuracy36.7 | 9 | |
| Class-incremental classification | ImageNet-100 50 tasks | Cumulative Accuracy29.26 | 7 | |
| Class-incremental classification | CIFAR-100 tasks | Class Accuracy (CA)27.25 | 7 | |
| Class-incremental classification | ImageNet 100 tasks | CA22.87 | 7 |