A Classifier-Free Incremental Learning Framework for Scalable Medical Image Segmentation

Xiaoyang Chen, Hao Zheng, Yifang Xie, Yuncong Ma, Tengfei LiarXiv 2024

Abstract

Current methods for developing foundation models in medical image segmentation rely on two primary assumptions: a fixed set of classes and the immediate availability of a substantial and diverse training dataset. However, this can be impractical due to the evolving nature of imaging technology and patient demographics, as well as labor-intensive data curation, limiting their practical applicability and scalability. To address these challenges, we introduce a novel segmentation paradigm enabling the segmentation of a variable number of classes within a single classifier-free network, featuring an architecture independent of class number. This network is trained using contrastive learning and produces discriminative feature representations that facilitate straightforward interpretation. Additionally, we integrate this strategy into a knowledge distillation-based incremental learning framework, facilitating the gradual assimilation of new information from non-stationary data streams while avoiding catastrophic forgetting. Our approach provides a unified solution for tackling both class- and domain-incremental learning scenarios. We demonstrate the flexibility of our method in handling varying class numbers within a unified network and its capacity for incremental learning. Experimental results on an incompletely annotated, multi-modal, multi-source dataset for medical image segmentation underscore its superiority over state-of-the-art alternative approaches.

Introduction

Standard deep learning models for medical image segmentation are often constrained by architectural rigidity. Typically, the final layer of these networks is hard-coded to output a fixed number of classes. Adding a new anatomical structure usually necessitates architectural modification and full retraining. Furthermore, medical data is frequently siloed or released incrementally, leading to "catastrophic forgetting" when models are updated with new information. High-quality, fully annotated datasets are rare; most available data is partially or sparsely labeled.

To overcome these limitations, we propose a classifier-free framework that utilizes class-specific "prototypes" and knowledge distillation. This approach allows for the incremental learning of new anatomical structures without retraining from scratch, effectively handling datasets where only a fraction of the organs are labeled.

Methodology

The proposed paradigm shifts away from traditional fixed-output layers toward a more flexible architecture:

  1. Classifier-Free Architecture: The network serves as a pure feature extractor, mapping every pixel to a high-dimensional feature vector rather than a fixed class channel.
  2. Class Prototypes: Pixels are classified by comparing their feature vectors to predefined "prototypes" representing specific organs. These prototypes are derived from text descriptions via a pretrained CLIP model and orthogonalized using the Gram-Schmidt process to ensure mathematical distinctness.
  3. Contrastive Learning: Training focuses on minimizing the distance between a pixel's feature and its corresponding prototype while maximizing the distance from others.
  4. Incremental Learning via Distillation: To prevent catastrophic forgetting, a teacher-student setup is employed. The previous model version (teacher) guides the new version (student) to retain old knowledge while assimilating new classes or domains.
Overview of the classifier-free incremental learning framework showing the teacher-student architecture and distillation process.

Experimental Setup

The framework was evaluated using a diverse dataset of 3,035 volumetric images from 10 sources, including CT and MRI modalities. Sources included public benchmarks like AbdomenCT-1K, AMOS, and TotalSegmentator, as well as specialized datasets like LifespanBTS. These datasets are often incompletely annotated, requiring the model to learn 33 different anatomical structures from a patchwork of labels.

Results and Discussion

The proposed method demonstrates significant flexibility and performance advantages over state-of-the-art "universal" segmenters.

Flexibility and Performance

As shown in the table below, our model maintains high performance across different task complexities without structural changes. In a 30-class task, it achieved a per-structure Dice Similarity Coefficient (DSC) of 88.5%, outperforming models like DoDNet and Versatile, which lack the same level of architectural flexibility (marked as "No" in the Flexible? column).

Performance comparison on 16-class and 30-class tasks against state-of-the-art methods.

Incremental Learning and Data Efficiency

In incremental scenarios (e.g., adding 14 new classes to an existing 16-class model), the framework maintained a DSC of 84.4% on original classes, significantly higher than the 73-81% range observed in competing incremental approaches. Furthermore, the model proved highly efficient with sparse data; when trained on only 20% of available image slices, it still outperformed methods utilizing 100% of the data.

Conclusion

This classifier-free framework provides a scalable solution for medical image segmentation by decoupling the network architecture from the number of classes. By leveraging orthogonalized prototypes and knowledge distillation, the model achieves state-of-the-art performance while remaining adaptable to new data and structures. Future work will address the dimensionality limits of orthogonalization and the potential for error accumulation over many incremental steps.

Summary updated

BibTeX
@misc{chen2024classifier,
  author = {Xiaoyang Chen and Hao Zheng and Yifang Xie and Yuncong Ma and Tengfei Li},
  title = {{A Classifier-Free Incremental Learning Framework for Scalable Medical Image Segmentation}},
  year = {2024},
  eprint = {2405.16328},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2405.16328},
}
Figure