Aligning a CT scan to an MRI of the same patient is hard because the two scanners paint the same anatomy with unrelated brightness patterns. A promising recent recipe is to first translate one image into the style of the other with an unpaired translator, which learns a mapping between two image types without matched examples. An ordinary same-modality registration network then estimates the deformation that lines the two images up. The translator is kept faithful to the input's structure by a patch-matching loss that rewards each output patch for resembling the input patch at the same pixel location. That rule is circular. It assumes the two images are already aligned, which is exactly the problem registration exists to solve. Current systems escape the circularity only by requiring a separate rigid pre-alignment step and then hoping that leftover non-rigid motion is small.
We propose to replace the "same location" rule with a correspondence search borrowed from web-scale document alignment. Each output patch finds its matching input patch in two steps. First, coarse region descriptors that encode position shortlist several candidate regions; the system keeps a ranked set rather than committing to one. Second, fine patch similarity, blended with the registration network's current deformation estimate, resolves the match inside those regions. Two further ideas come from the document side. Boilerplate down-weighting reappears as down-weighting of uniform background patches. Keeping multiple candidates, instead of committing greedily, reappears as soft positives optimized jointly across all pyramid levels. The claim is specific: the gains should appear in the regime where existing translation-based registration breaks, namely large initial offsets and large non-rigid residuals. In that regime, hierarchical positives should give more accurate deformations and fewer translator distortions than identity positives combined with a pre-alignment step.
Core Claim and Its Lineage
The method is supplied by three papers. Contrastive Learning for Unpaired Image-to-Image Translation (CUT) introduced the patchwise contrastive loss, which pulls each output patch toward the input patch at the same coordinates and pushes it away from other patches of the same image. Unsupervised Multi-Modal Medical Image Registration via Discriminator-Free Image-to-Image Translation (DFMIR) coupled that loss to a registration network. DFMIR also removed the discriminator, which it showed hallucinates anatomy, and reported a Dice score of 0.772 on Learn2Reg Thorax-Abdomen CT→MR. DFMIR still needs affine pre-registration, still uses identity positives, and was tested only on 2D slices. Our proposal keeps DFMIR's discriminator-free design and changes only how positives are chosen. That makes DFMIR the natural parent and the natural opponent.
The hierarchy comes from Exploiting Sentence Order in Document Alignment. That paper splits each document into 16 overlapping position-weighted regions and concatenates their embeddings, so near-duplicate topical pages no longer collide. It down-weights boilerplate with inverse document frequency and retains 32 candidates for fine re-scoring rather than one. The result was 98.5% recall on WMT16, against 96.2% for the previous best. That paper also constrains our design. Its fine stage is a monotonic dynamic program, and the authors note that this assumption fails on non-linear layouts. Images have no monotonic order, so we drop the dynamic program and use soft, non-monotonic matching within the retained candidates.
Two image-registration papers motivate the joint optimization. DRMIME showed that optimizing a mutual-information objective at all pyramid levels simultaneously avoids the irreversible errors of a sequential coarse-to-fine pass. Mutual information here measures how predictable one image's intensities are from the other's. DRMIME reached a normalized average Euclidean distance of 0.0048 on FIRE. It is limited to affine transforms, however, and its neural estimator forced 10% pixel subsampling. The document-alignment literature makes the same point about greedy cascades: a pair discarded at the coarse stage cannot be recovered (Štajner et al. motivate two-stage pipelines; the file notes their greedy failure mode). We therefore keep candidates soft at every level and train all levels together. Unlike DRMIME, we estimate dependence with a contrastive objective rather than a neural mutual-information estimator, which avoids the memory cost of that separate estimator network.
Research Program
The system has a translator $T$ that maps image $a$ (say CT) into the target style and a registration network $R$ that predicts a dense deformation $\phi$ aligning $T(a)$ to the target image $b$. Both networks see a feature pyramid from a shared encoder.
At the coarsest level, each image is divided into overlapping regions. Each region gets a descriptor made of pooled features concatenated with a smooth encoding of its position, which is the 2D analogue of the position-weighted regions in the document-alignment paper. For each query region, the top $K$ candidate regions are retrieved. At finer levels, the candidate set $C(i)$ for patch $i$ is the union of patches inside its parent's retained regions and a neighborhood around $\phi(i)$. The contrastive loss then becomes
$$ \mathcal{L} = -\sum_i w_i \log \frac{\sum_{j \in C(i)} \pi_{ij}\, e^{s(q_i,k_j)/\tau}}{\sum_{j \in C(i)\cup N(i)} e^{s(q_i,k_j)/\tau}}. $$
Here $q_i$ is the feature of output patch $i$, $k_j$ is the feature of input patch $j$, and $s$ is cosine similarity. The temperature is $\tau$, and $N(i)$ is a set of negatives drawn from outside the candidate regions. The mixing weight $\pi_{ij}$ is a normalized product of coarse-region agreement and proximity to $\phi(i)$. Early in training, region agreement dominates $\pi_{ij}$; as $R$ improves, the deformation term takes over. The weight $w_i$ is an inverse-frequency term that suppresses patches whose descriptors are near-identical across the image, such as air, background, or homogeneous tissue. This mirrors the document side's boilerplate weighting and also addresses the problem that uniform regions inflate mutual-information scores.
All pyramid levels contribute to one loss at every step, following DRMIME, so a coarse mistake can still be corrected by gradients from finer levels. The registration loss is DFMIR's local-plus-global objective with a standard smoothness penalty on $\phi$.
We will run three analyses alongside the main comparisons. The first measures positive-pair purity: on synthetic warps with known ground truth, what fraction of probability mass lands on the true corresponding patch, compared against identity positives. The second traces how purity and registration accuracy co-evolve during training. The third tests whether the translator distorts anatomy. To do this, a frozen segmenter trained on real target-modality images segments the translated image, and its organ masks are compared against the source labels in the source frame.
Baselines
The naive reference is no deformable registration beyond the identity, or beyond an affine fit. This tells us how much displacement each benchmark actually contains. The second reference is classical optimization with no translation. This means Mattes mutual information, and ConvexAdam with modality-independent descriptors. Learn2Reg reports ConvexAdam as the overall challenge winner, ahead of many deep methods. We have no Lacuna-reported number for ConvexAdam on Thorax-Abdomen CT-MR, so we will run it ourselves with its published settings.
The strongest existing method is DFMIR, as described above. Its reported result is Dice 0.772 and HD95 12.137 on Learn2Reg Thorax-Abdomen CT→MR 2D slices, after affine pre-registration DFMIR. We will first reproduce that number under its protocol. Both systems will then share the backbone, data splits, augmentation, training steps, and a matched hyperparameter search budget of the same number of trials. Beating DFMIR means matching its Dice within noise in the pre-aligned setting, and exceeding it by a margin larger than the seed-to-seed spread once the affine step is removed or the initial offsets are enlarged. Smoothness, measured as the standard deviation of the log-Jacobian, must not get worse.
The two-stage alternative pairs DRMIME affine pre-alignment with DFMIR. This is the strongest pipelined competitor at large offsets, and it receives the same compute.
Three ablations isolate the key ingredient. The first is warp-only positives, where positives sit at $\phi(i)$ with no coarse region hierarchy. The second is the hierarchy committed greedily, with $K=1$ and sequential levels. The third removes the inverse-frequency weight. If warp-only positives match the full method, the document-alignment hierarchy contributes nothing, and we will report that.
Why not just…?
Why not just pre-align with an affine mutual-information method and keep identity positives? This is the most serious threat. DFMIR already works this way, and DRMIME's affine accuracy on FIRE is strong. Pre-alignment fixes only the rigid part of the motion, though. Non-rigid residuals, such as respiratory motion and inter-patient abdominal shape, still corrupt identity positives during translator training. Affine mutual-information fits can also fail outright at large initial rotations. We will stratify results by initial displacement and by post-affine residual. If the two-stage pipeline matches us in every stratum, the claim is wrong. We expect it to match in small-residual strata and fall behind in large ones.
Why not just use the registration network's current warp to pick positives? This is simpler and plausible, so it is a core ablation. The concern is bootstrapping. Early in training $\phi$ is poor, so warp-defined positives are wrong, the translator learns from wrong pairs, and the registration loss inherits the error. The coarse region candidates are meant to break that loop. The positive-purity curves over training will show directly whether the hierarchy matters, or whether warping alone recovers by itself.
Why not just skip translation and use a classical optimizer? ConvexAdam's Learn2Reg ranking makes this a fair question. DFMIR's gain over the strongest baseline it compared against (SbR, 0.735 to 0.772 Dice) suggests that translation helps under severe contrast shifts. We nonetheless run ConvexAdam and Mattes mutual information ourselves on every split, rather than assume that result transfers.
Why not just translate with CycleGAN and then register in one modality? CUT reports that cycle consistency hides information when the two domains are asymmetric (Horse→Zebra FID 77.2 versus 45.5 for CUT), and DFMIR shows that adversarial translators distort organ boundaries. We include CycleGAN followed by mono-modal registration, scored with the same anatomy-distortion probe, so this failure is measured rather than assumed.
Proposed Experiments
The primary benchmark is Learn2Reg Thorax-Abdomen CT→MR on 2D slices, using DFMIR's protocol so that 0.772 Dice is a valid anchor. We report Dice, HD95, and log-Jacobian deviation. The decisive experiment runs the same data under three conditions: with affine pre-alignment, without it, and with synthetic rigid-plus-elastic perturbations of increasing magnitude applied before training and testing. The hypothesis survives only if our advantage over DFMIR and over the two-stage pipeline grows with perturbation size, and the warp-only ablation sits between the two.
To test generality beyond one anatomy, we will use ANHIR histology across stains, where DRMIME reports 0.0384 normalized distance, and FIRE fundus pairs, where it reports 0.0048. These use landmark error. Our deformable model is compared against DRMIME's affine-only numbers, and against DRMIME rerun with a residual deformable stage, to separate the effect of the transform class from the effect of the positives.
A 3D extension on the Learn2Reg Abdomen MR-CT task tests whether the coarse region retrieval keeps memory manageable in volumes, the setting DFMIR did not reach. We have no reported Lacuna number for any method on this task, so all systems will be run fresh.
Across every experiment, the anatomy-distortion probe and the positive-purity measurement accompany the registration scores. A method that registers well while its translator quietly reshapes organs does not count as a win.
References
- Contrastive Learning for Unpaired Image-to-Image Translation
- Unsupervised Multi-Modal Medical Image Registration via Discriminator-Free Image-to-Image Translation
- Exploiting Sentence Order in Document Alignment
- DRMIME: Differentiable Mutual Information and Matrix Exponential for Multi-Resolution Image Registration
- Sentence Alignment Methods for Improving Text Simplification Systems
- Learn2Reg: Comprehensive Multi-Task Medical Image Registration Challenge, Dataset and Evaluation in the Era of Deep Learning