Factorized Context Aggregation for Robust Cancer Risk Estimation via Soft Re-Ranked Retrieval and Hierarchical Anchors

Puria Azadi Moghadam, Ali Khajegili Mirabadi, Behnam Maneshgar, Hossein Farahani, Ali BashashatiCVPR 2026

TL;DR

During cancer risk assessment, multimodal AI models perform exceptionally well but frequently fail in real-world clinical settings when key data modalities (like genomics or clinical reports) are missing. This paper introduces a novel framework that uses universally available histopathology whole-slide images (WSIs) as an anchor to retrieve and aggregate proxy representations of missing data from a vectorized memory pool. By combining soft re-ranked retrieval with a hierarchical teacher-student distillation strategy, the model achieves state-of-the-art prognostic accuracy even when missing multiple modalities at inference time.

What Problem Does This Paper Address?

Integrating multiple data types—such as histopathology images, genomic profiles, and clinical text reports—significantly improves the accuracy of AI models predicting cancer progression or patient survival. However, in routine clinical practice, acquiring genomic profiles is expensive and time-consuming, and clinical reports may be incomplete.

While histopathology whole-slide images (WSIs) are universally collected and accessible, existing multimodal models typically break down if any input modality is missing at inference time. Current methods to address this either try to directly impute the missing data (which introduces noise) or focus only on features shared across all modalities (which discards unique, critical information). This paper tackles the challenge of building a robust survival prediction model that trains on multimodal data but can operate reliably using only WSI data during testing.

Methods

The authors propose a hybrid data- and strategy-centric framework consisting of four main components:

  1. Multimodal Context Retrieval (MMCR): The framework maintains an "FM-enabled Multimodal Vectorized Memory"—a reference pool of historical patients for whom complete multimodal data is available. At inference, when a new patient has only a WSI, the model uses a pretrained histopathology Foundation Model (FM) to find the top-$K$ morphologically similar patients from the memory pool and extracts their corresponding auxiliary data (genomics, text reports).
  2. Fine-Grained Soft Re-Ranking: Instead of treating all retrieved neighbors equally or using a hard ranking, a gating-based mechanism independently weights the importance of each retrieved sample per modality. This prevents oversmoothing and retains subtle, risk-related patterns.
  3. Factorized Prognostic Context Aggregation (FPCA): Rather than blindly mixing the retrieved features, the model uses cross-attention to factorize the proxy representations into three distinct components: modality-exclusive information, information shared with the WSI, and information shared with other auxiliary modalities.
  4. Hierarchical Modality Anchors (Teacher-Student Framework): During training, a "Multimodal Teacher" model with full access to all modalities guides the "Student" model (which simulates missing data). This is enforced via two distillation losses: an Intra-Modality Anchor Loss to align fine-grained token features, and an Inter-Modality Anchor Loss to ensure the final patient-level representation matches the holistic structure of the true multimodal space.
Figure 2. a) Overview of the proposed framework, b) Processing retrieved samples from memory in more details. Black arrows denote the data flow during both training and inference, while blue arrows show components and paths used only during training.

Datasets

The framework was evaluated across 24 distinct tasks using eight public datasets from The Cancer Genome Atlas (TCGA):

  • Cancer Types: CESC, COAD, HNSC, LGG, LIHC, LUAD, LUSC, and SARC.
  • Modalities: WSIs, pathology text reports (from the TCGA-Reports dataset), and transcriptomics/genomics (from cbioportal).
  • Pre-training: To avoid data leakage, the text encoder utilized OpenBioLLaMA-7B, the WSI foundation model was trained in-house on over 10,000 external TCGA slides, and the gene-expression foundation model was trained on the GTEx dataset (19,788 transcriptomic samples).

Key Insights and Ideas

  • Morphology as a Universal Key: Instead of projecting different modalities into a jointly learned latent space (which often dilutes modality-specific features), the authors search the memory pool using only WSI morphology. This preserves the unique, high-dimensional structures of the retrieved genomics and text.
  • The Power of Factorization: Decomposing the proxy estimation into shared and exclusive components allows the model to capture independent prognostic signals that standard fusion techniques smooth away.
  • Robustness to Training-Time Missingness: The framework doesn't just handle missing data at test time; it is highly resilient to missing data during training. It effectively acts as a robust regularizer, outperforming standard SOTA methods even when 40% of the training data is incomplete.

Key Results

  • Prognostic Accuracy: The model achieved an average relative improvement of over 8.5% in Concordance Index (C-index) compared to baseline models using only histopathology.
  • Closing the Multimodal Gap: The performance gap between this WSI-only inference model and a model with access to all true modalities was narrowed to just 1.4%.
  • Patient Risk Stratification: In clinical utility tests (Kaplan-Meier analysis), the model successfully stratified patients into high- and low-risk groups in 67% of scenarios, significantly outperforming the best SOTA baseline (50%).
Figure 4. C-index changes by varying data missing rates.

Limitations and Future Work

While the paper demonstrates remarkable robustness, a few limitations are worth noting:

  • Memory Pool Dependency: The retrieval mechanism relies on the size and diversity of the vectorized memory pool. Performance might degrade if a patient presents with a rare morphological subtype not well-represented in the reference set.
  • Computational Overhead: Maintaining and searching a large vectorized memory pool adds computational steps during inference, though the authors note it is mitigated by conducting the search only once per patient query.

Future work could explore expanding this framework to include other clinical modalities like 3D radiology scans (CT/MRI) and optimizing the memory retrieval efficiency for massive, hospital-scale databases.

Summary updated

BibTeX
@inproceedings{moghadam2026factorized,
  author = {Puria Azadi Moghadam and Ali Khajegili Mirabadi and Behnam Maneshgar and Hossein Farahani and Ali Bashashati},
  title = {{Factorized Context Aggregation for Robust Cancer Risk Estimation via Soft Re-Ranked Retrieval and Hierarchical Anchors}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2026},
  url = {https://openreview.net/forum?id=bCYOXSGOjL},
}
Figure