Diverse Where the Report Is Silent: Preventing Acquisition Collapse in Report-Conditioned X-ray Generators

Hospitals increasingly train diagnostic models on synthetic chest X-rays produced by text-to-image generators that take a radiology report and draw a matching image. The hope is that synthetic data makes classifiers more robust when they are deployed at a new hospital with different scanners, patients and imaging habits. This proposal argues that the hope rests on a hidden assumption. A report describes the disease: "left lower lobe opacity, small effusion." It says almost nothing about how the image was acquired: portable versus upright, exposure, positioning, detector texture, lines and devices. When a generator is conditioned strongly on the report, it tends to ignore its random seed and reproduce one typical "look" for each report. The synthetic set then covers disease well but narrows the acquisition variation that decides whether a classifier survives a change of hospital.

The central idea is to measure and repair diversity only in the part of the image that the report does not explain. We use a frozen image–text embedding space in which paired images and reports are aligned. For each image we subtract the part of its embedding that can be predicted from its report. What remains, the report-orthogonal residual, should carry acquisition and site information. We then fine-tune the generator so that the spread of residuals across generated batches matches the spread across real images, while leaving the report-explained part alone. If this is right, a colleague could summarize it in two sentences. Synthetic X-rays lose their diversity specifically in the directions the report does not constrain. Restoring diversity in exactly those directions should buy more cross-hospital robustness than making the generator diverse overall.

Core Claim

The claim has three parts, and each can be falsified on its own. The first is diagnostic. A report-conditioned chest X-ray generator trained in the style of RoentGen shows spectral shrinkage of the report-orthogonal residual relative to real images. It shows much less shrinkage in the report-explained component. The second is methodological. A spectrum-matching penalty applied only to that residual can restore the lost variation without degrading how well images match their reports. The third is practical. Classifiers trained with these residual-diverse synthetic images lose less accuracy on external hospitals than classifiers trained on the same volume of standard synthetic images, seed-diversified synthetic images, or conventionally augmented real images.

Each part builds on a different line of prior work. RoentGen supplies the generator recipe and the motivating gap. It adapts Stable Diffusion to MIMIC-CXR, reaches an FID (Fréchet Inception Distance, a standard realism score where lower is better) of 3.6, and reports that synthetic augmentation improves classification by 5%. Its training and evaluation are single-center, and it never asks whether the synthetic set spans acquisition conditions. Two papers on conditional generation motivate the failure mode we test: Klys et al. and Wu et al. observe that strong conditioning makes generators ignore the noise input, and Lee et al. show that classifier-free guidance locks early denoising steps onto single paths. The geometric tool comes from Connect, Collapse, Corrupt. That paper shows contrastive image and text embeddings differ by a constant offset (the "modality gap") plus noise, and removes the offset by subtracting means. We reuse the mean subtraction, but we treat the non-constant leftover as signal about acquisition rather than as noise to be corrupted away. The diversity penalty is borrowed from GDPP, which matches the eigenvalues and eigenvectors of real and generated batch similarity kernels to prevent collapse in GANs and VAEs. We apply that penalty to a chosen subspace rather than to whole-image features. That restriction is the ingredient that matters here. The factorization echoes Annotations Mitigate Post-Training Mode Collapse, which splits language generation into a semantic "what" and a realization "how." Here the report plays "what" and acquisition plays "how," but the split is recovered geometrically, with no annotation tags.

Research Program

The frozen aligned space is an image–report encoder pretrained on MIMIC-CXR with MGCA. MGCA aligns a Vision Transformer and BioClinicalBERT at the instance, token and disease-prototype levels. Let $u(x)$ be the mean-centered image embedding of image $x$ and $v(t)$ the mean-centered embedding of its report $t$. Centering removes the constant modality gap. We fit a ridge regression $W$ from report to image embeddings on real training pairs and define the residual

$$r(x, t) = u(x) - W\,v(t),$$

the part of the image embedding its own report cannot predict. Before any generation experiment, we check that $r$ means what we claim. Using MIMIC-CXR metadata, linear probes on $r$ should predict view position and portable acquisition well and predict disease labels poorly. The report-explained part $W v(t)$ should show the reverse pattern. If the residual encodes disease as strongly as the explained part does, the decomposition is not meaningful and the program stops or switches encoders.

We reimplement a RoentGen-style latent diffusion fine-tune on MIMIC-CXR. We then fine-tune it further with the added term

$$\mathcal{L}_{\text{res}} = \sum_{k} \big(\lambda_k^{\text{gen}} - \lambda_k^{\text{real}}\big)^2 + \sum_k \lambda_k^{\text{real}}\big(1 - |\langle q_k^{\text{gen}}, q_k^{\text{real}}\rangle|\big).$$

Here $\lambda_k$ and $q_k$ are the $k$-th eigenvalue and eigenvector of the batch similarity kernel over residuals, computed separately for generated and real batches, following the GDPP formulation. The generated residuals are computed from one-step denoised estimates, which lets the gradient flow back to the generator. Real batches are drawn with matched report-derived disease labels, so the penalty compares acquisition spread at fixed disease content. Report fidelity is monitored through the cosine similarity between generated images and their conditioning reports in the aligned space.

One circularity risk must be handled. A generator trained against one encoder can game that encoder. For that reason, every generator-side diversity measurement is repeated with a second, independently trained image encoder that is never used during optimization. The main evidence, however, is downstream external-site performance, which the encoder cannot fake.

Baselines

The naive reference point is a classifier trained only on real MIMIC-CXR images, at a low-label budget (1% and 10% of MIMIC-CXR labels, mirroring MGCA's data-scarce protocol), with no synthetic data. Its in-domain and external AUROC (area under the ROC curve) establish how much any augmentation helps at all.

The strongest existing method is standard RoentGen-style synthetic augmentation. The same generator, before our fine-tune, produces the same number of synthetic images from the same reports at its default guidance scale. This is the most direct competitor because it is the published recipe for exactly this use, and it reports a 5% classification improvement from synthetic plus real data (RoentGen). For external-site transfer of synthetic-augmented chest X-ray classifiers, I found no reported result on Lacuna, so we will measure it ourselves. For fairness, every arm uses the identical classifier architecture, the identical real subset, the same count of synthetic images, and the same number of training steps. Each arm also gets the same hyperparameter search over learning rate and real-to-synthetic mixing ratio, selected on an in-domain MIMIC validation split only. Beating this baseline means a higher mean external AUROC across CheXpert, RSNA Pneumonia and ChestX-ray14 under a paired bootstrap over test images and five classifier seeds. It also means the worst external site improves, and in-domain AUROC does not drop by more than half a point.

A training-free diversity baseline applies DiverseFlow at sampling time. DiverseFlow couples samples with a determinantal point process (a probabilistic model that rewards sets of dissimilar items) and raised ImageNet-256 recall from 0.44 to 0.47. We run it together with a sweep of lower guidance scales, with the sampling compute capped at matched GPU-hours.

The key ablation applies the same GDPP penalty to the full image embedding $u(x)$ instead of the residual $r$. It uses the same weight search and the same fine-tuning budget. If full-embedding diversity matches residual diversity downstream, then the report-orthogonal decomposition contributes nothing, and the proposal reduces to "apply GDPP to a diffusion model." A second ablation applies the penalty only to the report-explained component $W v(t)$. It should help external transfer least.

A non-generative baseline trains the classifier with strong conventional acquisition augmentation: random gamma, contrast, blur, noise, cropping and histogram perturbation on real images. We tune it with the same budget.

Why not just…?

Why not just lower the guidance scale or sample more seeds? This is the cheapest fix and a real threat. Lee et al. identify guidance-driven early overestimation as a cause of collapse, which suggests turning guidance down should help. The problem is that lowering guidance buys diversity everywhere, including in disease content. The generated images then drift from their reports, which injects label noise into the classifier's training set. Our experiments trace a curve of report fidelity against residual spread for guidance sweeps and for DiverseFlow. The proposal only earns its place if its point lies above that curve: more residual spread at equal report fidelity, and better external AUROC. If guidance tuning alone reaches the same external accuracy, we will report that and treat the diagnostic measurement as the main contribution.

Why not just use conventional intensity and geometric augmentation? Hand-designed augmentations capture exposure and contrast changes, but they cannot create acquisition differences that are anatomical or structural. Examples include supine versus upright body habitus, projection magnification, and the presence of lines and devices. RoentGen's readers identified synthetic images partly through such hardware cues. The conventional-augmentation arm, and its combination with our generator, show whether the generator adds anything beyond pixel-level transformations. We expect overlap on exposure-like shifts. The decisive test is the pediatric-to-adult transfer below, where structural differences dominate.

Why not just skip generation and use a domain-generalization method on real data? Cross-modal Representation Flattening improves multi-modal domain generalization on the Human-Animal-Cartoon benchmark to 71.91% from 63.11% for joint training. It requires multiple labeled source domains, and it was never tested on medical scanner shift. Our setting has one source hospital, so it cannot be applied directly. Input-space adaptation with InputAdapter keeps the predictor frozen but needs target-site labels, which we assume are unavailable. Our method is complementary rather than competing. As a secondary arm, we will train an MGCA-initialized classifier with and without residual-diverse synthetic data to check that the gains survive a stronger pretrained starting point.

Why not just measure diversity with FID or recall? Both scores pool disease content and acquisition content together. A generator can therefore have good recall while still collapsing acquisition within each report. The residual spectrum is the measurement that separates the two. The first experiment below tests whether it reveals collapse that FID misses.

Proposed Experiments

The first decisive check is purely diagnostic and cheap. We generate eight samples per report for held-out MIMIC-CXR reports from the baseline generator. We then compare three quantities between generated and real images: the eigenvalue spectrum of residuals within each report, the same spectrum for the report-explained component, and FID. The proposal survives only if residual spread shrinks substantially more than explained spread does. We will also check whether the shrinkage appears under the held-out encoder. If generated residuals are as spread out as real ones, acquisition collapse is not the bottleneck, and the rest of the program is not worth running.

The main experiment trains classifiers on MIMIC-CXR at 1% and 10% labels with each augmentation arm. We evaluate on the in-domain MIMIC test set and on three external collections from the file: CheXpert (a different hospital), RSNA Pneumonia and ChestX-ray14. For CheXpert, MGCA reports 88.8% AUROC with 1% labels under in-distribution fine-tuning; that is a reference ceiling, not a cross-site number. The metrics are per-label AUROC on shared findings, mean and worst-site external AUROC, and the in-domain-to-external drop.

Because Avoiding Catastrophic Referral Failures shows that domain shift produces confident, low-entropy false positives, we also report the rate of external false positives above a fixed confidence threshold. We apply that paper's Split Platt Scaling as a post-hoc layer on every arm, so that uncertainty gains are not confused with recalibration.

A stress test reuses that paper's pediatric-to-adult pneumonia pair, Kermany et al. to ChestX-ray14, for which I found no reported result on Lacuna. This transfer is dominated by structural acquisition and anatomy differences, where pixel augmentation should be weakest. Finally, we check whether the residual predicts failure. Across external test images, the distance of each image's residual from the span of generated training residuals should correlate with classifier error. If it does, the residual becomes a label-free coverage score, something a hospital could compute before deploying a synthetic-trained model.