URCDM: Ultra-Resolution Image Synthesis in Histopathology

Sarah Cechnicka, James Ball, Matthew Baugh, Hadrien Reynaud, Naomi Simmonds, Andrew P. T. Smith, Catherine Horsfield, Candice Roufosse, Bernhard Kainz

Abstract

Ultra-Resolution Cascaded Diffusion Models (URCDM) represent the first generative framework capable of synthesizing photo-realistic Whole Slide Images (WSIs) at gigapixel scales. By employing a hierarchical cascade of diffusion models, URCDM maintains anatomical consistency across multiple scales, from global tissue architecture to cellular morphology. This paper summarizes the methodology, evaluation, and implications of this novel approach in computational pathology.

Introduction

In clinical pathology, Whole Slide Images (WSIs) are the gold standard for diagnosis. These images are massive, often exceeding 40,000 x 40,000 pixels, and require analysis at multiple magnifications. Pathologists navigate these images by zooming from low-magnification overviews of tissue architecture to high-magnification views of individual cell abnormalities.

Generating synthetic WSIs that maintain consistency across these scales has been a significant challenge for existing AI models. Generative Adversarial Networks (GANs) often fail to maintain global logic when stitching small patches, while models operating on the whole slide lack the resolution for cellular detail. URCDM bridges this gap using a "fractal-like" consistency approach across massive resolution jumps.

Methodology

The URCDM framework utilizes a pipeline of nine diffusion models organized into three primary stages: Low-Magnification, Medium-Magnification, and High-Magnification.

The URCDM hierarchical cascade architecture.
  1. Low-Magnification Stage: Generates a 1024 x 1024 pixel thumbnail representing the entire slide's global structure.
  2. Medium-Magnification Stage: Upsamples the thumbnail into a 6400 x 6400 pixel image.
  3. High-Magnification Stage: Further upsamples the image to a final resolution of 41,344 x 41,344 pixels.

The core innovation lies in the conditioning and inpainting mechanisms. Each stage is conditioned on patches from the preceding lower-resolution stage, ensuring that high-resolution details (like specific cell types) are generated in anatomically correct locations (like tumor boundaries). To ensure seamlessness across the gigapixel image, the model generates overlapping patches using an inpainting technique that keeps pixels from neighboring patches constant, eliminating the "seams" common in patch-based synthesis.

Experimental Setup

The model was trained and evaluated on three distinct tissue types to prove generalizability:

  • GLIOMA: 344 WSIs of low-grade brain tumors from The Cancer Genome Atlas (TCGA).
  • BREAST: 1,978 WSIs of breast invasive carcinoma (TCGA-BRCA).
  • KIDNEY: A proprietary dataset of 428 kidney transplant pathology slides.

Key Results

URCDM demonstrates significant quantitative and qualitative improvements over baselines such as StyleGAN3 and MorphDiff.

High-magnification synthetic breast tissue generated by URCDM.

In terms of the Patch-Fréchet Inception Distance (pFID), which measures the similarity between synthetic and real patches, URCDM achieved a score of 39.52 on Kidney data, vastly outperforming standard outpainting methods (150.15). Furthermore, blinded human evaluation by expert pathologists showed that synthetic low-resolution images were indistinguishable from real ones, with experts correctly identifying them at a rate near 0.5 (random chance).

Discussion and Limitations

While URCDM produces unprecedented results, it is computationally intensive. Generating a single full-size WSI requires approximately 24 hours on an 8-9 GPU cluster (NVIDIA A100). Additionally, as a cascaded system, any errors or "hallucinations" in the initial low-resolution stage are propagated and magnified in subsequent stages.

An interesting finding during evaluation was that synthetic images were sometimes identified by experts because they were "too perfect." Real slides often contain artifacts like tissue folding or staining inconsistencies, which the model—trained on clean data—did not replicate.

Conclusion

URCDM provides a robust framework for generating high-fidelity, large-scale synthetic pathology data. By maintaining multi-scale consistency, it offers a powerful tool for creating "gold standard" datasets for training and validating downstream diagnostic algorithms. Future work aims to develop a "universal" model capable of handling all magnifications simultaneously and incorporating multi-modal guidance, such as text-based pathology descriptions.

Summary updated

Abstract

Diagnosing medical conditions from histopathology data requires a thorough analysis across the various resolutions of Whole Slide Images (WSI). However, existing generative methods fail to consistently represent the hierarchical structure of WSIs due to a focus on high-fidelity patches. To tackle this, we propose Ultra-Resolution Cascaded Diffusion Models (URCDMs) which are capable of synthesising entire histopathology images at high resolutions whilst authentically capturing the details of both the underlying anatomy and pathology at all magnification levels. We evaluate our method on three separate datasets, consisting of brain, breast and kidney tissue, and surpass existing state-of-the-art multi-resolution models. Furthermore, an expert evaluation study was conducted, demonstrating that URCDMs consistently generate outputs across various resolutions that trained evaluators cannot distinguish from real images. All code and additional examples can be found on GitHub.
BibTeX
@inproceedings{cechnicka2024urcdm,
  author = {Sarah Cechnicka and James Ball and Matthew Baugh and Hadrien Reynaud and Naomi Simmonds and Andrew P. T. Smith and Catherine Horsfield and Candice Roufosse and Bernhard Kainz},
  title = {{URCDM: Ultra-Resolution Image Synthesis in Histopathology}},
  booktitle = {International Conference on Medical Image Computing and Computer-Assisted Intervention},
  year = {2024},
  url = {https://openreview.net/forum?id=7Vr63S3U7D},
}
Figure