Unstained cells are nearly transparent, so label-free microscopy recovers them computationally. Light passing through a cell is delayed slightly, and that delay, called the phase, is proportional to how much material the light crossed. Increasingly, deep generative models turn one ordinary color photograph into a quantitative phase map in radians. From that map a lab reads out dry mass, volume, texture, and cell type. This makes the reconstruction software part of the measuring instrument. When a hospital in one city and a lab in another report different red-blood-cell phase values, nobody can currently say whether the difference comes from their microscopes, their GPUs and software versions, the random draw inside the diffusion model, or the patients.
We propose to measure this directly. Each downstream biophysical feature gets a variance budget: the spread caused by the optics, by the computing environment, and by the model's own random sampling, each expressed relative to the real cell-to-cell biological variation the assay is supposed to detect. The central hypothesis is specific and falsifiable. In a reconstruction that separates a deterministic "mean phase" branch from a generative "detail" branch, features built on bulk phase (dry mass, mean phase, area) will be reproducible across machines and random seeds. Texture and fine-structure features will not, and they will fail by generating detail that is plausible but unfaithful, as virtual staining does for DNA-damage foci.
Core Claim and What Is New
The pipeline under study is Zero-Mean Diffusion (ZMD) from Single Exposure Quantitative Phase Imaging with a Conventional Microscope Using Diffusion Models. ZMD exploits chromatic aberration, the lens defect that focuses red, green and blue light at different depths, so that a single RGB exposure works as a three-plane focus stack. It then splits reconstruction into two parts: a regression network predicts the absolute phase, and a diffusion model (a generator that learns to turn random noise into images by repeated denoising) fills in the zero-mean high-frequency residual. The ZMD paper reports MS-SSIM of 0.97 against 0.81 for the classical Transport of Intensity Equation (TIE) solver on synthetic data, and red-blood-cell phase of 1.8–2.3 rad on clinical urine sediment. It does not measure how those outputs vary across hardware, software stacks, or sampling seeds. It also names cross-microscope calibration as an open problem without offering a way to separate optical variance from computational variance.
The reproducibility literature supplies the method but has never been applied to computational microscopy. The PRIMAD model in Provenance and the Different Flavors of Reproducibility breaks an experiment into platform, implementation, methods, actors, and data, and defines kinds of reproducibility by which of these are held fixed. We use it to design the nesting of our experiment. Exploring Variation of Results from Different Experimental Conditions separates methodological, arbitrary (seed), and incidental (GPU, operating system, library version) variation. It reports that seed changes alone moved an LSTM's BLEU score from 84.47 to 89.59. This paper motivates the work, because it shows incidental variance can be as large as claimed improvements. Instrumentation bias in the use and evaluation of scientific software documents FreeSurfer brain volumes changing between macOS and Linux. That finding tells us even the "deterministic" classical solvers need auditing.
Our metric differs from Quantified Reproducibility Assessment (Quantified Reproducibility Assessment of NLP Results). QRA reports a small-sample-corrected coefficient of variation, CV, which is the standard deviation divided by the mean. That paper itself notes CV becomes unstable as the mean approaches zero. This is not a corner case here, because ZMD's generative branch is zero-mean by construction, and many texture features are centered or signed. We therefore normalize computational spread by biological spread instead of by the mean. For each feature $f$ we fit a nested random-effects model and report
$$R_f = \frac{\sqrt{\sigma^2_{\text{env},f} + \sigma^2_{\text{seed},f}}}{\sigma_{\text{bio},f}},$$
where $\sigma^2_{\text{bio},f}$ is the variance between cells, $\sigma^2_{\text{env},f}$ is the variance across computing environments with the same input images, and $\sigma^2_{\text{seed},f}$ is the variance across diffusion sampling seeds. An analogous ratio $R^{\text{opt}}_f$ uses the between-microscope variance. $R_f$ has no units and stays defined for zero-mean features. It also reads directly as an assay limit: a biological difference smaller than roughly $2R_f$ times the between-cell standard deviation cannot be reliably attributed to biology.
The closest bioimaging work is the virtual-staining evaluation line: Evaluating virtual staining for high-throughput screening and Can Virtual Staining for High-Throughput Screening Generalize?. These papers train Pix2PixHD, an image-to-image adversarial network, to predict fluorescence stains from brightfield images, and evaluate the results at the pixel, object, CellProfiler-feature, and assay level. They find that SSIM of 0.96 for nuclei coexists with hallucinated DNA-damage foci and large feature error. Their Monte Carlo dropout variability maps are the nearest thing to our seed axis. However, they vary only biology, keep one proprietary computing stack, and work on uncalibrated brightfield rather than physical phase. We borrow their multi-level feature evaluation and change the variable being studied from biology to the measurement chain. BIAFLOWS containerizes bioimage workflows and benchmarks them with point metrics. It treats reproducibility as "does the container run" and has no phase-imaging modules. We use its containerization approach as a baseline to beat, not as the contribution.
Research Program
We will build one containerized pipeline running from raw RGB exposure to phase map to features to decision. Three reconstructors run inside it. The first is ZMD. The second is TIE, the classical solver applied to the same chromatic channels. The third is Differential Phase Contrast (DPC) from an LED-array microscope, following Quantitative differential phase contrast imaging in an LED array microscope; DPC recovers phase by linear deconvolution of images taken under asymmetric illumination. Features come from CellProfiler plus physics features: dry mass is integrated phase times a known constant, and we also compute mean cellular phase, projected area, and the biconcavity index for red cells. The decision layer is a small ResNet classifier of cell type trained once. It follows the cascaded design of Artificial-Intelligence-Enabled Reagent-Free Imaging Hematology Analyzer, which reported 90.5% four-class leukocyte accuracy on diffraction phase images. We use a simplified in-house version because that cohort is not publicly listed.
The experimental design is fully nested. Each specimen is imaged on at least three microscopes, including different brands or objectives, which gives the optical axis. Each raw image is reconstructed in at least four environments: two NVIDIA GPU generations, Apple Silicon, and CPU, crossed with two PyTorch/CUDA library versions, and with deterministic kernels both on and off. This gives the incidental axis. Each reconstruction is repeated over 20 diffusion seeds, which gives the sampling axis. Each run is captured with system-level provenance through ReproZip-style system-call tracing, as described by Freire and Chirigati, so that any variance can be traced to a specific library or kernel. We also include an ablation that runs ZMD's regression branch alone. Because that branch has no sampling, it isolates how much of $\sigma^2_{\text{seed}}$ and $\sigma^2_{\text{env}}$ is due to the generative component.
Baselines
The do-nothing reference is standard current practice: one run, one seed, one machine, reported as a point value with pixel metrics. Its predicted within-stack variance is zero by definition, and its reported fidelity is the ZMD figure of MS-SSIM 0.97 on the synthetic phase benchmark. Our study beats it if it shows that non-zero $R_f$ values exist and that pixel fidelity does not predict them. Concretely, success means finding features with $R_f > 0.5$ on reconstructions whose MS-SSIM against ground truth exceeds 0.95.
The strongest engineering competitor is BIAFLOWS-style containerization with pinned dependencies, deterministic CUDA flags, and a fixed seed. We run it with the same container image, the same inputs, and the same hardware pool. We count our analysis as necessary only if variance remains after this treatment, either across GPU architectures or through the forced choice of a single seed, which hides $\sigma^2_{\text{seed}}$ instead of removing it. If containerized, deterministic execution drives $\sigma^2_{\text{env}}$ to zero across all hardware, we will report that as a positive result for the engineering fix.
The strongest metric competitor is QRA's CV. The QRA paper reports CV of about 3.8 for stable syntactic features and about 18.2 for volatile ones, and up to 4.176 from evaluation-script changes alone on identical outputs. We compute CV and $R_f$ on the same runs. $R_f$ is preferable if it stays finite and ranks features consistently where CV diverges, meaning the zero-mean residual and signed texture features. It must also agree with CV on positive bulk features such as dry mass, where the mean is far from zero and CV is well-behaved. The classical TIE and DPC solvers serve as reference instruments without any generative sampling. If their $\sigma^2_{\text{env}}$ is non-zero, the Johnson et al. instrumentation-bias finding carries over to optics code.
Why not just…?
Why not just containerize and set deterministic flags? Containers pin the software, but ZMD samples from a distribution by design. Freezing one seed does not make the phase map correct. It picks one plausible texture from many and hides the spread. Deterministic kernels also do not guarantee equal results across GPU architectures or Apple devices. The deterministic-container baseline above measures exactly how much variance remains, so this objection is settled by data rather than argument.
Why not just average many diffusion samples? This is a real threat to the practical value of the work. Averaging $N$ samples should shrink $\sigma_{\text{seed}}$ roughly as $1/\sqrt{N}$, because the samples are independent draws. It may, however, also blur away real fine structure, pulling texture features toward the regression-only output. We sweep $N$ from 1 to 20 and track both $R_f$ and feature bias against the 20-step through-focus ground truth. If the average of a few samples removes the variance without bias, the recommendation becomes "average, and report $N$". If it adds bias, the recommendation is that texture features from generative phase imaging need uncertainty reported alongside them.
Why not just check SSIM or PSNR across machines? The virtual-staining studies found SSIM of 0.96 alongside fabricated DNA-damage foci and large CellProfiler feature error. Phase is also a physical quantity, and a map can look nearly identical while its radian offset shifts dry mass. We test this directly by correlating per-image SSIM between environments with per-feature disagreement.
Why not assume optics dominate, so computation is irrelevant? This is possible, and it is the hypothesis the ZMD authors implicitly favor. The nested design estimates $R^{\text{opt}}_f$ and $R_f$ on the same cells. Either finding is useful: computation could be negligible, which lets labs focus calibration effort on optics, or it could be comparable, which means cross-lab disagreements cannot be blamed on microscopes alone.
Proposed Experiments
The first experiment uses the synthetic phase benchmark of ImageNet/HCOCO simulations from the ZMD paper, where ground truth is exact. There we estimate $\sigma^2_{\text{env}}$ and $\sigma^2_{\text{seed}}$ with no optical confound and test the core prediction. The prediction holds if bulk features of the regression branch have $R_f$ at least an order of magnitude below that of texture features, and if texture variance sits in the diffusion residual. It fails if seed variance is comparable across both feature groups. The second experiment re-images urine sediment in the style of the clinical ZMD dataset on three microscopes. We check whether red-cell mean phase stays inside the reported 1.8–2.3 rad band under every combination of microscope, environment, and seed, and what fraction of its spread each axis contributes. The third experiment measures decision-level reproducibility. We record the fraction of cells whose predicted class flips across environments or seeds, and compare it with the classifier's error rate. Flip rates approaching a meaningful fraction of the roughly 9.5% error implied by the reported 90.5% accuracy would show that computational variance matters clinically. If the GSK virtual-staining data can be accessed, a fourth experiment would apply the same seed-and-environment design to Pix2PixHD with dropout sampling. It would test whether the Cy5 foci that hallucinate across biology also show the highest $R_f$ across computation, which would link the two failure modes. The decisive outputs are a per-feature table of $R_f$ and $R^{\text{opt}}_f$ with bootstrap intervals, a provenance-traced attribution of any environment-level variance, and a reporting guideline that states which label-free features can currently support cross-lab comparisons.
References
- Single Exposure Quantitative Phase Imaging with a Conventional Microscope Using Diffusion Models
- Provenance and the Different Flavors of Reproducibility
- Exploring Variation of Results from Different Experimental Conditions
- Instrumentation bias in the use and evaluation of scientific software: recommendations for reproducible practices in the computational sciences
- Quantified Reproducibility Assessment of NLP Results
- Evaluating virtual staining for high-throughput screening
- Can virtual staining for high-throughput screening generalize?
- BIAFLOWS: A Collaborative Framework to Reproducibly Deploy and Benchmark Bioimage Analysis Workflows
- Quantitative differential phase contrast imaging in an LED array microscope
- Artificial Intelligence Enabled Reagent-free Imaging Hematology Analyzer