Incremental Few-Shot Semantic Segmentation via Embedding Adaptive-Update and Hyper-class Representation

Guangchen Shi, Yirui Wu, Jun Liu, Shaohua Wan, Wenhai Wang, Tong Lu · DOI

TL;DR

EHNet introduces a novel framework for Incremental Few-Shot Semantic Segmentation (IFSS), allowing models to learn new object categories from just a few images without forgetting what they already know. By representing knowledge through a combination of unique "category embeddings" and shared "hyper-class embeddings," the model achieves state-of-the-art performance on PASCAL-5$^i$ and COCO datasets while significantly reducing feature drift and overfitting.

Introduction

In the real world, AI models need to be lifelong learners. However, standard deep learning models suffer from two major hurdles when learning new tasks incrementally: Catastrophic Forgetting and Overfitting. When a model is fine-tuned on new data, it often "overwrites" the weights used for old classes, causing a sharp drop in performance on previously learned tasks. In a "few-shot" scenario, the model only sees 1–5 examples of a new class, leading to poor generalization as the model struggles to learn concepts from limited pixels.

Challenges in Incremental Few-Shot Learning

Existing methods often couple knowledge learning with representation, meaning errors in new sessions accumulate and "drift" the feature space, making old classes unrecognizable. This phenomenon is characterized by two primary issues: conflict between class representations and feature drift.

Illustration of (a) Conflict between base and new classes and (b) Feature drift during incremental learning.

As shown in the figure above, (a) illustrates the conflict where new class representations overlap with base classes, and (b) shows how feature drift shifts the clusters of base classes, leading to performance degradation on previously learned knowledge.

Methodology: The EHNet Framework

The authors propose EHNet (Embedding adaptive-update and Hyper-class representation Network), which relies on three core innovations to address these challenges.

Dual-Embedding Representation

Instead of one vector per class, EHNet uses two:

  • Category Embedding ($E_c$): Captures the exclusive, unique properties of a specific class (e.g., what makes a "tiger" different from a "cat").
  • Hyper-class Embedding ($E_h$): Captures shared semantic properties (e.g., "furry," "four-legged"). These are initialized by clustering existing base classes, allowing new classes to "borrow" knowledge from similar old ones.

Embedding Adaptive-Update Strategy (EAUS)

To prevent feature drift, the model keeps hyper-class embeddings fixed as a "memory" of old knowledge. It uses a class-attention scheme to calculate a "safe displacement vector" for category embeddings, nudging them into a well-separated feature space without destroying the underlying structure.

The Adaptive Update strategy (c) nudges category embeddings into a well-separated space while maintaining hyper-class anchors.

Cross Information and Segmentation Modules

  • Cross Information Module (CIM): This module semantically aligns the raw category and hyper-class embeddings, filtering out irrelevant background noise and highlighting correlated features.
  • Class-Agnostic Segmentation Module (CASM): An iterative refinement head that takes the learned embeddings and a query image to produce a final, high-resolution segmentation mask.

Experimental Results

The model was evaluated on two standard benchmarks: PASCAL-5$^i$ and COCO 2014. EHNet achieved new state-of-the-art (SOTA) results across the board:

  • PASCAL-5$^i$ (1-shot): EHNet achieved a mean IoU (mIoU) of 56.7% in the initial session and maintained significantly higher performance in later sessions (e.g., 41.8% in session 3) compared to previous methods like PIFS (37.4%) or MiB (12.9%).
  • COCO (5-shot): On the much harder COCO dataset, EHNet reached 36.6% mIoU for new classes, outperforming the next best method (PIFS) by nearly 5 percentage points.

Ablation studies confirmed that removing hyper-class embeddings caused a significant drop in performance (from 47.9% to 33.0% mIoU), proving that shared semantic knowledge is critical for few-shot learning.

Discussion and Future Work

While EHNet performs remarkably well, it still faces challenges with small or dimly lit objects. Additionally, the iterative optimization in the CASM module adds computational cost, reducing inference speed from ~24 FPS to ~8 FPS at 4 iterations. Future work might explore dynamic hyper-class generation that evolves as more diverse data is encountered, rather than relying on fixed clusters from base classes.

Summary updated

BibTeX
@inproceedings{shi2022incremental,
  author = {Guangchen Shi and Yirui Wu and Jun Liu and Shaohua Wan and Wenhai Wang and Tong Lu},
  title = {{Incremental Few-Shot Semantic Segmentation via Embedding Adaptive-Update and Hyper-class Representation}},
  booktitle = {ACM Multimedia},
  year = {2022},
  doi = {10.1145/3503161.3548218},
}
Figure