Abstract
Diabetic Retinopathy (DR) grading is a critical task in medical imaging, characterized by an inherent ordinal progression and significant class imbalance. Traditional classification methods often ignore the sequential nature of the disease and struggle with "long-tail" distributions where severe cases are rare. We present AOR-DR, a framework that treats DR severity as an ordered sequence. By integrating autoregressive modeling with diffusion-based optimization, AOR-DR effectively addresses boundary ambiguity and data scarcity in advanced disease stages. Our approach outperforms state-of-the-art methods across multiple benchmarks, demonstrating superior sensitivity and robustness.
Introduction
Diabetic Retinopathy (DR) is a leading cause of vision loss, progressing through distinct stages from "No DR" to "Proliferative DR." Automated grading systems face two primary challenges: long-tailed data distributions and boundary ambiguity between adjacent severity levels. Most existing models treat these grades as independent categories, failing to leverage the ordinal relationship between stages. Furthermore, the subtle differences between stages like "Mild" and "Moderate" often lead to inconsistent labeling.
To address these issues, we propose Autoregressive Ordinal Regression for DR (AOR-DR). This framework decomposes the multi-class grading problem into a sequence of binary decisions, mirroring the clinical progression of the disease. By doing so, the model naturally prioritizes the rarer, more severe stages during optimization.
Methods
The AOR-DR architecture is built upon three core components: Autoregressive Decomposition, Diffusion-Based Optimization, and Feature Fusion.
Autoregressive Decomposition
Instead of a single-pass classification, AOR-DR predicts severity levels sequentially. To determine if a case is "Severe," the model must first evaluate the "Mild" and "Moderate" stages. This sequential dependency ensures that the model learns the hierarchical features of the disease progression. Because the model predicts grades sequentially, later categories (Severe, Proliferative) contribute more significantly to the overall loss optimization, acting as a natural importance weighting mechanism.
Diffusion-Based Optimization
A key innovation is the use of a diffusion process to parameterize the autoregressive steps. Unlike standard autoregressive models that require converting data into discrete "tokens," AOR-DR utilizes a denoising network to model conditional probabilities over continuous image features. This allows the framework to integrate seamlessly with high-performance foundation models like RETFound without information loss from quantization.
Feature Fusion
To maintain context throughout the sequence, the model employs either Affine Fusion or Cross-Attention mechanisms. These modules combine global image features with the memory of previous predictions, providing the decoder with the necessary information to make accurate sequential decisions.
Results and Discussion
We evaluated AOR-DR on four diverse datasets: APTOS 2019, Messidor, DDR, and DeepDR. These datasets represent various clinical environments and degrees of class imbalance.
Performance Comparison
AOR-DR consistently outperformed six recent state-of-the-art methods, including CLIP-DR and Ord2Seq. Notably, our model showed significant gains in Macro F1-score and Sensitivity, which are crucial for identifying rare but critical severe cases. On average, AOR-DR improved F1-scores by 42% and Sensitivity by 51% compared to the previous best autoregressive method (Ord2Seq).
Robustness and Foundation Models
The model demonstrated remarkable stability on datasets with extreme long-tail distributions, such as Messidor, where traditional cross-entropy models often fail. Furthermore, when utilizing the RETFound backbone, AOR-DR achieved state-of-the-art accuracy of 80.3% on APTOS and 75.9% on DeepDR, setting a new benchmark for the field.
Conclusion
AOR-DR represents a significant advancement in automated DR grading by explicitly modeling the disease's ordinal nature. By combining autoregressive sequencing with diffusion-based optimization, the framework overcomes the limitations of traditional classification and discrete tokenization. While the current implementation involves higher computational costs during inference due to the diffusion sampling steps, its superior diagnostic performance and compatibility with modern foundation models make it a powerful tool for clinical applications. Future work will focus on optimizing inference speed and exploring end-to-end training strategies.
Summary updated