Center-Aware Ordinal Learning for Prostate Cancer Grading from Histopathology Images

Mohammad Mahdi Abootorabi, Parvin Mousavi, Purang AbolmaesumiarXiv 2026

Imagine you’re a pathologist looking at a prostate biopsy. You aren't just looking for "cancer" or "no cancer." You’re looking at a spectrum—the ISUP Grade Groups—ranging from 0 (benign) to 5 (aggressive). To a human, the difference between a Grade 2 and a Grade 3 is a subtle shift in tissue architecture. To a standard AI, however, these are often treated as completely unrelated categories, like "dog" vs. "airplane."

This paper introduces a way to teach AI to respect that clinical "order" while also solving one of the biggest headaches in medical imaging: the fact that slides from different hospitals (centers) look different because of varying stains and scanners.

TL;DR

The authors developed a "center-aware" learning framework that treats prostate cancer grading as a continuous progression rather than a set of random buckets. By forcing the AI to ignore hospital-specific visual artifacts and focus on the biological "trajectory" of the disease, they achieved a massive 28% relative improvement in accuracy when moving the model from one medical center to another.

What Problem Does This Paper Address?

Training AI on medical images is notoriously brittle. If you train a model on slides from Hospital A, it often fails at Hospital B because the purple stain is a slightly different shade or the scanner has a different sensor. This is called domain shift.

Furthermore, most models use "Cross-Entropy" loss, which treats a Grade 1 vs. Grade 5 mistake the same as a Grade 4 vs. Grade 5 mistake. In a clinic, the former is a catastrophe; the latter is a minor disagreement. Finally, benign tissue is much more common than high-grade cancer, leading to a class imbalance that biases the model toward saying everything is healthy.

Methods

The researchers built their framework on Multiple Instance Learning (MIL). Since a whole-slide image (WSI) is too massive for a GPU, they break it into small patches, extract features using a pretrained pathology "foundation model" (UNI2-h), and then use an attention mechanism to decide which patches are most important for the final grade.

The "secret sauce" lies in three specific additions:

  1. Earth Mover’s Distance (EMD) Loss: Instead of standard classification loss, they use EMD. Think of the model's prediction as a pile of dirt and the true label as a hole. EMD calculates the "work" needed to move that dirt into the hole. This naturally penalizes the model more for being "far away" on the 0–5 scale.
  2. Center-Aware Ordinal Supervised Contrastive Loss ($L_{OSCL}$): This is the clever bit. As shown in Figure 1, the model is taught to "pull" slides of the same grade together in its internal map, even if they come from different hospitals. Simultaneously, it "pushes" different grades apart, with the push being stronger the further apart the grades are clinically.
  3. Curriculum Learning: They start by showing the model everything, but gradually reduce the "importance" of the easy benign cases. This forces the model to spend its energy learning the rare, high-grade cancers.
Figure 1: The training framework. (a) shows how patches are aggregated into embeddings and optimized via EMD and the center-aware contrastive loss. (b) illustrates the resulting "cleaner" trajectory of the data.

Datasets

The study used the PANDA dataset, a massive collection of ~9,100 prostate biopsy slides. These come from two distinct sources:

  • Karolinska Institute (Sweden)
  • Radboud University Medical Center (Netherlands)

This two-center setup is perfect for testing "transferability"—training on one and testing on the other.

Key Insights and Ideas

  • The "Hospital" Cluster Problem: Standard AI often clusters images by the hospital they came from first, and the disease second. This paper flips that. By up-weighting cross-center pairs in the loss function, the AI is forced to find features that are universal to the cancer, not the scanner.
  • The Ordinal Trajectory: In Figure 3, you can see the "Aha!" moment. In standard models (left), the hospitals are separated into distinct islands. In the proposed method (right), the two hospitals are blended into a single, continuous "snake" that follows the progression from benign to Grade 5.
  • Don't Throw Away the Benign: Rather than just deleting benign slides to fix imbalance, the curriculum approach keeps them but lowers their "volume" over time, ensuring the model doesn't forget what healthy tissue looks like while it masters the nuances of cancer.
Figure 3: UMAP projections showing that the proposed method (right) successfully mixes the two centers (Karolinska and Radboud) into a shared manifold, whereas standard methods (left) keep them separated.

Key Results

The model doesn't just perform well; it's remarkably robust:

  • Overall Performance: Achieved an accuracy of 0.842 and a Quadratic Weighted Kappa (a metric that accounts for ordinality) of 0.958.
  • The Big Win (Cross-Center Transfer): When a model was trained on Karolinska data and tested on Radboud data, accuracy jumped from 0.643 (baseline) to 0.823 (proposed).
  • Visual Proof: UMAP visualizations (Figure 2) show a much smoother transition between grades compared to the "shattered" clusters produced by standard focal loss or cross-entropy.

Limitations and Future Work

The authors noted that the domain shift is asymmetric. Moving from Karolinska to Radboud showed a huge improvement, but the reverse direction was already relatively stable. This suggests that some datasets are "harder" or contain more diverse artifacts than others.

Future work will likely look at test-time adaptation, where the model could potentially "tune" itself to a new hospital's style on the fly, without needing a full retraining session.

Summary updated

Abstract

Prostate cancer grading from histopathology whole-slide images (WSIs) is complicated by the ordered nature of ISUP grades, class imbalance, and center-dependent variations in staining, tissue preparation, and scanning. Most weakly supervised methods treat grade groups as independent categories and may therefore learn representations that do not transfer reliably across institutions. We propose a center-aware ordinal learning framework that combines a pretrained pathology encoder with attention-based multiple instance learning. The framework uses an Earth Mover's Distance loss to account for ordinal errors, an ordinal supervised contrastive objective to align same-grade slides across centers while separating grades according to disease severity, and curriculum learning to reduce the dominance of benign cases. We evaluate the framework on approximately 9,100 biopsy WSIs from the two-center PANDA dataset. The proposed framework achieves an accuracy of 0.842 and a quadratic weighted kappa of 0.958 on the held-out test set. Its main benefit is observed in cross-center transfer: when a linear probe is trained on Karolinska representations and evaluated on Radboud, accuracy increases from 0.643 to 0.823 and quadratic weighted kappa from 0.899 to 0.930. Performance remains stable in the reverse direction. UMAP projections further show improved mixing between centers while preserving an ordinal grade trajectory. These results suggest that combining ordinal and center-aware objectives produces more transferable slide representations for multi-center prostate cancer grading.
BibTeX
@misc{abootorabi2026center,
  author = {Mohammad Mahdi Abootorabi and Parvin Mousavi and Purang Abolmaesumi},
  title = {{Center-Aware Ordinal Learning for Prostate Cancer Grading from Histopathology Images}},
  year = {2026},
  eprint = {2611.28419},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2611.28419},
}
Figure