TL;DR
SkinGEN is a novel "diagnosis-to-generation" framework that bridges the gap between AI dermatological diagnosis and user trust. By combining Vision-Language Models (VLMs) with Stable Diffusion, the system doesn't just tell you what a skin condition might be—it generates personalized visual comparisons of similar-looking diseases to help you understand the diagnosis.
What Problem Does This Paper Address?
Large Language Models (LLMs) and their visual counterparts (VLMs) have shown immense promise in medical diagnostics. However, in dermatology—where many conditions look remarkably similar—these models often act as "black boxes." A user might receive a text-based diagnosis of "acne vulgaris" but remain skeptical, wondering why it isn't "psoriasis" or "rosacea."
Existing tools provide limited visual evidence, leading to low user trust and high cognitive effort for non-experts trying to parse medical jargon. The authors identify a critical need for visual explainability: providing intuitive, image-based evidence that allows a user to see the differences between a predicted condition and its look-alikes.
Methods
The SkinGEN framework operates through a sophisticated three-stage pipeline, as illustrated in the overall framework diagram:
- Dermatology Diagnosis: The system uses SkinGPT-4 (a VLM fine-tuned on dermatological data) to analyze a user-uploaded image. It generates a primary diagnosis and a list of "Other Possible Diagnosis Results."
- Masked Image Generation: To ensure the generated explanations are personalized, the system uses lang-SAM (a combination of GroundingDINO and skinSAM). This isolates the specific area of the skin affected by the disease, creating a mask for targeted image inpainting.
- Demonstration Generation: This is the core innovation. Using Stable Diffusion (SD) v1.5, the system performs "image-to-image inpaint." It takes the user's original image and the mask, then generates what that exact same area would look like if it were a different, similar disease.
To make these generations realistic, the authors employed Low-Rank Adaptation (LoRA) and IP-Adapters. They also used BLIP2 to augment their training data with highly detailed captions, helping the model better understand the semantic nuances of different skin lesions.
Datasets
The models were trained and evaluated using two primary datasets:
- Fitzpatrick17k: A dataset of 16,577 clinical images covering 114 skin conditions, categorized by skin type.
- SCIN Dataset: A recently released crowdsourced dataset containing over 10,000 images, notable for its multi-weight labeling system where a single case can be associated with up to three diseases.
The researchers tested various "shot" configurations (5-shot, 30-shot, and full dataset) to find the optimal balance between data scale and generation quality.
Key Insights and Ideas
- Adapter Fusion is King: The researchers found that combining LoRA (which handles textual prompts well) with IP-Adapters (which excel at following visual references) produced the most realistic and accurate disease patterns.
- The "BLIP Gain": Adding detailed, descriptive captions via BLIP2 significantly improved semantic similarity (CLIP scores). It helped the model move beyond simple labels to understand the actual visual characteristics of a rash or lesion.
- Context Matters: Larger models trained on more data developed a "nuanced" understanding. For example, a model trained on the full dataset "learned" that psoriasis is less likely to appear on the face, generating clearer skin in that area even when prompted otherwise, whereas smaller models blindly followed the prompt.
- Visuals Mitigate Hallucinations: User interviews revealed that while VLMs often "hallucinate" or give inconsistent text answers when questioned, the generated images provided a grounding reality that helped users "figure things out" for themselves.
Key Results
The authors conducted a user study with 32 participants, comparing SkinGEN against a text-only baseline (SkinGPT) and a simple reference case retrieval system.
- Quantitative Performance: SkinGEN outperformed both baselines across three key metrics on a 5-point Likert scale:
- Perceived Trust: 4.09 (vs. 3.69 for text-only).
- Ease of Understanding: 4.38 (vs. 3.62 for text-only).
- Reduced Cognitive Effort: 4.41 (vs. 3.59 for text-only).
- Generation Quality: The fused LoRA + IP-Adapter approach yielded the highest structural and perceptual quality (measured by DINOv2 and CLIP scores) compared to zero-shot or single-adapter methods.
Limitations and Future Work
Despite its success, the authors acknowledge several hurdles:
- Hallucination Risks: The underlying LLMs can still produce incorrect diagnostic text, and generated images should be treated as "reference material" rather than definitive medical proof.
- Simplistic Advice: Users noted that the system's medical suggestions were often too generic (e.g., "see a doctor"). Future versions could provide more specific guidance on over-the-counter remedies or lifestyle changes.
- Data Quality: There is a continuous need for higher-quality, more diverse dermatological datasets to improve the robustness of the generation engine.
- Feature Highlighting: Future iterations could include "attention markers" on generated images to explicitly point out the red borders or pustules that distinguish one disease from another.
Summary updated