SemiGDA: Generative Dual-distribution Alignment for Semi-Supervised Medical Image Segmentation

Kaiwen Huang, Yi Zhou, Yizhe Zhang, Jingxiong Li, Tao Zhou

TL;DR

SemiGDA introduces a generative paradigm for semi-supervised medical image segmentation, moving away from traditional pixel-wise classification. By aligning image and mask feature distributions in a latent space and using consistency-driven skip adapters, the framework achieves state-of-the-art performance, particularly in "ultra low-data" scenarios where labeled samples are extremely scarce.

What Problem Does This Paper Address?

Medical image segmentation is critical for diagnosis and surgery, but obtaining high-quality, expert-annotated labels is expensive and time-consuming. Semi-supervised learning (SSL) aims to solve this by using a small amount of labeled data alongside a large pool of unlabeled data.

However, most existing SSL methods are discriminative—they focus on per-pixel classification. The authors argue that these methods often overfit to the small labeled set and fail to capture the underlying global structures and feature-level constraints of the data. While generative models (like GANs or VAEs) have been used for data augmentation, they often suffer from training instability or fail to capture fine-grained semantic details necessary for precise segmentation.

Methods

The authors propose SemiGDA (Generative Dual-distribution Alignment), which leverages a pre-trained Variational Autoencoder (VAE) from Stable Diffusion to frame segmentation as a generative task. The architecture consists of three core innovations:

  1. Dual-distribution Alignment Module (DAM): Instead of just predicting a mask, the model maps images and masks into a shared latent space. It uses two encoders: a frozen VAE encoder to capture prior distributions and a trainable ResNet-based encoder for fine-grained structural features. A "Latent Mapping Model" then aligns the image features with the label's prior distribution, ensuring the model learns the transformation from image space to mask space at a distribution level.
  2. Consistency-Driven Skip Adapter (CDSA): Generative decoders often lose fine details. To fix this, the authors introduce dual skip adapters (Image and Mask adapters) that fuse multi-scale features from the encoders into the decoder. These adapters use lightweight convolutional layers to bridge the semantic gap between image-centric and mask-centric distributions.
  3. Annotation Conversion and Reversion (ACR): To make standard segmentation masks compatible with the VAE (which expects inputs in a specific range), the authors designed a training-free strategy to normalize masks to a $[-1, 1]$ range and revert them back for final prediction.
Figure 2. Overview of the proposed framework. The trainable components include a trainable encoder (i.e. ResNet as backbone), a mapping network, a lightweight skip adapter module, and a VAE network with frozen parameters. In the first stage, the encoder and mapping network align the input image with the label’s prior distribution. In the second stage, the transformed features are passed to the VAE decoder. The skip adapter module is added to improve model performance within the segmentation framework. Additionally, label transformations and inverse transformations are applied to ensure the ground truth conforms to VAE input requirements.

Datasets

The framework was evaluated on four diverse medical imaging benchmarks:

  • Colonoscopy: A combination of CVC-ClinicDB, Kvasir, and CVC-300 for polyp segmentation.
  • ISIC-2018: Dermoscopy images for skin lesion segmentation.
  • BCSS: Pathological images for breast cancer segmentation.
  • BUSI: Ultrasound images of breast tumors.

Key Insights and Ideas

  • Generative vs. Discriminative: By treating segmentation as a distribution alignment problem rather than a classification problem, the model becomes significantly more robust to noise and limited labels.
  • Latent Manifold Alignment: The authors found that directly mapping image priors to a valid mask manifold prevents "feature collapse" and ensures stable training, a common headache in generative SSL.
  • The Power of Pre-training: Leveraging the rich latent representations of a large-scale pre-trained model (Stable Diffusion VAE) provides a strong foundation for zero-shot generalization in medical domains.
  • Bridging the Granularity Gap: Image features and mask features live in different "semantic worlds." The CDSA module is essential because it acknowledges these differences and uses adapters to unify them during the decoding process.
Figure 1. Illustration of the proposed SemiGDA. (a) Overview of the prior distribution-based semi-supervised architecture. By uti- lizing feature-level mask constraints and generative segmentation, the model offers high robustness to limited hard labels. (b) Feature evolution: The Latent Mapping Model aligns the Stable Diffusion (SD) prior to a valid manifold, preventing feature collapse and en- suring stable training.

Key Results

SemiGDA consistently outperformed 11 state-of-the-art methods (including UA-MT, MC-Net, and UnCo) across all datasets.

  • Low-Label Performance: On the BUSI dataset with only 10% labeled data, SemiGDA achieved a Dice score of 75.57%, significantly higher than the baseline.
  • Robustness: Even at just 1% labeled data, the model maintained superior robustness compared to discriminative approaches.
  • Qualitative Superiority: Visual comparisons show that SemiGDA produces masks with more precise boundaries and better completeness in complex regions compared to traditional methods.
Figure 4. Visual comparisons of our model and other state-of-the-art semi-supervised medical segmentation methods.

Limitations and Future Work

The authors do not explicitly detail specific limitations of their method within the text. However, typical challenges for such generative frameworks include:

  • Computational Overhead: Using a large VAE and dual encoders likely increases the computational cost during training compared to simple U-Net variants.
  • Inference Speed: Generative decoders can be slower than their discriminative counterparts.
  • Future Directions: The authors suggest that further enhancing the adaptation of pre-trained generative models to domain-specific medical tasks remains a promising area for exploration.

Summary updated

BibTeX
@inproceedings{huang2026semigda,
  author = {Kaiwen Huang and Yi Zhou and Yizhe Zhang and Jingxiong Li and Tao Zhou},
  title = {{SemiGDA: Generative Dual-distribution Alignment for Semi-Supervised Medical Image Segmentation}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2026},
  url = {https://openreview.net/forum?id=v1aNkowxwh},
}
Figure