Class-N-Diff: Classification-Induced Diffusion Model Can Make Fair Skin Cancer Diagnosis

Nusrat Munia, Abdullah Imran
10/19/2025
cs.CV

Official code: Munia03/Class-N-Diff (2 stars, last commit 2025-12-05).

Abstract

Generative models, especially Diffusion Models, have demonstrated remarkable capability in generating high-quality synthetic data, including medical images. However, traditional class-conditioned generative models often struggle to generate images that accurately represent specific medical categories, limiting their usefulness for applications such as skin cancer diagnosis. To address this problem, we propose a classification-induced diffusion model, namely, Class-N-Diff, to simultaneously generate and classify dermoscopic images. Our Class-N-Diff model integrates a classifier within a diffusion model to guide image generation based on its class conditions. Thus, the model has better control over class-conditioned image synthesis, resulting in more realistic and diverse images. Additionally, the classifier demonstrates improved performance, highlighting its effectiveness for downstream diagnostic tasks. This unique integration in our Class-N-Diff makes it a robust tool for enhancing the quality and utility of diffusion model-based synthetic dermoscopic image generation. Our code is available at https://github.com/Munia03/Class-N-Diff.

View on arXivView PDF

Code Implementations(1)

Class-N-Diff: Classification-Induced Diffusion Model Can Make Fair Skin Cancer Diagnosis (EMBC 2025)

20Shell, PythonDec 5, 202410 months ago

Similar Papers

Cite this paper

@article{munia2025classndiff,
  title  = {Class-N-Diff: Classification-Induced Diffusion Model Can Make Fair Skin Cancer Diagnosis},
  author = {Nusrat Munia and Abdullah Imran},
  year   = {2025},
  eprint = {2510.16887},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2510.16887v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2510.16887.svg)](https://codeofpaper.com/paper/2510.16887)

Discussion