RaSP: Relation-aware Semantic Prior for Weakly Supervised Incremental Segmentation

Subhankar Roy, Riccardo Volpi, Gabriela Csurka, Diane Larlus

Abstract

Class-incremental semantic image segmentation assumes multiple model updates, each enriching the model to segment new categories. This is typically carried out by providing expensive pixel-level annotations to the training algorithm for all new objects, limiting the adoption of such methods in practical applications. Approaches that solely require image-level labels offer an attractive alternative, yet, such coarse annotations lack precise information about the location and boundary of the new objects. In this paper we argue that, since classes represent not just indices but semantic entities, the conceptual relationships between them can provide valuable information that should be leveraged. We propose a weakly supervised approach that exploits such semantic relations to transfer objectness prior from the previously learned classes into the new ones, complementing the supervisory signal from image-level labels. We validate our approach on a number of continual learning tasks, and show how even a simple pairwise interaction between classes can significantly improve the segmentation mask quality of both old and new classes. We show these conclusions still hold for longer and, hence, more realistic sequences of tasks and for a challenging few-shot scenario.

Introduction

Semantic image segmentation—the task of labeling every pixel in an image—is notoriously data-hungry, requiring expensive, pixel-perfect annotations. In real-world scenarios, "lifelong learning" systems must learn new objects over time without forgetting old ones. This paper addresses Weakly Supervised Class-Incremental (WSCI) segmentation, where a model learns classes in sequence using only image-level labels (e.g., "this image contains a sheep") for new categories.

A major challenge in WSCI is the "background shift." When a model trained on "cows" encounters a "sheep," it often misclassifies it as a "cow" due to visual similarity. RaSP (Relation-aware Semantic Prior) turns these "mistakes" into localization cues by leveraging conceptual relationships between classes.

Methodology: Leveraging Semantic Priors

The core of RaSP is the Relation-aware Semantic Prior loss. Instead of treating misclassifications as failures, RaSP uses them as a prior for object localization.

Semantic Similarity and Prior Generation

The system utilizes language models (e.g., BERT) to calculate the distance between classes in a semantic "concept space." For instance, "sheep" is semantically closer to "cow" than to "airplane." When training on a new class like "sheep," the model examines predictions from the previous model. If the old model identifies a region as a "cow," and the system knows "cow" and "sheep" are related, it generates a semantic similarity map. This map acts as a "soft" mask, guiding the new model to the likely location of the new object.

Conceptual overview of RaSP: An old model's prediction of a "cow" is used as a semantic prior to localize a new "sheep" class based on their similarity in embedding space.

Integration

RaSP acts as a regularizer that can be integrated into existing frameworks like WILSON. By relying on the "objectness" knowledge of the old model, it helps the new model distinguish objects from background context (e.g., grass or tracks) more effectively than standard Class Activation Maps (CAMs).

Experimental Results

The authors evaluated RaSP on Pascal VOC 2012 and MS-COCO using various incremental protocols, including the challenging "10-2" setting (adding 2 classes at a time over 5 steps).

Quantitative Performance

RaSP demonstrated significant improvements in long-term incremental tasks:

  • Performance Boost: In the "10-2" VOC setting, RaSP achieved a +26.8% relative improvement in mIoU for new classes compared to the baseline.
  • Reduced Forgetting: The model showed 15% less forgetting of old classes compared to previous state-of-the-art methods.
  • Robustness: The method remained effective in few-shot scenarios (2 or 5 images per new category).

Qualitative Analysis

Visualizations confirm that RaSP produces tighter, more accurate segmentation masks. While standard image-level supervision often results in "blobby" masks that include background context, RaSP leverages the old model's boundary knowledge to refine the new class masks.

Qualitative comparison of segmentation results. RaSP produces masks that are significantly closer to the ground truth (GT) and more precise than the WILSON baseline.

Conclusion and Future Work

RaSP demonstrates that an old model's "errors" on unseen classes are actually high-quality localization cues when combined with semantic embeddings. This "forward transfer" of knowledge significantly improves weakly supervised incremental learning.

Current limitations include the "Alien" problem—where a new class has no semantic relatives in the existing model—and potential ambiguity when multiple similar new classes are introduced simultaneously. Future work may explore richer semantic information, such as class descriptions, to further refine the supervisory signals.

Summary updated

BibTeX
@inproceedings{roy2023rasp,
  author = {Subhankar Roy and Riccardo Volpi and Gabriela Csurka and Diane Larlus},
  title = {{RaSP: Relation-aware Semantic Prior for Weakly Supervised Incremental Segmentation}},
  booktitle = {CoLLAs},
  year = {2023},
  url = {https://openreview.net/forum?id=JgaoVxKROY},
}
Figure