Introduction
Class-Incremental Learning (CIL) aims to develop AI systems capable of learning new classes sequentially without losing the ability to recognize previously learned ones. A primary obstacle in this field is catastrophic forgetting, where the model's weights shift to accommodate new data, often overwriting the representations of old classes. The most effective mitigation strategy to date is "replay," which involves maintaining a small memory buffer of representative "exemplars" from past classes. However, strict memory budgets often limit these buffers to a "few-shot" regime (e.g., 20 images per class), creating a severe data imbalance that biases the model toward newer, more abundant classes.
The Problem: Quality vs. Quantity
Existing CIL methods typically store a small number of high-quality, original-resolution images. While this preserves detail, the low sample count fails to capture the intra-class diversity needed to define robust decision boundaries. Conventional compression techniques, such as uniform downsampling or JPEG compression, often discard critical discriminative features, leading to performance degradation.
As shown in Figure 1, while baselines like iCaRL and Mnemonics focus on selecting or distilling a few high-fidelity samples, the proposed Class-Incremental Masking (CIM) approach shifts the focus toward storing a larger number of "many-shot" compressed exemplars. By selectively discarding non-essential background information, CIM fits more samples into the same memory footprint.
Methods: Class-Incremental Masking (CIM)
The core contribution of this work is the CIM module, a "plug-in" component designed to maximize memory efficiency by preserving only the most discriminative parts of an image.
The CIM process, detailed in Figure 2, involves three primary stages:
- Adaptive Mask Generation: The system utilizes Class Activation Maps (CAM) to identify discriminative regions (typically the foreground object). To handle the evolving nature of the model across learning phases, learnable Padé Activation Units (PAU) are employed to adaptively determine the optimal threshold for importance.
- Selective Compression: Rather than using a complex pixel-wise mask, the system generates a tight bounding box around the identified region. Pixels within this box are kept at their original resolution, while the surrounding background is heavily downsampled.
- Bilevel Optimization (BOP): To ensure the compression strategy aligns with classification performance, a nested optimization loop is used. The "inner loop" trains a model on compressed data, while the "outer loop" updates the CIM parameters based on the model's performance on uncompressed validation data.
Key Insights
- Diversity Over Fidelity: Storing a higher quantity of partially downsampled images is more beneficial than storing a tiny number of perfect images. The increased diversity helps the model better generalize class boundaries.
- Background as Regularization: In many classification tasks, the background acts as noise. By downsampling it, the model is forced to focus on the object's core features, which can improve robustness.
- Preserving Small Objects: Unlike uniform compression methods that might blur out small but critical details, CIM’s bounding-box approach ensures that the "meat" of the image remains intact, providing significant boosts for classes with smaller subjects.
Experimental Results
CIM was evaluated on high-resolution benchmarks including Food-101, ImageNet-100, and the full-scale ImageNet-1000. When integrated into state-of-the-art CIL frameworks like FOSTER and DER, CIM consistently delivered performance gains. Notably, on a 10-phase ImageNet-1000 task, CIM improved FOSTER's accuracy by 4.8 percentage points. The method proved particularly effective under extremely tight memory constraints, where the ability to store more samples became a decisive advantage.
Conclusion
Class-Incremental Masking (CIM) represents a paradigm shift in exemplar management for CIL. By moving away from the "few-shot" limit and leveraging selective compression, CIM allows models to maintain a more balanced and diverse representation of past knowledge. While its effectiveness is currently tied to higher-resolution data where background redundancy is high, it sets a new state-of-the-art for scalable, memory-efficient incremental learning.
Summary updated