Modular Embedding Recomposition for Incremental Learning

Aniello Panariello, Emanuele Frascaroli, Pietro Buzzega, Lorenzo Bonicelli, Angelo Porrello +1 more
8/22/2025
cs.AIcs.CV

Official code: aimagelab/mammoth (841 stars, MIT, PyTorch, last commit 2026-04-20).

Abstract

The advent of pre-trained Vision-Language Models (VLMs) has significantly transformed Continual Learning (CL), mainly due to their zero-shot classification abilities. Such proficiency makes VLMs well-suited for real-world applications, enabling robust performance on novel unseen classes without requiring adaptation. However, fine-tuning remains essential when downstream tasks deviate significantly from the pre-training domain. Prior CL approaches primarily focus on preserving the zero-shot capabilities of VLMs during incremental fine-tuning on a downstream task. We take a step further by devising an approach that transforms preservation into enhancement of the zero-shot capabilities of VLMs. Our approach, named MoDular Embedding Recomposition (MoDER), introduces a modular framework that trains multiple textual experts, each specialized in a single seen class, and stores them in a foundational hub. At inference time, for each unseen class, we query the hub and compose the retrieved experts to synthesize a refined prototype that improves classification. We show the effectiveness of our method across two popular zero-shot incremental protocols, Class-IL and MTIL, comprising a total of 14 datasets. The codebase is available at https://github.com/aimagelab/mammoth.

View on arXivView PDF

Code Implementations(1)

aimagelab/mammothOfficial100%
PyTorchMIT

An Extendible (General) Continual Learning Framework based on Pytorch - official codebase of Dark Experience for General Continual Learning

841157PythonOct 5, 20206 months agoMIT
continual-learningdark-experience-replaydeep-learningderexperience-replay+3 more

Similar Papers

Cite this paper

@article{panariello2025modular,
  title  = {Modular Embedding Recomposition for Incremental Learning},
  author = {Aniello Panariello and Emanuele Frascaroli and Pietro Buzzega and Lorenzo Bonicelli and Angelo Porrello and Simone Calderara},
  year   = {2025},
  eprint = {2508.16463},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2508.16463v2}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2508.16463.svg)](https://codeofpaper.com/paper/2508.16463)

Discussion