Exemplar Masking for Multimodal Incremental Learning

Yi-Lun Lee, Chen-Yu Lee, Wei-Chen Chiu, Yi-Hsuan Tsai

Abstract

Multimodal incremental learning needs to digest the information from multiple modalities while concurrently learning new knowledge without forgetting the previously learned information. There are numerous challenges for this task, mainly including the larger storage size of multimodal data in exemplar-based methods and the computational requirement of finetuning on huge multimodal models. In this paper, we leverage the parameter-efficient tuning scheme to reduce the burden of fine-tuning and propose the exemplar masking framework to efficiently replay old knowledge. Specifically, the non-important tokens are masked based on the attention weights and the correlation across different modalities, significantly reducing the storage size of an exemplar and consequently saving more exemplars under the same memory buffer. Moreover, we design a multimodal data augmentation technique to diversify exemplars for replaying prior knowledge. Extensive experiments show that our exemplar masking framework is more efficient and robust to catastrophic forgetting under the same limited memory buffer.

Introduction

Artificial Intelligence agents often need to learn new concepts over time without forgetting what they already know—a field called Class-Incremental Learning (CIL). However, when moving from simple images to multimodal data (images + text), two massive hurdles appear. First, the "Storage Tax": storing "exemplars" (old data samples) to replay later is the standard way to prevent forgetting, but multimodal data is bulky. A memory buffer that holds 1,000 images might only hold a fraction of that when high-resolution text descriptions are added. Second, the "Computation Tax": fine-tuning massive multimodal transformers every time a new class arrives is computationally ruinous.

Comparison between conventional exemplar replay and the proposed exemplar masking replay.

This paper introduces a clever "exemplar masking" strategy to solve these storage and forgetting problems. By using attention weights to keep only the most important image regions and preserving the "lost" visual context through corresponding text tokens, the authors reduced storage requirements by over 64% while actually improving model accuracy.

Proposed Method

The researchers proposed a framework consisting of three main pillars: Exemplar Masking, Parameter-Efficient Tuning, and Multimodal Data Augmentation.

Exemplar Masking Framework

Instead of saving a whole image, the model uses its own internal attention maps to identify which parts of the image are crucial for recognition (e.g., the "bear" in a snowy landscape).

  • Image Masking: Non-essential image patches are discarded based on attention weights.
  • Text Masking: To ensure the model doesn't lose the context of the discarded image parts (like the "snowy lake" the bear was standing on), the system uses cross-attention to identify and keep text tokens that describe those missing visual regions.
The overall Exemplar Masking Framework across incremental phases.

Efficient Tuning and Augmentation

Rather than updating billions of parameters, the method utilizes Parameter-Efficient Tuning (PET) via a technique called SSF (Scaling and Shifting Features). This updates less than 0.3% of the model's total parameters, making it feasible to train on modest hardware. Furthermore, to make the most of the limited stored data, a multimodal data augmentation technique "swaps" image and text components between different exemplars of the same class, creating new synthetic training pairs that help the model generalize better.

Experimental Evaluation

The authors evaluated their method on two primary datasets: UPMC Food-101 (food images and recipes) and MM-ImageNet-R. The latter is a new benchmark created by the authors, taking the existing ImageNet-R and using the InstructBLIP model to generate detailed 100-word captions for every image, providing a more challenging, real-world scenario.

Key Results

  • Massive Storage Savings: On the MM-ImageNet-R dataset, raw exemplars took up 3.60 MB, while masked exemplars required only 1.29 MB—a 64.17% reduction in storage.
  • Superior Accuracy: Despite using less space, the proposed method consistently outperformed baselines. For example, on MM-ImageNet-R with 20 incremental phases, the method achieved 78.64% accuracy, significantly higher than the standard SSF baseline (75.26%).
  • Robustness to Long-Term Learning: As the number of incremental steps increased, the performance gap between this method and others widened, suggesting it is much more resistant to "catastrophic forgetting" over long periods.

Discussion and Insights

A key insight of this work is Context Recovery via Modality Switching. Information lost in one modality (masking the background of an image) can be recovered in another (keeping the descriptive words in the text). This cross-modal redundancy allows for extreme data compression without losing semantic meaning. The paper proves that a model's own attention mechanism is a reliable guide for what to remember, using dynamic thresholding to adaptively keep more data for complex scenes and less for simple ones.

While highly effective, the method relies on the quality of the pre-trained multimodal backbone (e.g., ViLT). If the initial model has poor attention maps, the masking strategy might discard the wrong information. Future work could explore how this masking logic applies to other modalities like audio or video tokens.

Summary updated

BibTeX
@inproceedings{lee2025exemplar,
  author = {Yi-Lun Lee and Chen-Yu Lee and Wei-Chen Chiu and Yi-Hsuan Tsai},
  title = {{Exemplar Masking for Multimodal Incremental Learning}},
  booktitle = {Workshops @ CVPR},
  year = {2025},
}
Figure