[Paper Review] Class-Incremental Exemplar Compression for Class-Incremental Learning
This paper proposes Class-Incremental Masking (CIM), a novel exemplar compression method for class-incremental learning that adaptively downsamplesthe non-discriminative (e.g., background) pixels in exemplars using class activation maps (CAMs), enabling 'many-shot' compressed exemplars within a fixed memory budget. By optimizing a learnable mask generator via bilevel optimization, CIM achieves state-of-the-art performance, improving accuracy by 4.8 percentage points over FOSTER on 10-phase ImageNet-1000 without manual annotations or increased memory usage.
Exemplar-based class-incremental learning (CIL) finetunes the model with all samples of new classes but few-shot exemplars of old classes in each incremental phase, where the "few-shot" abides by the limited memory budget. In this paper, we break this "few-shot" limit based on a simple yet surprisingly effective idea: compressing exemplars by downsampling non-discriminative pixels and saving "many-shot" compressed exemplars in the memory. Without needing any manual annotation, we achieve this compression by generating 0-1 masks on discriminative pixels from class activation maps (CAM). We propose an adaptive mask generation model called class-incremental masking (CIM) to explicitly resolve two difficulties of using CAM: 1) transforming the heatmaps of CAM to 0-1 masks with an arbitrary threshold leads to a trade-off between the coverage on discriminative pixels and the quantity of exemplars, as the total memory is fixed; and 2) optimal thresholds vary for different object classes, which is particularly obvious in the dynamic environment of CIL. We optimize the CIM model alternatively with the conventional CIL model through a bilevel optimization problem. We conduct extensive experiments on high-resolution CIL benchmarks including Food-101, ImageNet-100, and ImageNet-1000, and show that using the compressed exemplars by CIM can achieve a new state-of-the-art CIL accuracy, e.g., 4.8 percentage points higher than FOSTER on 10-Phase ImageNet-1000. Our code is available at https://github.com/xfflzl/CIM-CIL.
Motivation & Objective
- To overcome the 'few-shot' exemplar limitation in class-incremental learning (CIL), where limited memory restricts old-class knowledge retention.
- To address the imbalance between new and old class data, which causes forgetting due to dominance of new-class samples during training.
- To develop a memory-efficient, adaptive compression method that preserves discriminative features while increasing exemplar quantity.
- To eliminate reliance on manual annotations by automatically generating discriminative pixel masks using model-attention (CAMs).
- To optimize mask generation in a dynamic CIL setting where optimal compression varies across classes and phases.
Proposed method
- The method uses class activation maps (CAMs) to identify discriminative pixels in exemplar images, generating initial 0-1 masks via hard thresholding.
- A learnable mask generation model, called Class-Incremental Masking (CIM), is introduced to adaptively generate phase- and class-specific masks, overcoming fixed-threshold limitations of standard CAMs.
- CIM is optimized via a global bilevel optimization problem (BOP), where the CIM model is tuned by back-propagating validation loss from the CIL model on uncompressed new data.
- The compressed exemplars are generated by downsampling only non-discriminative pixels (0s in the mask), preserving the resolution of discriminative regions.
- The method is plug-and-play, compatible with existing CIL frameworks such as LUCIR and FOSTER, and can be integrated without architectural changes.
- The mask generation is differentiable and jointly optimized with the CIL model through alternating training, ensuring alignment between exemplar quality and model performance.
Experimental results
Research questions
- RQ1Can exemplar compression that preserves discriminative features while increasing exemplar quantity improve CIL performance under strict memory constraints?
- RQ2How can mask generation be made adaptive across different classes and incremental phases to avoid suboptimal thresholding in CAM-based compression?
- RQ3Does end-to-end optimization of the mask generator via bilevel learning lead to better exemplar representativeness than fixed or heuristic thresholding?
- RQ4How does adaptive, non-uniform compression compare to uniform compression (e.g., JPEG) or fixed exemplar distillation in terms of accuracy and memory efficiency?
- RQ5To what extent do small objects benefit from this compression strategy due to higher background-to-object ratios?
Key findings
- CIM achieves a new state-of-the-art accuracy of 68.03% on 10-phase ImageNet-1000, representing a 4.8 percentage point improvement over FOSTER.
- On ImageNet-100, the method achieves 74.05% accuracy in the 10-phase setting, outperforming the baseline LUCIR by 2.83 percentage points.
- The method improves accuracy by 3.87 percentage points for small objects, which benefit most from background downsampling due to higher background ratios.
- The average number of saved exemplars per class is 39.40 in the small-object category, significantly exceeding the baseline’s 20 exemplars, without increasing memory budget.
- The ablation study shows that using adaptive masks from CIM outperforms naive CAMs, random regions, and center-crop baselines, proving the effectiveness of attention-guided compression.
- Adding weak downsampling (η′=2.0) on discriminative regions yields comparable performance to the full method but increases computational cost, indicating that full compression is more efficient.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.