Introduction
The development of robust artificial intelligence for medical diagnostics is frequently hindered by the "data bottleneck." In gastroenterology, specifically colonoscopy, acquiring high-quality annotated datasets is challenging due to stringent patient privacy regulations and the significant time investment required from medical experts. The ImageCLEFmed 2024 MEDVQA-GI "Image Synthesis" task addressed this by challenging researchers to generate realistic, medically accurate colonoscopy images from textual prompts. The MMCP team secured first place in this competition, demonstrating that fine-tuned large-scale diffusion models can bridge the gap between synthetic and clinical data.
Methodology: Adapting Diffusion Models
The MMCP team evaluated three primary architectures, focusing on Parameter-Efficient Fine-Tuning (PEFT) to adapt general-purpose models to the specialized medical domain.
Kandinsky 2.2 with LoRA
The team's most successful approach utilized Kandinsky 2.2. They employed Low-Rank Adaptation (LoRA) to fine-tune the model in a three-stage pipeline: first the image decoder, then the "Prior" model (which maps text to image embeddings), and finally a joint refinement. A high LoRA rank of 128 was found to be critical for capturing the intricate, wet textures of the human digestive tract. The team discovered that fine-tuning the Image Prior model had a significantly greater impact on final image quality than fine-tuning the decoder alone.
Medical Synthesis with Diffusion Models (MSDM)
The team also developed a custom architecture called MSDM, based on Stable Diffusion and Medfusion. While the original Medfusion was designed for simple class labels, the authors extended it to handle complex textual prompts by integrating Cross-Attention and FeedForward layers.
Kandinsky 3.0 and the "Texture Gap"
Interestingly, the more modern Kandinsky 3.0 performed poorly in terms of photorealism. Despite its larger parameter count, it tended to produce images resembling 3D renders or illustrations rather than clinical photographs, highlighting that model size does not always correlate with domain-specific accuracy.
Data Augmentation and Regularization
A significant challenge was the limited training set, consisting of only 483 unique text queries. To prevent the models from simply memorizing the training images, the team used GPT-3.5 Turbo to paraphrase each query into multiple variations, resulting in over 11,000 unique prompts. This forced the models to learn the underlying medical concepts (e.g., "early-stage polyp") rather than specific word-pixel mappings. Additionally, the team integrated a "self-conditioning" technique where the model considers its own previous generation steps to improve consistency.
Results and Discussion
The MMCP team's approach dominated the competition leaderboard, achieving state-of-the-art results in both realism and diversity.
The Kandinsky 2.2 + LoRA (rank 128) model achieved a Fréchet Inception Distance (FID) of 0.066 on the official test set. This remarkably low score indicates that the synthetic images are statistically almost indistinguishable from real clinical images. While the MSDM model had a slightly higher FID (0.114), it achieved a superior Inception Score (1.791 vs 1.624), suggesting it produced a wider variety of distinct medical features.
Conclusion
The success of the MMCP team at ImageCLEFmed 2024 underscores the potential of diffusion models to generate high-fidelity medical data. By combining large-scale pre-trained models with efficient fine-tuning techniques like LoRA and LLM-based prompt augmentation, researchers can create "infinite" training data for diagnostic AI. Future work will focus on extending these techniques to 3D modalities like MRI and CT scans, further reducing the reliance on scarce real-world medical data.
Summary updated