Doctor Approved: Generating Medically Accurate Skin Disease Images through AI-Expert Feedback

Janet Wang, Yunbei Zhang, Zhengming Ding, Jihun Hamm · DOI

Introduction

Training robust diagnostic AI for dermatology is consistently hampered by a critical shortage of diverse, high-quality medical imagery. While clinical datasets exist, they are often limited by privacy constraints, a lack of representation for rare conditions, and a historical bias toward lighter skin tones. While synthetic data generation via Diffusion Models (such as Stable Diffusion) offers a potential solution, these models often fail in specialized medical contexts. Out-of-the-box generative models frequently produce images that appear realistic to a layperson but contain medical inaccuracies—such as incorrect lesion textures or anatomically impossible placements—which can actually degrade the performance of downstream diagnostic classifiers.

To address this, researchers have traditionally relied on Reinforcement Learning from Human Feedback (RLHF), requiring expert dermatologists to manually review thousands of images. However, this process is prohibitively expensive and difficult to scale. This paper introduces MAGIC (Medically Accurate Generation of Images through AI-Expert Collaboration), a framework designed to inject expert medical knowledge into generative models without the need for exhaustive manual evaluation.

The MAGIC Framework

MAGIC utilizes Multimodal Large Language Models (MLLMs) acting on expert-designed checklists to automatically evaluate and fine-tune diffusion models. The framework operates through a four-stage pipeline:

  1. Preliminary Fine-Tuning: The system first learns the fundamental visual concepts of skin lesions using Textual Inversion and Low-Rank Adaptation (LoRA) on a Latent Diffusion Model.
  2. Image-to-Image (I2I) Generation: Rather than generating images from text prompts alone, MAGIC employs I2I translation. By taking a real image of one condition and transforming only the lesion into a target condition, the model preserves the original anatomical context (e.g., the specific body part or background), ensuring the synthetic image remains grounded in reality.
  3. Expert Checklists & MLLM Evaluators: Human dermatologists define a five-point clinical checklist for each disease, covering Location, Lesion Type, Shape/Size, Color, and Texture. An MLLM (such as GPT-4o) then evaluates pairs of generated images against these criteria.
  4. Preference Optimization: The MLLM’s evaluations are converted into preference data. The diffusion model is then refined using Direct Preference Optimization (DPO), which encourages the model to favor generating images that align with the expert-defined clinical criteria.

Methodological Innovations

A key insight of the MAGIC framework is Task-Centric Alignment. Instead of attempting to train a specialized "medical MLLM" from scratch, the authors adapted the evaluation task to fit a generalist model. By decomposing complex medical diagnoses into simple, visually verifiable checklist items, the researchers prevented MLLM hallucination and created a highly reliable automated evaluator.

Furthermore, the use of I2I translation serves a dual purpose. Beyond maintaining anatomical realism, it prevents downstream classifiers from learning "spurious correlations." For example, it prevents a model from incorrectly associating a specific disease with a specific body part simply because that was the only representation available in the training set.

Experimental Results

The framework was validated using several key datasets, including Fitzpatrick17k (noted for its diversity in skin tones), SCIN, and PAD-UFES-20. The results demonstrate that MAGIC-DPO significantly enhances the utility of synthetic data:

  • Classifier Performance: Augmenting training data with MAGIC-generated images improved ResNet18 accuracy by 9.02% and DINOv2 accuracy by 5.12% on a 20-condition classification task.
  • Few-Shot Success: In data-scarce environments (using only 10% of available training data), MAGIC-DPO boosted DINOv2 accuracy by 10.94%. When unlabeled data was integrated into the pipeline, this boost reached 13.89%.
  • Clinical Accuracy: In a blind evaluation by human dermatologists, 55.5% of MAGIC-DPO images met three or more clinical criteria, compared to a mere 2.0% for standard text-to-image generation.

Limitations and Future Directions

Despite its success, the authors identify several areas for improvement. Current MLLMs still struggle to evaluate subtle 3D textures (like "firm nodules") and complex color nuances on very dark skin tones from 2D images. Additionally, while the I2I approach helps dissociate patient identity, it does not yet provide formal mathematical privacy guarantees like Differential Privacy.

Future work will explore other Parameter-Efficient Fine-Tuning (PEFT) methods, the application of MAGIC to neglected tropical diseases (NTDs), and the implementation of continual learning systems that allow generative models to expand their medical vocabulary over time without forgetting previously learned conditions.

Summary updated

BibTeX
@inproceedings{wang2025doctor,
  author = {Janet Wang and Yunbei Zhang and Zhengming Ding and Jihun Hamm},
  title = {{Doctor Approved: Generating Medically Accurate Skin Disease Images through AI-Expert Feedback}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2025},
  url = {https://openreview.net/forum?id=IPxOoU8aqt},
}
Figure