Factorized Gradients for Scalable Highly-expressive Parametric Diffeomorphisms
Organizations: The Stein Faculty of Computer and Information Science, Ben-Gurion University of the Negev, Israel · School of Electrical and Computer Engineering, Ben-Gurion University of the Negev, Israel
Abstract
Diffeomorphisms provide a flexible, topology-preserving mathematical tool for modeling complex spatial or temporal deformations and are used in various scientific fields. However, making these deformations simultaneously highly expressive and computationally efficient remains challenging. Continuous Piecewise-Affine Based (CPAB) transformations (Freifeld et al., ICCV 2015; IEEE TPAMI 2017) offer an attractive solution by parameterizing a family of diffeomorphisms via continuous velocity fields that are piecewise affine with respect to a chosen tessellation of the domain. Importantly, , the dimension of the parameter vector , depends on the fineness of the tessellation rather than on the data resolution. Despite this compact parameterization, CPAB optimization has long been hindered by the tight coupling between trajectory integration and gradient computation with respect to . We introduce FG-CPAB, a factorized-gradient formulation for scalable CPAB transformations. By separating integration from parameter-space projection, our method reduces gradient computation complexity from to , where is the number of integration steps, is the number of transformed points, and is the number of tessellation cells. This reformulation yields speedups of up to four orders of magnitude (e.g., in 2D), substantial memory savings (e.g., reduction in peak GPU memory usage in 2D), and dramatically higher expressiveness. This makes fine-tessellation CPAB practical in 2D and 3D for the first time, enabling highly expressive parametric diffeomorphisms.
Figures & tables
| 2D Integration ( ) | 3D Integration ( ) | |||||
|---|---|---|---|---|---|---|
| Method | Forward (ms) | Gradient (ms) | Peak Mem (MiB) | Forward (ms) | Gradient (ms) | Peak Mem (MiB) |
| FG-CPAB | ||||||
| VoxelMorph SVF | ||||||
| torch-lddmm | ||||||
| Dim | Params (C,S) | MSE C | MSE S | Fit C (s) | Fit S (s) | (%) (C,S) |
|---|---|---|---|---|---|---|
| 2D | 842 / 524288 | 8.853e-05 3.9e-05 | 2.651e-03 1.2e-03 | 0.525 0.044 | 1.356 0.007 | 0.028% / 0.178% |
| 3D | 8232 / 6291456 | 7.255e-05 2.5e-05 | 1.676e-04 4.1e-05 | 6.140 0.021 | 12.906 0.021 | 0.012% / 0.021% |
| Experiment | Geometry model | Test rel. mean | Test rel. std |
|---|---|---|---|
| FG-CPAB | FG-CPAB parameterization | 0.052811 | 0.022436 |
| LDDMM deformation PCA | PCA deformation code | 0.082821 | 0.033168 |
Appendix figures & tables11 assets
Supplementary material from the paper’s appendix.
Appendix
| Sparse basis | Dense basis | |||||
|---|---|---|---|---|---|---|
| Tess. | Fwd (ms) | Bwd (ms) | Peak (MiB) | Fwd (ms) | Bwd (ms) | Peak (MiB) |
| 2 | 10.8 | 51.9 | 384 | 10.9 | 51.9 | 384 |
| 3 | 11.3 | 54.0 | 384 | 11.3 | 54.1 | 384 |
| 4 | 11.5 | 54.9 | 385 | 11.4 | 55.0 | 385 |
| 5 | 11.6 | 55.6 | 385 | 11.6 | 55.7 | 385 |
| 6 | 11.7 | 56.1 | 386 | 11.7 | 56.3 | 386 |
| Forward (ms) | Backward (ms) | Fit time (s) | Registration MSE | |
|---|---|---|---|---|
| 5 | 0.1054 | 0.1822 | 0.2559 | |
| 10 | 0.1068 | 0.1792 | 0.2490 | |
| 15 | 0.1080 | 0.2080 | 0.2486 | |
| 20 | 0.1138 | 0.2279 | 0.2438 | |
| 25 | 0.1206 | 0.2523 | 0.2482 | |
| 30 | 0.1248 | 0.2910 | 0.2483 |
| Ckpt seg. | Segments | Fwd (ms) | Bwd (ms) |
|---|---|---|---|
| 2 | 25 | 0.898 | 4.161 |
| 3 | 17 | 0.885 | 3.977 |
| 4 | 13 | 0.882 | 3.860 |
| 5 | 10 | 0.885 | 3.905 |
| 6 | 9 | 0.891 | 3.899 |
| 7 | 8 | 0.889 | 4.302 |
| Asset | How used in this paper | Citation | Version | License |
|---|---|---|---|---|
| IXI brain MRI dataset | 3D deformable registration benchmark | [ 21 ] | link 26.4.26 | Creative Commons CC BY-SA 3.0 license |
| DIMON reaction–diffusion benchmark data / pipeline | Operator-learning experiment in § 4.5 | [ 39 ] | Commit - a22ed33 | MIT License |
| Asset | How used in this paper | Citation | Version / commit | License |
|---|---|---|---|---|
| libcpab | Primary CPAB baseline and reference implementation | [ 10 ] | Commit - 22df6cd | MIT license |
| DIFW | 1D performance baseline in Appendix A | [ 28 ] | Commit - f970dd3 | MIT license |
| VoxelMorph | Dense SVF baseline / runtime comparison | [ 3 ] | Commit - 6fea3e8 | Apache-2.0 license |
| torch-lddmm | LDDMM runtime baseline | [ 4 ] | Commit - 86d5c43 | Apache-2.0 license |
Gradient Projection
Gradient projection constrains optimization steps to feasible directions or subspaces, reducing interference while preserving desired properties.
See all 21 papers