GradMix: Gradient-based Selective Mixup for Robust Data Augmentation in Class-Incremental Learning
Minsu Kim, Seong-Hyeon Hwang, Steven Euijong Whang
TL;DR
GradMix addresses catastrophic forgetting in class-incremental learning by replacing random mixup with a gradient-based selective mixup that uses class-level gradient comparisons to avoid detrimental pairings. The method combines last-layer gradient approximations with a per-epoch class-pair optimization to maximize alignment with buffer-task gradients, thereby reducing forgetting while preserving augmentation benefits. Theoretical analysis and extensive experiments on MNIST, FMNIST, CIFAR-10/100, Tiny ImageNet, and ImageNet-1K show GradMix consistently outperforms standard mixup, imbalance-aware mixup, and policy-based augmentations, and remains effective with advanced experience-replay methods and different backbones. The approach offers a practical, scalable augmentation strategy for robust continual learning with limited buffer data and has potential for integration with transformer-based continual learning models.
Abstract
In the context of continual learning, acquiring new knowledge while maintaining previous knowledge presents a significant challenge. Existing methods often use experience replay techniques that store a small portion of previous task data for training. In experience replay approaches, data augmentation has emerged as a promising strategy to further improve the model performance by mixing limited previous task data with sufficient current task data. However, we theoretically and empirically analyze that training with mixed samples from random sample pairs may harm the knowledge of previous tasks and cause greater catastrophic forgetting. We then propose GradMix, a robust data augmentation method specifically designed for mitigating catastrophic forgetting in class-incremental learning. GradMix performs gradient-based selective mixup using a class-based criterion that mixes only samples from helpful class pairs and not from detrimental class pairs for reducing catastrophic forgetting. Our experiments on various real datasets show that GradMix outperforms data augmentation baselines in accuracy by minimizing the forgetting of previous knowledge.
