Manuscript Offprint
arXiv:2610.35961Knowledge distillation across teacher architectures for compact diabetic retinopathy grading
Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.
ABSTRACT
Diabetic retinopathy grading from retinal fundus photographs is important but difficult to deploy on resource-constrained hardware. We conducted a controlled study of offline response-based knowledge distillation for five-class diabetic retinopathy grading on APTOS 2019, comparing ResNet-50, MobileNetV3-Large, and Swin Transformer-Tiny (Swin-T) teachers distilled into a MobileNetV3-Small student. A grid of teacher, temperature, and hard-label weight was screened at one seed, while six configurations and the no-distillation baseline were evaluated across three seeds. The highest observed single-seed quadratic weighted kappa was 0.9093 (macro-F1 0.6851) for Swin-T at temperature 4 and hard-label weight 0.7; the corresponding three-seed mean was 0.9024, compared with 0.8804 for the baseline. The student used 1.52 M parameters and 5.94 MB, representing an parameter reduction relative to Swin-T. Temperature and hard-label weight effects were teacher- and configuration-dependent, while small performance differences were sensitive to random seed. Knowledge distillation produced a compact student with competitive performance under the evaluated protocol, but independent external validation remains necessary.
Keywords diabetic retinopathy · knowledge distillation · model compression · fundus image classification · quadratic weighted kappa
1 Introduction
Diabetic retinopathy (DR) is one of the leading causes of preventable visual impairment worldwide, affecting an estimated one-third of all individuals with diabetes mellitus [1]. DR is clinically classified into five severity levels such as No DR, Mild, Moderate, Severe, and Proliferative DR [2] and early detection and appropriate management are important for preventing vision-threatening progression [3]. Retinal fundus photography offers a non-invasive and scalable screening modality, and deep-learning models trained on large fundus-image datasets have demonstrated diagnostic precision similar to that of specialist ophthalmologists [4,5].
Despite this promise, deploying high-capacity architectures such as ResNet-50 [6] and Swin Transformer [7] on resource-constrained devices remains challenging due to their relatively high computational and memory requirements. This limitation is particularly relevant for community and remote screening, where AI systems may need to operate on mobile or edge devices with limited processing power and connectivity [8]. Lightweight convolutional networks, including the MobileNetV3 family, offer a practical alternative for resource-constrained deployment [9]. However, their reduced model capacity can introduce an accuracy–efficiency trade-off; in a recent diabetic retinopathy study, MobileNetV3 variants achieved lower classification accuracy than ResNet-50 while using substantially fewer parameters and providing considerably higher inference speed [10].
Knowledge distillation (KD) provides a principled approach for transferring knowledge from high-capacity models to more compact networks. In conventional offline KD, a high-capacity teacher network is first trained, after which a compact student is optimised using both the teacher's temperature-scaled soft predictions and the ground-truth labels. The resulting soft targets provide information about inter-class similarities that is absent from one-hot supervision, offering additional supervisory signals that can regularise student training [11]. While the effectiveness of KD for general image classification has been extensively demonstrated [11, 12], its effectiveness can vary with the target task and teacher–student configuration. In particular, the application of KD to ordinal diabetic retinopathy grading, where neighbouring severity levels have meaningful clinical relationships, remains comparatively less explored.
In this paper, we address three concrete questions. First, how does the choice of teacher architecture, spanning a classical convolutional neural network (CNN) (ResNet-50), a lightweight CNN (MobileNetV3-Large), and a hierarchical vision transformer (Swin Transformer-Tiny, Swin-T), affect the quality of knowledge transferred to a fixed MobileNetV3-Small student? Second, how sensitive is distillation performance to the softening temperature T and the hard-label weighting for each teacher–student pair, and can a single optimal temperature–weighting combination be recommended across all pairings? Third, does distillation yield clinically meaningful per-class improvements, particularly for the minority and ambiguous severity grades?
To answer these questions, we train and evaluate all teacher–student combinations on the APTOS 2019 Blindness Detection dataset under a unified experimental protocol. We conduct a temperature ablation over for each pairing and additionally evaluate the effect of the hard-label weighting across selected configurations. Our main findings are as follows:
• Overall KD performance. Across the three teacher architectures and four distillation temperatures, eight of the twelve single-seed KD configurations outperform the MobileNetV3-Small baseline. ResNet-50 and MobileNetV3-Large provide the most consistent improvements, while Swin-T achieves the highest single-run quadratic weighted kappa (QWK) of 0.9093 at T=4, , with a macro-F1 of 0.6851.
• Sensitivity to distillation hyperparameters. KD performance varies substantially with both temperature T and hard-label weighting , with the optimal temperature differing across teacher architectures: T=2 for MobileNetV3-Large, T=4 for Swin-T, and T=5 for ResNet-50. The ablation similarly shows configuration-dependent effects, with favoured at the tested temperature extremes and generally favoured at T=4.
• Deployment efficiency. The distilled MobileNetV3-Small retains a compact 5.94 MB model footprint. This combination of competitive predictive performance and low computational overhead supports the feasibility of deploying the model for resource-constrained or mobile DR screening.
2.1 Deep learning for diabetic retinopathy grading
The use of deep learning for DR detection has evolved over the past decade. Earlier approaches, such as the DREAM system, used handcrafted retinal features with traditional machine-learning classifiers [13]. While effective, these methods relied on task-specific feature engineering, motivating the shift toward deep learning for automated feature extraction. Around 2015, CNNs entered the field, initially targeting narrow tasks like microaneurysm detection for early diabetic retinopathy screening [14]. A major turning point came with the release of a large, publicly labelled fundus dataset through a Kaggle competition [15], enabling proper training of deep networks. Pratt et al. then developed an early CNN-based approach for five-stage DR classification, incorporating data augmentation and training on the publicly available Kaggle fundus-image dataset [16]. Soon after, Gulshan et al. demonstrated that a deep learning algorithm could achieve high sensitivity and specificity for referable DR, with performance evaluated against expert ophthalmologist grading [4]. Parallel work integrated deep learning into an existing automated DR detection pipeline, demonstrating improved performance on a publicly available dataset [17]. By 2017, research expanded toward broader validation, including detailed disease staging [18] and multiethnic, multi-disease screening systems [19]. Attention then shifted to interpretability, with methods for precise lesion localisation and visual explanation of model decisions [20,21]. Recent work addresses data scarcity and grader inconsistency through transfer learning and ordinal severity modelling, achieving strong results on benchmarks like APTOS 2019.
2.2 Knowledge distillation
KD was first introduced as a general model-compression technique and has since been widely adopted across many areas of deep learning, including natural language processing, speech, and computer vision, wherever transferring the behaviour of a large, accurate model into a smaller, faster one is valuable. In vision specifically, KD was originally proposed as a way to train a compact “student” network to mimic the softened output probabilities of a larger, pretrained “teacher” network, capturing richer inter-class similarity information than hard labels alone [11]. Soon after, researchers extended this idea beyond output matching to intermediate representations: FitNets introduced the idea of using a teacher's mid-network feature activations as “hints” to guide the student’s learning, allowing thinner networks to be compressed while retaining much of the teacher’s accuracy [22]. This was followed by attention transfer methods, which aligned the spatial attention maps of teacher and student networks at multiple points rather than relying on a single hint location, further improving feature-level knowledge transfer in CNNs [23]. Later work broadened KD beyond simple classification to more complex vision tasks such as object detection and segmentation, and introduced relational and contrastive variants that preserve similarity structures between samples rather than matching individual outputs or features [24, 25]. With the rise of vision transformers, KD was adapted to help data-hungry transformer architectures train efficiently with substantially less pretraining data, most notably through a dedicated distillation token that let a transformer learn directly from a CNN teacher’s inductive biases [26]. These developments have established KD as an important model-compression strategy for transferring the capabilities of computationally expensive models to more efficient architectures, particularly when deploying deep learning models under computational and memory constraints.
2.3 Knowledge distillation for DR classification
Several studies have applied KD specifically to DR classification. Abbasi et al. propose a semi-supervised KD approach that exploits unlabelled fundus images to augment a teacher–student training pipeline on the Messidor and EyePACS datasets, demonstrating that incorporating unlabelled data improves distillation quality when annotations are scarce [27]. Moya-Albor et al. present a computer-aided diagnosis system using an Inception-v3 teacher and an Inception-v3 student with a combined Kullback–Leibler (KL) divergence and categorical cross-entropy loss to address class imbalance in DR lesion datasets [28]. Islam et al. go further by fusing a ResNet-152 and a Swin Transformer into a composite teacher that distils into a compact Xception-CBAM student, training on both APTOS 2019 and IDRiD [29]. Shafi et al. use a transformer-based teacher (MobileViTv2) to distil into GoogLeNet with Grad-CAM explanations on the APTOS dataset [30]. Dejene et al. specifically target a lightweight MobileNet student on APTOS 2019, reporting 98.38% binary-classification accuracy and demonstrating the feasibility of KD for low-resource DR screening [31]. Wang et al. extend the KD paradigm to DR segmentation, proposing a lesion-aware distillation framework with a lesion embedding queue on IDRiD and DDR [32].
While these works collectively establish KD as a viable strategy for DR modelling, they vary widely in architecture choices, datasets, and evaluation protocols, and none systematically compares CNN-based and transformer-based teachers on the same student across a range of temperatures. The present work addresses this gap directly.
3 Materials and methods
The workflow proceeds in four stages: preprocessing, teacher training, knowledge distillation, and evaluation.
3.1 Dataset
All experiments use the Asia Pacific Tele-Ophthalmology Society (APTOS) 2019 Blindness Detection dataset [33], which contains 3,662 retinal fundus photographs collected at Aravind Eye Hospital, India, and graded by trained clinicians into five DR severity classes: 0 = No DR, 1 = Mild, 2 = Moderate, 3 = Severe, and 4 = Proliferative DR.
We did not create our own data partition. We used a publicly available pre-split version of the dataset hosted on Kaggle [34], which divides the 3,662 labelled images into training (2,930), validation (366) and test (366) subsets. The partitions were used exactly as provided, without re-splitting or modification. Table 1 reports the per-class counts computed from the provided label files. To our knowledge, the splitting procedure, including whether it was stratified and the random seed used, is not documented by the dataset's author, and the class proportions in the test subset differ from those of the full dataset (for example, No DR accounts for 54% of the test subset versus 49% overall). The random seed (42) reported elsewhere in this paper controls model initialisation and training only, not the data partition. APTOS 2019 does not distribute patient identifiers, so we could not verify that images from the same patient are confined to a single subset; this is noted as a limitation. This study used only publicly available, de-identified retinal images; no new data were collected from human participants, and no additional ethical approval or consent was required.
The dataset exhibits substantial class imbalance: No-DR images account for roughly 50% of the total, while Severe DR constitutes only about 5%. To mitigate this, we apply inverse-frequency class weighting to the teacher's cross-entropy loss and use a WeightedRandomSampler to oversample minority classes.
Table 1. APTOS 2019 dataset statistics in the provided training, validation and test subsets. Counts reflect the number of images per class and split used in all experiments.
| Split | No DR | Mild | Moderate | Severe | Prolif. |
|---|---|---|---|---|---|
| Train (80%) | 1,434 | 300 | 808 | 154 | 234 |
| Val (10%) | 172 | 40 | 104 | 22 | 28 |
| Test (10%) | 199 | 30 | 87 | 17 | 33 |
| Total | 1,805 | 370 | 999 | 193 | 295 |
3.2 Preprocessing
All images are resized to pixels to satisfy the input requirements of all three teacher backbones and normalised using the ImageNet channel statistics (mean = [0.485, 0.456, 0.406], std = [0.229, 0.224, 0.225]), consistent with the pretrained weight initialisation.
Training augmentation differs between the teacher and student pipelines. The teacher is trained with a heavier augmentation regime that includes random horizontal and vertical flips (each ), rotation up to , colour jitter (brightness and contrast , saturation , hue ), and random affine perturbation ( translation and scaling). These augmentations encourage the teacher to learn representations that are robust to the photometric variability commonly encountered in real-world fundus images. The student is trained with a lighter regime consisting of horizontal and vertical flips, rotation up to , and modest colour jitter (brightness and contrast only), without affine transformation, saturation, or hue perturbation.
Saturation and hue augmentation are deliberately excluded from the student pipeline because colour is diagnostically meaningful in retinal fundus images. In particular, the visibility of microaneurysms and the appearance of retinal vessels can depend on colour information. Excessive colour perturbation may therefore encourage the student to learn unnecessary colour invariance. In addition, the student gains some robustness to photometric variation through the teacher's soft-label distributions, which capture the teacher's responses to diverse augmented inputs without requiring the student to experience the full range of augmentation directly [11].
During distillation, the frozen teacher and the student process identical image tensors drawn from the student training loader. Thus, the soft targets represent the teacher's response to the same lightly augmented inputs used by the student.
3.3 Teacher training
Three teacher architectures are evaluated in this study: ResNet-50, MobileNetV3-Large, and Swin-Transformer-Tiny (hereafter Swin-T). Each is initialised from ImageNet pretrained weights and trained end-to-end on the APTOS training set, with only the classification head modified to produce five output logits corresponding to the DR severity grades.
3.3.1 ResNet-50
The default fully-connected head is replaced with a single linear layer mapping the 2048-dimensional penultimate feature vector directly to five class logits.
3.3.2 MobileNetV3-Large
The final linear layer of the four-layer classifier block is replaced with a linear layer producing five logits. All preceding layers of the classifier are retained and trained end-to-end alongside the backbone.
3.3.3 Swin-T
The default classification head is replaced with a single linear layer projecting the 768-dimensional output representation to five class logits.
3.3.4 Training configuration
ResNet-50 and MobileNetV3-Large share an identical training configuration: the Adam optimiser at a learning rate of and weight decay . Swin-T is trained with AdamW [35] at a lower learning rate of , which is standard practice for vision transformer fine-tuning, where larger gradient steps risk destabilising the self-attention layers during adaptation to a new domain [12]. All three teachers use a cosine annealing learning-rate schedule
(minimum ), class-weighted cross-entropy loss to address the pronounced class imbalance in APTOS 2019, and a WeightedRandomSampler to ensure balanced class representation within each mini-batch. Training runs for 30 epochs with a batch size of 32, and the checkpoint that achieves the highest validation QWK is selected. Following training, the teacher is set to evaluation mode and all its parameters are frozen permanently; no teacher gradient is computed at any point during student training.
3.4 Knowledge distillation
We follow the response-based offline KD formulation of Hinton et al. [11]. Given a batch of images x, let and denote the logits produced by the frozen teacher and the trainable student, respectively, and let y denote the hard ground-truth labels. The total training loss is:
where denotes the softmax function, is unweighted cross-entropy, is the KL divergence with batchmean reduction, is the hard-label weight, and is the distillation temperature. The factor compensates for the reduction in gradient magnitude that occurs as increases, keeping the contribution of the soft-target term commensurate with the cross-entropy term across the temperature range tested [11]. In the primary experiments is set to 0.3, placing 70% of the training signal on the teacher's soft distributions; a secondary ablation over is reported in the Results (Alpha sensitivity).
3.4.1 Student architecture
The student is MobileNetV3-Small, initialised from ImageNet pretrained weights. Only the final linear layer of the four-layer classifier head is replaced with a linear mapping to five output logits; the preceding layers (Linear(576, 1024), Hardswish, Dropout(0.2)) are retained from the pretrained checkpoint.
3.4.2 Student training protocol
The student is trained with the Adam optimiser at learning rate and weight decay , with a cosine annealing schedule (minimum ) and a WeightedRandomSampler to maintain balanced class representation within each mini-batch. Training runs for 30 epochs with batch size 32. Validation performance is monitored using unweighted cross-entropy loss, and the checkpoint achieving the highest validation QWK is selected for final evaluation.
3.5 Temperature ablation
To identify the optimal distillation temperature for each teacher, we sweep with fixed at 0.3. For each value of , a fresh student is initialised from the same ImageNet-pretrained checkpoint to eliminate order-dependent variance between runs. Each teacher is trained once and frozen before the sweep begins, so that any difference in student performance across temperatures is attributable solely to .
3.6 Alpha sensitivity ablation
To determine whether the relative weighting of soft-target and hard-label supervision depends on teacher architecture, temperature, or their interaction, the temperature ablation described above is extended with a second hard-label weight, , applied across the same temperature range and the same three teacher–student pairings. Combined with the temperature ablation, this yields a factorial design (teacher temperature ), for 24 configurations in total. As in the temperature ablation, a fresh student is initialised from the same ImageNet-pretrained checkpoint for every configuration, and each teacher checkpoint from the Teacher training subsection is reused unchanged across all combinations for that teacher.
3.7 Multi-seed robustness verification
The primary ablations were conducted with a single random seed (seed 42). Two distinct patterns in the results motivated a targeted multi-seed follow-up. First, the ResNet-50 pipeline at T=4 produced seed-42 test QWK values (0.8666 and 0.8698) below both the no-KD baseline and the same pipeline at adjacent temperatures, with validation–test QWK gaps of 0.0321 and 0.0314. This pattern is inconsistent with a genuine temperature effect and suggests a seed-specific artefact. Second, at ResNet-50 T=3 and Swin-T T=4, the single-seed margin between and was narrow enough (below 0.003 QWK) that the direction of the difference could plausibly reverse under a different initialisation.
To address both concerns, two additional random seeds (123, 999) were used to retrain the student at ResNet-50 , ResNet-50 , and Swin-T , for both values at each configuration. This yields three seeds in total per (teacher, , ) triplet, covering six repeated configurations overall. All hyperparameters other than the random seed follow the Knowledge distillation subsection.
For transparency, a run was flagged when its validation–test QWK gap was approximately seven times the mean gap of the other two seeds at the same configuration. Flagged runs are reported individually and retained in all primary means; a sensitivity analysis excluding them is also reported. The flagging rule was defined after inspecting the seed-42 results and is descriptive, not a pre-specified exclusion criterion.
3.8 Baseline
To quantify the benefit of distillation, a MobileNetV3-Small baseline is trained under the same student protocol described in the Knowledge distillation subsection but with no teacher. The loss reduces to standard unweighted cross-entropy on hard labels, with all other hyperparameters held constant.
3.9 Evaluation protocol
All models are evaluated on the same held-out test set. The primary metric is quadratic weighted kappa (QWK), which penalises misclassifications proportionally to the squared distance between the predicted and true ordinal grade and is the standard metric for DR severity assessment. Secondary metrics include top-1 accuracy, macro-averaged F1 score (), and per-class F1. Inference efficiency is characterised by parameter count, model size (MB), and single-image latency (mean of 100 GPU forward passes). The performance retention metric:
quantifies what fraction of the teacher's discriminative ability is recovered in the compressed student.
Table 2 summarises all fixed hyperparameters used throughout the study.
Table 2. Fixed hyperparameters shared across all experiments.
| Hyperparameter | Value |
|---|---|
| Image size | |
| Batch size | |
| Epochs | |
| Optimiser (ResNet-50, MobileNetV3-Large, student) | Adam |
| Optimiser (Swin-T teacher) | AdamW |
| Learning rate (ResNet-50, MobileNetV3-Large, student) | |
| Learning rate (Swin-T teacher) | |
| LR schedule | Cosine annealing (min ) |
| Weight decay | |
| KD weight (temperature ablation) | |
| KD weight (alpha ablation) | , all 3 teachers |
| Temperature | , all 3 teachers |
| Random seed (primary) | |
| Random seed (repeated-seed verification) |
3.10 Implementation and code availability
All models were implemented in Python (version 3.12.12) using PyTorch (version 2.10.0) and torchvision (version 0.25.0). Quadratic weighted kappa (QWK) and macro-averaged F1-score were computed using scikit-learn (version 1.6.1). Experiments, including latency measurements, were conducted in the Kaggle Notebooks environment. The code, experimental notebooks, and associated research materials are available from Zenodo at https://doi.org/10.5281/zenodo.23533877.
4 Results
This section reports, in order: test-set performance of the three teacher checkpoints; a three-seed no-KD MobileNetV3-Small baseline; a single-seed temperature ablation at ; a single-seed alpha-sensitivity analysis at ; repeated-seed verification of six selected configurations; and per-class and efficiency analyses of selected student configurations. All models were evaluated on the same held-out APTOS 2019 test set. QWK served as the primary metric, while accuracy and macro-F1 were reported as secondary metrics. Within each run, the checkpoint with the highest validation QWK was selected, and the selected checkpoint was then evaluated once on the test set.
Two reporting conventions follow from the study design. First, the temperature–alpha configurations were compared using their test-set results; therefore, the highest observed value across the grid is reported as a screening outcome rather than as an unbiased estimate of the selected configuration's generalisation performance. Second, all 24 grid configurations were initially evaluated using a single seed, while six selected configurations were subsequently repeated using three seeds. Single-seed and multi-seed results are reported separately and are not pooled.
4.1 Teacher model performance
Table 3 reports test-set performance and computational characteristics for the three teacher architectures, each trained under the protocol described in the Teacher training subsection of the Materials and methods.
Table 4 reports per-class F1 for each teacher.
Table 3. Test-set performance and efficiency of the three teacher architectures.
| Teacher | Params (M) | Size (MB) | Lat. (ms) | QWK | Acc. | macro-F1 |
|---|---|---|---|---|---|---|
| ResNet-50 | 23.52 | 90.02 | 5.61 | 0.8793 | 0.8169 | 0.6589 |
| MobileNetV3-Large | 4.21 | 16.25 | 6.33 | 0.9084 | 0.8333 | 0.6449 |
| Swin-T | 27.52 | 105.28 | 12.22 | 0.9024 | 0.8197 | 0.6540 |
Table 4. Teacher per-class F1 on the test set.
| Teacher | No DR | Mild | Moderate | Severe | Prolif. |
|---|---|---|---|---|---|
| ResNet-50 | 0.9823 | 0.6176 | 0.7000 | 0.4186 | 0.5758 |
| MobileNetV3-Large | 0.9800 | 0.5538 | 0.7709 | 0.3125 | 0.6071 |
| Swin-T | 0.9847 | 0.6111 | 0.7284 | 0.3556 | 0.5902 |
4.2 Student baseline (no KD)
The MobileNetV3-Small student was trained without a teacher under the baseline protocol described in the Materials and methods at three random seeds (42, 123, 999). Table 5 reports test-set metrics for each seed, and Table 6 the corresponding per-class F1 scores.
Table 5. No-KD MobileNetV3-Small baseline across three random seeds, held-out test set.
| Seed | Test QWK | Test Acc. | macro-F1 |
|---|---|---|---|
| 42 | 0.8913 | 0.8169 | 0.6190 |
| 123 | 0.8948 | 0.8361 | 0.6522 |
| 999 | 0.8551 | 0.8033 | 0.5871 |
| Mean | 0.8804 | 0.8188 | 0.6194 |
| Range | 0.0397 | 0.0328 | 0.0651 |
Two reference values follow from Table 5 and are used consistently below. Seed 42 (QWK 0.8913) is the single-seed reference baseline for the temperature and alpha-screening tables because those configurations were trained at seed 42. The three-seed mean (QWK 0.8804) is reported as the multi-seed reference baseline when interpreting repeated-seed distillation results.
Baseline QWK ranged from 0.8551 to 0.8948 across the three seeds. This seed-dependent variation is considered when interpreting the single-seed screening results; repeated-seed comparisons are reported in the Multi-seed robustness verification subsection below.
Table 6. No-KD baseline per-class F1 across three random seeds.
| Seed | No DR | Mild | Moderate | Severe | Prolif. |
|---|---|---|---|---|---|
| 42 | 0.9823 | 0.5000 | 0.7407 | 0.3333 | 0.5385 |
| 123 | 0.9799 | 0.5357 | 0.7849 | 0.3784 | 0.5818 |
| 999 | 0.9626 | 0.4400 | 0.7411 | 0.3429 | 0.4490 |
| Mean | 0.9749 | 0.4919 | 0.7556 | 0.3515 | 0.5231 |
4.3 Ablation with
Tables 7, 8, and 9 report validation and test performance across for each teacher at the primary hard-label weight, . For every configuration, the checkpoint with the highest validation QWK was selected, and the selected checkpoint was then evaluated once on the held-out test set.
Table 7. Temperature ablation, ResNet-50→MobileNetV3-Small ().
| Val QWK | Test QWK | Test Acc. | macro-F1 | Ret. (%) | Best Ep. | |
|---|---|---|---|---|---|---|
| 2 | 0.8977 | 0.9019 | 0.8224 | 0.6539 | 102.6 | 22 |
| 3 | 0.9048 | 0.8939 | 0.8142 | 0.6425 | 101.7 | 22 |
| 4 | 0.8987 | 0.8666 | 0.7814 | 0.5965 | 98.6 | 12 |
| 5 | 0.9050 | 0.9090 | 0.8142 | 0.6537 | 103.4 | 24 |
Teacher test QWK: 0.8793. Reference baseline (seed 42) test QWK: 0.8913.
Table 8. Temperature ablation, MobileNetV3-Large→MobileNetV3-Small ().
| Val QWK | Test QWK | Test Acc. | macro-F1 | Ret. (%) | Best Ep. | |
|---|---|---|---|---|---|---|
| 2 | 0.9190 | 0.9066 | 0.8443 | 0.6695 | 99.8 | 27 |
| 3 | 0.8988 | 0.8932 | 0.8333 | 0.6418 | 98.3 | 20 |
| 4 | 0.8986 | 0.8822 | 0.8005 | 0.5993 | 97.1 | 22 |
| 5 | 0.9041 | 0.8919 | 0.8251 | 0.6299 | 98.2 | 20 |
Teacher test QWK: 0.9084. Reference baseline (seed 42) test QWK: 0.8913.
Table 9. Temperature ablation, Swin-T→MobileNetV3-Small ().
| Val QWK | Test QWK | Test Acc. | macro-F1 | Ret. (%) | Best Ep. | |
|---|---|---|---|---|---|---|
| 2 | 0.9064 | 0.8909 | 0.8197 | 0.6560 | 98.7 | 22 |
| 3 | 0.9010 | 0.8762 | 0.7978 | 0.6081 | 97.1 | 13 |
| 4 | 0.9050 | 0.9065 | 0.8251 | 0.6620 | 100.5 | 28 |
| 5 | 0.9115 | 0.9008 | 0.8169 | 0.6407 | 99.8 | 22 |
Teacher test QWK: 0.9024. Reference baseline (seed 42) test QWK: 0.8913.
Across the twelve evaluated configurations, eight produced a higher observed test QWK than the no-KD baseline (0.8913), while four produced lower values: ResNet-50 at (0.8666), MobileNetV3-Large at (0.8822), and Swin-T at (0.8909) and (0.8762). The highest observed test QWK for each teacher was 0.9090 for ResNet-50 at , 0.9066 for MobileNetV3-Large at , and 0.9065 for Swin-T at .
These are single-seed screening results. The held-out test values are reported for comparative analysis across the planned temperature sweep and should not be interpreted as independent estimates after selecting the highest observed configuration.
4.4 Alpha sensitivity
Table 10 shows a clear temperature-linked pattern in the sign of the preference. At the temperature extremes tested, yielded the higher observed test QWK for all three teachers (,
-0.0082, -0.0082), whereas at all three teachers favoured . was the only temperature at which the teachers disagreed in direction. Under the arm the temperature associated with each teacher's highest observed test QWK was for ResNet-50 (0.8942), for MobileNetV3-Large (0.9017) and for Swin-T (0.9093); MobileNetV3-Large's optimum thus shifted relative to the arm, suggesting an interaction between the two hyperparameters in the reported screening results.
Table 10. Test QWK by temperature and alpha, all three teachers.
| Teacher | ||||
|---|---|---|---|---|
| ResNet-50 | 2 | 0.9019 | 0.8875 | -0.0144 |
| ResNet-50 | 3 | 0.8939 | 0.8922 | -0.0017 |
| ResNet-50 | 4 | 0.8666 | 0.8698 | +0.0032 |
| ResNet-50 | 5 | 0.9090 | 0.8942 | -0.0148 |
| MobileNetV3-Large | 2 | 0.9066 | 0.8869 | -0.0197 |
| MobileNetV3-Large | 3 | 0.8932 | 0.8672 | -0.0260 |
| MobileNetV3-Large | 4 | 0.8822 | 0.9017 | +0.0195 |
| MobileNetV3-Large | 5 | 0.8919 | 0.8837 | -0.0082 |
| Swin-T | 2 | 0.8909 | 0.8782 | -0.0127 |
| Swin-T | 3 | 0.8762 | 0.8924 | +0.0162 |
| Swin-T | 4 | 0.9065 | 0.9093 | +0.0028 |
| Swin-T | 5 | 0.9008 | 0.8926 | -0.0082 |
is test QWK at minus test QWK at .
Fig 1 visualises the column of Table 10 as a heat map, showing the sign of the preference by teacher and temperature.

Fig 1. Effect of the hard-label weight on test QWK across the single-seed screening grid. Heat map of (test QWK at minus test QWK at ) for each teacher and temperature , seed 42 only (values as in Table 10). Blue cells indicate a higher QWK at and red cells a higher QWK at . Repeated-seed results for selected configurations are shown in Fig 2.
All twelve pairs were initially screened at seed 42. The three configurations with the smallest observed values were selected for repeated-seed verification: ResNet-50 at (0.0017), Swin-T at (0.0028), and ResNet-50 at (0.0032). These values were all below 0.004 QWK. The selection was motivated by the possibility that a small single-seed margin could change under a different initialisation.
Validation and test QWK and additional metrics (Acc., , retention) for each of the twelve configurations above are reported in Table 11.
Table 11. Alpha = 0.7 sweep, full metrics, all three teachers.
| Teacher | T | Val QWK | Test QWK | Acc. | macro-F1 | Ret. (%) |
|---|---|---|---|---|---|---|
| ResNet-50 | 2 | 0.9172 | 0.8875 | 0.8388 | 0.6743 | 100.9 |
| ResNet-50 | 3 | 0.9088 | 0.8922 | 0.8197 | 0.6545 | 101.5 |
| ResNet-50 | 4 | 0.9012 | 0.8698 | 0.7923 | 0.5926 | 98.9 |
| ResNet-50 | 5 | 0.9052 | 0.8942 | 0.8251 | 0.6570 | 101.7 |
| MobileNetV3-Large | 2 | 0.8949 | 0.8869 | 0.8361 | 0.6468 | 97.6 |
| MobileNetV3-Large | 3 | 0.9040 | 0.8672 | 0.8169 | 0.6245 | 95.5 |
| MobileNetV3-Large | 4 | 0.9140 | 0.9017 | 0.8361 | 0.6450 | 99.3 |
| MobileNetV3-Large | 5 | 0.9024 | 0.8837 | 0.8197 | 0.6118 | 97.3 |
| Swin-T | 2 | 0.8964 | 0.8782 | 0.8060 | 0.6302 | 97.3 |
| Swin-T | 3 | 0.9097 | 0.8924 | 0.8224 | 0.6392 | 98.9 |
| Swin-T | 4 | 0.9250 | 0.9093 | 0.8443 | 0.6851 | 100.8 |
| Swin-T | 5 | 0.9126 | 0.8926 | 0.8142 | 0.6281 | 98.9 |
Values above 100% indicate that the student's observed test QWK exceeded the corresponding teacher's observed test QWK; they should not be interpreted as literal recovery beyond the teacher's generalisation ability.
4.5 Multi-seed robustness verification
Six of the twenty-four (teacher, , ) configurations were repeated at three seeds (42, 123, and 999). The repeated configurations were selected after the single-seed screening using two practical criteria: (i) the three smallest observed alpha margins in Table 10, corresponding to ResNet-50 at , ResNet-50 at , and Swin-T at ; and (ii) the low seed-42 test QWK accompanied by a large validation-test gap at ResNet-50 . These criteria led to repeated evaluation of ResNet-50 at and and Swin-T at , each at both alpha values. The remaining eighteen configurations were evaluated only at seed 42.
Individual repeated-seed results are given in Tables 12 and 13, and configuration means are given in Table 14, with filtered means reported alongside as a sensitivity analysis. The seed-42 validation–test gap at ResNet-50 was approximately seven times the mean gap of the two counterpart seeds at the same configuration: 0.0321 versus 0.0047 for , and 0.0314 versus 0.0047 for .
Table 12. Repeated-seed results, Swin-T→MobileNetV3-Small, T=4.
| α | Seed | Val QWK | Test QWK | Acc. | macro-F1 |
|---|---|---|---|---|---|
| 0.3 | 42 | 0.9050 | 0.9065 | 0.8251 | 0.6620 |
| 0.3 | 123 | 0.9030 | 0.8966 | 0.7978 | 0.6341 |
| 0.3 | 999 | 0.9198 | 0.8984 | 0.8169 | 0.6383 |
| 0.7 | 42 | 0.9250 | 0.9093 | 0.8443 | 0.6851 |
| 0.7 | 123 | 0.9098 | 0.8999 | 0.8224 | 0.6410 |
| 0.7 | 999 | 0.9173 | 0.8979 | 0.8361 | 0.6580 |
Across the repeated runs, the Swin-T configuration produced test QWK values from 0.8966 to 0.9093, exceeding the highest observed no-KD baseline value of 0.8948 in all six runs. The repeated-seed means showed only small alpha differences: was higher for Swin-T at and ResNet-50 at , whereas was higher for ResNet-50 at . These margins were small relative to the observed baseline seed range and do not support a general alpha preference. The low seed-42 result for ResNet-50 at was not reproduced at the two additional seeds, suggesting seed-dependent variation; the remaining single-seed shortfalls were not repeated. Fig 2 shows the individual seed values underlying Tables 12 and 13, together with the flagged runs. When the flagged runs are excluded, the ResNet-50 means (0.9019 and 0.9065) are comparable to the Swin-T means (0.9005 and 0.9024), so the repeated-seed data do not separate these two teachers.
Table 13. Repeated-seed results, ResNet-50→MobileNetV3-Small, and . The dagger marks runs whose validation–test QWK gap is approximately seven times the mean gap of their two counterpart seeds at the same configuration; these runs are retained in the reported means.
| Seed | Val QWK | Test QWK | Val–Test | macro-F1 | ||
|---|---|---|---|---|---|---|
| 3 | 0.3 | 42 | 0.9048 | 0.8939 | 0.0109 | 0.6425 |
| 3 | 0.3 | 123 | 0.9082 | 0.9075 | 0.0007 | 0.6681 |
| 3 | 0.3 | 999 | 0.8996 | 0.8856 | 0.0140 | 0.6327 |
| 3 | 0.7 | 42 | 0.9088 | 0.8922 | 0.0166 | 0.6545 |
| 3 | 0.7 | 123 | 0.9139 | 0.8915 | 0.0224 | 0.6729 |
| 3 | 0.7 | 999 | 0.9136 | 0.8813 | 0.0323 | 0.6551 |
| 4 | 0.3 | 0.8987 | 0.8666 | 0.0321 | 0.5965 | |
| 4 | 0.3 | 123 | 0.9053 | 0.9003 | 0.0050 | 0.6677 |
| 4 | 0.3 | 999 | 0.9078 | 0.9034 | 0.0044 | 0.6482 |
| 4 | 0.7 | 0.9012 | 0.8698 | 0.0314 | 0.5926 | |
| 4 | 0.7 | 123 | 0.9146 | 0.9081 | 0.0065 | 0.6739 |
| 4 | 0.7 | 999 | 0.9078 | 0.9049 | 0.0029 | 0.6399 |
Table 14. Mean test QWK over the repeated configurations. Primary means include all three seeds; the final column repeats the calculation with the flagged seed-42 runs at ResNet-50 excluded, as a sensitivity analysis.
| Teacher | Mean (3 seeds) | Mean (excl. flagged) | ||
|---|---|---|---|---|
| ResNet-50 | 3 | 0.3 | 0.8957 | – |
| ResNet-50 | 3 | 0.7 | 0.8883 | – |
| ResNet-50 | 4 | 0.3 | 0.8901 | 0.9019 |
| ResNet-50 | 4 | 0.7 | 0.8943 | 0.9065 |
| Swin-T | 4 | 0.3 | 0.9005 | – |
| Swin-T | 4 | 0.7 | 0.9024 | – |
| No-KD baseline, 3-seed mean | 0.8804 | – | ||
4.6 Best-configuration summary
Table 15 reports, for each teacher, the configuration with the highest single-seed test QWK identified in the temperature and alpha analyses above, together with its seed-verification status.
Table 15. Highest observed screening result per teacher. Comp.: teacher-to-student parameter ratio. Ratios are computed from unrounded parameter counts. Test QWK values are single-seed screening maxima over the grid.
| Teacher | Test QWK | Comp. | Verification status | ||
|---|---|---|---|---|---|
| ResNet-50 | 5 | 0.3 | 0.9090 | single seed only | |
| MobileNetV3-Large | 2 | 0.3 | 0.9066 | single seed only | |
| Swin-T | 4 | 0.7 | 0.9093 | 3 seeds; mean 0.9024 (Table 14) |
4.7 Per-class analysis
Table 16 reports per-class F1 for the baseline and the best single-seed student identified per pipeline in Table 15.
Fig 3 shows normalised confusion matrices for the baseline and the three best-performing students.
4.8 Efficiency
Table 17 reports parameter count, model size and latency for the three teachers and the deployed student. Latency was measured at batch size 1 on GPU with synchronisation, as the mean of 100 timed forward passes after warm-up. At this batch size, per-call overhead contributes a substantial share of the measured time and the architectures are not well separated: the 23.52 M-parameter ResNet-50 (5.61 ms) is faster than the 4.21 M-parameter MobileNetV3-Large (6.33 ms). The efficiency argument for the distilled student therefore rests on its 1.52 M parameters and 5.94 MB

Fig 2. Repeated-seed test QWK for the six verified configurations. Individual test QWK values at seeds 42, 123 and 999 for ResNet-50→MobileNetV3-Small ( and ) and Swin-T→MobileNetV3-Small (), each at and (values as in Tables 12 and 13). Horizontal bars show the three-seed mean. Crosses mark the two flagged seed-42 runs at ResNet-50 , which are retained in the means. The dashed line is the seed-42 no-KD baseline (QWK 0.8913) and the shaded band is the three-seed baseline range (0.8551–0.8948).
Table 16. Per-class F1 on the test set: seed-42 no-KD baseline against the highest observed student per teacher pipeline (Table 15). All rows are single-seed results; the configurations were identified by their test QWK, so these values describe the selected runs rather than providing independent per-class estimates. MNV3-S, MobileNetV3-Small; MNV3-L, MobileNetV3-Large.
| Model | macro-F1 | QWK | |||||
|---|---|---|---|---|---|---|---|
| Baseline (No KD) | 0.9823 | 0.5000 | 0.7407 | 0.3333 | 0.5385 | 0.6190 | 0.8913 |
| ResNet-50→MNV3-S (T=5) | 0.9796 | 0.5479 | 0.7066 | 0.3902 | 0.6441 | 0.6537 | 0.9090 |
| MNV3-L→MNV3-S (T=2) | 0.9874 | 0.5970 | 0.7845 | 0.3784 | 0.6000 | 0.6695 | 0.9066 |
| Swin-T→MNV3-S (T=4, α=0.7) | 0.9823 | 0.6269 | 0.7717 | 0.4324 | 0.6122 | 0.6851 | 0.9093 |
footprint, which are and smaller than the Swin-T teacher respectively, rather than on the latency column. On-device CPU benchmarking was not performed.
Table 17. Model efficiency. Latency: mean of 100 single-image forward passes, GPU, batch size 1.
| Model | Params (M) | Size (MB) | Lat. (ms) | Role |
|---|---|---|---|---|
| ResNet-50 | 23.52 | 90.02 | 5.61 | Teacher |
| MobileNetV3-Large | 4.21 | 16.25 | 6.33 | Teacher |
| Swin-T | 27.52 | 105.28 | 12.22 | Teacher |
| MobileNetV3-Small | 1.52 | 5.94 | 5.00 | Student (deployed) |
5 Discussion
This section addresses the three questions posed in the Introduction in turn: the influence of teacher architecture, the sensitivity of distillation to and , and the per-class behaviour of the distilled students.
A

B

C

D

Fig 3. Row-normalised confusion matrices on the test set. (A) No-KD MobileNetV3-Small baseline (seed 42). (B) ResNet-50→MobileNetV3-Small, , . (C) MobileNetV3-Large→MobileNetV3-Small, , . (D) Swin-T→MobileNetV3-Small, , . Each row sums to 1 over the true class; the test set contains 199, 30, 87, 17 and 33 images of No DR, Mild, Moderate, Severe and Proliferative DR, respectively. Panels B–D show the highest-QWK student per teacher, selected on test QWK (Table 15).
5.1 Distillation into a compact student was associated with improved ordinal agreement
The most consistently supported result in this study is the comparison between the repeated Swin-T students and the no-KD baseline. All six repeated Swin-T runs, spanning three seeds at each of two values, produced a test QWK above the highest of the three baseline seeds. The three-seed mean at (0.9024) exceeded the three-seed baseline mean (0.8804) by 0.0220 QWK. Because this ordering held at every reported seed for both configurations, it did not depend on the choice of baseline reference run. Across the wider single-seed grid, ten of twelve configurations at exceeded the three-seed baseline mean of 0.8804, although this is a descriptive comparison because those grid cells were not repeated. The distilled student reaching this level uses 1.52 M parameters compared with 27.52 M for the Swin-T teacher, an reduction. Its three-seed mean QWK of 0.9024 matches the reported QWK of the single Swin-T teacher checkpoint to four decimal places. The Swin-T , configuration also had the highest validation QWK in the whole grid (0.9250) and the highest three-seed mean validation QWK among the six repeated configurations (0.9174), so it would have been selected without reference to test data.
5.2 Teacher architecture influenced the error profile more than the aggregate score
The three teachers differed in architecture and parameter count, yet their highest observed single-seed student QWK values differed by only 0.0027 (0.9066–0.9093; Table 15). Because these values were obtained through test-set screening, they should not be treated as independent estimates of generalisation. The per-class results suggest that the differences lie elsewhere. The Swin-T student recorded the highest macro-F1 (0.6851), while the ResNet-50 student recorded the highest Proliferative DR F1 (0.6441), even though ResNet-50 was the lowest-QWK teacher. No pipeline led on every class. MobileNetV3-Large, the smallest teacher at 4.21 M parameters, recorded the highest teacher QWK (0.9084). Its pairing with MobileNetV3-Small represents only a parameter reduction and is therefore better interpreted as a comparison between architecturally similar models than as the strongest compression setting. The limited size and class imbalance of the APTOS 2019 training split may limit the extent to which higher-capacity backbones realise a capacity advantage; this explanation was not tested directly.
5.3 Temperature and hard-label weighting interact, and neither admits a single default
At , the temperature associated with each teacher's highest observed test QWK differed across architectures ( , , and for MobileNetV3-Large, Swin-T, and ResNet-50, respectively), with a within-teacher spread across temperatures of 0.0244–0.0424 QWK. This ordering did not carry over to , where MobileNetV3-Large's highest observed value also fell at . The preference itself tracked temperature: at and every teacher favoured , whereas at every teacher favoured ; was the sole point of disagreement. Together, these results suggest that temperature and interact under the tested configurations, so fixed values cannot be assumed to transfer consistently across teacher architectures. A possible mechanism is that the soft-target term in Eq (1) is scaled by , causing the effective balance of gradient contributions to vary with temperature even when is held fixed. Disentangling this scaling from any genuine interaction would require an experiment not performed here.
5.4 Repeated-seed results did not establish a universal preference
The three-seed means favoured for Swin-T at and ResNet-50 at , whereas they favoured for ResNet-50 at . These mean differences were small relative to the observed baseline seed range of 0.0397, indicating configuration-dependent tendencies rather than a general preference for either value. The low seed-42 result for ResNet-50 at was not reproduced at the two additional seeds, which is consistent with seed-dependent variation, although three seeds are insufficient for a firm attribution. The remaining single-seed shortfalls were not repeated and remain unverified. For the Swin-T , configuration, the highest single-seed value (0.9093) was 0.0069 QWK above its three-seed mean (0.9024), illustrating how a single observed maximum can differ from a repeated-seed summary.
5.5 Per-class behaviour differed mainly across the DR grades
All students and teachers classified No DR at F1 above 0.97, so the largest differences between configurations occurred in the disease grades. Mild DR showed the largest observed improvement: the Swin-T student reached F1 0.6269 compared with the baseline range of 0.4400–0.5357 across seeds, exceeding the highest baseline-seed value by 0.0912. Because per-class scores were not recorded for the repeated student seeds, this comparison remains a single-seed observation and should be interpreted cautiously. Among the reported teacher and student configurations, Severe DR had the lowest per-class F1, with a maximum of 0.4324. With only 30 Mild and 17 Severe DR images in the test set, these per-class estimates are sensitive to a small number of individual predictions.
5.6 Comparison with published work
Table 18 places these results alongside recent APTOS 2019 studies, with protocol differences stated explicitly, because such comparisons are informative only where task, split, and metric match. The most directly comparable listed study reports five-class ordinal QWK of under five-fold cross-validation and 0.919 on a held-out split, both above the value obtained here. That study also reports a variance estimate, whereas the present single-split design does not provide a variance estimate for the grid as a whole. A further study reports 99.04% five-class accuracy without a stated split or variance estimate; accuracy on an unspecified split and QWK on a held-out split are not directly comparable, and the row is included for completeness rather than as a benchmark. We make no claim of state-of-the-art performance. The contribution of this work lies in the systematic comparison of CNN and transformer teachers distilled into a common student across a temperature-weighting grid under a single protocol, together with seed-level characterisation of the variability of selected comparisons.
Table 18. Comparison with selected recent studies using the APTOS 2019 dataset. Direct comparison is valid only for studies using the same classification task, dataset split, and evaluation metric. Protocol differences are reported explicitly.
| Method | Venue (Year) | Task | Metric / Protocol | Value |
|---|---|---|---|---|
| Islam et al. [29] | Appl. Sci. (2023) | Five-class | Accuracy (split unspecified) | 99.04% |
| Dharrao et al. [36] | Discov. Appl. Sci. (2025) | Five-class ordinal | QWK, five-fold CV | 0.923 ± 0.008 |
| Dharrao et al. [36] | Discov. Appl. Sci. (2025) | Five-class ordinal | QWK, held-out test set | 0.919 |
| This work: Swin-T → MobileNetV3-Small KD | - | Five-class ordinal | QWK, single held-out split; highest observed single-seed result over a 24-cell screening grid, with the three-seed mean for the same configuration in parentheses | 0.9093 (0.9024) |
5.7 Scope and future work
This study used a single dataset (APTOS 2019), a single third-party train/validation/test split whose construction is undocumented, and one training protocol. The findings therefore do not establish generalisation beyond this split, and no claim of clinical readiness is made.
Most grid configurations were evaluated at one seed, whereas only selected configurations received repeated-seed verification. The observed baseline seed variation therefore warrants cautious interpretation of small single-seed differences. In addition, each teacher was represented by one trained checkpoint, and the imbalanced test set limits the precision of estimates for the rarer DR grades.
Future work should evaluate the selected configurations across more seeds and independent DR datasets, examine deployment performance on CPU or edge hardware, and compare KD with complementary compression methods such as pruning and quantisation.
6 Conclusion
This study evaluated offline knowledge distillation for five-class diabetic retinopathy grading on the APTOS 2019 dataset using ResNet-50, MobileNetV3-Large, and Swin-T teachers and a MobileNetV3-Small student. Distillation produced competitive student performance under the tested protocol, with the highest observed single-seed QWK reaching 0.9093 for the Swin-T → MobileNetV3-Small configuration at T=4 and . Across three seeds, the same configuration achieved a mean QWK of 0.9024, while using 1.52 M parameters and a 5.94 MB model footprint. The temperature–alpha analysis indicated that their effects depended on the teacher and configuration rather than supporting a universal setting. The results therefore support knowledge distillation as a practical model-compression strategy under this experimental protocol, but not as evidence of universal superiority or clinical readiness. The observed seed variability, single-checkpoint teacher comparisons, single-split evaluation, and absence of external validation motivate further evaluation across additional seeds, independent datasets, and deployment-relevant hardware before clinical use is considered.
Acknowledgments
The authors used AI-assisted language tools (GPT 5.6 and Anthropic Claude Opus 5) for grammar, readability, and language editing during manuscript preparation. These tools were not used to generate data, conduct experiments, perform analyses, or make scientific conclusions. All content was reviewed and approved by the authors, who take responsibility for the final manuscript.
References
[1] Joanne WY Yau, Sophie L Rogers, Ryo Kawasaki, Ecosse L Lamoureux, Jonathan W Kowalski, Toke Bek, Shih-Jen Chen, Jacqueline M Dekker, Astrid Fletcher, Jakob Grauslund, et al. Global prevalence and major risk factors of diabetic retinopathy. Diabetes Care, 35(3):556–564, 2012.
[2] Charles P Wilkinson, Frederick L Ferris III, Ronald E Klein, Paul P Lee, Carl David Agardh, Matthew Davis, Diana Dills, Anselm Kampik, Rangasamy Pararajasegaram, Juan T Verdaguer, et al. Proposed international clinical diabetic retinopathy and diabetic macular edema disease severity scales. Ophthalmology, 110(9):1677–1682, 2003.
[3] Thomas E. Rohan, Chris Frost, and Nicholas J. Wald. Prevention of blindness by screening for diabetic retinopathy: A quantitative assessment. BMJ, 299(6709):1198–1201, 1989.
[4] Varun Gulshan, Lily Peng, Marc Coram, Martin C. Stumpe, Derek Wu, Arunachalam Narayanaswamy, Subhashini Venugopalan, Kasumi Widner, Tom Madams, Jorge Cuadros, Ramasamy Kim, Rajiv Raman, Philip C. Nelson, Jessica L. Mega, and Dale R. Webster. Development and validation of a deep learning algorithm for detection of diabetic retinopathy in retinal fundus photographs. JAMA, 316(22):2402–2410, 2016.
[5] Carson Lam, Darvin Yi, Margaret Guo, and Tony Lindsey. Automated detection of diabetic retinopathy using deep learning. AMIA Jt Summits Transl Sci Proc, 2017:147–155, 2018.
[6] Kaiming He, Xiangyu Zhang, Shaoqing Ren, and Jian Sun. Deep residual learning for image recognition. In Proc. IEEE Conf. Comput. Vis. Pattern Recognit. (CVPR), pages 770–778. IEEE, 2016.
[7] Ze Liu, Yutong Lin, Yue Cao, Han Hu, Yixuan Wei, Zheng Zhang, Stephen Lin, and Baining Guo. Swin transformer: Hierarchical vision transformer using shifted windows. In 2021 IEEE/CVF Int. Conf. Comput. Vis.(ICCV), pages 9992–10002. IEEE, 2021.
[8] Aadi Joshi, Manav S Sharma, Vijay Uttam Rathod, Ashlesha Sawant, Prajakta Musale, and Asmita B Kalamkar. Mobile-ready automated triage of diabetic retinopathy using digital fundus images. In International Conference on Computational Intelligence, pages 190–198. Springer, 2025.
[9] Andrew Howard, Mark Sandler, Grace Chu, Liang-Chieh Chen, Bo Chen, Mingxing Tan, Weijun Wang, Yukun Zhu, Ruoming Pang, Vijay Vasudevan, et al. Searching for MobileNetV3. In Proceedings of the IEEE/CVF International Conference on Computer Vision, pages 1314–1324, 2019.
[10] Menglin Zhang, Qi Liu, Jialei Zhan, Jinwen Gao, Dong Xie, and Jialang Liu. A dual attention and multi-scale fusion network for diabetic retinopathy image analysis. Front Med (Lausanne), 12:1614046, 2025.
[11] Geoffrey Hinton, Oriol Vinyals, and Jeff Dean. Distilling the knowledge in a neural network. arXiv preprint arXiv:1503.02531, 2015.
[12] Lucas Beyer, Xiaohua Zhai, Amélie Royer, Larisa Markeeva, Rohan Anil, and Alexander Kolesnikov. Knowledge distillation: A good teacher is patient and consistent. In 2022 IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), pages 10915–10924, 2022.
[13] Sohini Roychowdhury, Dara D. Koozekanani, and Keshab K. Parhi. DREAM: Diabetic retinopathy analysis using machine learning. IEEE J Biomed Health Inform, 18(5):1717–1728, September 2014.
[14] Mrinal Haloi. Improved microaneurysm detection using deep neural networks. arXiv preprint arXiv:1505.04424, 2015.
[15] Kaggle. Diabetic retinopathy detection. https://www.kaggle.com/competitions/diabetic-retinopathy-detection, 2015. Kaggle competition.
[16] Harry Pratt, Frans Coenen, Deborah M. Broadbent, Simon P. Harding, and Yalin Zheng. Convolutional neural networks for diabetic retinopathy. Procedia Comput Sci, 90:200–205, 2016.
[17] Michael David Abràmoff, Yiyue Lou, Ali Erginay, Warren Clarida, Ryan Amelon, James C. Folk, and Meindert Niemeijer. Improved automated detection of diabetic retinopathy on a publicly available dataset through integration of deep learning. Invest Ophthalmol Vis Sci, 57(13):5200–5206, 2016.
[18] Hidenori Takahashi, Hironobu Tampo, Yusuke Arai, Yuji Inoue, and Hidetoshi Kawashima. Applying artificial intelligence to disease staging: Deep learning for improved staging of diabetic retinopathy. PLoS ONE, 12(6):e0179790, 2017.
[19] Daniel Shu Wei Ting, Carol Yim-Lui Cheung, Gilbert Lim, Gavin Siew Wei Tan, Nguyen D. Quang, Alfred Gan, et al. Development and validation of a deep learning system for diabetic retinopathy and related eye diseases using retinal images from multiethnic populations with diabetes. JAMA, 318(22):2211–2223, 2017.
[20] José Ignacio Orlando, Elena Prokofyeva, Mariana Del Fresno, and Matthew B. Blaschko. An ensemble deep learning based approach for red lesion detection in fundus images. Comput Methods Programs Biomed, 153:115–127, 2018.
[21] Zhiguang Wang and Jianbo Yang. Diabetic retinopathy detection via deep convolutional networks for discriminative localization and visual explanation. In AAAI Workshops, pages 514–521, 2018.
[22] Adriana Romero, Nicolas Ballas, Samira Ebrahimi Kahou, Antoine Chassang, Carlo Gatta, and Yoshua Bengio. FitNets: Hints for thin deep nets. arXiv preprint arXiv:1412.6550, 2014.
[23] Sergey Zagoruyko and Nikos Komodakis. Paying more attention to attention: Improving the performance of convolutional neural networks via attention transfer. arXiv preprint arXiv:1612.03928, 2016.
[24] Wonpyo Park, Dongju Kim, Yan Lu, and Minsu Cho. Relational knowledge distillation. In 2019 IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), pages 3962–3971, 2019.
[25] Yonglong Tian, Dilip Krishnan, and Phillip Isola. Contrastive representation distillation. arXiv preprint arXiv:1910.10699, 2019.
[26] Hugo Touvron, Matthieu Cord, Matthijs Douze, Francisco Massa, Alexandre Sablayrolles, and Hervé Jégou. Training data-efficient image transformers & distillation through attention. In International Conference on Machine Learning, pages 10347–10357, 2021.
[27] Sajjad Abbasi, Mohsen Hajabdollahi, Pejman Khadivi, Nader Karimi, Roshanak Roshandel, Shahram Shirani, and Shadrokh Samavi. Classification of diabetic retinopathy using unlabeled data and knowledge distillation. Artif Intell Med, 121:102176, 2021.
[28] Ernesto Moya-Albor, Alberto Lopez-Figueroa, Sebastian Jacome-Herrera, Diego Renza, and Jorge Brieva. Computer-aided diagnosis of diabetic retinopathy lesions based on knowledge distillation in fundus images. Mathematics, 12(16):2543, 2024.
[29] Niful Islam, Md. Mehedi Hasan Jony, Emam Hasan, Sunny Sutradhar, Atikur Rahman, and Md. Motaharul Islam. Toward lightweight diabetic retinopathy classification: A knowledge distillation approach for resource-constrained settings. Appl Sci, 13(22):12397, 2023.
[30] A. A. Shafi, M. Hossain Shawon, N. Shahid, R. Rahman, and R. Khan. Enhancing diabetic retinopathy detection through transformer based knowledge distillation and explainable AI. In 2024 International Joint Conference on Neural Networks (IJCNN), pages 1–8, Yokohama, Japan, 2024.
[31] Fitsum Mesfin Dejene, Yehualashet Megersa Ayano, Degaga Wolde Feyisa, Taye Girma Debelee, Hiwot Taye Mekonnen, Girum Woldegebreal Gessesse, Zelalem Chimdesa Merga, Hasset Tamirat Molla, and Destaw Mulie. Knowledge distillation-based lightweight MobileNet model for diabetic retinopathy classification. Sci Rep, 16(1):1181, 2025.
[32] Yaqi Wang, Qingshan Hou, Peng Cao, Jinzhu Yang, and Osmar R. Zaiane. Lesion-aware knowledge distillation for diabetic retinopathy lesion segmentation. Appl Intell, 54(2):1937–1956, 2024.
[33] Asia Pacific Tele-Ophthalmology Society (APTOS). APTOS 2019 Blindness Detection. Kaggle competition dataset, 2019.
[34] MariaHerreroT. APTOS-2019 dataset. Kaggle dataset, Version 3, 2021. Available from: https://www.kaggle.com/datasets/mariaherrerot/aptos2019. Accessed 2026 Oct 19.
[35] Ilya Loshchilov and Frank Hutter. Decoupled weight decay regularization. arXiv preprint arXiv:1711.05101, 2017.
[36] Deepak Dharrao, Madhuri Dharrao, Shreyas Patil, Sangeeth Salvin, Prashant Ahire, and Yashwant Dongre. AI-driven detection and classification of diabetic retinopathy stages using EfficientNetB0. Discover Applied Sciences, 7:1400, 2025.