Cited by 10Retinal Imaging and AnalysisDomain Adaptation and Few-Shot LearningArtificial Intelligence in Healthcare and Education

In-Context Learning for Data-Efficient Diabetic Retinopathy Detection via Multimodal Foundation Models

Open access
Ayhan, Murat S., Ong, Ariel Y., Ruffell, Eden, Wagner, Siegfried K., Merle, David A., Keane, Pearse A.·2026·Ophthalmology Science

Abstract

Objective: This study aims to evaluate whether in-context learning (ICL), a prompt-based learning mechanism enabling multimodal foundation models to rapidly adapt to new tasks without retraining or large annotated datasets, can achieve comparable diagnostic performance to domain-specific foundation models. Specifically, we use diabetic retinopathy (DR) detection as an exemplar task to probe if a multimodal foundation model (Google Gemini 1.5 Pro), employing ICL, can match the performance of a domain-specific model (RETFound) fine-tuned explicitly for DR detection from color fundus photographs (CFPs). Design: A cross-sectional study. Subjects: A retrospective, publicly available dataset (Indian Diabetic Retinopathy Image Dataset) comprising 516 CFPs collected at an eye clinic in India, featuring both healthy individuals and patients with DR. Methods: The images were dichotomized into 2 groups based on the presence or absence of any signs of DR. RETFound was fine-tuned for this binary classification task, while Gemini 1.5 Pro was assessed for it under zero-shot and few-shot prompting scenarios, with the latter incorporating random or k-nearest-neighbors-based sampling of a varying number of example images. For experiments, data were partitioned into training, validation, and test sets in a stratified manner, with the process repeated for 10-fold cross-validation. Main Outcome Measures: Performance was assessed via accuracy, F1 score, and expected calibration error of predictive probabilities. Statistical significance was evaluated using Wilcoxon tests. Results: = 0.004). Conclusions: Gemini 1.5 Pro with ICL demonstrated performance comparable to RETFound for binary DR detection, illustrating how future medical artificial intelligence systems may build upon such frontier models rather than being bespoke solutions. Financial Disclosures: Proprietary or commercial disclosure may be found in the Footnotes and Disclosures at the end of this article.

The claims and statistics of this paper haven’t been checked yet.

Run the check — free, no account needed. It reads the open-access text and checks the sources it cites.

A few free checks a day · papers already verified open instantly · results are public

Integrity signals

Registry

Crossref · 10.1016/j.xops.2025.100934

Cites

19 of 19 references verified0 citation errors · 0 not checkable

Statistics

Claims the paper makes

The claims and statistics of this paper haven’t been checked yet.

Run the check — free, no account needed. It reads the open-access text and checks the sources it cites.

A few free checks a day · papers already verified open instantly · results are public

Claims other papers make about this one

Each is checked against this paper’s own text: does it say what the citing paper says it does?

  • Ayhan et al. employed the multimodal Gemini 1.5 Pro model with contextual learning to perform binary DR classification, achieving an accuracy of 0.841 (95% CI: 0.803-0.879) and an F1 score of 0.88 (95% CI: 0.844-0.909), comparable to RETFound, without requiring retraining or large-scale labeled datasets.

    “Ayhan et al. [130] employed the multimodal Gemini 1.5 Pro model with contextual learning to perform binary DR classification, achieving an accuracy of 0.841 (95% CI: 0.803–0.879) and an F1 score of 0.88 (95% CI: 0.844–0.909), comparable to RETFound, without requiring retraining or large-scale labeled datasets.”

Self-check

Percentages, sums and reported differences re-computed from the paper’s own numbers.

The self-check needs the paper’s full text.

Cites

Flagged first, then by citations

Research works printed but not linked: 16

  1. [5]Fallahpour A. Ma J. Munim A. MedRAX: Medical Reasoning Agent for Chest X-ray 2025 arXiv
  2. [8]Brown T.B. Mann B. Ryder N. Language Models are Few-Shot Learners 2020 arXiv
  3. [10]Ravi N. Gabeur V. Hu Y.T. SAM 2: Segment Anything in Images and Videos 2024 arXiv
  4. [11]Zhang Y. Zhou K. Liu Z. What makes good examples for visual in-context learning? Proceedings of the 37th International Conference on Neural Information Processing Systems. NIPS ’23 2023 NeurIPS Foundation 17773 17794
  5. [12]Foster T. Croitoru I. Dorfman R. Edlund C. Varsavsky T. Almazán J. Flexible Visual Prompts for In-Context Learning in Computer Vision 2023 arXiv
  6. [13]Bommasani R. Hudson D.A. Adeli E. On the Opportunities and Risks of Foundation Models 2022 arXiv
  7. [14]Lampinen A.K. Chan S.C.Y. Singh A.K. Shanahan M. The broader spectrum of in-context learning 2024 arXiv
  8. [15]DeepSeek A.I. Guo D. Yang D. DeepSeek-R1: Incentivizing Reasoning Capability in LLMs via Reinforcement Learning 2025 arXiv
  9. [27]Guo C. Pleiss G. Sun Y. Weinberger K.Q. On Calibration of Modern Neural Networks 2017 arXiv
  10. [29]Loshchilov I. Hutter F. Decoupled Weight Decay Regularization 2019 arXiv
  11. [30]Loshchilov I. Hutter F. SGDR: Stochastic Gradient Descent with Warm Restarts 2017 arXiv
  12. [31]Holtzman A. Buys J. Du L. Forbes M. Choi Y. The Curious Case of Neural Text Degeneration 2020 arXiv
  13. [33]Shtedritski A. Rupprecht C. Vedaldi A. What does CLIP know about a red circle? Visual prompt engineering for VLMs 2023 arXiv
  14. [34]Foster T. Croitoru I. Dorfman R. Edlund C. Varsavsky T. Almazán J. Flexible visual prompts for in-context learning in computer vision 2023 arXiv
  15. [35]Zhang Y. Zhou K. Liu Z. What Makes Good Examples for Visual In-Context Learning? 2023 arXiv
  16. [36]Błasiok J. Nakkiran P. Smooth ECE: Principled Reliability Diagrams via Kernel Smoothing 2023 arXiv

Cited by

Sorted by citations

Authors
Ayhan, M. S., Ong, A. Y., Ruffell, E., Wagner, S. K., Merle, D. A., & Keane, P. A.
Affiliations
Moorfields Eye Hospital NHS Foundation Trust (GB)
Corresponding author
Keane, Pearse A.
Venue
Ophthalmology Science
Publisher
Elsevier BV
Published
2026-01
Volume
6
Issue
1
Pages
100934
ISSN
2666-9145 (ISSN-L)
OpenAlex
W4413949768
Cited by
7
References
19
Citations by year
2026: 7
FWCI
4.03
Type
journal article
Language
en
Open access
Locations
  • Ophthalmology Science (publishedVersion, cc-by)
  • Europe PMC (PubMed Central) (publishedVersion, cc-by)
  • PubMed (publishedVersion)
  • DOAJ (DOAJ: Directory of Open Access Journals) (submittedVersion, cc-by-sa)
Funders
  • University College London (EP/S021612/1)
  • Moorfields Eye Charity
  • Engineering and Physical Sciences Research Council
  • UK Research and Innovation (MR/T019050/1)
  • Ministério da Educação e Ciência
  • European Society of Retina Specialists
  • EPSRC Centre for Doctoral Training in Smart Medical Imaging (EP/Y017803/1)
Topics
  • Health Sciences › Medicine › Radiology, Nuclear Medicine and Imaging › Retinal Imaging and Analysis
  • Physical Sciences › Computer Science › Artificial Intelligence › Domain Adaptation and Few-Shot Learning
  • Health Sciences › Medicine › Health Informatics › Artificial Intelligence in Healthcare and Education
Keywords
in-context learning, diabetic retinopathy detection, multimodal foundation models, RETFound, color fundus images, few-shot prompting, zero-shot prompting, expected calibration error

About these checks

Registry, retraction, Cites and statistics results are computed, not judged, with one exception: a printed reference that no index lists is read once by a model before it counts as a citation error. Claims are extracted by a model and kept only when their quote appears verbatim in the text; each cited source is then checked, with a model’s help, for whether it says what the claim relies on. Those verdicts can be wrong — read the claim’s quote and the cited source before relying on one.

Statistics and arithmetic are recomputed, not judged.

Confidence bands are shown only for fields calibrated on our annotated test set. None is calibrated yet, so no band is shown.

What counts as a claim ›How we measure confidence ›How we check this ›

Are you an author, or do you see a problem with this page? Request a review