BrainMorph: A Foundational Keypoint Model for Robust and Flexible Brain MRI Registration

Alan Q. Wang, Rachit Saluja, Heejong Kim, Xinzi He, Adrian V. Dalca, Mert R. Sabuncu

Abstract: We present a keypoint-based foundation model for general purpose brain MRI registration, based on the recently-proposed KeyMorph framework. Our model, called BrainMorph, serves as a tool that supports multi-modal, pairwise, and scalable groupwise registration. BrainMorph is trained on a massive dataset of over 100,000 3D volumes, skull-stripped and non-skull-stripped, from nearly 16,000 unique healthy and diseased subjects. BrainMorph is robust to large misalignments, interpretable via interrogating automatically-extracted keypoints, and enables rapid and controllable generation of many plausible transformations with different alignment types and different degrees of nonlinearity at test-time. We demonstrate the superiority of BrainMorph in solving 3D rigid, affine, and nonlinear registration on a variety of multi-modal brain MRI scans of healthy and diseased subjects, in both the pairwise and groupwise setting. In particular, we show registration accuracy and speeds that surpass many classical and learning-based methods, especially in the context of large initial misalignments and large group settings.

Introduction

Image registration—the spatial alignment of two or more scans—is a fundamental task in neuroimaging, essential for longitudinal disease tracking and cross-subject structural analysis. However, current tools often force a trade-off between speed and robustness. Classical optimization-based methods like ANTs are highly accurate but computationally expensive and prone to failure when images are significantly misaligned. Conversely, many deep learning models, while fast, lack interpretability and often require specific preprocessing like skull-stripping.

BrainMorph addresses these challenges as a "foundational" model. By leveraging the KeyMorph framework and training on an unprecedented scale of data, it provides a single, robust tool that handles diverse MRI modalities, pathologies, and preprocessing states with high efficiency.

Methodology

BrainMorph is built upon the KeyMorph framework, which shifts the registration task from predicting dense voxel-wise deformation fields to identifying salient anatomical keypoints.

Keypoint Detection and Alignment

The architecture utilizes a truncated UNet-style CNN to extract $N$ corresponding keypoints from both the "moving" and "fixed" images. A specialized Center-of-Mass (CoM) layer ensures that these points are detected in a translation-equivariant manner. Once keypoints are identified, the optimal transformation—whether Rigid, Affine, or Nonlinear (via Thin-Plate Splines)—is computed using a differentiable, closed-form solver. This approach allows for end-to-end training and extremely fast inference.

The BrainMorph framework: CNNs extract keypoints from moving and fixed images to compute transformations in closed-form.

Training at Scale

To achieve foundational robustness, BrainMorph was trained on 100,836 3D volumes from approximately 16,000 unique subjects. This dataset spans multiple modalities (T1, T2, FLAIR, PD), diverse pathologies (Alzheimer’s, Parkinson’s, Multiple Sclerosis, brain tumors), and both skull-stripped and non-skull-stripped images. This diversity ensures the model generalizes across the varied conditions encountered in clinical and research settings.

Key Results and Discussion

Robustness to Large Misalignments

A standout feature of BrainMorph is its stability under extreme initial misalignments, often referred to as "The Big Spin." While traditional voxel-wise models and even some modern deep learning baselines (like SynthMorph or EasyReg) see performance collapse when images are rotated by 90 or 135 degrees, BrainMorph maintains consistent accuracy. This is because the model focuses on the relative geometry of detected keypoints rather than local pixel intensity correlations.

Dice score performance across varying degrees of initial rotation, demonstrating BrainMorph's robustness compared to baseline methods.

Speed and Scalability

BrainMorph completes a standard registration in approximately 1 second on a GPU, a massive improvement over the several minutes required by classical tools. Furthermore, the keypoint-based approach enables a novel groupwise registration algorithm. By iterating on low-dimensional keypoints rather than high-dimensional volumes, BrainMorph can align groups of over 100 subjects simultaneously—a task previously considered computationally prohibitive.

Conclusion

BrainMorph represents a significant step toward a universal tool for brain MRI registration. While classical tools still maintain a slight edge in capturing ultra-fine cortical folding in small-misalignment scenarios, BrainMorph's speed, interpretability, and unprecedented robustness to large rotations make it an ideal "first-pass" or standalone tool for large-scale neuroimaging studies. All code and models are available at https://github.com/alanqrwang/brainmorph.

Summary updated

BibTeX
@article{wang2025brainmorph,
  author = {Alan Q. Wang and Rachit Saluja and Heejong Kim and Xinzi He and Adrian V. Dalca and Mert R. Sabuncu},
  title = {{BrainMorph: A Foundational Keypoint Model for Robust and Flexible Brain MRI Registration}},
  journal = {The Journal of Machine Learning for Biomedical Imaging},
  year = {2025},
  doi = {10.59275/j.melba.2025-59g7},
}
Figure