NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Hidden Negative Transfer: When Pre-Training Installs Medical Shortcuts

Medical imaging models usually start from an encoder pre-trained on a large pool of images. The pre-training objective is a proxy task: matching augmented views of the same image, or filling in masked patches. Pre-training is judged a success if the fine-tuned model scores well on a held-out test set from the same hospitals. This note argues that this check can hide a serious failure. Hospital archives are full of non-medical cues, such as text markers, scanner signatures, chest tubes and skin-marker ink. A proxy objective that rewards spotting these cues can build an encoder that already represents them. Fine-tuning on a biased clinical dataset then latches onto the pre-installed cue faster than a model trained from scratch would. The result is a model that looks as good or better on the usual test set but is worse whenever the cue stops tracking the disease, which is exactly what happens at a new hospital.

We call this hidden negative transfer. Negative transfer normally means a pre-trained model does worse than one trained from scratch. Here that deficit appears only on test sets where the shortcut is broken. We propose to measure it under controlled conditions, to find where in the network the installed shortcut lives, and to test one cheap repair: resetting only the layers that most strongly encode acquisition site. Site is metadata almost every archive already records.

Core Claim

Our claim is that the choice of pre-training objective changes how easily a network adopts shortcuts after fine-tuning, and that the ordinary in-distribution benchmark cannot detect this effect. Define $\Delta_{\text{ID}} = \text{AUROC}_{\text{ID}}(\text{pre}) - \text{AUROC}_{\text{ID}}(\text{scratch})$ as the pre-training gain on a test set drawn like the training data. Define $\Delta_{\text{inv}}$ as the same difference on a test set where the shortcut–label correlation is inverted. Hidden negative transfer is the regime

$$\Delta_{\text{ID}} \ge 0 \quad \text{and} \quad \Delta_{\text{inv}} < 0,$$

in words, pre-training looks harmless or helpful while actually reducing robustness.

The file motivates this but never tests it. Automatic Shortcut Removal for Self-Supervised Representation Learning showed that pretext tasks such as rotation and jigsaw exploit low-level artifacts like chromatic aberration and borders. It removed them with an adversarial image-altering network, but only on natural images and older pretext tasks. Transfusion found that ImageNet pre-training gives little in-distribution gain on retinal and chest images and that lower layers change little during fine-tuning. Together these suggest that artifact-sensitive low-level features can survive fine-tuning untouched.

Medical shortcut studies measure robustness only for supervised or ImageNet-initialized models. Saab et al. do this on SIIM-ACR chest tubes and ISIC skin markings. Luo et al. do it on hospital text tokens across NIH-Google and PadChest. Müller et al. do it on sex-confounded CheXpert. None of them varies the pre-training objective.

On the negative-transfer side, BiSSL, NoisyTune and Transfer Risk Map all score transfer on a static in-distribution target. Our contribution is to redefine negative transfer against a shortcut-broken test set, and to show which objectives produce it.

Research Program

The first component is a controlled testbed. Real shortcuts are entangled with genuine population differences, so we start with shortcuts we plant ourselves. We take a chest X-ray pre-training pool drawn from CheXpert and MIMIC-CXR and split it into pseudo-sites. We stamp each pseudo-site with a characteristic synthetic marker, a small text token at a site-specific position with site-specific intensity processing, at a controlled rate. This mimics the hospital tokens Luo et al. found driving CheXNet.

Downstream, the same marker is correlated with the disease label at a strength $\rho$ that we sweep. Evaluation uses a matched set with the marker–label relation inverted. Because we placed the markers, we can paint them in and out of any test image. That gives a direct measure of use, the change in prediction when the marker is removed, separate from encoding, the linear decodability of the marker from each layer.

This separation matters. ShorT showed that a model can encode an attribute without relying on it. That finding directly threatens any fix that assumes "encoded means used," so we test the assumption rather than adopt it.

The second component moves to natural shortcuts that other papers have already characterized. These are chest tubes in SIIM-ACR pneumothorax, the sex–pleural-effusion confound in CheXpert with an inverted test split, pediatric epiphyses in the multi-source COVID-19 dataset of Unlearning Spurious Correlations in Chest X-ray Classification, and cross-hospital transfer from an internal set to NIH-Google and PadChest.

The third component is a repair that needs no labels for the shortcut. For each pre-trained encoder, we fit a linear probe per layer that predicts acquisition site from features. We then re-initialize, or perturb NoisyTune-style, only the layers where site is most decodable before fine-tuning. The logic is that site decodability is a label-free proxy for "this layer stores acquisition cues." Site ID is ordinary metadata, unlike the per-confounder labels that dependence penalties such as MINE or distance correlation and gradient reversal require.

If the testbed shows that site decodability does not track shortcut use, the repair fails for a reason we will be able to state. That outcome is itself a finding about where shortcuts live.

The encoder families are fixed across all of this: training from scratch, supervised ImageNet initialization, contrastive self-supervision, and masked autoencoding. Each uses the same ResNet-50 or ViT-B backbone and the same pre-training pool and budget. The sole difference is the objective.

Baselines

The naive reference point is training from scratch with standard augmentation on the same downstream data and hyperparameter search. It defines both $\Delta$ terms. Transfusion makes it a genuinely strong competitor rather than a strawman. Beating it means a pre-trained model with no worse in-distribution AUROC and a higher inverted-set AUROC, across at least five seeds.

The second reference is each pre-trained encoder fine-tuned end-to-end without intervention. This is how practitioners actually use foundation encoders. It is the object whose hidden negative transfer we measure.

The strongest existing shortcut method is the MINE dependence penalty of Müller et al.. It reports Pleural Effusion AUROC of 87.7 on the inverted CheXpert split, against 45.8 for the unregularized baseline. We run it on each encoder with its confounder labels, the same epochs, and a matched tuning budget of twenty configurations per method, selected on an in-distribution validation split. Because MINE sees confounder labels and our repair does not, we treat MINE as an upper reference. Our repair "wins" if it recovers at least half of MINE's gain over the unregularized fine-tune without using confounder labels.

For SIIM-ACR, the spatial-supervision oracle of Saab et al. reports robust AUROC of 0.82 with segmentation masks, versus 0.46 with binary labels. We quote it as the ceiling that pays the full annotation cost.

The pre-training-time competitor is the adversarial lens of Automatic Shortcut Removal, applied during contrastive and masked pre-training with the same pre-training compute. No reported result was found in the file for this method on any medical dataset, or for contrastive or masked-autoencoder encoders on the SIIM-ACR or inverted-CheXpert splits. We will produce those numbers ourselves.

Two ablations isolate the key ingredient, the choice of which layers to reset. The first applies uniform NoisyTune to all layers, as in NoisyTune. The second resets an equal number of randomly chosen layers.

Why not just…?

Why not just train from scratch? This is the most serious alternative. If scratch models are as robust as the best pre-trained ones, the practical advice is simply "don't pre-train on uncurated archives," and the repair is moot. We do not argue around this. The $\Delta_{\text{inv}}$ measurement is exactly the test. If every objective gives $\Delta_{\text{inv}} \approx 0$ or positive, we report that pre-training neither installs nor removes shortcuts. That would still correct the implicit assumption that more pre-training data buys robustness, an assumption Luo et al. already undercut for supervised data.

Why not just use stronger augmentation during pre-training? Random cropping removes the border-padding shortcut documented in Shortcut Learning in Medical Image Segmentation. However, crops and color jitter do not remove a text token or a chest tube that appears anywhere in the image, and contrastive learning may reward such cues because they survive augmentation. We include a heavy-augmentation arm for each objective. If it closes the gap, augmentation is the simpler answer and we will say so.

Why not just apply a dependence penalty or gradient reversal during fine-tuning? These work when the confounder is known and labeled; MINE's 87.7 on inverted CheXpert shows how well. Routine archives do not label tubes, markers or processing pipelines, and the list of confounders is open-ended. Our repair uses only site ID. The comparison against labeled MINE tells us how much is lost by not having those labels.

Why not just perturb all weights with NoisyTune? Uniform noise is cheaper and needs no probe. However, it can equally destroy the fragile features that detect pathology. The random-layer and uniform-noise ablations show whether targeting matters.

Why not audit with Grad-CAM and discard models that attend to artifacts? Saporta et al. and Singh et al. found saliency maps agree poorly with expert regions. For that reason, our usage measure is counterfactual marker removal rather than attribution.

Decisive Checks

Three results settle the proposal.

The first is whether hidden negative transfer exists. In the controlled testbed at $\rho \ge 0.8$, at least one self-supervised objective must show $\Delta_{\text{ID}} \ge 0$ with $\Delta_{\text{inv}}$ below zero beyond seed variance. The same sign must then replicate on at least two of the natural benchmarks: SIIM-ACR robust AUROC, inverted-CheXpert AUROC, and NIH-Google/PadChest external AUROC. We also expect the objectives to differ in how much of the effect they produce. A plausible guess is more for contrastive learning, since invariance to augmentation preserves global tokens, than for masked reconstruction. We state this as a prediction to be falsified, not an assumption.

The second is whether encoding predicts use. Across layers and encoders, the rank correlation between site decodability and counterfactual marker-removal effect must be clearly positive. If it is not, as ShorT's finding allows, the targeted repair is expected to fail. The finding would then be that shortcut use is decided during fine-tuning rather than stored in pre-trained layers.

The third is whether the repair works. Targeted reset must beat both ablations on inverted-set AUROC while giving up no more than one AUROC point in-distribution. It should also recover at least half of MINE's labeled gain. Worst-group AUROC, for example on SIIM-ACR images without tubes (the hidden stratum identified by Oakden-Rayner et al.), is reported alongside every aggregate so that the average cannot hide the failure we are looking for.