Look at What Matters: Learning Lesion Prototypes from Severity Labels for Domain-Generalized Diabetic Retinopathy Grading
Organizations: Vanderbilt University · University of Liverpool
Abstract
Deep learning models for diabetic retinopathy (DR) grading often generalize poorly to unseen imaging domains, in part because predictions may exploit correlations specific to source datasets rather than retinal pathology. We address this challenge by constructing grading decisions from lesion evidence learned using only image severity labels. Clinical implications of DR grades provide multiple instance constraints that guide competitive learning of lesion and background prototypes at multiple scales. An additive ordinal scoring model then predicts severity exclusively from individual lesion prototype responses, explicitly connecting learned evidence with grading decisions without a global feature classification pathway. To improve the reliability of this evidence, we introduce teacher guided preservation under image degradations and spatial regularization against persistent coordinate preferences. Across six public DR datasets under a leave one domain out protocol, our method attains a mean quadratic weighted kappa of 0.761, outperforming the strongest competing method by 0.036. Localization and prototype removal analyses show that the learned responses align with retinal lesions and contribute to grading decisions. Experiments across five other prototype architectures and under image degradations further demonstrate the generality and robustness of the approach.
Figures & tables
| Held-out Domain | Overall | ||||||||
| Method | FGADR | APTOS | DDR | IDRiD | Mess-2 | DeepDRiD | Mean | Acc | F1 |
| Standard Baselines | |||||||||
| ERM (Swin-T [ 22 ] ) | .462 | .795 | .737 | .745 | .783 | .740 | .710 | .598 | .499 |
| ERM (ResNet-50 [ 14 ] ) | .463 | .831 | .726 | .765 | .776 | .693 | .709 | .604 | .473 |
| General DG Methods | |||||||||
| MixStyle [ 35 ] | .485 | .794 | .753 | .734 | .818 | .735 | .720 | .603 | .504 |
| Variant | Acc | F1 | ||
| Component Ablations | ||||
| Ours (full) | .761 .006 | .618 | .511 | – |
| w/o severity MIL | .737 .009 | .579 | .495 | |
| w/o competitive assignment | .740 .005 | .586 | .489 | |
| w/ MLP classification head | .715 .007 | .596 | .498 | |
| w/o degradation consistency | .749 .004 | .607 | .505 | |
| Method | Clean | Blur | Half res. | Noise |
|---|---|---|---|---|
| ERM | .648 | -.053 | -.059 | -.065 |
| VREx [ 19 ] | .673 | -.053 | -.054 | -.068 |
| SAGM [ 31 ] | .660 | -.049 | -.039 | -.047 |
| MixStyle [ 35 ] | .657 | -.020 | -.005 | -.050 |
| DECO [ 34 ] | .656 | -.038 | -.019 | -.072 |
| AdvBlur [ 17 ] | .646 | -.063 | -.074 | -.050 |
Appendix figures & tables10 assets
Supplementary material from the paper’s appendix.
Appendix
| Held-out Domain | Overall | |||||||
| Method | Metric | FGADR | APTOS | DDR | IDRiD | Mess-2 | DeepDRiD | Mean |
| Standard Baselines | ||||||||
| ERM (Swin-T) | .462 | .795 | .737 | .745 | .783 | .740 | .710 | |
| Acc | .467 | .579 | .679 | .578 | .683 | .603 | .598 | |
| F1 | .376 | .455 | .521 | .536 | .597 | .507 | .499 | |
| ERM (ResNet-50) | .463 | .831 | .726 | .765 | .776 | .693 | .709 | |
| Dataset | Measure | MA | HE | EX | SE |
|---|---|---|---|---|---|
| DDR | Area | 12 | 51 | 13 | 217 |
| Coverage | .12 | .49 | .34 | .45 | |
| IDRiD | Area | 21 | 143 | 19 | 771 |
| Coverage | .15 | .51 | .31 | .60 | |
| FGADR | Area | 78 | 138 | 73 | 1782 |
| Coverage | .65 | .62 | .55 | .70 |
| Domain | Method | ||||
|---|---|---|---|---|---|
| DDR | Ours | .852 | .773 | .715 | .641 |
| ERM (Grad-CAM) | .840 | .837 | .834 | .826 | |
| IDRiD | Ours | .859 | .799 | .747 | .672 |
| ERM (Grad-CAM) | .624 | .613 | .611 | .604 |
| Method | MA | HE | EX | SE | |
|---|---|---|---|---|---|
| Ours | 0 | .532 | .554 | .710 | .698 |
| 4 | .723 | .742 | .911 | .832 | |
| ERM (Grad-CAM) | 0 | .702 | .790 | .738 | .750 |
| 4 | .695 | .789 | .742 | .730 | |
| VREx (Grad-CAM) | 0 | .721 | .842 | .796 | .765 |
| 4 | .681 | .805 | .771 | .717 |
| Architecture | Run | Lesion (%) | Mass | Best | QWK | |
|---|---|---|---|---|---|---|
| ProtoPNet | 40 | B | 12.5 | .494 | .722 | .605 |
| A | 70.8 | .804 | .844 | .687 | ||
| PIP-Net | 40 | B | 6.7 | .557 | .602 | .376 |
| A | 79.2 | .757 | .635 | .655 | ||
| Proto-BagNet | 50 | B | 0.0 | .501 | .535 | .041 |
| A | 57.3 | .582 | .638 | .472 |
| APTOS | DDR | |||||||
| Method | Clean | Corr. | Rev. | Clean | Corr. | Rev. | ||
| Outside-FOV marker | ||||||||
| ERM | .815 | .796 | .604 | .680 | .802 | .644 | ||
| DECO | .860 | .839 | .629 | .658 | .815 | .595 | ||
| w/o Pos. Reg. | .868 | .869 | .868 | .732 | .733 | .732 | ||
| Ours | .851 | .851 | .851 | .732 | .732 | .732 | ||
| APTOS | DDR | |||
| Method | Change (%) | Change (%) | ||
| Outside-FOV marker | ||||
| ERM | .226 | 25.2 | .233 | 24.2 |
| DECO | .226 | 24.1 | .286 | 29.3 |
| Ours | .001 | 0.3 | .001 | 0.3 |
| Inside-FOV marker | ||||
| Domain | Method | TV | Change (%) | ||
|---|---|---|---|---|---|
| APTOS | ERM | .211 | .223 | +.313 | 23.5 |
| DECO | .248 | .261 | +.420 | 26.7 | |
| Ours | .180 | .294 | +.462 | 52.2 | |
| DDR | ERM | .246 | .254 | +.399 | 25.4 |
| DECO | .293 | .309 | +.513 | 31.2 | |
| Ours | .115 | .219 | +.327 | 48.2 |
| Method | Mask | Change (%) | ||
| APTOS: Outside-FOV | ||||
| Ours | Raw | .191 | 58.9 | |
| Paired | .001 | 0.3 | ||
| LCC | .001 | 0.3 | ||
| w/o Pos. | Raw | .226 | 60.4 | |
| Paired | .001 | 0.4 | ||
Diabetic Retinopathy Grading
Diabetic retinopathy grading uses retinal images to estimate disease severity and identify cases that need further clinical review.
See all 41 papers