When a medical image classifier is fine-tuned on a few hundred scans, it often learns the hospital, the scanner, or a burned-in laterality marker instead of the pathology, and nobody notices until the model fails at a new site. This proposal tests whether one cheap measurement, taken before any fine-tuning, can predict that failure. The measurement asks how many bits it takes to communicate the disease label from a frozen backbone's features, compared with how many bits it takes to communicate the shortcut label, such as hospital ID. We then ask whether this gap, combined with the number of training cases where the shortcut and the disease disagree, predicts whether a small-cohort fine-tune will learn the disease or the shortcut. If the prediction holds, a practitioner could ask a concrete question before training: does this backbone, given this cohort's size and composition, have enough shortcut-breaking cases to learn the right thing?
The tool is minimum description length (MDL) probing. It scores a representation by the total bits a sender needs to transmit labels to a receiver who already holds the features, so it charges for probe effort as well as accuracy (Information-Theoretic Probing with Minimum Description Length). In language models, the difference in codelength between a target feature and a competing heuristic ("relative MDL") predicts which one fine-tuning adopts. It does so together with the rate of counter-examples, with Spearman correlation up to 0.96 for BERT (Predicting Inductive Biases of Pre-Trained Models). Small clinical cohorts are the setting where that theory should matter most, because counter-evidence is counted in single digits. It has never been tested there.
Core Claim
For a frozen medical backbone with features $X$, disease label $t$ and candidate shortcut label $s$, define
$$\Delta = L_{\text{online}}(t \mid X) - L_{\text{online}}(s \mid X),$$
where $L_{\text{online}}$ is the online codelength in bits. The online codelength is the summed log-loss of a probe that is retrained on growing prefixes of the data and scored on the next block. A positive $\Delta$ means the shortcut is easier to extract than the disease.
We claim that the outcome of a small-cohort fine-tune is well described by a two-variable surface. One variable is $\Delta$. The other is $c$, the absolute number of training cases where $s$ appears without $t$. We measure the outcome as shortcut reliance, meaning the AUC drop on a test set where the shortcut is flipped. We model it as
$$P(\text{shortcut adopted}) = \sigma(a\,\Delta - b\,\log c + d),$$
where $\sigma$ is the logistic function and $a, b, d$ are fit across backbones and shortcuts. The logistic form follows the tug-of-war between extractability and evidence that Lovering et al. describe. We use $\log c$ rather than $c$ because counter-evidence plausibly has diminishing returns. Both are hypotheses we test, not assumptions.
This differs from the closest work in three ways. Lovering et al. established the tug-of-war only on synthetic strings and English grammar with text transformers. They also left open whether extractability is causal or only correlated. PADDLE (Towards Practical Few-shot Query Sets: Transductive Minimum Description Length Inference) uses MDL as a test-time clustering objective that switches off absent classes. It never measures what a representation makes easy to learn, and it never considers confounders. ShorT (Detecting shortcut learning for fair medical AI using shortcut testing) and SilverLining (SilverLining: Data-First Mitigation of Spatial and Spectral Shortcuts Without Introducing New Confounders) diagnose or remove shortcuts in chest X-rays. ShorT measures attribute encoding with accuracy-style probes, and neither method predicts how many counter-examples a cohort needs.
We are explicit about one shared limitation. Our method, like ShorT, needs a label for the candidate shortcut. We restrict ourselves to shortcuts that clinical metadata almost always records: acquisition site, scanner, view, patient sex and age.
Research Program
The program has three parts.
The first part is measurement. We compute online codelengths for disease and shortcut labels from frozen features of the backbones benchmarked on MedMNIST (Rethinking Foundation Models for Medical Image Classification through a Benchmark Study on MedMNIST): DINOv2, ResNet-18, ResNet-50 and EfficientNet-B4. We do this at several layers, with linear and small MLP probes and five seeds. Because the probes are trained on cached features, the known cost of online coding is minutes per configuration rather than hours. A key sub-question is whether $\Delta$ can be estimated reliably from only 100 to 400 labeled cases. We report bootstrap intervals. We also compare $\Delta$ estimated on the small cohort with $\Delta$ estimated on a larger public pool that carries the same metadata.
The second part is prediction. Each backbone is fine-tuned end to end on cohorts of 20, 50, 100 and 200 cases per class, while we vary the number of shortcut-breaking cases $c$ from zero upward. We then fit the surface above. The deliverable is a "counter-evidence threshold": the $c$ at which predicted shortcut adoption falls below one half, read off from a pre-fine-tuning measurement.
The third part is intervention, which addresses Lovering et al.'s open causal question. We change $\Delta$ while holding the images' diagnostic content fixed, and check whether fine-tuning behavior moves as predicted. We do this in two ways. One is to vary the contrast and size of an injected artifact. The more informative one is to keep the artifact identical and compare backbones or layers that happen to encode it with different ease. If behavior tracks $\Delta$ rather than raw artifact magnitude, extractability is doing the work. A secondary measure borrows the parameter-budget idea from Quantifying Elicitation of Latent Capabilities in Language Models. It counts how many randomly chosen backbone parameters must be tuned to reach half of the full-tuning performance on $t$ versus $s$. We test whether this predicts better than frozen-feature codelength, which would matter if frozen features understate what fine-tuning can reach.
One possible contradiction must be addressed directly. Wu and Papiez report that linear probing is far worse than end-to-end tuning on MedMNIST and call it insufficient for high-stakes classification. That finding concerns the probe as a final classifier. We use probe codelength only as a ranking signal for what fine-tuning will find easy. Whether frozen features carry enough information for that ranking is exactly what the elicitation comparison and the MLP-probe ablation test.
Baselines
The naive reference point is what practitioners do today: pick the backbone with the best in-distribution validation AUC and trust it. It shares every data split and tuning budget with our method. We expect it to carry no information about shortcut reliance, as the CORDA experience suggests (Unveiling COVID-19 from Chest X-ray with deep learning: a hurdles race with small data). There, a model with reasonable internal numbers fell to 0.54 sensitivity externally.
The strongest existing diagnostic is ShorT's attribute-encoding probe. It trains a head to predict the sensitive attribute and correlates encoding strength with downstream unfairness, and it reports Spearman $\rho = 0.469$ for race on CheXpert cardiomegaly and $\rho = -0.668$ for age on biased NIH CXR. We reimplement its encoding measure on the same frozen features, splits and backbones, and score it with the same rank correlation against counter-shortcut AUC drop. Beating it means a significantly higher rank correlation under a paired bootstrap across backbone-by-shortcut configurations. It also means calibrated prediction of the counter-evidence threshold, which ShorT does not attempt. No reported result found on Lacuna for MDL-based prediction of shortcut adoption in medical imaging. Lovering et al.'s $\rho = 0.96$ on BERT grammar tasks is the ceiling we compare against, not a medical baseline.
The ablation that isolates our key ingredient replaces codelength with probe accuracy or AUC on $t$ and $s$, measured at full data. A second variant uses accuracy at a single small training size. Both use identical probes and budgets, so the only difference is whether the probe's learning effort is charged.
For mitigation context, we also report SilverLining's counter-shortcut AUC on PneumoniaMNIST (0.93 spatial, 0.97 spectral). We check whether our $\Delta$ drops after SilverLining preprocessing and whether that drop predicts its gain.
Why not just…?
Why not just compare linear-probe accuracy for disease versus shortcut? Voita and Titov show that accuracy can be nearly identical (about 96% vs 94%) while codelength differs by a factor of two. Accuracy hides how much the probe had to work. In imaging this is likely worse, because hospital ID is often probed near-perfectly from almost any backbone, so accuracy saturates and cannot rank backbones. This is still an empirical claim, and the accuracy ablation above settles it.
Why not just measure few-shot accuracy at a small fixed sample size? This is the real threat. Online codelength is essentially the area under a log-loss learning curve, so a single point on that curve may carry most of the signal. We test it head to head, using accuracy at $n = 20$ per class and area under the accuracy learning curve. If either matches $\Delta$ in predictive rank correlation, we will say so. The contribution then shrinks to the counter-evidence surface and the causal intervention, both of which still stand.
Why not just fine-tune and evaluate on a held-out site? That is the ground truth, and we use it as the outcome. It needs external-site data containing shortcut-breaking cases, which a small private cohort usually lacks. It also costs a full fine-tune per backbone and cohort design. Our measurement needs only cached features and metadata, and it says how many counter-examples to collect. That question held-out evaluation cannot answer prospectively.
Why not just clean the images first, as SilverLining does? Cleaning is complementary, not a substitute. Tartaglione et al. found that lung masking still left hospital biases, and SilverLining itself documents new confounders created by naive masking. A cleaning step should be validated by showing that the shortcut became harder to extract, and that is what $\Delta$ measures.
Proposed Experiments
The controlled study uses PneumoniaMNIST, DermaMNIST and BloodMNIST from MedMNIST v2. We inject spatial patch markers and spectral noise patterns following SilverLining, at five strengths, correlated with the label at rates set so that $c$ ranges from 0 to roughly 20% of the cohort. The outcome is the AUC drop between a shortcut-aligned test set and a shortcut-flipped one.
The naturalistic study uses NIH CXR, CheXpert and MIMIC-CXR, with acquisition site, sex and age as candidate shortcuts and effusion and cardiomegaly as targets. The outcome is cross-hospital AUC and subgroup gaps. CORDA, with 447 images, serves as a genuinely small external cohort.
The decisive checks are as follows. The first is whether $\Delta$ beats the accuracy, few-shot-accuracy and ShorT baselines in rank correlation with shortcut reliance across at least 60 backbone-by-shortcut-by-dataset configurations. The second is whether the fitted surface, trained on the injected shortcuts, predicts the counter-evidence threshold on held-out real CXR shortcuts within a factor of two. The third is whether the intervention shows behavior tracking $\Delta$ when artifact pixels are held fixed and only the backbone changes. A negative result on the third check would still be informative: it would mean relative MDL is a useful predictor but not a lever, and we would report it that way.
References
- Information-Theoretic Probing with Minimum Description Length
- Predicting Inductive Biases of Pre-Trained Models
- Towards Practical Few-shot Query Sets: Transductive Minimum Description Length Inference
- Detecting shortcut learning for fair medical AI using shortcut testing
- SilverLining: Data-First Mitigation of Spatial and Spectral Shortcuts Without Introducing New Confounders
- Rethinking Foundation Models for Medical Image Classification through a Benchmark Study on MedMNIST
- Quantifying Elicitation of Latent Capabilities in Language Models
- Unveiling COVID-19 from CHEST X-Ray with Deep Learning: A Hurdles Race with Small Data
- MedMNIST v2 - A large-scale lightweight benchmark for 2D and 3D biomedical image classification