Abstract
Most continual segmentation methods tackle the problem as a per-pixel classification task. However, such a paradigm is very challenging, and we find query-based segmenters with built-in objectness have inherent advantages compared with per-pixel ones, as objectness has strong transfer ability and forgetting resistance. Based on these findings, we propose CoMasTRe by disentangling continual segmentation into two stages: forgetting-resistant continual objectness learning and well-researched continual classification. CoMasTRe uses a two-stage segmenter learning class-agnostic mask proposals at the first stage and leaving recognition to the second stage. During continual learning, a simple but effective distillation is adopted to strengthen objectness. To further mitigate the forgetting of old classes, we design a multi-label class distillation strategy suited for segmentation. We assess the effectiveness of CoMasTRe on PASCAL VOC and ADE20K. Extensive experiments show that our method outperforms per-pixel and query-based methods on both datasets.
Introduction: The Challenge of Catastrophic Forgetting
In Continual Semantic Segmentation (CSS), a model must learn to segment new object classes over time without access to the original training data for previous classes. The primary obstacle is catastrophic forgetting: as the model learns a new class (e.g., "sheep"), it often loses the ability to identify previously learned ones (e.g., "cows").
Most existing methods treat segmentation as a per-pixel classification task. This approach is problematic because pixels not belonging to the current task's classes are often forced into a "background" category. This "background shift" effectively erases previous knowledge. Furthermore, per-pixel patterns are difficult to transfer between different object types. The authors of CoMasTRe argue for a shift in focus toward objectness—the general ability to distinguish an object from its surroundings—which is a more stable and transferable property than specific class labels.
Methodology: Disentangling Masking and Recognition
The proposed CoMasTRe (Continual learning with Mask-Then-Recognize TRansformer decoder) framework disentangles the segmentation pipeline into two distinct stages:
- Stage 1: Objectness Learning: A mask decoder utilizes learnable "positional queries" to generate class-agnostic binary mask proposals. This stage focuses purely on where objects are, regardless of their specific category.
- Stage 2: Class Recognition: A separate class decoder takes the proposals from Stage 1 and assigns them semantic labels. To prevent interference between tasks, CoMasTRe employs task-specific classifiers and task queries.
To mitigate forgetting, the framework employs a dual-distillation strategy:
- Objectness Distillation: Knowledge Distillation (KD) ensures the model retains its ability to propose masks for old classes by distilling objectness scores, mask shapes, and positional embeddings.
- Class Distillation: A multi-label distillation strategy handles both "matched" queries (objects the model identifies with high confidence) and "unmatched" queries (potential old objects) to preserve label knowledge.
Key Insights: The Transferability of Objectness
A core finding of this work is that query-based models, such as Mask2Former, naturally learn to identify objects even if they haven't been explicitly trained on those specific categories. For instance, a model trained on "cars" can often find the boundaries of a "train" because they share "vehicle-like" objectness.
By separating "where" from "what," the model avoids relearning shape recognition every time a new label is introduced. It only needs to learn a new mapping for the recognition head. Furthermore, distilling positional embeddings helps maintain spatial alignment across training steps, which is crucial for accurate multi-label classification.
Experimental Results
CoMasTRe was evaluated on two standard benchmarks using the "overlapped" protocol:
- PASCAL VOC 2012: Tested in 19-1, 15-5, and 15-1 incremental steps.
- ADE20K: Tested in 100-50, 100-10, and 100-5 incremental steps.
The model achieved state-of-the-art results across nearly all benchmarks. On PASCAL VOC in the 19-1 setting, it improved performance on the new class by 32.16 percentage points compared to previous query-based methods, while maintaining superior performance on old classes. On ADE20K, it outperformed the previous best method (CoMFormer) by up to 2.11% mIoU overall. Qualitative results confirm that while older models misidentify classes after new training, CoMasTRe maintains correct labels and sharp boundaries.
Conclusion and Future Work
CoMasTRe demonstrates that disentangling objectness from classification is a powerful strategy for continual segmentation. While the "Mask-Then-Recognize" paradigm is highly effective for semantic segmentation, it is naturally suited for more complex tasks. Future work could extend this framework to continual panoptic and instance segmentation, where distinguishing between individual objects of the same class is required.
Summary updated