Gradient based sample selection for online continual learning
About
A continual learning agent learns online with a non-stationary and never-ending stream of data. The key to such learning process is to overcome the catastrophic forgetting of previously seen data, which is a well known problem of neural networks. To prevent forgetting, a replay buffer is usually employed to store the previous data for the purpose of rehearsal. Previous works often depend on task boundary and i.i.d. assumptions to properly select samples for the replay buffer. In this work, we formulate sample selection as a constraint reduction problem based on the constrained optimization view of continual learning. The goal is to select a fixed subset of constraints that best approximate the feasible region defined by the original constraints. We show that it is equivalent to maximizing the diversity of samples in the replay buffer with parameters gradient as the feature. We further develop a greedy alternative that is cheap and efficient. The advantage of the proposed method is demonstrated by comparing to other alternatives under the continual learning setting. Further comparisons are made against state of the art methods that rely on task boundaries which show comparable or even better results for our method.
Related benchmarks
| Task | Dataset | Result | Rank | |
|---|---|---|---|---|
| Continual Learning | Sequential MNIST | Avg Acc98.33 | 149 | |
| Continual Learning | CIFAR100 Split 32x32 (test) | Accuracy20.1 | 66 | |
| Continual Learning | Split CIFAR10 32x32 (test) | Accuracy44.8 | 66 | |
| Continual Learning | MiniImageNet Split 84x84 (test) | Accuracy15.5 | 66 | |
| Continual Learning | Split CIFAR-100 (10 tasks) (test) | Accuracy73.4 | 60 | |
| Continual Learning | Split CIFAR-100 10 tasks | Accuracy17.4 | 60 | |
| Continual Learning | Tiny-ImageNet Split 100 tasks (test) | AF (%)71.5 | 60 | |
| Class-incremental learning | CIFAR10 (test) | Average Accuracy41.96 | 59 | |
| Image Classification | TinyImageNet 100 tasks (test) | Accuracy10.5 | 51 | |
| Image Classification | MNIST 5 tasks (test) | Accuracy87.5 | 51 |