Abstract
Diffeomorphic image registration is a critical yet computationally intensive task in medical imaging. We present a highly optimized GPU-based solver for 3D registration that aligns $256^3$ images in under 6 seconds. By transitioning from Fourier-based derivatives to high-order finite differences and utilizing hardware-accelerated texture interpolation, our implementation achieves a 20x speedup over state-of-the-art CPU frameworks and a 30x boost over existing GPU tools without sacrificing mathematical rigor.
Introduction
Image registration involves warping a "template" image to match a "reference" image, a process fundamental to longitudinal clinical studies and population-wide neuroimaging. Diffeomorphic registration, specifically the Large Deformation Diffeomorphic Metric Mapping (LDDMM) framework, ensures that these transformations are smooth and reversible. However, solving the underlying partial differential equations (PDEs) for millions of unknowns is traditionally slow, often taking minutes per registration on high-end CPUs. This bottleneck hinders large-scale clinical applications.
Methodology
We extended the CLAIRE open-source registration framework to the GPU, employing a second-order Gauss-Newton-Krylov solver. This approach offers superior robustness and requires fewer iterations compared to standard gradient descent methods.
Kernel Optimizations
The performance gains stem from two primary architectural shifts:
- Finite Differences vs. FFTs: While Fast Fourier Transforms (FFTs) provide exact derivatives for periodic data, they suffer from poor data locality on GPUs. We replaced these with 8th-order finite differences (FD8), which allow the GPU to utilize fast, local shared memory and minimize global memory access.
- Hardware-Accelerated Interpolation: Frequent image re-sampling is a core requirement of registration. We developed the GPU-TXTSPL kernel, which leverages dedicated GPU texture hardware—originally designed for graphics rendering—to perform cubic B-spline interpolation efficiently.
Results and Performance
The solver was evaluated using the NIREP dataset, consisting of T1-weighted MRI scans. Tests were conducted at resolutions ranging from $64^3$ to $256^3$ on an NVIDIA Tesla V100.
As shown in the performance data, a $256^3$ resolution registration completes in less than 6 seconds, representing a 20x speedup over the CPU-based CLAIRE and a 30x improvement over the PyCA GPU library. The implementation achieves over 50% of the peak memory bandwidth on the V100, confirming its efficiency in handling memory-bound 3D registration tasks.
Discussion
Our findings highlight the "Locality Paradox": while FFTs are mathematically "perfect," high-order finite differences are significantly more "hardware-friendly" for parallel architectures. By increasing arithmetic intensity—performing more calculations per byte of data moved—we effectively addressed the memory ceiling inherent in 3D registration.
Despite the use of mixed-precision (FP32) and finite differences, registration quality remained high, with DICE coefficients and Jacobian determinants often outperforming slower, competing libraries. Future work will focus on multi-GPU support and MPI integration to handle larger datasets and multi-atlas studies.
Summary updated