SAILS: Segment Anything with Incrementally Learned Semantics for Task-Invariant and Training-Free Continual Learning

Shishir Muralidhara, Didier Stricker, René SchusterarXiv 2026

TL;DR

SAILS (Segment Anything with Incrementally Learned Semantics) is a training-free, forgetting-free framework for Class-Incremental Semantic Segmentation. By decoupling the problem into zero-shot spatial segmentation via the Segment Anything Model (SAM) and semantic association using class prototypes from a frozen backbone, it completely eliminates catastrophic forgetting. Despite requiring zero incremental training, SAILS consistently outperforms state-of-the-art training-based methods, especially in long, challenging task sequences.

What Problem Does This Paper Address?

In real-world applications, vision models must continuously adapt to new classes over time—a paradigm known as Continual Learning (CL). However, when deep networks are trained on new tasks, they suffer from catastrophic forgetting, where new weight updates overwrite previously learned knowledge.

This problem is particularly severe in Class-Incremental Semantic Segmentation (CISS). In CISS, models must generate pixel-wise predictions. When learning new classes, any pixels belonging to old or future classes are typically labeled as "background." This creates a severe background shift, forcing the model to repeatedly relearn what constitutes the background versus actual object classes. While existing methods use complex distillation losses or parameter-efficient fine-tuning (PEFT) to mitigate this, they still require computationally expensive training and inevitably suffer from performance degradation over long task sequences.

Methods

SAILS sidesteps the training loop entirely by splitting CISS into two distinct, modular steps:

  1. Spatial Segmentation (Class-Agnostic Geometry): The framework uses the Segment Anything Model (SAM) to generate initial region proposals without any task-specific training. Because SAM's raw output can be overly fine-grained and redundant, SAILS introduces an area-based mask aggregation step. It filters out masks covering more than 90% of the image, sorts the remaining masks by area, and resolves overlaps to create a single composite mask of coherent, object-level region proposals.
Fig. 1: The input image is first segmented using SAM, and the resulting masks are iteratively refined to produce an aggregated mask with distinct, non-overlapping regions, which are then used for extraction of region proposals from the image.
  1. Semantic Association (Incremental Mapping): Regions of Interest (RoIs) are cropped from the image using the aggregated masks and passed through a frozen, pretrained feature extractor (Swin-B trained on ImageNet). For each new class, SAILS computes a class prototype by averaging the feature embeddings of its segments.

During inference, a new segment is classified by computing the cosine similarity between its embedding and all stored prototypes. If the highest similarity score falls below a threshold ($\tau_{sim} = 0.5$), the segment is safely assigned to the background, elegantly handling the background shift problem.

To handle high intra-class variance (e.g., different breeds of dogs or types of vehicles), SAILS calculates a variance score for each class. If the variance exceeds 0.4, it applies $k$-means clustering ($k=5$) to generate multiple fine-grained sub-prototypes per class.

Fig. 2: Overview of the incremental semantic learning process. Regions of interest (RoIs) corresponding to classes introduced in the current task are embedded using a frozen pretrained backbone. For each class, either a single prototype or multiple sub-prototypes are computed based on the intra-class variability.

Datasets

The authors evaluated SAILS on two standard CISS benchmarks:

  • PASCAL VOC 2012: Contains 21 semantic classes. While training-based methods typically require an augmented set of over 10,000 images, SAILS achieves competitive results using only the original training split of 1,464 images.
  • Cityscapes: A challenging urban scene understanding dataset featuring 19 semantic classes across 2,975 training images.

Key Insights and Ideas

  • Zero Retraining = Zero Forgetting: Because the underlying feature extractor remains completely frozen, learning a new task simply means appending new prototypes to a memory bank. This makes the model entirely immune to catastrophic forgetting.
  • Task-Invariant Performance: In traditional continual learning, performance drops drastically as the number of incremental steps increases. SAILS delivers identical, stable performance regardless of whether classes are introduced all at once or one by one over 20 steps.
  • Positive Backward Transfer: Remarkably, introducing new classes can actually improve the model's performance on previously learned classes. For example, learning the class train provides semantic contrast that helps fix prior misclassifications of the visually similar class bus.
  • Overcoming CLIP's Limitations: While zero-shot models like CLIP are powerful, they suffer from "shortcut learning" when applied to segments (e.g., classifying sky as an airplane due to context). SAILS' prototype matching on localized RoIs proves much more robust.
CLIP misclassifications due to shortcut learning and ambiguous regions

Key Results

The authors tested SAILS across various extreme task splits (e.g., 1-1, 2-1, 5-1, where numbers indicate initial and incremental class counts).

  • PASCAL VOC 2012: In the highly challenging 1-1 split (spanning 20 incremental steps), standard CISS methods like SSUL and MiB collapsed to 29.15 mIoU and 17.03 mIoU, respectively. SAILS achieved a stable 54.43 mIoU, which jumped to 57.96 mIoU when incorporating intra-class clustering (SAILS*).
  • Cityscapes: Under the 1-1 split (19 steps), SAILS achieved 45.06 mIoU*, vastly outperforming the best training-based baseline, MiB, which achieved 29.71 mIoU.

Limitations and Future Work

Despite its strong performance, SAILS faces a few key constraints:

  • Pretrained Bottleneck: Because the backbone is frozen, the model's performance is fundamentally bounded by the discriminative capacity of its initial pretraining. It still struggles to distinguish highly similar classes, such as chair versus sofa.
  • Computational Overhead: Relying on SAM for universal region segmentation provides high-quality masks but is computationally heavy, making real-time deployment on edge devices challenging.

The authors suggest that future work could explore more lightweight alternatives to SAM to reduce computational demands, or integrate parameter-efficient fine-tuning (PEFT) and contrastive learning to improve class separability without triggering forgetting.

Summary updated

BibTeX
@misc{muralidhara2026sails,
  author = {Shishir Muralidhara and Didier Stricker and René Schuster},
  title = {{SAILS: Segment Anything with Incrementally Learned Semantics for Task-Invariant and Training-Free Continual Learning}},
  year = {2026},
  eprint = {2602.14767},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2602.14767},
}
Figure