Densely Distilling Cumulative Knowledge for Continual Learning
Zenglin Shi, Pei Liu, Tong Su, Yunpeng Wu, Kuien Liu, Yu Song, Meng Wang
TL;DR
This work tackles catastrophic forgetting in class-incremental continual learning by introducing Dense Knowledge Distillation (DKD), which uses a task pool to track capabilities and partitions the model's output logits into dense groups corresponding to tasks. DKD distills knowledge from all groups, with a practical random-group sampling strategy to reduce computational cost, and employs an adaptive weighting scheme based on old-new class counts and cross-class similarity. The approach yields two variants, Full Dense KD (FDKD) and Random Dense KD (RDKD), and demonstrates state-of-the-art performance across CIFAR100 and ImageNet-100/1000 benchmarks, along with robustness to memory budgets and task orders. Empirical results indicate improved model stability, flatter minima, and seamless compatibility with other continual learning methods and offline applications like model compression, highlighting DKD’s practical impact for scalable continual learning.
Abstract
Continual learning, involving sequential training on diverse tasks, often faces catastrophic forgetting. While knowledge distillation-based approaches exhibit notable success in preventing forgetting, we pinpoint a limitation in their ability to distill the cumulative knowledge of all the previous tasks. To remedy this, we propose Dense Knowledge Distillation (DKD). DKD uses a task pool to track the model's capabilities. It partitions the output logits of the model into dense groups, each corresponding to a task in the task pool. It then distills all tasks' knowledge using all groups. However, using all the groups can be computationally expensive, we also suggest random group selection in each optimization step. Moreover, we propose an adaptive weighting scheme, which balances the learning of new classes and the retention of old classes, based on the count and similarity of the classes. Our DKD outperforms recent state-of-the-art baselines across diverse benchmarks and scenarios. Empirical analysis underscores DKD's ability to enhance model stability, promote flatter minima for improved generalization, and remains robust across various memory budgets and task orders. Moreover, it seamlessly integrates with other CL methods to boost performance and proves versatile in offline scenarios like model compression.
