PixCell: A generative foundation model for digital histopathology images

Srikar Yellapragada, Alexandros Graikos, Zilinghan Li, Kostas Triaridis, Varun Belagali, Saarthak Kapse, Tarak Nath Nandi, Ravi K. Madduri, Prateek Prasanna, Tahsin M. Kurç, Rajarsi R. Gupta, Joel H. Saltz, Dimitris SamarasarXiv 2025 · DOI

Introduction

Computational pathology has seen a surge in powerful discriminative models, such as self-supervised learning (SSL) encoders, capable of interpreting whole-slide images. However, the field lacks a robust generative counterpart. PixCell addresses three major hurdles: the high cost and scarcity of expert annotations, strict privacy regulations (HIPAA/GDPR) that hinder data sharing, and the complexity of generative tasks like "virtual staining"—mathematically transforming standard Hematoxylin and Eosin (H&E) slides into specialized Immunohistochemistry (IHC) stains.

Methods and Datasets

PixCell is a generative foundation model utilizing a Diffusion Transformer (DiT) architecture. To handle high resolutions efficiently, the model was trained progressively, scaling from 256x256 to 1024x1024 pixels. Unlike natural image generators that rely on text prompts, PixCell is conditioned on UNI-2h embeddings from a pre-trained pathology foundation model. This approach allows the model to generate variations of tissue samples while preserving underlying biological structures. For finer control, ControlNet integration enables guidance via specific cell layout masks.

The model was trained on PanCan-30M, a curated dataset of 30.8 million patches derived from 69,184 whole-slide images (WSIs), covering 28 tissue types and various cancer subtypes.

Dataset distribution and PixCell model architecture.

Key Insights: Generative Models as Data Proxies

A significant finding is that synthetic images can serve as effective "drop-in replacements" for real data. SSL encoders trained solely on synthetic data performed comparably to those trained on real patient data. This enables a "synthetic data sharing" workflow where institutions share synthetic versions of sensitive datasets, retaining statistical and morphological properties without exposing raw patient information. Furthermore, PixCell-1024 is highly efficient, generating high-resolution images in 2.5 seconds—significantly faster than previous diffusion methods.

Results and Applications

PixCell-generated images improved the F1 scores of downstream diagnostic classifiers by an average of 3% through data augmentation. In blinded studies, expert pathologists rated PixCell’s synthetic images higher in realism and cell morphology than previous models, achieving 94.4% accuracy in subtyping breast cancer using only synthetic images.

Virtual IHC Staining

One of PixCell's most powerful applications is virtual staining. By using Rectified Flow to map H&E embeddings to the IHC domain and fine-tuning with LoRA (Low-Rank Adaptation), PixCell can synthesize specific stains like HER2, ER, PR, and Ki67. It achieved state-of-the-art Fréchet Distance (FD) scores, outperforming established baselines like CycleGAN.

Virtual IHC staining results and diagnostic prediction workflow using PixCell.

Limitations and Future Work

While promising, challenges remain. Future work must provide formal differential privacy guarantees to prevent potential "leaks" of training samples. Additionally, while the model can generate 4096x4096px regions via tiling, maintaining global consistency across entire gigapixel-scale whole-slide images is a target for future research. Finally, expanding the model's exposure to rare or non-standard staining protocols will further enhance its clinical utility.

Summary updated

BibTeX
@misc{yellapragada2025pixcell,
  author = {Srikar Yellapragada and Alexandros Graikos and Zilinghan Li and Kostas Triaridis and Varun Belagali and Saarthak Kapse and Tarak Nath Nandi and Ravi K. Madduri and Prateek Prasanna and Tahsin M. Kurç and Rajarsi R. Gupta and Joel H. Saltz and Dimitris Samaras},
  title = {{PixCell: A generative foundation model for digital histopathology images}},
  year = {2025},
  eprint = {2506.05127},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2506.05127},
}
Figure