Manuscript Offprint

arXiv:2608.24626

Towards Reliable AI-Based Histological Staining: A Systematic Study of Scaling and Uncertainty in Unpaired Generative Models

Qasim Siddiqui, Adrian Friebel, Maiju Myllys, Zaynab Hobloss, Daniela Gonzalez, Ahmed Ghallab, Stefan Hoehme

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Qasim Siddiqui 1,2^{1,2}

qasim.siddiqui@uni-leipzig.de

Adrian Friebel 1,2^{1,2}

friebel@izbi.uni-leipzig.de

Maiju Myllys 3^{3}

myllys@ifado.de

Zaynab Hobloss 3^{3}

hobloss@ifado.de

Daniela González 3^{3}

gonzalez@ifado.de

Ahmed Ghallab 3,4^{3,4}

ghallab@ifado.de

Stefan Hoehme 1,2^{1,2}

hoehme@uni-leipzig.de

1^{1} Interdisciplinary Centre of Bioinformatics (IZBI)

Universität Leipzig

Leipzig, Germany

2^{2} Center for Scalable Data Analytics and Artificial Intelligence (ScaDS.AI)

University of Leipzig

Leipzig, Germany

3^{3} Department of Toxicology

Technical University Dortmund

Dortmund, Germany

4^{4} Faculty of Veterinary Medicine

Qena University

Qena, Egypt

Abstract

Liver fibrosis, the principal predictor of long-term outcome in chronic liver disease, is staged from histological estimates of collagen content. Sirius Red (SR) provides the standard quantitative readout (collagen proportionate area, CPA) but is not acquired at every clinical centre and consumes tissue, time, and reagent cost beyond the routine Hematoxylin and eosin (H&E) stain. AI-based virtual staining can generate SR directly from H&E, yet systematic benchmarks of unsupervised models are scarce and their predictive uncertainty has not been quantified, even though visually plausible outputs may not faithfully reproduce the underlying tissue structure. We therefore benchmark six unsupervised image-to-image architectures (GAN-based and diffusion-based) across 54 scaling configurations on a newly released paired H&E to SR mouse liver dataset, the first open resource for this translation task. Each configuration is evaluated jointly on perceptual, distributional, and task-specific axes plus a blinded expert reader study; the best per family is then retrained as a deep ensemble, the first systematic comparison of epistemic uncertainty across unsupervised stain-to-stain architectures. Across families, perceptual quality, task-specific error, and ensemble agreement measure largely independent axes of model fitness: GAN-based methods cluster tightly on perceptual metrics yet differ substantially on task error and ensemble agreement, while the diffusion-based method (CycleDiffusion) is qualitatively different on all three. No single metric captures these differences, so reliable virtual staining requires reporting and selecting on all three jointly. The dataset, tiling pipeline, models, and evaluation code are released publicly.

© 2026. The copyright of this document resides with its authors. It may be distributed unchanged freely in print or electronic forms.

1 Introduction

Histopathology in most cases relies on a panel of stains. Hematoxylin and eosin (H&E), the most widely available routine stain, reveals overall tissue architecture, while specialised histochemical stains highlight specific tissue components such as collagen fibres, and immunohistochemical stains visualise particular proteins via antibody binding to infer cell types or functional states such as proliferation or necrosis [6, 4]. In clinical and preclinical practice, however, each additional stain requires a separate tissue section. This consumes limited biopsy material [8, 69], extends laboratory processing time [8], raises per-case reagent and labour cost (substantially so for antibody-based panels), and introduces spatial misalignment between stains because tissue deforms during sectioning and mounting [12, 50]. These costs grow with each additional stain: a full tissue characterisation panel may require four or more serial sections from a single biopsy [6], and because a biopsy yields only a limited number of usable sections, every extra stain trades against either reserve material for downstream molecular assays or the breadth of complementary stains that can be examined on the same specimen.

Liver pathology is a particularly acute case. Chronic liver disease is staged primarily by the degree of fibrosis, the progressive deposition of collagen in the extracellular matrix, which is the principal predictor of long-term outcome. While fibrosis can be qualitatively appreciated on H&E, Sirius Red (SR) provides the standard quantitative readout: SR binds collagen with high specificity and is the histochemical stain of reference for measuring fibrosis as the collagen proportionate area (CPA), correlating more strongly with serum fibrosis biomarkers than the widely used Masson's trichrome stain [2]. Inferring SR directly from a routinely acquired H&E section would therefore make a clinically meaningful fibrosis readout available wherever H&E is, without consuming additional tissue or laboratory resources.

Virtual staining offers an attractive solution: it uses deep learning to predict a target stain directly from an existing H&E image (Figure 1), and additionally enables retrospective analysis of existing H&E archives without acquiring new sections [3, 4]. Supervised approaches, however, require pixel-aligned image pairs from adjacent tissue sections, which is impractical at scale and introduces bias from tissue deformation [2]. Unsupervised methods, which learn from unpaired image collections, are better suited to this setting. However, no prior work has systematically compared them for H&E → SR translation in liver tissue; existing comparisons focus almost entirely on H&E → IHC or on non-liver tissue [1, 2, 3]. The existing benchmarks fix a single model scale and data budget [2, 3], leaving open how model capacity and training data jointly affect translation quality, an important question because liver biopsy cohorts vary widely in size across clinical centres.

Beyond translation quality, we also need a signal of when a virtual SR output can be trusted. Task-specific evaluation can verify aggregate translation quality at the WSI level (Section 5.1), but in unpaired settings no ground-truth SR is available for any given H&E tile, so individual tile outputs cannot be checked against truth even though clinical decisions may hinge on local features within a single tile. Training ensembles of independently seeded models and comparing their outputs reveals where they converge on the same answer and where they do not on tile level: disagreement flags inputs for which the unsupervised objective does not pin down a unique translation, providing an indicator of epistemic uncertainty that complements task-specific evaluation.

Consequently, we present three main results that advance unsupervised stain translation toward more reliable and uncertainty-aware evaluation.

First, to map where translation quality actually lies in the design space of model capacity

Figure

Figure 1: Overview of the virtual H&E → SR staining pipeline studied in this work. A whole-slide image (WSI) acquired with H&E staining is decomposed into 256×256256 \times 256 pixel tiles, which are passed through an unpaired image-to-image (I2I) translation model to produce virtual Sirius Red tiles. The translated tiles are reassembled into a virtual SR WSI, from which collagen proportionate area (CPA) can be quantified without requiring a second, physical SR-stained section from the same tissue block.

and training-data budget, we conduct a full-factorial scaling study of six unsupervised I2I architectures spanning GAN-based and diffusion-based families (CycleGAN [☐], UNIT [☐], MUNIT [☐], DCLGAN [☐], UVCGAN [☐], and CycleDiffusion [☐]) at three generator capacities ( ∼\sim10, ∼\sim50, ∼\sim100 million parameters) and three data fractions (25%, 50%, 100%). Each of the 54 configurations is evaluated using a task-specific CPA mean absolute error (CPA MAE), computed by applying a frozen collagen segmentation model to real and virtual SR images, alongside three perceptual metrics: FID (distributional realism), LPIPS (perceptual similarity), and patch-SSIM (local structural similarity). Reporting all four metrics jointly exposes where perceptual rankings agree with task-level accuracy and where they diverge.

Building on this study, to quantify where these models are committed to a single answer and where they are not, we train deep ensembles of independently seeded models for the best configuration per family, producing spatially resolved uncertainty maps. We provide the first systematic comparison of epistemic uncertainty across unsupervised stain-to-stain architectures.

References (52)