NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

RetinaLogos: Fine-Grained Synthesis of High-Resolution Retinal Images Through Captions

Junzhi Ning, Cheng Tang, Kaijing Zhou, Diping Song, Lihao Liu, Ming Hu, Wei Li, Huihui Xu, Yanzhou Su, Tianbin Li, Jiyao Liu, Jin Ye, Sheng Zhang, Yuanfeng Ji, Junjun He

TL;DR

This paper introduces RetinaLogos, a novel text-to-image framework for generating high-resolution retinal images with fine-grained control over anatomical structures and disease progression. By leveraging a massive dataset of 1.4 million captioned retinal images, RetinaLogos addresses the critical scarcity of high-quality medical imaging data, enabling more accurate and diverse synthetic data for ophthalmology research and development.

What Problem Does This Paper Address?

Ophthalmology research and clinical applications heavily rely on high-quality retinal imaging data, particularly Color Fundus Photographs (CFPs). However, there's a significant challenge in acquiring large, diverse, and well-annotated datasets. Existing methods for generating synthetic CFPs often rely on coarse disease labels, limiting their ability to capture subtle anatomical variations, different stages of disease progression, or specific lesion types. This lack of fine-grained control hinders the development of robust machine learning models for tasks like early disease detection and diagnosis, especially in resource-limited settings where access to ophthalmic expertise is scarce.

Methods

The core of RetinaLogos is a novel text-to-image generation framework built upon a latent flow-matching diffusion model. The process involves several key stages:

  • Data Collection Pipeline: A massive dataset of 1.4 million real-world fundus images and corresponding synthetic captions was curated. These captions were generated using a vision-language model (VLM) that was prompted to act as a professional retinal imaging expert, integrating information from Electronic Health Records (EHRs) and the fundus images themselves. Ophthalmologists reviewed these captions to ensure clinical accuracy.
  • Text-to-Image Generator: A latent flow-matching diffusion model is employed. This model uses a frozen Google Gemma 2B text decoder for word embeddings and a flow matching mechanism for interpolating between noise and clean samples.
  • Three-Step Training Framework:
    1. Pretraining Stage: The model is initialized with weights from a prior checkpoint and undergoes a warm-up phase to adapt its backbone for retinal image generation. This stage uses low-resolution (256x256) images and captions.
  • Precision Filtering and Semantic Refinement: This crucial step purifies the dataset by filtering out image-caption pairs with low CLIP similarity scores (below 0.6). Additionally, captions are refined using a Qwen 2.5 LLM with medical prompts to eliminate irrelevant descriptions while preserving clinical meaning.
  • High-Resolution Supervised Fine-Tuning (SFT): The model is fine-tuned on higher resolutions (up to 1024x1024) using a dynamic padding strategy to handle diverse aspect ratios. This enhances the model's ability to capture finer retinal features.

Datasets

  • Training Data: The paper introduces RetinaLogos-1400k, a newly curated dataset comprising 1.4 million real-world fundus images paired with synthetic, detailed captions. This dataset is sourced from both open-access and private collections.
  • Evaluation Datasets: The generated CFPs are evaluated for authenticity and downstream task performance on several benchmark datasets:
  • APTOS: Used for authenticity evaluation.
  • EyePACS: Used for authenticity evaluation.
  • AIROGS: Used for authenticity evaluation.
  • IDRiD: Used for downstream classification tasks (Diabetic Retinopathy grading).
  • REFUGE2: Used for downstream classification tasks (Glaucoma detection).

Key Insights and Ideas

  • The Power of Fine-Grained Captions: The paper strongly emphasizes that moving beyond simple "normal/abnormal" labels to detailed, descriptive captions is key to generating realistic and clinically useful synthetic retinal images. This allows for control over specific anatomical features and disease stages.
  • Data Quality is Paramount: The "Precision Filtering and Semantic Refinement" step is highlighted as critical. Simply having a large dataset isn't enough; ensuring high semantic alignment between images and captions significantly improves the quality and clinical relevance of generated images.
  • Hierarchical Generation: The three-step training process, starting from low-resolution pretraining and progressing to high-resolution fine-tuning, is an effective strategy for achieving both visual fidelity and fine-grained control.
  • Expert Validation is Crucial: The inclusion of expert ophthalmologist evaluations, alongside quantitative metrics, underscores the importance of clinical relevance in medical image synthesis.

Key Results

  • Authenticity: 62.07% of the generated CFPs were indistinguishable from real ones by ophthalmologists, demonstrating high visual fidelity.
  • Downstream Task Improvement: The synthetic data generated by RetinaLogos consistently improved the accuracy of diabetic retinopathy grading and glaucoma detection models by 5%-10% across different backbones.
  • Quantitative Metrics: The method achieved competitive FID, KID, and Inception Scores compared to existing benchmarks, indicating good similarity and diversity. The Retina CLIP scores also showed strong text-to-image alignment.
  • Resolution Enhancement: The model successfully demonstrated the ability to scale up image resolution from 256x256 to 1024x1024, producing high-quality images with enhanced detail.

Limitations and Future Work

  • Controlled Generation Room for Improvement: The authors acknowledge that while their method shows promise, there is still room for improvement in the controlled generation of specific pathological and anatomical structures, particularly for complex retinal diseases.
  • Future Work: The paper suggests that further advancements in controlling specific lesion types and disease manifestations would be beneficial. The potential for generating CFPs with even finer-grained text descriptions in ophthalmology is also highlighted as a promising direction.

Summary updated

BibTeX
@misc{ning2025retinalogos,
  author = {Junzhi Ning and Cheng Tang and Kaijing Zhou and Diping Song and Lihao Liu and Ming Hu and Wei Li and Huihui Xu and Yanzhou Su and Tianbin Li and Jiyao Liu and Jin Ye and Sheng Zhang and Yuanfeng Ji and Junjun He},
  title = {{RetinaLogos: Fine-Grained Synthesis of High-Resolution Retinal Images Through Captions}},
  year = {2025},
  eprint = {2505.12887},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2505.12887},
}
Figure