In-Scan Reference Channels for Frozen CT Features

Large pretrained image encoders are often used "frozen": their weights stay fixed and only a small classifier is trained on the features they produce. This works well when labels are scarce. It fails in a predictable way when the images come from a different acquisition setup. A different CT scanner, reconstruction filter, or radiation dose shifts every feature the frozen encoder outputs, and because the encoder cannot adapt, the small classifier inherits the shift. Experimental particle physics faced the same structure of problem decades ago and solved it without better calibration. It measures the signal of interest relative to a reference process recorded at the same time in the same apparatus, so that unknown shared factors divide out. This note proposes doing the same thing to frozen features. Each suspicious region of a scan is described not by its own features but by how its features differ from those of an anatomically matched, known-normal reference region in the same scan, for example the mirror-image location in the opposite lung. Whatever the scanner did to both regions should cancel.

The physics analogy contributes a second idea that matters as much as the cancellation: a way to check, on every individual scan, whether the cancellation actually happened. If two reference regions that should look identical give different relative features, the shared-nuisance assumption has broken for that scan. That disagreement is a label-free, per-scan estimate of the leftover systematic error. The proposal is therefore a feature-level cancellation scheme for frozen encoders together with a built-in residual check. The check can also select which encoder layer to read features from without any target labels.

Core Claim

Let $f_\ell(\cdot)$ be the frozen encoder's features at layer $\ell$, $T_s$ the unknown acquisition transform of scan $s$, $x_t$ a target region, and $x_r$ a matched reference region from the same scan. The proposal classifies the relative feature

$$d = f_\ell(T_s x_t) - f_\ell(T_s x_r),$$

using a head trained on few labels. If the acquisition shift enters the features roughly as a common additive offset in the neighborhood of normal anatomy, then $d \approx f_\ell(x_t) - f_\ell(x_r)$ and the scanner drops out. This mirrors how luminosity cancels in a yield ratio $N_A/N_B$. The assumption will never hold exactly, just as detector efficiencies only approximately factorize in double-tag measurements. The cancellation residual for a scan is

$$\varepsilon_s = \big[f_\ell(T_s x_t) - f_\ell(x_t)\big] - \big[f_\ell(T_s x_r) - f_\ell(x_r)\big].$$

It is unobservable for the target. It is observable between two reference regions $r_1, r_2$ whose true difference is near zero, because there $\|d_{r_1} - d_{r_2}\|$ estimates it directly. This plays the role of the double-tag self-calibration in Absolute Branching Fraction Measurements of Exclusive $D^0$ Semileptonic Decays: one channel with a known answer measures the systematic for the other. The claim to be tested has three parts. Matched-reference differencing reduces cross-scanner degradation of frozen-feature classifiers more than scan-level or dataset-level normalization. The reference-reference residual predicts which scans will be misclassified. Choosing the layer that minimizes this residual on unlabeled scans tracks the layer that is best with labels.

Why This Gap Exists

Frozen features are attractive in exactly the low-label medical setting. Probing transfer learning with a model of synthetic correlated datasets shows analytically that with few samples, keeping transferred features frozen beats retraining because retraining adds variance. One-Shot Adaptation of Supervised Deep Convolutional Models finds that one-shot fine-tuning lowers accuracy from 66% to 61%. The same paper names the cost: a frozen encoder cannot adapt its filters to new sensor noise. Its fix, Daumé III feature replication, learns shared and domain-specific weights with a linear model and needs labeled target examples from each domain. It cannot handle variation from scan to scan within a domain.

Big, Bright, or Invisible: A Frozen-Feature Benchmark of 3D CT Foundation Models motivates the application. Compressing a whole CT volume into one frozen embedding washes out small, low-contrast findings such as subsolid nodules, regardless of model scale. The proposal answers that bottleneck in two ways. It reads local region features instead of a global embedding, and it subtracts a matched reference so that the small target-specific signal is not buried under scanner-wide offsets.

Existing methods that put frozen models together with reference points or uncertainty do something different. BayesCap attaches a small trained head to a frozen network to predict a per-pixel uncertainty distribution. It models how large the error might be but removes no shared bias, and it uses no reference channel. X-EviProbe measures absolute distances from a query's frozen embedding to training nodes and to "error anchors." That is a reference geometry, but it is fixed at training time and specific to graphs, so it cannot cancel a shift introduced by today's scanner. DIFO uses frozen CLIP as an anchor for source-free adaptation through multi-epoch prompt tuning and distillation over a whole target domain. The MIV-head of Few-shot Classification as Multi-instance Verification uses the query as an attention anchor over frozen support features. Neither removes a nuisance shared by co-acquired inputs. The cosine classifier in Frustratingly Simple Few-Shot Object Detection divides out only a scalar feature magnitude. This proposal uses the same "normalize the instance" instinct but extends it to a full-vector offset estimated from a matched co-acquired reference.

The physics literature also constrains the design. A reference with a hidden bias passes that bias to every measurement made against it (J. Alexander et al.). The analogue here is a reference region that is itself abnormal, which is why the per-scan residual check is required and not decorative. Ratios of noisy counts also inflate variance. The analogue is that subtracting one reference patch adds its own noise. For this reason the method averages $k$ reference patches. Its added variance should fall roughly as $1/k$ if the patches' idiosyncratic noise is independent, while the shared acquisition offset is unaffected by averaging.

Research Program

The first component measures the method's central assumption before relying on it. The study takes chest CT volumes with available raw or multiply reconstructed data, or simulates acquisition changes by applying known transforms to whole volumes: reconstruction-kernel sharpening and smoothing, dose-dependent noise, and intensity gain and offset in Hounsfield units. It then measures, per encoder layer, how much of the induced feature shift is common to target and reference regions. The quantity is the fraction of $\|f_\ell(T_s x) - f_\ell(x)\|^2$ removed by differencing against matched references. The encoders are the frozen 3D CT foundation models evaluated by Chevli et al. Because the transforms are known, this simulated arm gives ground truth for $\varepsilon_s$, so the reference-reference estimator can be validated against the true residual.

The second component builds the classifier. Candidate regions are paired with references by mirroring across the body midline after rigid registration, with a fallback to same-lobe normal tissue at matched depth. This is the analogue of the near/far identical detectors at Daya Bay: same design, different location, shared source. A linear or small MLP head is trained on $d$. A "target-swap" control, borrowed from the hourly target-position swapping of the New Muon Collaboration in Gottfried sum from the ratio $F_2^n/F_2^p$, trains with left and right roles randomly exchanged and $d$ negated accordingly. This prevents the head from learning a side-specific bias. A variant uses per-channel log-ratios of non-negative post-activation features in place of differences, for cases where the nuisance looks multiplicative.

The third component turns the residual into an operational quantity. The residual $\hat\varepsilon_s = \|d_{r_1} - d_{r_2}\|$ is computed from extra reference pairs and used for three things: flagging scans where cancellation failed, inflating predictive uncertainty on those scans, and selecting the extraction layer $\ell$ that minimizes the median $\hat\varepsilon_s$ over unlabeled target-site scans. The last use addresses the open problem, noted in One-Shot Adaptation of Supervised Deep Convolutional Models, of choosing a layer without target validation labels.

Baselines

The naive reference point is a linear probe trained on the frozen local features of the target region alone, with no reference and no normalization. It sets the size of the cross-scanner drop the method is trying to close. A second reference point is the global frozen embedding probe as reported in Chevli et al. Its specific AUROC values for subsolid nodules are not in the material available to me, so I note: no reported result found on Lacuna for subsolid-nodule AUROC under the Chevli et al. frozen-feature protocol. That number will be reproduced under their protocol before any comparison.

The strongest competitor is per-scan feature standardization. It subtracts the mean and divides by the standard deviation of frozen features over all regions in the same scan, then applies the same head. It is a cancellation method in its own right, uses the same co-acquired data, and needs no matching, so it is the cleanest test of whether matching the reference adds anything. A dataset-level variant standardizes using statistics from unlabeled target-site scans. All normalization baselines get the same encoder, layer-selection budget, head architecture, and hyperparameter search (identical grid, identical number of trials, selection on source-site validation only).

The learned-reference baseline concatenates target and reference features and lets the head learn how to combine them. It isolates whether fixed algebraic cancellation beats learned conditioning at a given label count.

Among existing methods, the comparisons are Daumé III feature replication and the cosine-similarity head of TFA, both on the same frozen features. They also include parameter-efficient adapter fine-tuning and full fine-tuning at equal labeled data and matched GPU hours, so the frozen-versus-tuned tradeoff is measured rather than assumed. For the uncertainty claims, a BayesCap-style post-hoc variance head and an X-EviProbe-style nearest-training-embedding distance serve as flagging baselines.

Two ablations isolate the key ingredients. Random-reference differencing uses a non-matched normal patch from the same scan and separates anatomical matching from merely co-acquired subtraction. Cross-scan differencing uses a matched patch from a different scan and confirms that the gain comes from shared acquisition.

The method counts as beating per-scan standardization if it shrinks the source-to-target-site AUROC drop by a margin outside paired bootstrap confidence intervals, at 50 or fewer labeled positives. The method counts as beating the concatenation head if the advantage holds at low label counts. Matching or losing to concatenation at high counts is acceptable and expected.

Why not just…?

Why not just standardize features per scan? This is the most serious threat. It cancels any offset shared by all regions of a scan, which may be most of what a reconstruction kernel does. The argument for matching is that the scan mean mixes airway, vessel, mediastinum, and parenchyma, whose features shift differently under the same kernel. Only a reference with similar anatomy shares the target's shift. The random-reference and per-scan-standardization comparisons settle this directly. If per-scan standardization closes the gap as well as matched differencing, the claim changes. The contribution then becomes the residual estimator and label-free layer selection, which work with either form of cancellation.

Why not just feed the reference into a learned head? With enough labels, a concatenation head can learn subtraction and more. The case for the fixed difference is the variance argument of Gerace et al.: every learned parameter costs samples, and the subtraction is parameter-free. Learning curves from 10 to several hundred labeled positives will show where, if anywhere, the concatenation head catches up. A crossover at moderate label counts would narrow the method's useful regime but would not invalidate it.

Why not just fine-tune or use adapters on the new site? Fine-tuning needs labeled target-site data and overfits with very few labels (One-Shot Adaptation). It also cannot handle variation from scan to scan within a site. The matched-compute fine-tuning baseline measures how large the first effect is. A per-scan nuisance arm, in which every test scan gets a different simulated kernel and dose, tests the second, since a site-level fine-tune has no single target to adapt to there.

Why not just harmonize the images before encoding? Intensity windowing and resampling remove gain and offset in Hounsfield units. They do not remove kernel-dependent texture, which is what the frozen encoder is most sensitive to according to Darrell et al.. Standard harmonization will be applied to every method, so any gain from differencing is measured on top of it.

Proposed Experiments

The decisive simulated experiment applies known kernel, noise, and gain transforms per scan, either on CT data with multiple reconstructions or by direct simulation. It reports three things for each layer of each frozen 3D CT encoder: the fraction of the feature shift removed by matched versus random versus scan-mean references, the correlation between the estimated residual $\hat\varepsilon_s$ and the true residual $\varepsilon_s$, and the classification AUROC under shift. A Spearman correlation between $\hat\varepsilon_s$ and $\varepsilon_s$ well above zero is required for the residual check to be meaningful. If matched references do not remove substantially more shift than scan means, the matching claim fails at this stage.

The real-shift experiment trains on scans from one scanner vendor or kernel and tests on another, for subsolid-nodule versus normal-region classification. The primary metric is the AUROC drop relative to in-site testing, with 10, 25, 50, and 200 labeled positives, five seeds, and paired bootstrap intervals.

The uncertainty experiment ranks test scans by $\hat\varepsilon_s$ and reports the AUROC for flagging misclassified scans, compared with the BayesCap-style and nearest-neighbor-distance flags. It also reports expected calibration error after inflating uncertainty by $\hat\varepsilon_s$.

The layer-selection experiment checks whether the layer that minimizes $\hat\varepsilon_s$ on unlabeled target-site scans matches, or comes within one layer of, the layer that maximizes labeled target AUROC, across all encoders.

As a secondary check on generality, the MRI motion-artifact setup of Improving Quality Control Of MRI Images Using Synthetic Motion Data supplies controllable motion corruption. There, motion is applied to whole volumes while target and reference regions share it, so the same differencing and residual test can be run without new labels. The physics precedent predicts where this should fail: in scans where the reference is itself abnormal, or where the artifact is strongly position-dependent. Reporting those failures, and showing that $\hat\varepsilon_s$ flags them, is part of the result.

References

  1. Absolute Branching Fraction Measurements of Exclusive<mml:math xmlns:mml="http://www.w3.org/1998/Math/MathML" display="inline"><mml:msup><mml:mi>D</mml:mi><mml:mn>0</mml:mn></mml:msup></mml:math>Semileptonic Decays
  2. Probing transfer learning with a model of synthetic correlated datasets
  3. One-Shot Adaptation of Supervised Deep Convolutional Models
  4. Big, Bright, or Invisible: A Frozen-Feature Benchmark of 3D CT Foundation Models
  5. BayesCap: Bayesian Identity Cap for Calibrated Uncertainty in Frozen Neural Networks
  6. X-EviProbe: Post-hoc Parameter-Free Evidential Uncertainty Quantification for Frozen Graph Neural Networks
  7. Source-Free Domain Adaptation with Frozen Multimodal Foundation Model
  8. Few-shot Classification as Multi-instance Verification: Effective Backbone-agnostic Transfer across Domains
  9. Frustratingly Simple Few-Shot Object Detection
  10. Absolute Measurement of Hadronic Branching Fractions of the<mml:math xmlns:mml="http://www.w3.org/1998/Math/MathML" display="inline"><mml:msubsup><mml:mi>D</mml:mi><mml:mi>s</mml:mi><mml:mo>+</mml:mo></mml:msubsup></mml:math>Meson
  11. Latest results from Daya Bay using the full dataset
  12. Gottfried sum from the ratio<mml:math xmlns:mml="http://www.w3.org/1998/Math/MathML" display="inline"><mml:mrow><mml:msubsup><mml:mrow><mml:mi mathvariant="italic">F</mml:mi></mml:mrow><mml:mrow><mml:mn>2</mml:mn></mml:mrow><mml:mrow><mml:mi mathvariant="italic">n</mml:mi></mml:mrow></mml:msubsup></mml:mrow></mml:math>/<mml:math xmlns:mml="http://www.w3.org/1998/Math/MathML" display="inline"><mml:mrow><mml:msubsup><mml:mrow><mml:mi mathvariant="italic">F</mml:mi></mml:mrow><mml:mrow><mml:mn>2</mml:mn></mml:mrow><mml:mrow><mml:mi mathvariant="italic">p</mml:mi></mml:mrow></mml:msubsup></mml:mrow></mml:math>
  13. Improving Quality Control Of MRI Images Using Synthetic Motion Data