Abstract
Deformable image registration is a fundamental task in medical image analysis, traditionally solved via slow optimization or more recently through deep learning models that predict displacement fields. This paper introduces Vector Field Attention (VFA), a novel framework that reframes registration as a differentiable search-and-retrieval task. By utilizing a specialized attention mechanism to directly retrieve location correspondences, VFA achieves state-of-the-art accuracy and improved deformation smoothness across multiple medical imaging modalities.
Introduction
Aligning a "moving" image to a "fixed" reference is essential for tasks ranging from longitudinal study analysis to atlas-based segmentation. While traditional methods like LDDMM offer high accuracy, they are computationally expensive. Deep learning approaches, such as VoxelMorph, have significantly reduced inference time by training networks to predict displacement fields in a single forward pass. However, these models often rely on dense convolutional layers to "guess" spatial mappings from encoded features, which can lead to inefficiencies and "deformation hallucinations."
The core challenge addressed by Vector Field Attention is whether a network can focus exclusively on learning robust features, leaving the spatial mapping to a more direct, fixed operation.
The Vector Field Attention (VFA) Framework
The VFA framework decomposes the registration process into three distinct, differentiable stages: Feature Extraction, Feature Matching, and Location Retrieval.
1. Feature Extraction
A U-Net-style encoder extracts multi-resolution feature maps ($F^l$ and $M^l$) from the fixed and moving images independently. This hierarchical approach allows the model to capture both global context and fine-grained anatomical details.
2. Feature Matching
For each pixel in the fixed image, the model evaluates a local neighborhood (typically $3 \times 3 \times 3$) in the moving image. An inner product between features, followed by a Softmax operation, generates an "attention map" that identifies the most likely correspondences based on feature similarity.
3. Location Retrieval
The innovation of VFA lies in its definition of the "Value" matrix in the attention formula ($Attention(Q, K, V)$). Instead of a feature map, the "Value" is a fixed radial vector field representing relative displacements. The final displacement for each pixel is the weighted sum of these vectors, guided by the attention map. This ensures the output is a direct spatial correspondence rather than a decoded guess.
Experimental Validation
The authors evaluated VFA across four challenging registration tasks, including unsupervised T1-weighted brain MR atlas-to-subject registration (IXI), multi-modal T2-to-T1 registration, and semi-supervised lung CT registration (NLST).
Key Results
VFA consistently outperformed established baselines, including VoxelMorph and TransMorph:
- Accuracy: On the IXI T1w task, VFA achieved a Dice Similarity Coefficient (DSC) of 0.806, compared to 0.726 for VoxelMorph.
- Robustness: In the Learn2Reg lung CT challenge, VFA demonstrated superior performance in the most difficult cases (TRE30 metric), indicating robustness to large deformations.
- Smoothness: The resulting warps were more anatomically plausible, with fewer non-diffeomorphic voxels compared to competitors.
Discussion and Key Insights
- The "Value" Trick: By redefining the attention "Value" as a coordinate grid, VFA bridges the gap between Transformer-based vision models and classical registration principles.
- Stability via $\beta$: A learnable scalar $\beta$ scales the displacement field, ensuring training starts from a stable identity transformation before learning larger movements.
- Efficiency: Despite the sophisticated attention mechanism, the model maintains fast inference, averaging 0.9 seconds per subject on a modern GPU.
Conclusion
Vector Field Attention represents a significant shift in deep learning for image registration. By treating the problem as a retrieval task rather than a prediction task, it achieves higher accuracy and better deformation regularity. Future work will focus on optimizing memory usage to support larger search windows and extending the framework to 4D temporal data.
Paper Citation: Liu, Y., Chen, J., Zuo, L., Carass, A., & Prince, J. L. (2024). Vector Field Attention for Deformable Image Registration. arXiv:2407.10209v1.
Summary updated