[Paper Review] DifFSS: Diffusion Model for Few-Shot Semantic Segmentation
DifFSS introduces a diffusion-model–based paradigm to generate diverse auxiliary support images for few-shot semantic segmentation, boosting performance of existing FSS models without changing their architectures.
Diffusion models have demonstrated excellent performance in image generation. Although various few-shot semantic segmentation (FSS) models with different network structures have been proposed, performance improvement has reached a bottleneck. This paper presents the first work to leverage the diffusion model for FSS task, called DifFSS. DifFSS, a novel FSS paradigm, can further improve the performance of the state-of-the-art FSS models by a large margin without modifying their network structure. Specifically, we utilize the powerful generation ability of diffusion models to generate diverse auxiliary support images by using the semantic mask, scribble or soft HED boundary of the support image as control conditions. This generation process simulates the variety within the class of the query image, such as color, texture variation, lighting, $etc$. As a result, FSS models can refer to more diverse support images, yielding more robust representations, thereby achieving a consistent improvement in segmentation performance. Extensive experiments on three publicly available datasets based on existing advanced FSS models demonstrate the effectiveness of the diffusion model for FSS task. Furthermore, we explore in detail the impact of different input settings of the diffusion model on segmentation performance. Hopefully, this completely new paradigm will bring inspiration to the study of FSS task integrated with AI-generated content. Code is available at https://github.com/TrinitialChan/DifFSS
Motivation & Objective
- Address the limitations of single/few support images in few-shot segmentation by enriching the support set with diverse generated images.
- Leverage conditional diffusion models to capture intra-class variability (color, texture, lighting, pose) for robust query segmentation.
- Investigate how different diffusion input conditions affect segmentation performance.
- Demonstrate compatibility and performance gains when integrating DifFSS with existing FSS architectures.
- Explore extension to X-shot and discuss generation drift and support-quality sensitivity.
Proposed method
- Generate auxiliary support images with a diffusion model conditioned on the support image and its segmentation mask using ControlNet with Stable Diffusion.
- Create control conditions from the support image via edge/boundary maps and scribbles (derived from HED edge detection).
- Use prompts like 'a real shot photo of {class name}' to guide image generation while sharing the same segmentation mask as the support image.
- Feed the generated auxiliary images I^G into the standard FSS model f_seg alongside the original support I^s and M^s to predict the query mask M^q_hat.
- Train f_seg with cross-entropy loss while keeping diffusion model parameters frozen.
- Discuss extension to X-shot by increasing the number of auxiliary samples and address generation drift where object position may shift between I^G and M^s.
Experimental results
Research questions
- RQ1Does conditioning diffusion models on support segmentation data yield diverse yet semantically consistent auxiliary images that improve FSS accuracy?
- RQ2How do different diffusion input conditions (segmentation map, boundary map, scribble) affect segmentation performance?
- RQ3Can the DifFSS approach extend naturally from K-shot to X-shot, and what are the limits due to generation drift?
- RQ4What is the impact of generated auxiliary samples on robustness and intra-class variability representation in FSS models?
Key findings
- DiffFSS consistently improves state-of-the-art FSS methods across PASCAL-5i, FSS-1000, and MiniCOCO-20i benchmarks when combined with existing models.
- Using diffusion-generated auxiliary images yields notable mIoU gains for baseline methods (e.g., BAM, HDMNet) across datasets.
- Higher numbers of generated auxiliary images generally boost performance, though generation drift can negate gains if support quality is poor.
- Control conditions (segmentation map, boundary, scribble) all provide performance improvements, with diffusion augmentation yielding additional gains over true 5-shot settings in some cases.
- Prototype distributions of generated images cluster around the originals, indicating that generated images preserve semantic consistency while expanding intra-class diversity.
- Extending to X-shot (more auxiliary images) shows mIoU improvements, demonstrating DifFSS’s scalability.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.