Directed Ordinal Diffusion Regularization for Progression-Aware Diabetic Retinopathy Grading

Huangwei Chen, Junhao Jia, Ruocheng Li, Cunyuan Yang, Wu Li, Xiaotao Pang, Yifei Chen, Haishuai Wang, Jiajun Bu, Lei WuarXiv 2026

TL;DR

Standard machine learning models for grading Diabetic Retinopathy (DR) treat disease severity as static, symmetric ranks, ignoring the fact that medical progression is inherently unidirectional and irreversible. This paper introduces Directed Ordinal Diffusion Regularization (D-ODR), a novel framework that structures the model's feature space as a directed flow to strictly enforce forward disease evolution. By penalizing biologically implausible "reverse" transitions during training, D-ODR achieves state-of-the-art grading accuracy across multiple benchmarks with zero additional computational cost during inference.

What Problem Does This Paper Address?

Diabetic Retinopathy (DR) is a leading cause of blindness that progresses continuously from mild to severe stages. In clinical settings, doctors grade retinal fundus photographs into discrete severity categories (typically 0 to 4). AI models usually tackle this using ordinal regression or ranking methods.

However, existing approaches treat these ranks symmetrically. They penalize the distance between grades equally, regardless of the direction. This ignores a fundamental biological truth: disease progression is a one-way street. Under symmetric supervision, a model might learn feature representations that allow severe cases to be implausibly close to mild cases, or even suggest that a disease can spontaneously reverse its natural trajectory. This lack of directional awareness leads to clinically inconsistent solutions and ambiguous decision boundaries.

Methods

To align machine learning with clinical reality, the authors propose Directed Ordinal Diffusion Regularization (D-ODR). Instead of changing the model architecture, D-ODR acts as a plug-and-play regularization loss during training.

Fig. 1. Overview of the proposed D-ODR framework. The model constructs a directed graph in the feature space using a directional mask and applies multi-scale diffusion to capture extended progression chains, therefore penalizing score inversion along valid forward trajectories. The regularization module is discarded during inference, ensuring no extra computational cost.

The core pipeline operates within each training mini-batch:

  1. Directed Graph Construction: The model computes feature similarities between samples using a mutual $k$-Nearest Neighbors ($k\text{NN}$) approach to build a local neighborhood.
  2. Directional Masking: Crucially, the authors apply a mask $\mathbb{I}(y_i \le y_j)$ that eliminates any edges pointing backward in severity. Edges are only allowed to stay within the same severity level or point toward a more advanced disease stage.
  3. Multi-Scale Diffusion: To capture long-range progression chains (e.g., stage $0 \rightarrow 1 \rightarrow 2$), the framework simulates multi-step random walks ($t \in \{1, 2, 3\}$) over the directed graph. This propagates local ordinal structures across a broader range.
  4. Score Inversion Penalty: A specialized loss function ($\mathcal{L}_{\text{ODR}}$) uses a Rectified Linear Unit (ReLU) to penalize instances where the model predicts a higher severity score for an earlier stage than a later stage along a valid progression path.

Because this entire graph-diffusion process is only used to calculate the training loss, the regularization module is completely discarded during testing, maintaining $\mathcal{O}(1)$ inference complexity.

Datasets

The method was evaluated on four widely recognized, public retinal fundus image datasets:

  • APTOS
  • Messidor
  • DeepDR
  • DDR

All datasets were preprocessed and split according to the standardized protocols defined by the GDRBench benchmark to ensure fair evaluation.

Key Insights and Ideas

  • Asymmetry as an Inductive Bias: The paper shifts the paradigm from viewing ordinal categories as static, isolated bins to viewing them as a continuous, directed geometric flow.
  • Multi-Scale Diffusion Overcomes Batch Limits: In a standard mini-batch, you might not have a perfect sequence of all disease stages. By using multi-step random walks, the model can implicitly infer transitive relationships (if $A \le B$ and $B \le C$, then $A \le C$) even if the direct connection isn't explicitly sampled.
  • Backbone Agnosticity: D-ODR works equally well on generic vision architectures (like ViT-B/16) and specialized, self-supervised medical models (like RETFound), proving that directional awareness is a universally beneficial prior for disease grading.

Key Results

D-ODR achieved state-of-the-art performance across all four datasets, evaluated using Quadratic Weighted Kappa (QWK) and macro F1 scores.

  • Performance Boosts: When paired with the RETFound backbone, D-ODR pushed QWK scores to 93.2% on APTOS, 83.9% on Messidor, 85.7% on DeepDR, and 88.2% on DDR, consistently outperforming standard ordinal regression baselines.
  • Latent Space Geometry: Qualitative analysis using UMAP projections demonstrated that while baseline models yield fragmented, entangled feature clusters, D-ODR successfully sculpts the latent space into a contiguous, unidirectional manifold where disease stages unfold sequentially.
Fig. 3. Qualitative evaluation of feature representations and score predictions. (a) 2D UMAP projections; (b) Predicted severity score distributions.

Limitations and Future Work

The authors noted a few areas for further exploration:

  • Batch Size Sensitivity: Hyperparameter analysis showed that performance degrades slightly at very large batch sizes ($bs = 256$) on certain datasets, likely because excessively large batches dilute the local manifold structure necessary for effective diffusion.
  • Dataset Heterogeneity: The magnitude of performance gains varied across the four benchmarks, which the authors attribute to differences in underlying label noise, image acquisition protocols, and the inherent strength of progression cues in different populations. Future work could focus on making the directed diffusion more robust to highly noisy clinical labels.

Summary updated

BibTeX
@misc{chen2026directed,
  author = {Huangwei Chen and Junhao Jia and Ruocheng Li and Cunyuan Yang and Wu Li and Xiaotao Pang and Yifei Chen and Haishuai Wang and Jiajun Bu and Lei Wu},
  title = {{Directed Ordinal Diffusion Regularization for Progression-Aware Diabetic Retinopathy Grading}},
  year = {2026},
  eprint = {2602.21942},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2602.21942},
}
Figure