Manuscript Offprint
arXiv:2611.05974PathoS2VD: From 2D Histopathology to Pseudo Z-Stack Representations
Jiamu Wang¹, Keunho Byeon¹, Ji-Uk Kim¹, Jin Tae Kwak¹, and Heounjeong Go²
¹ School of Electrical Engineering, Korea University, Seoul 02841, Korea {taurusmumu, bkh5922, kluki, jkwak}@korea.ac.kr
² Department of Pathology, Asan Medical Center, University of Ulsan College of Medicine, Seoul 05505, Korea damul37@amc.seoul.kr
Abstract. For decades, diagnostic pathology has relied on thin two-dimensional (2D) tissue sections, despite biological tissues exhibiting inherently three-dimensional (3D) morphological organization. Because a single section captures only one focal plane, important morphological cues along the z-axis are inevitably discarded, limiting tissue representation for both human interpretation and computational analysis. In this work, we propose a generative framework that learns z-axis morphological priors from pathology z-stack data, offering a cost-effective alternative to dedicated volumetric imaging, and transfers this knowledge to conventional single-plane histopathology. Specifically, an image-to-video (I2V) latent diffusion model (LDM) is trained to synthesize a pseudo z-stack from a single 2D image, capturing plausible morphological variations across adjacent focal planes rather than reconstructing physical tissue volumes. To enable deployment on large-scale clinical datasets without native z-stack acquisition, we further introduce a prior-preserving mixture fine-tuning strategy that adapts the model to new domains while retaining the learned z-axis morphological prior. Extensive experiments demonstrate that the synthesized pseudo z-stacks exhibit realistic cross-plane morphological continuity and consistently improve downstream prostate cancer classification compared with conventional 2D representations. Our results suggest that learning transferable z-axis priors from limited z-stack data provides a practical way to enrich routine pathology images with complementary morphological information. Code: https://github.com/QuIIL/PathoS2VD.
Keywords: Computational Pathology · Generative View Synthesis · Latent Video Diffusion · Domain Adaptation · Multiple Instance Learning
1 Introduction
Histopathology examination of biopsies and surgical specimens underpins the definitive diagnosis for many diseases. Despite major advances in tissue processing as well as digital and computational pathology, routine clinical practice still
J. Wang et al.

Fig. 1: We aim to synthesize plausible tissue volume along the z-axis surrounding a given image input (right). We first train an I2V diffusion model with the masked z-stack dataset to capture the z-axis prior in a sharp range (left top). Next, we finetune the generative model with the z-stack and the cancer image dataset jointly to adapt the z-axis prior onto the target image domain (left bottom).
relies on thin two-dimensional (2D) tissue sections as the primary substrate for interpretation. As only a small fraction of a three-dimensional (3D) specimen is observed, this workflow is inherently undersampled and can miss morphological information along the tissue depth, potentially leading to biased or uncertain diagnoses [22]. Collapsing complex 3D tissue structures into a 2D single plane can obscure diagnostically relevant morphology and spatial heterogeneity, limiting the reliability of both human assessment and computational models trained on single-plane data.
Recent advances in non-destructive 3D Imaging, such as open-top light-sheet (OTLS) microscopy [8] and micro-computed tomography (microCT) [28], offer volumetric acquisition and visualization of intact tissues with rich structural context. Such modalities provide complementary morphological information across multiple focal planes that is difficult to infer from a single 2D section. For example, in a 2D single plane, poorly formed glands may appear ambiguous in prostate pathology [21] and infiltrative tumor extensions that may appear only as isolated buds [20]. Deep Learning (DL) approaches have therefore emerged to leverage this volumetric information effectively. Recent pipelines like TriPath [31] utilize 3D feature extractors with attention-based aggregation for patient-level predictions, demonstrating the superior ability of 3D features over 2D analysis. Similarly, CARP3D [6] proposes a computational triage strategy that efficiently sifts through volumetric data using 2D feature extractors and multiple instance learning (MIL) [24] to identify high-risk planes.
However, the clinical adoption of 3D imaging in pathology remains challenging. 3D volumetric datasets are orders of magnitude larger than standard 2D datasets, requiring substantially higher cost for acquisition, storage, and manual volumetric review and annotation. More fundamentally, the vast majority of clinical archives and widely used benchmarks remain 2D only, with billions of slides representing decades of medical history inaccessible to methods that explicitly exploit z-axis morphological information. While recent efforts have attempted to reconstruct volumes through the registration of serial biopsy samples [27] or GAN-based single-cell synthesis [3], these methods either require specialized tissue preparation or lack the capacity to model the complex, multi-cellular architectural changes observed in whole-tissue pathology.
Herein, we propose PathoS2VD (Pathology Slice-to-Volume Diffusion), a generative framework for learning transferable z-axis morphological priors from pathology z-stack data. Instead of reconstructing true tissue volumes, PathoS2VD synthesizes plausible pseudo z-stacks that enrich conventional 2D pathology images with complementary cross-plane morphological information. To enable deployment on large-scale clinical datasets without native z-stack acquisition, we further introduce a prior-preserving mixture fine-tuning strategy that transfers the learned z-axis before conventional 2D pathology domains. Experiments on one z-stack dataset and two downstream prostate datasets demonstrate that the generated pseudo z-stacks exhibit realistic cross-plane morphology and consistently improve both patch-level and slide-level cancer classification over 2D baselines.
2.1 Video Diffusion for Z-axis Morphology Modeling
Compared with a single tissue section, a z-stack captures complementary morphological information across adjacent focal planes. While native 3D imaging techniques such as OTLS and MicroCT provide this information directly, their clinical adoption remains limited, and reconstruction from serial tissue sections requires specialized acquisition protocols that are unavailable in routine pathology [7,27].
Rather than reconstructing physical tissue volumes, our objective is to learn the gradual morphological variation across ordered focal planes. This setting differs from conventional 3D scene reconstruction, where multiple viewpoints are available, such as NeRF [25] or Gaussian Splatting [15], but naturally resembles video generation, where neighboring frames exhibit strong local correlations. We therefore adopt the Latent Video Diffusion Model (LVDM) [1,2] as the backbone and reinterpret the temporal dimension as the z-axis of a pathology z-stack. The
J. Wang et al.
spatial-temporal attention mechanism enables the model to capture cross-plane morphological dependencies, which are subsequently transferred to conventional 2D pathology through pseudo z-stack synthesis.
3 Preliminaries: Latent Diffusion Model
This section reviews latent diffusion models (LDMs) [29], which form the basis of LVDMs [2]. LDMs perform DMs in the latent space of a pretrained VAE.
Let be a RGB image. The VAE encoder encodes into a latent representation , where is the downsampling factor. The VAE decoder is trained to reconstruct the input from the latent representation such that .
Subsequently, DMs learn the latent data distribution by defining the forward and reverse processes. While [10] designs the generative process as a discrete-time random process and score-based models [32] formulates it as stochastic differential equations (SDEs), EDM [14] provides a common framework that supports customized noisy schedules parameterized by a noise scale . In the forward process , the clean data is perturbed with Gaussian noise of varying noise scales :
The generation process is modeled as a reverse probability flow ordinary differential equation (PF-ODE), which establishes a deterministic mapping from the noise distributions to the data distribution. The EDM ODE is given by:
where is the score function, representing the gradient of the log-likelihood with respect to data. To solve this, a time-dependent denoising network is trained to estimate the clean data from a noisy data . The training objective minimizes denoising error:
where is a weighting function. [14] shows that representing the denoiser with a noise predictor yields better performance:
where , , , and are EDM scaling functions, for which we use standard EDM hyperparameters. Finally, the score function can be expressed by as . Once trained, samples are generated by initializing from noise and numerically integrating Eq.(2) on .

Fig. 2: (a) A z-stack image is a sequence of slices that capture structural details across depths. (b) from a raw z-stack sample with their absolute blur and relative blur is chosen as the focal plane as in this example.
4 Method
We leverage two types of datasets. The first is a prostate pathology z-stack dataset (source), used to learn z-axis prior from a 2D observation. The second is a 2D cancer classification dataset (target), which is used for domain adaptation and downstream clinical evaluation of the generated z-stacks. In this section, we present the curation of the z-stack data, our two-stage training strategy, designed to address the spatial domain shift between the source and target datasets, and inference strategy for volume generation and expansion.
4.1 Z-stack Dataset Curation
Z-stack imaging captures a sequence of slices/frames at discrete focal depths, which is often used to overcome the limitations of shallow depth of field in microscopy. By combining multiple focal plane slices, z-stack imaging can retain structural details across different depths, as in Fig. 2 (a). In our study, we propose to leverage z-stack imaging to learn z-axis morphological priors and synthesize pseudo z-stack representations from a single 2D image.
Let denote a collection of raw z-stack tissue samples. Each volume comprises RGB slices , corresponding to different focal planes of a tissue section, where and slices are acquired at a focal interval of 0.3 m. While these z-stack volumes provide rich cross-plane morphological information, the individual slices are not uniformly sharp. Slices that are distal from the optimal focal plane exhibit a varying degree of defocus blur (Fig. 2 (b)), which is detrimental to the accurate representation of tissue morphology.
To account for defocus blur, we adopt a physical defocus model where a blurred image is the convolution of a sharp image with a Gaussian point spread function (PSF) , where represents the blur magnitude at depth
J. Wang et al.
: . Traditional blur estimation methods, such as Laplacian variance [26], are insufficient, as they are content-dependent, in which textured tissue regions yield higher blur scores than smooth regions, regardless of the blur degree.
To address this, we formulate a relative blur metric under two key assumptions: 1) all slices within the th volume share the same "true" content and 2) the sharpest slice in the volume is formulated as , and other slices result from applying an additional relative blur kernel , defined as:
where is the blur score of the sharpest slice within the volume (Fig. 2 (b)). Following [38], we calculate the absolute blur degree for each slice. Using the additive property of Gaussian variances under convolution, , we derive the relative blur parameter:
Accordingly, the sharpest slice with corresponds to the optimal focal plane, and the higher the value of , the greater degree of blur it possesses relative to the sharpest slice in the th volume.
We utilize the relative blur metric to perform focal plane alignment. Specifically, we shift the slice indices in each volume such that the slice corresponding to the optimal focal plane, where , is centered in the middle of the volume. After shifting, the slice at index has . If the focal plane is near the volume boundary, this shift creates empty slots, which we fill with pseudo-slices containing infinite blur (). Trimming and padding all volumes to a fixed depth of , corresponding to a m tissue context, we construct a 3D z-stack dataset, designated as:
where denotes the refined volume and represents refined individual slices within the volume.
4.2 Pseudo Z-stack Generation
PathoS2VD is built upon LVDM [2] that augments a standard 2D U-Net backbone, parameterized by , with temporal modules that are parameterized by . The temporal modules include 3D convolutional blocks and temporal attention layers, designed to capture dependencies across the video frames. In our settings, we reinterpret the temporal dimension as the ordered focal-plane dimension of a pathology z-stack. Thus, the image backbone processes each slice as an independent image, while the temporal layers treat them as a sequence with depth structural correlations along the tissue depth.
Given a 2D image , PathoS2VD aims to synthesize a pseudo z-stack tissue that preserves the tissue morphology while introducing plausible z-axis variations. Given a pretrained sampler and semantic guidance , is obtained by decoding a latent clean sample that iteratively denoised from a sampled Gaussian Noise :
With , our generative model extends an image into a tissue of m thickness, defined as: , i.e., , where input image corresponds to the focal plane of .
4.3 Efficient Pseudo Z-stack Expansion
To generate a thicker tissue context beyond , we propose an iterative outpainting strategy that extends PathoS2VD with a volume-expansion generator: . The key idea is to extrapolate along the depth axis in both directions by reusing the boundary slices of the -thick pseudo volume as conditioning inputs for subsequent upward and downward generations, respectively. Specifically, given , the top slice and bottom slice serve as the conditioning inputs and , respectively.
Sequentially generating up and down volumes introduces substantial computational burden. Using standard classifier-free guidance (CFG) [11], it requires two U-Net evaluations at each timestep (conditional and unconditional ): , where is CFG guidance weight. Hence, generating three z-stacks ( ) requires 6 evaluations per timestep.
To mitigate this, we propose a shared Null-space acceleration strategy. Our key assumption is that adjacent tissue blocks share similar structural distributions (stain, cell density, background texture), implying that the unconditional score estimate remains stable across locally adjacent volume blocks. Under this assumption, we fix the initial random noise seed across all three z-stack generations. During the inference of , we cache the unconditional noise prediction . For the peripheral volumes, we bypass the unconditional forward pass and reuse the cached :
where . This reduces the computational cost from 6 to 4 evaluations per step, providing a 33% speedup. The complete procedure is detailed in Alg. 1.
The generated upward and downward pseudo z-stacks overlap with the central pseudo z-stack. One option is to stitch the overlapping regions to construct a continuous expanded z-stack:
J. Wang et al.
Algorithm 1 Expansion with Shared Null-space
1: Input: Image y, Diffusion Steps T, CFG Scale w, Model . 2: Output: Bag of Instances . 3: Extract embedding . 4: Sample initial noise . 5: Initialize empty cache . 6: for to 1 do 7: {Unconditional pass} 8: {Conditional pass} 9: {CFG} 10: 11: {Cache null-conditional noise} 12: end for 13: Decode . 14: . 15: . {Reuse initial noise} 16: for to 1 do 17: Retrieve . {Reuse cache} 18: for do 19: 20: 21: 22: end for 23: end for 24: Decode . 25: Construct Bag . 26: return
Alternatively, all generated slices can be retained, treating the overlapping regions as multiple plausible realizations of the same tissue context. The choice depends on the downstream application, and both strategies are supported by the proposed inference framework.
4.4 Blur-aware Masking Z-stack Training
We train PathoS2VD on to learn cross-plane morphological correlations. The VAE is fine-tuned following the standard objective in [29]. Since slices farther from the focal plane suffer from severe defocus effect, directly supervising all the slices may encourage the model to reproduce the defocus effect instead of tissue morphology. To mitigate this issue, we introduce a blur-aware masking strategy, which utilizes the relative blur metric (Section 4.1). For each z-stack , we define a binary validity mask by setting a global blur threshold (empirically set to 0.2). The validity mask for slice in volume is defined as:
(11) where 1 is the indicator function. Any padding/pseudo slices are naturally excluded by setting .
To adopt plane-guided volume reconstruction, we use the image embedding of the focal plane in as the condition. The training objective for volume reconstruction in the latent space can be written as:
This ensures the generated z-stack is symmetrically aligned with the input image, and the model focuses on learning 3D tissue morphology from the z-stack data, effectively ignoring optical aberrations.
4.5 Mixture Fine-tuning for Domain Adaptation (MFDA)
We denote the z-stack dataset as the source dataset and the target image cancer dataset as , which contains number of RGB images . Although provides PathoS2VD with pathology structural priors, its appearance distribution differs from . Directly applying the pretrained model often results in domain-shift artifacts (e.g., stain mismatch).
Using the static volume constructed by duplicating a target image times collapses the depth-wise structural variations. Another option is to fine-tune the spatial layers in on target images as in [4]; however, we observed that this led to temporal instability, i.e., slice-to-slice inconsistency (flicker), likely because image-only supervision disrupts temporal dynamics learned during z-stack training (Section 4.4).
Following the joint image-video optimization paradigm adopted in recent video generation models, we adopt a Mixture Fine-tuning strategy for Domain Adaptation (MFDA) that smoothly transfers the model to the target image distribution. Unlike previous methods, our objective is not to improve video generation quality but to preserve the learned z-axis morphological prior while adapting the spatial appearance to conventional pathology datasets.
We construct training batches comprising two streams: 1) Z-stack streams ; 2) Target image streams . The z-stack stream is optimized using the blur-aware objective in Eq.12, preserving cross-plane morphological consistency. For the target image stream, only the spatial backbone is updated by bypassing the temporal modules , allowing the model to adapt to the target appearance without disrupting the learned z-axis correlations. The key insight is to uncouple the updates but optimize the parameters jointly for 2D and 3D modules. Similar to Stage I, the VAE is first fine-tuned on the mixed data before optimizing the diffusion model. Then, for the LDM, we use image embedding of as an image condition to guide the generation. The training objective is a standard image diffusion loss applied to independent images in the latent space :
J. Wang et al.
The joint objective is . MFDA enables the spatial backbone to adapt to the appearance distribution of conventional pathology datasets while maintaining the z-axis morphological prior learned from the source z-stack data.
5 Experiment
5.1 Datasets
Our experiments involve one source and two downstream 2D prostate datasets . consists of 80 whole-slide images (WSIs), each scanned at 19 focal planes with a spacing of 0.3 m (approximately 5.7 m total depth) using the VISQUE DPS LH510 system (Viewworks Co., Ltd.), a high-throughput bright-field scanner equipped with a three-camera Realtime Extended Focus module. From these WSIs, we extract 984,252 z-stack patches. Following Section 4.1, the base blur is estimated for every patch, and samples whose deviates by more than two standard deviations from the population mean are discarded. This results in 592,496 high-quality z-stack patches, which serve as the source data for learning transferable z-axis morphological priors.
We evaluate the learned z-axis prior on two 2D prostate datasets. (i) AGGC2022 [12] is a prostate cancer grading dataset with five categories (Background, Benign (BN), Gleason Grade 3 (G3), Gleason Grade 4 (G4), and Gleason Grade 5 (G5)). Following the split in [17], subsets 1 and 2 are used for training (87,720 patches) and validation (48,378 patches), while subset 3, scanned by six different scanner vendors, is used for testing (187,595 patches), providing a challenging cross-scanner evaluation. (ii) SICAPv2 [30] is a prostate whole-slide dataset containing 124 training WSIs and 31 testing WSIs. Following the official annotations, slide-level classification is performed over four tissue categories: BN, G3, G4, and G5. Unless otherwise specified, all image patches are center-cropped to pixels and scanned at magnification.
5.2 Downstream Cancer Diagnostic Evaluation
To evaluate whether the learned z-axis prior provides complementary information for downstream diagnosis, we perform both patch-level and slide-level classification using frozen pathology foundation model features, and we use UNI [5] in our experiment. Given an input patch , we extract the raw feature . The synthesized pseudo z-stack is encoded slice-by-slice, producing a set of slice features . The slice features are then aggregated into a z-stack representation , where denotes a feature aggregation module. We evaluate several commonly used ensemble strategies, including Max Pool [16], DSMIL [18], Self-Attention [23,34]. The aggregated feature is finally combined with the raw image feature through residual addition, .
For patch-level classification, the final patch representation is fed into a 2-layer MLP classifier, while the 2D baseline uses only the raw feature . For slide-level classification, each whole-slide image is represented as a bag of fused patch features, which are further aggregated by ABMIL to obtain a slide-level representation before linear classification. The 2D baseline follows the same pipeline using only the raw patch features.
6 Results
Table 1: Quantitative Assessment of Z-stack Generation Fidelity. We evaluate the reconstruction quality of the generated volumes against the ground truth Z-stack dataset.
| Method | SSIM | LPIPS | FID | FVD | Orientation Similarity | ST Frobenius | Anisotropy MAE | Vz Wasserstein | ST Evolution |
|---|---|---|---|---|---|---|---|---|---|
| PathoS2VD | 0.6794 | 0.1797 | 13.34 | 31.71 | 0.9407 | 0.7727 | 0.0306 | 0.0234 | 0.8949 |
| Pix2Pix | 0.6331 | 0.2436 | 14.20 | 140.59 | 0.8612 | 257.5114 | 0.0567 | 0.0914 | 0.7707 |
| OpenSoraPlan | 0.5410 | 0.3065 | 42.96 | 87.99 | 0.9025 | 3.5136 | 0.0433 | 0.0505 | 0.8803 |
6.1 Quantitative Fidelity and Qualitative Analysis of Generated Pseudo Z-stacks
We first evaluate the generation fidelity of PathoS2VD on the source z-stack dataset . Besides our SVD-based model, we compare against two representative baselines: the transformer-based video diffusion model OpenSoraPlan [19] and the image-to-image GAN Pix2Pix [13]. We report SSIM [35], LPIPS [36], FID [9], and FVD [33] to evaluate image and volume fidelity. To further assess biologically meaningful cross-plane morphology, we additionally adopt 3D structure tensor (ST)-based metrics, including Orientation Similarity, ST Frobenius, Anisotropy MAE, Vz Wasserstein, and ST Evolution.
To quantify the preservation of cross-plane morphology, we further introduce structure tensor (ST)-based metrics. Specifically, we compute the 3D structure tensor for each z-stack and compare both local orientation and anisotropic tissue organization. Orientation Similarity measures the cosine similarity between the principal eigenvectors of paired structure tensors, while ST Frobenius measures the distance between the corresponding structure tensors. Anisotropy MAE evaluates the consistency of local structural anisotropy. Finally, Vz Wasserstein and ST Evolution characterize the statistical evolution of tissue morphology along the z-axis by comparing the distributions of principal orientation components and inter-slice structural changes, respectively.
As shown in Table 1, PathoS2VD consistently outperforms the other two models across all evaluation metrics. Compared with Pix2Pix, PathoS2VD improves SSIM by 7.3% while reducing LPIPS, FID, and FVD by 26.2%, 6.1%, and
J. Wang et al.
Table 2: Quantitative Assessment of Generation Fidelity. We evaluate the reconstruction quality of the central slice in the generated volume against the input AGGC2022 image across different cancer grades.
| Metric | Stage | Gleason Grade Class | |||||
|---|---|---|---|---|---|---|---|
| Background | Benign | G3 | G4 | G5 | Total | ||
| SSIM ↑ | Zero-shot SVD | 0.6682 | 0.7075 | 0.6644 | 0.6651 | 0.6693 | 0.6339 |
| PathoS2VD | 0.8115 | 0.7884 | 0.7755 | 0.7803 | 0.7556 | 0.7823 | |
| PathoS2VD w/ MFDA | 0.8249 | 0.7940 | 0.7879 | 0.7902 | 0.7607 | 0.7915 | |
| LPIPS ↓ | Zero-shot SVD | 0.2498 | 0.2228 | 0.2598 | 0.2488 | 0.2466 | 0.2712 |
| PathoS2VD | 0.1358 | 0.1475 | 0.1548 | 0.1530 | 0.1606 | 0.1504 | |
| PathoS2VD w/ MFDA | 0.1250 | 0.1429 | 0.1397 | 0.1402 | 0.1541 | 0.1404 | |
77.4%, respectively. Compared with OpenSoraPlan, the improvements are even larger, particularly in FVD (-63.9%), indicating substantially better cross-plane consistency.
The ST-based metrics further demonstrate that PathoS2VD preserves biologically meaningful cross-plane morphology. Orientation Similarity reaches 0.9407, indicating that the dominant local structural orientations are well preserved throughout the synthesized z-stack. Meanwhile, the substantially lower ST Frobenius distance (0.77 versus 4.82 and 257.51) suggests that the local spatial organization of tissue closely matches the ground truth. Consistently, the lowest Anisotropy MAE indicates that the generated pseudo z-stacks preserve the directional coherence of tissue microstructures more faithfully than competing methods. Unlike the previous metrics, which compare local structural similarity, Vz Wasserstein and ST Evolution evaluate the statistical evolution of morphology along the z-axis. PathoS2VD achieves the lowest Vz Wasserstein distance (0.0234) and the highest ST Evolution (0.8949), demonstrating that it more faithfully reproduces the gradual morphological transitions across neighboring focal planes. These observations suggest that the learned z-axis prior captures not only the appearance of individual slices but also their cross-plane morphological progression.
It is worth noting that OpenSoraPlan is originally designed for first-frame-conditioned video generation with a temporal compression ratio of 4. In our experiments, we only replaced the first-frame condition with a middle-slice condition while leaving the remaining architecture unchanged. Consequently, its causal design and aggressive temporal compression are not well matched to the symmetric and fine-grained nature of pathology z-stacks. These observations highlight that z-stack synthesis requires task-specific modeling of cross-plane morphology rather than directly transferring generic video generation models.
To evaluate the proposed prior-preserving mixture fine-tuning strategy, we compare the generated central slice with the input target image. As shown in Table 2, MFDA further improves SSIM by 1.18% and reduces LPIPS by 6.65% over the zero-shot model, demonstrating the importance of bridging the appearance gap between the source z-stack data and the target pathology domain.

Fig. 3: Qualitative visualization of generated volumes with three representative slices () for each volume. (a) Two samples of m generated volumes, with yellow boxes highlighting specific morphological evolutions along the z-axis, including focus shifts (blur to sharp), cellular rotation, and shape stretching, demonstrating the model's ability to simulate realistic optical sectioning. (b) Top, Center, and Bottom blocks of extended m volume generation from Benign tissue (top) and Gleason Grade 5 (bottom). The sequence demonstrates consistent anatomical continuity over a larger depth, capturing complex volumetric events such as cellular overlapping and significant focal plane transitions (scanner approach effect).
We further observed a class-dependent performance gradient: benign and low-grade tissue classes (background, Benign, and G3) achieved higher fidelity scores compared to high-grade cancer classes (G4 and G5). We attribute this to the distribution of the source z-stack dataset, which is predominantly composed of benign or healthy tissue structures. Consequently, the model possesses stronger priors for benign morphologies.
To verify that PathoS2VD learns true volumetric morphology rather than simple 2D repetitions, we qualitatively inspect the generated pseudo z-stacks in Fig. 3(a) shows representative m generations by visualizing slices . The synthesized sequences exhibit the "slow motion" characteristic of microscopic optical sectioning. As highlighted by the yellow boxes, we observed morphological evolution along the depth: 1) Optical sectioning effects: the cell appears smaller and blurrier when distant from the focal plane (left row 1) or progressively becomes larger and sharper as the focal plane intersects the cell body (left row 3; right row 1 and 2) and 2) Non-linear deformations: cellular rotation (left row 2) and shape stretching (right row 3) indicate that the model has learned the complex 3D geometry of tissue structures. Moreover, Fig. 3 (b) demonstrates the capability of our iterative expansion strategy across distinct cancer grades
J. Wang et al.
Table 3: Quantitative comparison of feature aggregation methods on patch-level (AGGC2022) and slide-level (SICAPv2) classification tasks. The best result for each dataset and metric is shown in bold.
| Method | AGGC2022 (Patch-level) | SICAPv2 (Slide-level) | ||||
|---|---|---|---|---|---|---|
| Acc | W-F1 | M-F1 | Acc | W-F1 | M-F1 | |
| 2D MLP Baseline | 0.8131±0.0008 | 0.8146±0.0024 | 0.6780±0.0015 | 0.7188±0.0255 | 0.6490±0.0267 | 0.4501±0.0495 |
| Max Pool | 0.8234±0.0048 | 0.8247±0.0042 | 0.6834±0.0013 | 0.7812±0.0000 | 0.7449±0.0139 | 0.6273±0.0199 |
| Self Attention | 0.8194±0.0044 | 0.8209±0.0044 | 0.6806±0.0029 | 0.7604±0.0390 | 0.7191±0.0349 | 0.5873±0.0621 |
| DSMIL | 0.8182±0.0026 | 0.8204±0.0015 | 0.6798±0.0013 | 0.7812±0.0255 | 0.7428±0.0679 | 0.6030±0.1317 |
(benign vs G5). We visualized the top, center, and bottom blocks from each to span the full 6µm depth. The extended range revealed more pronounced cellular dynamics. We observed distinct through-focus optical effects where cell contours transition from complete defocus to sharp (row 2 bottom; row 4). Furthermore, the extended depth captured complex spatial relationships, such as cell occlusion (row 1 bottom; row 3) and cross-section variations (row 1 top; row 2 top).
6.2 Downstream Classification Result Analysis
To investigate whether the generated pseudo z-stacks provide useful information for downstream analysis, we evaluate three representative 3D feature aggregation strategies for both patch- and slide-level classification. As shown in Table 3, all three methods consistently outperform the 2D baseline, demonstrating that the synthetic 3D representations contain complementary morphological information beyond a single tissue section.
For patch-level classification on AGGC2022 (Table 3, left), Max Pool achieves the best overall performance, improving Accuracy from 81.31% to 82.34%, while also obtaining the highest Weighted F1 and Macro F1. Similar observations are made for slide-level classification on SICAPv2 (Table 3, right), where Max Pool yields the strongest overall performance, improving Accuracy from 71.88% to 78.12% together with the highest Weighted F1 and Macro F1.
Although the performance differences among the three aggregation strategies are relatively small, the consistent improvements over the 2D baseline suggest that the generated pseudo z-stacks provide complementary cross-plane morphological cues for downstream classification. We will design more effective feature aggregation methods to better exploit the synthesized 3D information for future work.
7 Conclusion
We presented PathoS2VD, a generative framework that learns transferable z-axis morphological priors from pathology z-stack data and transfers them to conventional 2D histopathology. By repurposing an image-to-video latent diffusion model with prior-preserving mixture fine-tuning, PathoS2VD synthesizes plausible pseudo z-stacks that enrich 2D pathology with complementary cross-plane morphological information. Experiments demonstrate realistic z-axis morphology and consistent improvements in downstream cancer classification. Our current study is limited to prostate z-stack data, and the diffusion model is trained only on benign tissue, which may restrict its ability to capture more diverse pathological morphology. Future work will investigate larger and more diverse z-stack datasets across multiple organs and disease types to learn more generalizable z-axis morphological priors.
J. Wang et al.
References
-
Blattmann, A., Dockhorn, T., Kulal, S., Mendelevitch, D., Kilian, M., Lorenz, D., Levi, Y., English, Z., Voleti, V., Letts, A., Jampani, V., Rombach, R.: Stable video diffusion: Scaling latent video diffusion models to large datasets. arXiv preprint arXiv:2311.15127 (2023)
-
Blattmann, A., Rombach, R., Ling, H., Dockhorn, T., Kim, S.W., Fidler, S., Kreis, K.: Align your latents: High-resolution video synthesis with latent diffusion models. In: Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR). pp. 22563–22575. IEEE, New Orleans, LA (2023)
-
Bruch, R., Vitacolonna, M., Nürnberg, E., Sauer, S., Rudolf, R., Reischl, M.: Improving 3d deep learning segmentation with biophysically motivated cell synthesis. arXiv preprint arXiv:2408.16471 (2024)
-
Chen, H., Xia, M., He, Y., Zhang, Y., Wang, X., Shan, Y.: Videocrafter2: Overcoming data limitations for high-quality video diffusion models. In: Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR). pp. 7329–7339. IEEE (2024)
-
Chen, R.J., Ding, T., Lu, M.Y., Williamson, D.F.K., Jaume, G., Song, A.H., Chen, B., Zhang, A., Shao, D., Shaban, M., Williams, M., Oldenburg, L., Weikirch, L.L., Wesner, G., Lai, Z., Ellaq, C., Mahmood, F.: Towards a general-purpose foundation model for computational pathology. Nature Medicine 30(3), 850–862 (2024)
-
Gao, G., Song, A.H., Wang, F., Brenes, D., Wang, R., Chow, S.S.L., Bishop, K.W., True, L.D., Mahmood, F., Liu, J.T.C.: Triage of 3d pathology data via 2.5d multiple-instance learning to guide pathologist assessments. In: Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR) Workshops. pp. 6955–6965. IEEE (2024)
-
Gatenbee, C.D., Baker, A.M., Hartley, G.R., Robertson-Tessi, M., Anderson, A.R.A.: Virtual alignment of pathology image series for multi-gigapixel whole slide images. Nature Communications 14(1), 4502 (2023)
-
Glaser, A.K., Reder, N.P., Chen, Y., McCarty, E.F., Yin, C., Wei, L., Wang, Y., True, L.D., Liu, J.T.C.: Light-sheet microscopy for slide-free non-destructive pathology of large clinical specimens. Nature Biomedical Engineering 1(7), 0084 (2017)
-
Heusel, M., Ramsauer, H., Unterthiner, T., Nessler, B., Hochreiter, S.: Gans trained by a two time-scale update rule converge to a local nash equilibrium. In: Advances in Neural Information Processing Systems (NeurIPS). vol. 30, pp. 6626–6637. Curran Associates, Inc. (2017)
-
Ho, J., Jain, A., Abbeel, P.: Denoising diffusion probabilistic models. In: Advances in Neural Information Processing Systems (NeurIPS). vol. 33, pp. 6840–6851. Curran Associates, Inc. (2020)
-
Ho, J., Salimans, T.: Classifier-free diffusion guidance. arXiv preprint arXiv:2207.12598 (2022)
-
Huo, X., Seeco, R.F., Brenes, D., Gupta, R., Ogle, J., Song, A.H., Luttman, A., Liu, J.T.C., True, L.D.: A comprehensive ai model development framework for consistent gleason grading. Communications Medicine 4(1), 84 (2024)
-
Isola, P., Zhu, J.Y., Zhou, T., Efros, A.A.: Image-to-image translation with conditional adversarial networks. In: Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition (CVPR). pp. 1125–1134 (2017)
-
Karras, T., Aittala, M., Aila, T., Laine, S.: Elucidating the design space of diffusion-based generative models. In: Advances in Neural Information Processing Systems (NeurIPS). vol. 35, pp. 26565–26577. Curran Associates, Inc. (2022)
-
Kerbl, B., Kopanas, G., Leimkühler, T., Drettakis, G.: 3d gaussian splatting for real-time radiance field rendering. ACM Transactions on Graphics 42(4), 139:1–139:14 (2023)
-
Krizhevsky, A., Sutskever, I., Hinton, G.E.: Imagenet classification with deep convolutional neural networks. In: Advances in Neural Information Processing Systems. vol. 25, pp. 1097–1105 (2012)
-
Lee, J., Lim, J., Byeon, K., Kwak, J.T.: Benchmarking pathology foundation models: Adaptation strategies and scenarios. Computers in Biology and Medicine 190, 110031 (2025). https://doi.org/10.1016/j.compbiomed.2025.110031
-
Li, B., Li, Y., Eliceiri, K.W.: Dual-stream multiple instance learning network for whole slide image classification with self-supervised contrastive learning. In: Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition. pp. 14318–14328 (2021)
-
Lin, B., Ge, Y., Cheng, X., Li, Z., Zhu, B., Wang, S., He, X., Ye, Y., Yuan, S., Chen, L., et al.: Open-sora plan: Open-source large video generation model. arXiv preprint arXiv:2412.00131 (2024)
-
Lin, J.R., Wang, S., Coy, S., Chen, Y.A., Yapp, C., Tyler, M., Nariya, M.K., Heiser, C.N., Lau, K.S., Santagata, S., Sorger, P.K.: Multiplexed 3d atlas of state transitions and immune interaction in colorectal cancer. Cell 186(2), 363–381 (2023)
-
Liu, J.T.C., Chow, S.S.L., Colling, R., Downes, M.R., Farré, X., Humphrey, P., Janowczyk, A., Mirtti, T., Verrill, C., Zlobec, I., True, L.D.: Engineering the future of 3d pathology. The Journal of Pathology: Clinical Research 10(1), e347 (2024)
-
Liu, J.T.C., Glaser, A.K., Bera, K., True, L.D., Reder, N.P., Eliceiri, K.W., Madabhushi, A.: Harnessing non-destructive 3d pathology. Nature Biomedical Engineering 5(3), 203–218 (2021)
-
Lu, M.Y., Williamson, D.F.K., Chen, T.Y., Chen, R.J., Barbieri, M., Mahmood, F.: Data-efficient and weakly supervised computational pathology on whole-slide images. Nature Biomedical Engineering 5(6), 555–570 (2021)
-
Maron, O., Lozano-Pérez, T.: A framework for multiple-instance learning. In: Advances in Neural Information Processing Systems 10. pp. 570–576. MIT Press (1997)
-
Mildenhall, B., Srinivasan, P.P., Tancik, M., Barron, J.T., Ramamoorthi, R., Ng, R.: Nerf: Representing scenes as neural radiance fields for view synthesis. Communications of the ACM 65(1), 99–106 (2021)
-
Pech-Pacheco, J.L., Cristobal, G., Chamorro-Martinez, J., Fernandez-Valdivia, J.: Diatom autofocusing in brightfield microscopy: A comparative study. In: Proceedings of the 15th International Conference on Pattern Recognition (ICPR). vol. 3, pp. 314–317. IEEE, Barcelona, Spain (2000)
-
Redekop, E., Pleasure, M., Wang, Z., Sisk, A., Zong, Y., Flores, K., Speier, W., Arnold, C.W.: Generating 2.5d pathology for enhanced viewing and ai diagnosis. Journal of Pathology Informatics 18, 100463 (2025)
-
Ritman, E.L.: Micro-computed tomography—current status and developments. Annual Review of Biomedical Engineering 6(1), 185–208 (2004)
-
Rombach, R., Blattmann, A., Lorenz, D., Esser, P., Ommer, B.: High-resolution image synthesis with latent diffusion models. In: Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR). pp. 10684–10695. IEEE, New Orleans, LA (2022)
-
Silva-Rodríguez, J., Colomer, A., Sales, M.A., Molina, R., Naranjo, V.: Going deeper through the gleason scoring scale: An automatic end-to-end system for histology prostate grading and cribriform pattern detection. Computer Methods
J. Wang et al.
and Programs in Biomedicine 195, 105637 (2020). https://doi.org/10.1016/j.cmpb.2020.105637
-
Song, A.H., Williams, M., Williamson, D.F.K., Chow, S.S.L., Jaume, G., Gao, G., Zhang, A., Chen, B., Baras, A.S., Serafin, R., Colling, R., Downes, M.R., Farré, X., Humphrey, P., Verrill, C., True, L.D., Parwani, A.V., Mahmood, F.: Analysis of 3d pathology samples using weakly supervised ai. Cell 187(10), 2502–2520 (2024)
-
Song, Y., Sohl-Dickstein, J., Kingma, D.P., Kumar, A., Ermon, S., Poole, B.: Score-based generative modeling through stochastic differential equations. In: Proceedings of the 9th International Conference on Learning Representations (ICLR). Virtual Event (2021)
-
Unterthiner, T., van Steenkiste, S., Kurach, K., Marinier, R., Michalski, M., Gelly, S.: Towards accurate generative models of video: A new metric & challenges. arXiv preprint arXiv:1812.01717 (2018)
-
Vaswani, A., Shazeer, N.P., Parmar, N., Uszkoreit, J., Jones, L., Gomez, A.N., Kaiser, L., Polosukhin, I.: Attention is all you need. In: Advances in Neural Information Processing Systems. vol. 30 (2017)
-
Wang, Z., Bovik, A.C., Sheikh, H.R., Simoncelli, E.P.: Image quality assessment: From error visibility to structural similarity. IEEE Transactions on Image Processing 13(4), 600–612 (2004)
-
Zhang, R., Isola, P., Efros, A.A., Shechtman, E., Wang, O.: The unreasonable effectiveness of deep features as a perceptual metric. In: Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition (CVPR). pp. 586–595. IEEE, Salt Lake City, UT (2018)
-
Zhang, Y., Zhang, X., Qi, X., Wu, X., Chen, F., Yang, G., Fu, H.: Content generation models in computational pathology: A comprehensive survey on methods, applications, and challenges. IEEE Reviews in Biomedical Engineering (2025). https://doi.org/10.1109/RBME.2025.3619086
-
Zhuo, S., Sim, T.: Defocus map estimation from a single image. Pattern Recognition 44(9), 1852–1858 (2011)