Deep networks can rebuild sharp MRI images from a fraction of the usual measurements, which shortens scans. They break, though, when the scan differs from the training data: a new pulse sequence (the scanner program that sets the tissue contrast, such as T1 versus T2), a new body part, or a new vendor. The most effective known fix is test-time training, in which the network briefly retrains on each incoming scan using only the scan's own measurements. That fix costs minutes of computation per image slice. This proposal starts from a simple observation: an MRI scan itself takes minutes, and the reconstruction computer sits mostly idle during that time. If adaptation can run on the measurements as they arrive, and if it touches only a small, scan-level set of parameters, the adaptation cost can be hidden inside the acquisition. Reconstruction after the scan ends would then stay as fast as an unadapted network.
The idea rests on a testable claim about the structure of the problem. The shift that hurts a reconstruction network when it moves from T2 to T1 brain scans, or from one vendor to another, may be mostly global to the scan (intensity scaling, noise level, readout oversampling, contrast mechanism) rather than specific to each slice. If so, a few hundred per-scan modulation parameters, fit from partially acquired data, should recover most of what full per-slice retraining recovers. If the claim is false, the experiments will show where it breaks, and that is itself useful: it would say which kinds of shift need per-slice computation at all.
Core Claim
We claim that most of the cross-contrast and cross-vendor gap for a physics-based reconstruction network can be closed by fitting a small, scan-shared set of feature-wise scale-and-shift parameters inside the network's learned refinement blocks. The fitting uses a self-supervised measurement-consistency loss on k-space lines as they are acquired. Here k-space means the spatial-frequency domain the scanner samples line by line. The fitting finishes before the last line arrives, so it adds nothing to the delay after the scan ends.
Three ingredients are new relative to prior work. The first is making adaptation concurrent with acquisition and progressive in the available data. The second is restricting adaptation to scan-level parameters shared across all slices. The third is ordering acquisition so that the low-frequency calibration region arrives first and can drive adaptation early.
Relation to Prior Work
The motivating result is Test-Time Training Can Close the Natural Distribution Shift Performance Gap in Deep Learning Based Compressed Sensing. That paper pre-trains U-Net and VarNet models with both a supervised loss and a self-supervised k-space consistency loss. At inference it updates all weights on each test slice, using a held-out split of the measured lines to decide when to stop. It closes 96.3% of the AXT2→AXT1PRE contrast gap for U-Net and 92–99% of shift gaps for VarNet, but it moves inference from milliseconds to minutes per slice. We reuse its self-supervised loss and early-stopping split. We differ in three ways: we adapt a tiny shared parameter set rather than all weights, we adapt per scan rather than per slice, and we run during acquisition on partial data rather than after it on complete data.
Several methods constrain what counts as a fair "no adaptation" competitor. PromptMR-plus is a recent deep unrolled network: it alternates learned refinement with a step that re-imposes the measured k-space values. It reports 34.74 dB PSNR at 10x on Calgary-Campinas brain data with 55% less GPU memory than PromptMR, which makes it a strong, memory-efficient backbone to host our modulation layers. The 2020 fastMRI Challenge results document the problem we target. Top Siemens-trained models, with SSIM around 0.964 at 4x, degraded markedly on GE and Philips data, in part because of frequency-oversampling defaults. That is exactly the kind of global, header-level difference we hypothesize a scan-level modulation can absorb.
Multi-contrast methods, namely MC-CDic (42.00 dB at 4x on IXI) and MambaMDN (41.92 dB at 4x on IXI), attack a different problem. They borrow structure from a fully sampled, co-registered reference contrast of the same patient. We assume no such reference, so they are context rather than competitors. CMRxRecon2024 shows that one "universal" model can reconstruct many cardiac protocols it was trained on, all from one scanner. We ask what happens for protocols held out of training.
Finally, Gradient-Map-Guided Adaptive Domain Generalization supports the premise that cross-modality shift is largely global. Its learning-free gradient-map transform strips contrast style and lifts cardiac bSSFP→T2 segmentation Dice from 4.9% to 85.4%. That result concerns segmentation of finished images, though, and its transform cannot be applied to complex k-space, where discarding intensity would break measurement consistency. We take its lesson, that much of the shift is removable global style, and implement it as learned scan-level modulation that is compatible with the physics.
Research Program
The backbone is an unrolled VarNet-style network, and PromptMR-plus where compute allows. Every learned refinement block carries lightweight per-channel scale and shift parameters, initialized to identity. During source training we pre-train jointly on supervised and self-supervised consistency losses, following Darestani et al., so that the self-supervised signal is informative at test time. The modulation parameters are also trained on randomly perturbed intensity and noise, so they learn to act as a control knob for adaptation.
At scan time the acquisition order puts the fully sampled central calibration lines first for all slices, then the undersampled outer lines. For interleaved 2D multi-slice acquisitions, this is a reordering of phase encodes rather than a new sequence. Adaptation begins once the calibration region is complete. The network is asked to predict held-out calibration lines from the rest, and later also held-out outer lines from the partially acquired set. Only the scan-shared modulation parameters receive gradients, and minibatches are drawn across slices. Early stopping uses a disjoint validation split of measured lines, as in the test-time training paper. When the last line arrives, one forward pass per slice produces the image.
Because we cannot run a prospective study here, we simulate the acquisition timeline retrospectively from fully sampled raw data. Line arrival times are computed from the repetition time and number of phase encodes in the raw-data headers where present; otherwise a range of nominal scan durations is swept. For each shift we report the fraction of the scan's duration that adaptation actually needs on a fixed GPU.
The analysis has two parts. The first measures how much of the gap is scan-level: we compare per-scan modulation, per-slice modulation, and per-slice full-weight retraining, each given complete data. The second measures how much partial data costs: at a fixed parameter set, we compare adaptation after the calibration region alone, after half the acquisition, and after all of it.
Baselines
The naive reference point is the source-trained backbone applied without adaptation, together with a model trained directly on the target contrast or vendor as an upper bound. Every result is reported as the fraction of the gap between these two that is closed, the metric Darestani et al. use, so numbers are comparable to theirs. We also run classical SENSE and total-variation compressed sensing as physics-only references, since fastMRI reports that deep baselines improve NMSE over total variation by 40–50%.
The strongest existing method is full per-slice test-time training (Darestani et al.). The reported number to match is 96.3% gap closure for U-Net on AXT2→AXT1PRE, with 92–99% for VarNet across shifts. We rerun it on our splits with the identical backbone, identical pre-training, and identical self-supervised loss and early stopping, so the only differences are which parameters move and when. We would count our method as beating it if it closes at least 90% of the gap that full test-time training closes on the same shift, with zero added post-scan latency against its minutes per slice. We would call it a failure if it closes under 70% on the contrast and vendor shifts.
A second strong competitor is a pooled "universal" model trained on all available training contrasts, in the spirit of CMRxRecon2024, and evaluated on held-out contrasts and vendors. It receives the same total training compute as our source model plus modulation pre-training. No reported result was found on Lacuna for a held-out-protocol universal cardiac model.
Two ablations isolate the key ingredients. Post-scan per-volume modulation fitting on complete data separates the value of scan-level parameterization from the value of concurrency. Adaptation on calibration lines only tests whether early, low-frequency data carry enough signal to correct high-frequency behavior.
Why not just…?
Why not just run test-time training once on the first slice and reuse the weights? This is the most serious threat, because it is nearly our method without the concurrency. It still adds post-scan or mid-scan delay unless scheduled during acquisition, and adapting all weights to one slice risks overfitting to that slice's anatomy. We include "full test-time training on one early slice, reused for all slices" as a baseline. If it matches our method's gap closure and fits in the acquisition window, the honest conclusion is that concurrency, not modulation, carries the benefit, and we would report it that way.
Why not just condition the network on the sequence parameters in the file header? A network given the contrast type, echo and repetition times, vendor, and oversampling flag can handle shifts it saw in training at zero cost, and it may absorb much of the fastMRI vendor gap. It cannot, however, extrapolate to contrasts or vendors outside the training set, which is the regime of the transfer wall. We train a header-conditioned backbone and evaluate it on seen-parameter and held-out shifts. Our method should win clearly only on the held-out ones. If header conditioning also wins there, the premise that the shift needs measurement-driven adaptation is wrong.
Why not just train one large model on everything? Pooling helps within the training distribution, but the 2020 fastMRI Challenge shows that even a 200M-parameter hybrid model lost substantial quality across vendors. The pooled baseline above tests this directly on held-out contrasts. Pooling and our method also compose, so we additionally report our adaptation applied on top of the pooled model.
Why not use a physics-only method with no learned prior? Such methods cannot suffer training-distribution shift. They lose to learned models by large margins at practical accelerations, by 40–50% relative NMSE against total variation in fastMRI, and deep models outperformed GRAPPA and SENSE across accelerations up to 24x in CMRxRecon2024. They stay in the study as a floor.
Proposed Experiments
The contrast-shift experiment trains on fastMRI brain AXT2 and tests on AXT1PRE and FLAIR at 4x and 8x. This reproduces the Darestani setting exactly, so their 96.3% figure is a direct anchor. The anatomy-shift experiment trains on fastMRI knee and tests on fastMRI brain. We expect scan-level modulation to be weakest here, because anatomy differs slice by slice, so this is where the claim is most likely to fail. The vendor-shift experiment trains on Siemens fastMRI brain and tests on non-Siemens raw data, using the 2020 challenge transfer data where accessible and the Calgary-Campinas brain data at 10x with PromptMR-plus as backbone. The multi-protocol experiment uses CMRxRecon2024 with leave-one-modality-out splits: train on cine, T1 and T2 mapping, and tagging, then test on black-blood and phase-contrast.
Metrics are SSIM, PSNR, and NMSE, gap-closure fraction, post-scan latency, and adaptation time as a fraction of simulated scan duration. Because adaptation to global statistics could also wash out small pathology, we add a hallucination and erasure check. It uses the surgical-clip and small-structure failure cases highlighted in the fastMRI challenge report, together with lesion-containing slices simulated into k-space from BraTS images. The caveat is that simulated k-space from magnitude images lacks real phase and coil effects. On these cases we compare error inside the lesion region across all methods.
The decisive check is a single plot per shift of gap closed against post-scan latency. Full test-time training sits at high closure and high latency, and the unadapted network sits at low closure and near-zero latency. The proposal succeeds if concurrent scan-level modulation reaches the high-closure, near-zero-latency corner for contrast and vendor shifts while fitting inside the acquisition window. The secondary decisive result is the per-scan versus per-slice comparison on complete data. If per-scan modulation falls far short of per-slice modulation on contrast shifts, the global-shift hypothesis is refuted, regardless of how the timing works out.
References
- Test-Time Training Can Close the Natural Distribution Shift Performance Gap in Deep Learning Based Compressed Sensing
- Rethinking Deep Unrolled Model for Accelerated MRI Reconstruction
- Results of the 2020 fastMRI Challenge for Machine Learning MR Image Reconstruction
- Deep Unfolding Convolutional Dictionary Model for Multi-Contrast MRI Super-resolution and Reconstruction
- Mamba-Based Modality Disentanglement Network for Multi-Contrast MRI Reconstruction
- CMRxRecon2024: A Multi-Modality, Multi-View K-Space Dataset Boosting Universal Machine Learning for Accelerated Cardiac MRI
- Gradient-Map-Guided Adaptive Domain Generalization for Cross Modality MRI Segmentation
- fastMRI: An Open Dataset and Benchmarks for Accelerated MRI.