Comparative Analysis of Diffusion Generative Models in Computational Pathology

Denisha Thakkar, Vincent Quoc-Huy Trinh, Sonal Varma, Samira Ebrahimi Kahou, Hassan Rivaz, Mahdi S. HosseiniarXiv 2024 · DOI

Abstract

The scarcity of high-quality, annotated datasets remains a significant barrier in computational pathology due to privacy regulations and the structural complexity of Whole Slide Images (WSIs). This study presents a comparative analysis of Denoising Diffusion Probabilistic Models (DDPM) and Latent Diffusion Models (LDM) for synthetic histopathology data generation. Our findings demonstrate that DDPMs, operating in pixel space, produce superior image quality compared to LDMs. Additionally, we explore the flexibility of these models in generating images across various Fields of View (FOV) and their utility in augmenting training sets for improved diagnostic classification.

Introduction

Digital pathology relies on the analysis of gigapixel Whole Slide Images (WSIs). However, the field faces a "data bottleneck" characterized by strict patient privacy (e.g., HIPAA), the scarcity of rare tissue types, and the unique multi-scale structures of tissue architecture. Traditional Generative Adversarial Networks (GANs) often suffer from mode collapse when tasked with replicating the intricate textures of pathology. Diffusion Generative Models (DGMs) offer a robust alternative by learning to reverse a noise-addition process, thereby generating high-fidelity synthetic samples that capture the statistical essence of real tissue.

Multi-scale patch extraction from Whole Slide Images (WSIs) at varying Fields of View (FOV).

Methodology

The researchers compared two primary DGM architectures to determine their efficacy in the medical domain:

  1. Denoising Diffusion Probabilistic Models (DDPM): These models operate directly in the pixel space, learning to iteratively denoise an image.
  2. Latent Diffusion Models (LDM): These operate in a compressed latent space via a VQ-autoencoder, offering higher computational efficiency.

To enable class-specific generation, the models utilized Classifier-Free Guidance (CFG). This allowed for the targeted generation of specific tissue classes, including Normal tissue, Tubular Adenoma (TA), Sessile Serrated Lesions (SSL), Hyperplastic Polyps (HP), and Tubulovillous Adenoma (TVA). A key experimental focus was the "patch size" ablation study, where the model's ability to generalize to unseen Fields of View (FOV) was tested by varying the output dimensions during the sampling phase while keeping the resolution constant.

Overview of the diffusion model training and sampling pipeline for conditional histopathology image generation across multiple tissue classes.

Experimental Results

The study utilized the Kingston General Hospital (KGH) dataset, comprising 1,037 WSIs of colonic tissue. Two sub-datasets, PKGH 224 and PKGH 336, were used for evaluation.

Image Quality and Fidelity

DDPM consistently outperformed LDM in terms of statistical similarity to real data. On the PKGH 224 dataset, DDPM achieved a Fréchet Inception Distance (FID) of 19.08, compared to 24.43 for LDM. This suggests that the compression stage in LDMs may discard critical fine-grained cellular information essential for pathology diagnostics.

Downstream Classification Performance

To validate the utility of synthetic data, a ResNet-50 classifier was trained on real data and then augmented with synthetic DDPM samples. The baseline accuracy of 89.95% improved to 90.75% with the inclusion of synthetic data, confirming that diffusion models successfully capture the underlying features necessary for training robust diagnostic models.

Field of View (FOV) Generalization

The models demonstrated a remarkable ability to simulate different magnification levels. Although trained on 128x128 patches, the models could generate coherent structures at larger sizes (e.g., 160x160 and 192x192), effectively simulating a wider FOV. This indicates that the models learn a deep, scale-invariant structural understanding of tissue architecture.

Conclusion

Diffusion models, particularly pixel-space DDPMs, provide a powerful framework for addressing data scarcity in computational pathology. By generating high-quality, class-conditional synthetic patches, these models can augment training datasets and improve the performance of diagnostic algorithms. Future research will focus on multi-class labeling and the generation of complex, mixed tissue environments to further bridge the gap between synthetic and clinical data.

Summary updated

BibTeX
@misc{thakkar2024comparative,
  author = {Denisha Thakkar and Vincent Quoc-Huy Trinh and Sonal Varma and Samira Ebrahimi Kahou and Hassan Rivaz and Mahdi S. Hosseini},
  title = {{Comparative Analysis of Diffusion Generative Models in Computational Pathology}},
  year = {2024},
  eprint = {2411.15719},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2411.15719},
}
Figure