Chest X-ray classifiers often learn shortcuts. A pneumothorax (collapsed lung) model can learn to look for the chest drain that doctors insert to treat it, instead of the collapsed lung itself. The standard way to measure this is a single-snapshot comparison: score images with drains against images without drains and report the gap. That comparison has the same flaw climate scientists found when they tried to measure how pollution particles change clouds from satellite snapshots. Patients who receive drains differ from those who do not in severity, ward, image view, and demographics, so the gap mixes the model's reliance on the drain with differences in the patients. Treatment also follows diagnosis, which is a reverse-causal link. Climate researchers fixed their version of this problem by following the same air mass between a morning and an afternoon satellite pass and subtracting a weather-matched baseline. We propose the clinical analogue. We follow the same patient across two X-rays taken before and after a drain is placed, while the diagnosis stays the same, and subtract the score drift seen in matched patients who got no drain.
The payoff is a shortcut measurement that can be checked against a known answer. It also yields explanations that can be tested, because we compare how a saliency map changes between the paired images. And it separates two things that current fairness audits blur together: patient subgroups that differ in case mix, and a model that actually behaves differently for those subgroups.
Core Claim
Cross-sectional shortcut audits can be biased in either direction by the patient differences described above. A within-patient difference-in-differences design, conditioned on each patient's initial state and corrected by a matched no-intervention baseline, should recover shortcut strength far more accurately. "Difference-in-differences" here means comparing each patient's change in score against the change seen in similar untreated patients. The climate literature shows how large this kind of error can be. Fons et al. used a causal graph over 15-minute geostationary observations and found that the true aerosol-driven thinning of clouds was only about 6% of the non-causal regression estimate. Gryspeerdt et al. found that uncorrected correlations overstate cloud-water reduction by up to 60%. These works motivate the proposal; they found the gap, in another field. The method is taken from two further climate papers. The first is the before-and-after tracking of Observing short-timescale cloud development, which follows air masses from the Terra to the Aqua satellite pass and bins them by initial cloud state. The second is the counterfactual baseline of Radiative forcing from the 2020 shipping fuel regulation, a neural network ensemble that predicts what clouds would have looked like without the regulation under the observed weather. Neither was designed for irregular clinical imaging or demographic bias. The adaptation lies in defining the "initial state," the "no-treatment baseline," and the explanation readout for clinical images.
The estimand is simple. Let $\Delta s_i$ be the change in a model's pneumothorax logit between a patient's earlier and later image. A logit is the model's raw pre-probability score. The shortcut effect is
$$ \tau = \mathbb{E}[\Delta s_i \mid \text{drain added},\, y_1=y_2=1,\, c_i] - \mathbb{E}[\Delta s_j \mid \text{no drain},\, y_1=y_2=1,\, c_j], $$
where $y_1, y_2$ are the pneumothorax labels at the two times. Requiring $y_1=y_2=1$ removes true label change. The term $c$ bundles the matching variables: initial logit, image view (front-to-back or back-to-front), time gap, and age and sex.
One caveat matters. Drains shrink pneumothoraces, so the real disease signal usually weakens between the two images. That makes $\tau$ a conservative lower bound on drain reliance, which is the safe direction for an audit claim. Cross-sectional gaps carry no such sign guarantee.
Research Program
The data come from serial imaging. NIH-CXR14 contains 112,120 images from 30,805 patients, so most patients have several films. The NEATX drain annotations used in Fairness and Robustness of CLIP-Based Models for Chest X-Rays, which were compiled from NIH-CXR14 and PadChest, mark which images contain drains. MIMIC-CXR has 377,110 images across 227,827 studies with report text. We will extract drain and tube mentions from those reports to build a second, larger set of pairs. Report-derived labels are noisy, so a radiologist-checked subsample will quantify pairing error before any effect estimate is trusted.
We will audit the six CLIP-style vision-language models already evaluated by Sourget et al., using their released code (TheoSourget/clip_cxr_fairness). We will also audit two models that claim to be free of shortcuts. The first is the backdoor-adjusted classifier of Chest X-ray Image Classification: A Causal Perspective, which splits image features into "causal" and "confounding" parts and pushes the confounding part toward uninformative predictions. The second is the explanation-guided unlearning of Unlearning Spurious Correlations in Chest X-ray Classification, which penalizes Grad-CAM attention on non-lung regions using one "good" and one "bad" example map. Grad-CAM is a method that highlights the image regions driving a prediction. Both papers validate their claims on single snapshots, and our design tests whether those claims hold up when patient differences are removed.
The counterfactual baseline mirrors the shipping-fuel ensemble. We train a small ensemble to predict $\Delta s$ from the initial logit, time gap, view change, and demographics, using only patients with no intervention and unchanged labels. This expected drift is subtracted from each treated pair. The ensemble's spread supplies an uncertainty band, and a "detection fraction" states how many treated pairs rise above the noise. We report that fraction explicitly, because the shipping study showed that a large real effect can have only a 1–6% detection rate against background noise.
For interpretability, we compute paired saliency difference maps: the map on the later image minus the map on the earlier one. We then measure how much of the change falls inside the drain region versus the lung. Subtraction cancels the patient's fixed anatomy. This matters because Benchmarking saliency methods for chest X-ray interpretation found Grad-CAM 24.0% worse than radiologists in mean overlap with expert outlines on CheXlocalize, and 76.2% worse on lung lesions. Absolute maps are too unreliable to adjudicate shortcuts, but a change in a map between two images of the same patient may be readable. We test that claim below rather than assume it.
For population bias, we estimate $\tau$ separately by sex and by age band. Race is unavailable in NIH-CXR14 and is only partially available in MIMIC-CXR. Because each patient serves as their own control, any subgroup difference in $\tau$ reflects how the model behaves, not which patients happen to be in each group. This is the distinction that cross-sectional subgroup audits cannot make. Sourget et al. showed that sex and age are linearly decodable from frozen embeddings, and our design asks whether that encoding translates into different shortcut use.
Baselines
The do-nothing reference is the raw cross-sectional gap: the model's pneumothorax AUPRC on drain-present versus drain-absent positives, with no adjustment. AUPRC is the area under the precision-recall curve.
The strongest existing audit is the adjusted comparison of Sourget et al., who report adjusted AUPRC improvements of +0.09 to +0.30 when drains are present, across most of the six models. We rerun it with their code on the same images and models, so every audit method sees identical inputs and no method gets extra tuning. On the question "how much does this model use drains," it is the most direct published competitor.
A stronger cross-sectional competitor is propensity matching. We model each image's probability of having a drain from view, age, sex, and a severity proxy, then compare matched drain and no-drain positives. This baseline gets the same covariates as our $c$.
We add two ablations. The first removes the counterfactual drift baseline and keeps only the raw within-patient change. The second removes conditioning on the initial logit. Together they isolate the two pieces borrowed from the climate work.
For the mitigation models, the reference numbers are AUCs of 0.94 for cardiomegaly and 0.91 for effusion reported by the causal-perspective paper, and accuracy of 0.95 falling to 0.90 with lung-attention precision rising from 0.32 to 0.35 for the unlearning method. No reported pneumothorax or drain-shortcut result for either model was found on Lacuna, so their shortcut behavior is measured here for the first time.
On the planted-shortcut benchmark described below, "beating" a baseline means lower absolute error against the known effect, with non-overlapping bootstrap intervals. On real drains it means the audits disagree in a way the planted benchmark predicts.
Why not just…?
Why not just edit the images, pasting drains in or painting them out? This is the most serious alternative, and it is partly complementary. Synthetic edits give a clean intervention, but pasted drains lack realistic lung compression and skin folds, and removed drains leave inpainting artifacts that the model may itself react to. We will run both. If synthetic-edit estimates match the within-patient estimates on the planted benchmark and on real drains, the edit approach is simpler and we will say so. The paired design is worth its cost only where the two approaches disagree, and the planted benchmark tells us which one is right in those cases.
Why not just stratify the cross-sectional comparison by severity? Severity labels are rarely available, and proxies such as the model's own score reintroduce the very shortcut being measured. Propensity matching is included as a baseline precisely to test this. If it matches the paired design's error on the planted benchmark, the paired design adds little.
Why not just trust a shortcut-removal method like backdoor adjustment? Its guarantee assumes confounding features can be driven toward uninformative predictions inside the network. That assumption is untested against structured confounders such as treatment hardware. Auditing it within-patient is part of this proposal, not a substitute for it.
Proposed Experiments
The decisive test is a planted shortcut. We retrain a classifier on NIH-CXR14 with a synthetic marker, a small corner glyph, added to positive images at controlled rates, so that the true reliance is known. Marker placement will also correlate with a simulated severity variable, creating confounding of known sign. The proposal succeeds only if the within-patient estimate of $\tau$ tracks the planted strength across rates while the cross-sectional and matched audits show predictable bias.
Second, we apply all audits to real drains in NIH-CXR14/NEATX and MIMIC-CXR pairs. We report $\tau$, its detection fraction, and whether the model rankings from Sourget et al. survive.
Third, we test whether paired saliency difference maps place more change mass on drains in exactly the models with larger $\tau$. A rank correlation across the eight models is the check. If that correlation is absent, it counts against using saliency for auditing at all.
Fourth, we compare subgroup estimates of $\tau$ with cross-sectional subgroup AUPRC gaps. If the gaps shrink under pairing, they were case mix rather than model behavior.
References
- Stratocumulus adjustments to aerosol perturbations disentangled with a causal approach
- Constraining the aerosol influence on cloud liquid water path
- Observing short-timescale cloud development to constrain aerosol–cloud interactions
- Radiative forcing from the 2020 shipping fuel regulation is large but hard to detect
- Chest X-ray Image Classification: A Causal Perspective
- Fairness and Robustness of CLIP-Based Models for Chest X-Rays
- MIMIC-CXR: A large publicly available database of labeled chest radiographs
- Unlearning Spurious Correlations in Chest X-Ray Classification
- Benchmarking saliency methods for chest X-ray interpretation