CPathOGen: Spatially and Morphologically Controlled H&E Counterfactuals for Probing Pathology Models
Abstract
Computational pathology models infer biologically and clinically meaningful outcomes from histology, but their predictions are shaped by complex, intertwined tissue signals whose roles are important to understand. Common pixel- and feature-space perturbations can produce implausible tissue, making model responses difficult to interpret. We introduce CPathOGen, a conditional latent-diffusion framework for generating paired H\&E counterfactuals with explicit controls over cellular spatial organization, nuclear morphology, and stain appearance. Cellular maps condition spatial structure through a spatial encoder, while a morphology/appearance vector modulates denoising through blockwise feature-wise linear modulation (FiLM). On held-out H\&E tiles, CPathOGen generates visually plausible tissue with improved distributional agreement after spatially guided selection, as reflected by lower Fréchet Inception Distance (FID) and Kernel Inception Distance (KID); generated cells track requested abundance and position, and measured morphology and color vary monotonically with their controls. We use these verified interventions to probe pathology encoders with endpoint heads, task-specific classifiers, and survival models. Responses are quantified using total variation distance and prediction-flip rate. We further introduce the Biology-Nuisance Sensitivity Ratio, a metric that contrasts model sensitivity to biologically motivated morphology and spatial factors with sensitivity to non-biological, stain-related nuisance variation. CPathOGen provides a practical, fidelity-audited framework for evaluating robustness and controlled feature sensitivity in computational pathology model. https://github.com/a12dongithub/PathOGenGitHub and https://huggingface.co/a12donhf/CPathOGenHugging~Face.
Create a lesson
Metadata
- Categories
- eess.IV, q-bio.QM
Related papers
TRITRANS: Spatial-Depth Transformer for 3D Computational Pathology
Shared title terminologyeess.IVJiali Hu, Jiawen Li, Yuxuan Chen et al.
Quality-Control Policies Shape Model Behaviour in Computational Pathology
Shared title terminologyeess.IVMario Parreño Centeno, Yu Guan, Pedro Montero Pavón et al.
Spatially Gated Diffusion for Localized Counterfactual Chest Radiograph Editing
Shared title terminologyeess.IVKamran Ullah Afaq, Basit Raza
Lightweight No-Reference Video Quality Assessment for Consumer Devices With Dual Heterogeneously Pre-Trained CNNs and Trainable-Range Control
Shared title terminologyeess.IVSungman Hong, Yujeong Sim, Jinsoo Jeong et al.
Task-Adaptive Local Rate Control for Neural Video Coding for Machines
Shared title terminologyeess.IVMarc Windsheimer, Simon Deniffel, André Kaup
Distilling Pathology Foundation Models for Mitotic Figure Classification: The Loss and Recovery of Scanner Robustness
Shared title terminologyeess.IVShenghan Gao, SeongJun Kwon, Axel Ramirez