SPIRA

Source or Prefix?Retaining What Helps the Targetin Autoregressive 3D Medical Image Translation

1School of Engineering, University of Birmingham2School of Biological Science and Medical Engineering, Southeast University

SPIRA learns how much prefix correction to retain, balancing source anatomy and target context for 3D medical image translation.

TeaserFigure to be added
Retain useful target context. Retract harmful or unnecessary prefix corrections.
The idea

Abstract

Translating between 3D medical imaging modalities requires preserving patient anatomy while recovering target-specific properties. A source-conditioned blockwise autoregressive model uses the source as a fixed anatomical anchor and earlier blocks as an evolving target prefix, and the difference between predictions with and without the prefix defines the prefix correction. The balance between source and prefix evidence varies across regions, while the magnitude of a correction’s prediction change (effect) does not necessarily reveal whether it helps the true target (utility). In this work, we propose Source-Prefix Influence-aware Residual Autoregression (SPIRA), which learns how much of each prefix correction to retain across regions. During training, SPIRA finds the largest removable portion of each correction without increasing target loss at the current prediction states and trains a lightweight gate to reproduce the resulting predictive distribution, thus learning how to balance source and prefix during generation. Extensive experiments across multiple modalities and diverse 3D medical translation tasks demonstrate consistent gains in translation quality. Mechanism analyses show that similar prefix effects can have different utilities depending on target alignment, while SPIRA better matches oracle decisions and achieves larger gains when more prefix correction can be safely retracted.

Why balance source and prefix?

Motivation

A strong correction is not always a useful correction.

The source anchors anatomy; the prefix adds target-side context. Their value varies across regions, and a large prediction change can either help or hurt the true target.

Source, prefix & the utility–effect gapMotivation figure to be added
Prediction change measures effect. Target-loss change reveals utility.

Insight. Source–prefix balance varies across regions. A correction’s predictive effect alone cannot determine whether it helps the target.

What do we explore?

How should a 3D autoregressive model balance a fixed anatomical source
with an evolving target prefix?

01

Source–prefix balance

How much target context does each region actually need?

Aligned source as an anatomical anchorPrefix as a controllable correction
02

Effect versus utility

Why can equally strong corrections help or hurt the target?

Target alignment explains the gapUseful corrections can be partially retracted
03

Learn what to retain

Can this distinction improve free-running generation?

Distill a target-aware training oraclePredict token-wise retraction without GT
Source-Prefix Influence-aware Residual Autoregression

Method

Keep the anchor. Learn the correction.

Isolate

Use a shared predictor with and without the target prefix.

Retract

Find the largest correction retraction with no increase in local target loss.

Distill

Train a lightweight gate to match the oracle distribution for GT-free generation.

Try the core idea

Retain or retract

z(s) = zS + 0.50rr = zF − zSretained weight = 1 − s
Source-only logits zSFull-prefix logits zF
Retraction along a logit-space pathThe source-only endpoint stays fixed. The current prediction moves toward it as s increases. z(s)
0.50
s = 0 · Full prefixs = 1 · Source only
Correction retained50%
Correction retracted50%

Keep half of the prefix correction.

Source-onlyOutputFull-prefix
Case 1: source-only brain MRI prediction
Case 1: full-prefix brain MRI prediction
Case 2: source-only brain MRI prediction
Case 2: full-prefix brain MRI prediction
Case 3: source-only chest CT prediction
Case 3: full-prefix chest CT prediction
SPIRA frameworkMethod figure to be added
A shared AR predictor, a maximal zero-regret training oracle, and a correction-aware gate.
Interactive walkthrough

How SPIRA works

Open animation
Experiments

Results

Details

Consistent gains

Across all translation tasks

Best on every reported metric8 tasks
Details

Stronger translation

AutoPET CT → PET

PSNR · vs best external baseline+1.59 dB
Details

Lower generation error

Three-task RQ4 analysis

Mean MAE · vs Full-prefix AR−6.2%

Four research questions

Follow the evidence, from translation quality to mechanism.

RQ1

Quantitative results

Eight tasks. Three datasets. One consistent improvement.

Dataset
Task

Translation performance
MethodPSNR ↑SSIM ↑LPIPS ↓FID ↓

Insight. SPIRA improves on both external baselines and matched Full-prefix AR across all eight tasks and all four metrics.

RQ1

Qualitative comparison

Target-specific appearance with lower local residual errors.

BraTS · T1n → T1c & T1c → T1nFigure 11 to be added
T1n → T1c (upper) and T1c → T1n (lower). Axial, coronal, and sagittal views with corresponding error maps.

Insight. The illustrated cases show lower local residual errors while maintaining target-specific appearance.

Understanding the gains

Mechanistic Insights

RQ2

Which design choices matter?

Adaptive correction features and predictive-distribution distillation.

Dataset
Task

BraTS 2024 · T1n → T1c
VariantPSNR ↑SSIM ↑LPIPS ↓FID ↓
Reference Model
Standard AR22.160.6960.13742.5
Retraction Strategy
Tuned global scalar s22.280.6990.13342.8
Position-only gate22.450.6980.13141.0
Effect-only gate22.310.7000.13140.3
Gate Design
Direct s* regression22.600.7010.12939.9
SPIRAOurs22.720.7050.12638.3

Insight. Joint training or effect alone does not explain the gain. Correction-aware gating with distribution matching performs best on both ablation tasks.

RQ3

Same effect. Different utility.

Target alignment determines whether to retain, partially retract, or fully retract.

Explaining the utility–effect gapAnalysis figure to be added
Matched-effect geometry, regret paths, and source-confidence analysis on a frozen predictor under teacher forcing.

Insight. Target alignment explains different source–prefix balances at similar effects. Even useful prefix corrections need not be retained in full.

RQ4

From retraction to better generation

A learned balance transfers to generated-prefix states.

Selective retraction & generation gainsAnalysis figure to be added
Free-running gains, agreement with oracle predictions, and gains across baseline-actionability deciles.

Insight. SPIRA better matches oracle decisions and improves generation, with larger gains when more prefix correction can be safely retracted.

RQ4

Retract where needed. Retain what helps.

Two complementary behaviors in local target regions.

Selective prefix retractionRetract-dominant & retain-dominant cases to be added
Green denotes stronger retention; purple denotes stronger retraction.

Insight. SPIRA removes harmful corrections while preserving target-useful context, adapting to local prediction needs.

BibTeX

Citation coming soon.