cs.CVOct 23, 2026

Compression of Vision Foundation Models for Retinal OCT via Growing-Neural-Gas Codebooks and Graph-Guided Masked Image Modeling

Authors: Ali Yavari, Tilman Schmoll, Rainer A. Leitgeb, Wolfgang Drexler, Thomas Schlegl

Organizations: Center for Medical Physics and Biomedical Engineering, Medical University of Vienna, Währinger Gürtel 18-20, Vienna, 1090, Austria · Carl Zeiss Meditec AG, Rudolf-Eber-Straße 11, Oberkochen, 73447, Germany

Abstract

Vision foundation models for retinal imaging are large and computationally demanding, limiting point-of-care deployment. We ask how much of such a model's downstream utility survives compression into a smaller network. We propose a topology-aware discretization framework that distills a continuous foundation model into a discrete codebook, then uses it as the reconstruction target for masked image modeling (MIM). It combines gradient-free codebook learning via Growing Neural Gas, which yields an adjacency graph over the codes, with a graph-distance soft cross-entropy loss that replaces one-hot MIM targets with topologically graded supervision. With student pretraining on 383 public Duke iAMD optical coherence tomography (OCT) volumes, the pipeline distills an 86M-parameter teacher into a 22M-parameter student with at least 3.6x fewer FLOPs. The student performs close to, and in some settings above, its teacher across three classification and two segmentation benchmarks, with the magnitude and direction of the difference depending on the teacher, task, metric, and student capacity. On the external OLIVES benchmark, it surpasses its MIRAGE teacher on every metric (98.06% vs. 95.22% balanced accuracy). It works with two Vision Transformer (ViT-Base) teachers, retinal (MIRAGE) and natural-image (DINOv3); with the out-of-domain teacher, the student outperforms it on retinal-layer segmentation, indicating that the added value of retina-specific pretraining is task-dependent: largest for segmentation, while a general-domain teacher is competitive for classification. These results yield compact retinal models potentially suitable for deployment, transferring across OCT datasets, devices, and clinical tasks, including three datasets not used in the student's pretraining.

Figures & tables

Explore similar work

CardsList
  1. Representation learning from OCT images

    May 4, 2026Hedi Tabia, Désiré Sidibé, Nawres Khlifa +6Medical ImagingMedical Imaging Foundation Models

  2. Representation Transfer of Foundation Models for Ultra-Widefield Retinal Imaging

    Aug 1, 2026Mingya Alexa Gong, Da Ma, Lovre Antonio Budimir +7Medical Imaging Foundation ModelsDiabetic Retinopathy Grading

  3. EyeMVP: OCT-Informed Fundus Representation Learning via Paired CFP--OCT Pretraining

    Jun 13, 2026Zhuo Deng, Ruiheng Zhang, Ziheng Zhang +23Fundus ImagingCross-Modal Representation Learning