On-the-Fly Guidance Training for Medical Image Registration

Yuelin Xin, Yicheng Chen, Shengxiang Ji, Kun Han, Xiaohui Xie

TL;DR

On-the-Fly Guidance (OFG) is a plug-and-play training framework that brings the precision of supervised learning to unsupervised medical image registration without requiring manual labels. By using a differentiable optimizer to iteratively refine a model's own predictions during training, OFG generates high-quality pseudo-ground truth labels on the fly, significantly boosting registration accuracy and deformation smoothness at zero inference cost.

What Problem Does This Paper Address?

Medical image registration—the process of aligning two or more images (such as MRIs or CT scans) into a common coordinate space—is a foundational task in medical image analysis. While modern deep learning methods have drastically accelerated this process compared to traditional iterative algorithms, they face a difficult trade-off:

  1. Weakly-supervised methods yield excellent accuracy but rely on manual anatomical annotations (segmentations), which are notoriously scarce and expensive to produce.
  2. Unsupervised methods bypass the need for labels by directly optimizing image similarity metrics (like Normalized Cross-Correlation) during training. However, relying solely on these metrics often leads to less precise alignments and physically unrealistic, jagged deformation fields where tissue appears to unrealistically fold or tear.

The authors tackle a compelling question: Is it possible to create a training method that bypasses manual labels while still benefiting from the precision and stability of direct supervision?

Methods

The authors introduce On-the-Fly Guidance (OFG), a two-stage training framework that embeds an instance-specific optimization loop directly into the training process of any deep learning registration model.

  • Prediction Stage: A standard learning-based registration network (e.g., VoxelMorph or TransMorph) takes a fixed image ($I_f$) and a moving image ($I_m$) and predicts an initial deformation field ($\phi_{pre}$).
  • Optimization Stage: Instead of calculating a standard unsupervised loss directly on this prediction, $\phi_{pre}$ is passed to a differentiable optimizer as its initial state. The optimizer iteratively refines the field for a small number of steps (typically 5 to 10) based on an energy function balancing image similarity and spatial smoothness.

The resulting refined field ($\phi_{opt}$) acts as an "attainable," dynamic pseudo-ground truth label. The network is then updated by minimizing the Mean Squared Error (MSE) between its initial prediction ($\phi_{pre}$) and this optimized target ($\phi_{opt}$). Crucially, the optimizer is only used during training; inference speed remains completely unaffected.

Fig. 1. The overall structure of the proposed framework. It has two parts, the prediction stage (a), and the optimization stage (b). The framework uses the idea of on-the- fly guidance to integrate the optimizer into the training process. The optimizer will iteratively refine the deformation field predicted by the registration model (for n steps), and the derived optimized deformation field will then be used as pseudo ground truth to train the registration model.

Datasets

The framework was validated across multiple architectures using four public datasets:

  • IXI: Brain MRI dataset (200 volumes for training, 20 for validation).
  • OASIS: Brain MRI dataset (200 volumes for training, 19 for validation).
  • LPBA40: Brain MRI dataset (30 volumes for training, 9 for validation), specifically utilized to evaluate performance in data-scarce scenarios.
  • Abdomen CT-CT: A CT dataset (30 volumes for training, 20 for validation) used to demonstrate cross-modality generalizability.

Key Insights and Ideas

  • The Self-Improving Loop: OFG relies on a symbiotic relationship between the neural network and the optimizer. The network provides a globally reasonable initialization, preventing the optimizer from getting stuck in poor local minima, while the optimizer provides fine-grained local corrections that guide the network's next learning step.
  • Incremental vs. Static Supervision: Traditional self-training methods use fixed pseudo-labels from a pre-trained model, which can introduce massive distribution shifts and convergence issues. OFG provides incremental supervision—the target evolves smoothly alongside the model's capacity, making the learning objective a consistently achievable step forward.
  • Physics-Preserving Smoothness: By training the network to mimic an optimized field that explicitly penalizes folding, the network implicitly learns to predict highly smooth, topologically sound (diffeomorphic) deformations without needing heavy regularization penalties directly in the primary loss function.

Key Results

OFG was evaluated against leading unsupervised baselines and traditional registration methods, demonstrating consistent improvements:

  • Accuracy Boost: On the IXI dataset, OFG improved the Dice Score (DSC) of VoxelMorph by +2.3% and ViT-V-Net by +2.2%.
  • Dramatic Smoothness Improvements: The most striking result was the reduction of non-diffeomorphic voxels (where the Jacobian determinant $|J_\phi| < 0$, indicating unphysical tissue folding). For VoxelMorph on the LPBA40 dataset, OFG reduced these folding errors by a massive 92% (from 0.288 to 0.023).
  • Outperforming Self-Training: OFG significantly outperformed Cyclical Self-Training (CST), delivering a +3.8% higher DSC on LPBA40 while halving the Jacobian folding errors.
Fig. 2. Visualization of registration results on LPBA40 [24]. Demo randomly extracted from the comparison results between baseline TransMorph, VoxelMorph (row 2) and their respective model trained with OFG (row 1). OFG shows improved smoothness.
Training progress comparison on LPBA40 showing OFG achieving superior validation DSC compared to baseline and self-training methods.

Limitations and Future Work

  • Training Overhead: Because the framework runs an inner optimization loop (5-10 steps) at every training step, it introduces a 10% to 18% increase in training time and slightly higher VRAM usage.
  • Future Directions: The authors suggest that future work should focus on improving the computational efficiency of the inner optimizer, exploring dynamic optimization step counts (e.g., reducing steps as the model converges), and altering the optimizer design to accommodate more complex deformation models.

Summary updated

BibTeX
@inproceedings{xin2023fly,
  author = {Yuelin Xin and Yicheng Chen and Shengxiang Ji and Kun Han and Xiaohui Xie},
  title = {{On-the-Fly Guidance Training for Medical Image Registration}},
  booktitle = {International Conference on Medical Image Computing and Computer-Assisted Intervention},
  year = {2023},
}
Figure