CLAIRE -- Parallelized Diffeomorphic Image Registration for Large-Scale Biomedical Imaging Applications

Naveen Himthani, Malte Brunn, Jae-Youn Kim, Miriam Schulte, Andreas Mang, George Biros

TL;DR

This paper introduces CLAIRE, a multi-node, multi-GPU framework designed to perform 3D diffeomorphic image registration on massive biomedical datasets containing billions of voxels. By scaling to hundreds of GPUs, the authors demonstrate that registering images at their native high resolution significantly improves accuracy compared to the common practice of downsampling, particularly for fine-grained anatomical structures.

What Problem Does This Paper Address?

Image registration—the process of spatially aligning two images—is a cornerstone of medical imaging, used to track disease progression or compare patient populations. Diffeomorphic registration is the "gold standard" because it ensures the transformation is smooth and invertible, preserving the topology of anatomical structures.

However, this process is computationally brutal. A standard clinical scan ($256^3$ voxels) involves solving for roughly 50 million unknowns. Modern techniques like CLARITY imaging produce brain maps at resolutions exceeding $20,000^2 \times 1,000$ voxels, leading to trillions of unknowns. Most existing tools can't handle this scale, forcing researchers to downsample their data. This paper asks: What do we lose when we downsample, and can we build a system that makes high-resolution registration practical?

Overview of the image registration problem, showing the transformation from input data to the final deformation map and velocity field.

Methods

The authors utilize an optimal control formulation for diffeomorphic registration using stationary velocity fields. Key technical components include:

  • Massive Parallelization: CLAIRE uses MPI for multi-node communication and CUDA for GPU acceleration. It employs a 2D slab decomposition to distribute the massive 3D grids across multiple GPUs.
  • Second-Order Optimization: Unlike many solvers that use simple gradient descent, CLAIRE uses a Gauss-Newton-Krylov solver. This provides faster convergence but requires solving expensive partial differential equations (PDEs) at every step.
  • Automated Hyperparameter Tuning: Regularization parameters ($\beta_v$ and $\beta_w$) are critical for ensuring the transformation remains diffeomorphic (i.e., the Jacobian determinant $J > 0$). The authors introduced a two-stage continuation scheme that automatically identifies optimal parameters based on user-defined Jacobian bounds, removing the need for manual trial-and-error.

Datasets

The study evaluates CLAIRE across a diverse range of data:

  • SYN: Synthetic images generated using spherical harmonics, allowing for perfect ground truth labels to test the impact of resolution and feature frequency.
  • MUSE & NIREP: Standardized real-world brain MRI datasets ($256^3$) used for benchmarking against established tools like ANTs.
  • MRI250: A high-resolution ($640 \times 880 \times 880$) in-vivo human brain MRI.
  • CLARITY: Ultra-high-resolution mouse brain images ($2816 \times 3016 \times 1162$), characterized by low contrast and high noise.

Key Insights and Ideas

  • The Downsampling Penalty: Registration accuracy (measured by Dice coefficients) degrades as resolution decreases. This is most pronounced for small, high-frequency structures. As shown in Figure 5, larger structures are easier to register even at low resolutions, but fine details require the full voxel count.
  • Resolution vs. Noise: While high resolution is generally better, the benefits are less dramatic in noisy or low-contrast images (like CLARITY). In these cases, the noise can "mask" the structural details that high-resolution registration aims to capture.
  • Stationary vs. Time-Varying Fields: The authors argue that stationary velocity fields are sufficient for most medical applications, offering a significant reduction in memory overhead compared to time-varying fields (LDDMM) without a meaningful loss in registration quality.
Visualizing how registration errors (green outlines vs. white structures) increase as the registration resolution is downsampled from $1024^3$ to $128^3$.

Key Results

  • Speed: CLAIRE registered standard clinical images in about 64 seconds on a single GPU, roughly 3x faster than the popular ANTs toolkit.
  • Scale: The authors successfully registered massive CLARITY mouse brain datasets at full resolution in under 30 minutes using 256 NVIDIA V100 GPUs.
  • Accuracy: For synthetic data, downsampling from $1024^3$ to $256^3$ caused the Dice coefficient to drop from 92% to 79%.
  • Benchmarking: On the MUSE dataset, CLAIRE achieved Dice scores competitive with ANTs while offering significantly better control over the smoothness of the deformation through its automated parameter search.
Comparison of Dice scores between CLAIRE and ANTs across different brain templates, showing competitive performance.

Limitations and Future Work

  • Modality: CLAIRE currently only supports mono-modal registration (e.g., MRI to MRI). Extending this to multi-modal data (e.g., CT to MRI) remains a future goal.
  • Boundary Conditions: The solver assumes periodic boundary conditions, which requires padding images with zeros—a step that increases memory consumption.
  • Memory Bottlenecks: Even with multi-GPU support, the memory requirements for spectral operations at ultra-high resolutions are immense. The authors suggest further work on memory sharing and reuse across external libraries.
  • Theoretical Suboptimality: While stationary velocity fields are efficient, they are theoretically less flexible than time-varying fields for extremely large deformations.

Summary updated

BibTeX
@article{himthani2022claire,
  author = {Naveen Himthani and Malte Brunn and Jae-Youn Kim and Miriam Schulte and Andreas Mang and George Biros},
  title = {{CLAIRE -- Parallelized Diffeomorphic Image Registration for Large-Scale Biomedical Imaging Applications}},
  journal = {Journal of Imaging},
  year = {2022},
  doi = {10.3390/jimaging8090251},
}
Figure