TL;DR
RetinaLogos introduces a novel text-to-image framework capable of synthesizing high-resolution, clinically realistic retinal images (Color Fundus Photographs) from detailed textual descriptions. By creating a massive dataset of 1.4 million image-caption pairs and utilizing a three-step training pipeline, the method achieves fine-grained semantic control over anatomical structures and pathology, with over 62% of generated images being indistinguishable from real ones by expert ophthalmologists.
What Problem Does This Paper Address?
Deep learning models in ophthalmology are heavily bottlenecked by the scarcity of high-quality, labeled retinal imaging data. While generative AI models (like GANs and Diffusion Models) have been proposed to synthesize Color Fundus Photographs (CFPs), existing approaches rely almost entirely on coarse, predefined disease labels (e.g., "Normal" vs. "Abnormal").
This categorical approach severely limits the utility of synthetic data. Real clinical practice requires understanding subtle anatomical variations, specific lesion locations, and precise stages of disease progression. Coarse labels cannot guide a generative model to produce a specific distribution of blood vessels or a precise type of hemorrhage, rendering the synthetic images less useful for training robust, downstream diagnostic models.
Methods
The authors tackle this limitation by shifting from class-conditioned generation to fine-grained, text-driven synthesis via a framework called RetinaLogos. The methodology consists of two main parts: a data collection pipeline and a multi-resolution training framework.
- Retinal Captioning Pipeline: To build a dataset capable of text-to-image training, the authors used a powerful Vision-Language Model (VLM). Fed with both real CFPs and their corresponding Electronic Health Records (EHRs), the VLM acted as an expert annotator, generating highly detailed descriptions of the optic disc, macula, retinal vasculature, and specific pathological lesions.
- Three-Step Training Framework:
- Step I: Pretraining Stage: The core architecture is a latent flow-matching Diffusion Transformer (DiT) model, initialized with weights from Lumina-Next. Text embeddings are extracted using a frozen Google Gemma 2B decoder. The model is initially trained on the 1.4 million pairs at a low resolution ($256 \times 256$).
- Step II: Precision Filtering and Semantic Refinement: To ensure data quality, the authors used a pretrained
RetinClipmodel to calculate image-text similarity, discarding any pairs scoring below 0.6. Captions were then refined using the Qwen 2.5 LLM to strip away non-clinical text (such as liability disclaimers) while preserving medical accuracy. - Step III: High-Resolution Supervised Fine-Tuning (SFT): Finally, the model was fine-tuned on resolutions up to $1024 \times 1024$ using a dynamic padding strategy to handle diverse aspect ratios, allowing it to capture intricate retinal details.
Datasets
- RetinaLogos-1400k: A newly introduced dataset containing 1.4 million real-world fundus images paired with detailed, synthetic clinical captions. The data spans a broad spectrum of retinal diseases and was compiled from both open-access and private datasets.
- Benchmark Evaluation Datasets: APTOS, EyePACS, and AIROGS were utilized to evaluate image authenticity and diversity using standard metrics like Frechet Inception Distance (FID) and Kernel Inception Distance (KID).
- Downstream Task Datasets: IDRiD (for diabetic retinopathy grading) and REFUGE2 (for glaucoma detection) were used to test if the synthetic data could successfully train downstream diagnostic classifiers.
Key Insights and Ideas
- Text Prompts as Fine-Grained Controllers: Moving away from discrete class labels to free-form text allows users to manipulate specific clinical features—such as changing the severity level of Diabetic Retinopathy from grade 0 to grade 4 under a fixed random seed, or specifying whether a lesion appears in the left or right eye.
- Data Quality Over Raw Scale: The ablation studies revealed a crucial insight: simply extending training time or scaling up image resolution without filtering the dataset yielded limited benefits. Incorporating the
RetinClipfiltering and LLM caption-refinement module (Step II) was the primary driver behind the massive jump in text-to-image alignment and visual fidelity.
Key Results
- Ophthalmologist Turing Test: In a clinical evaluation, 62.07% of the text-driven synthetic CFPs were classified as real by expert ophthalmologists, demonstrating exceptional clinical realism.
- Downstream Performance Boost: Integrating RetinaLogos-synthesized images into the training sets of standard classifiers (ResNet-50 and ViT-B/16) yielded an accuracy increase of 5% to 10% for both diabetic retinopathy grading (on IDRiD) and glaucoma detection (on REFUGE2).
- State-of-the-Art Metrics: RetinaLogos significantly outperformed existing medical image synthesis baselines (like MedFusion), achieving much lower FID scores across all evaluation datasets (e.g., an FID of 42.437 on EyePACS compared to MedFusion's 68.162).
Limitations and Future Work
While RetinaLogos marks a significant step forward, the authors note that the controlled generation of highly complex, rare, or overlapping pathological and anatomical structures still leaves room for improvement. Future work will likely focus on refining the model's ability to handle multi-disease interactions and even rarer ophthalmic conditions.
Summary updated