potentialpaper

Factorized Gradients for Scalable Highly-expressive Parametric Diffeomorphisms

Amit Aflalo, Eran Treister, Chaim Baskin, Oren Freifeld

NeurIPS 2026

Edit this page

Or clone it with git

Run in a terminal:

Needs Git LFS. To push, use an API key from your profile as the password.

Or let your agent set it up

It checks and sets up everything: signing in, git, the clone, credentials and an SSH key.

TL;DR. FG-CPAB dramatically speeds up and reduces the memory cost of CPAB diffeomorphisms, unlocking practical, highly-expressive 2D and 3D spatial modeling

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, d=dim⁡(θ)d=\dim(\theta), the dimension of the parameter vector θ\theta, 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 θ\theta. 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 O(dTN)\mathcal{O}(dTN) to O(TN+dC)\mathcal{O}(TN+dC), where TT is the number of integration steps, NN is the number of transformed points, and CC is the number of tessellation cells. This reformulation yields speedups of up to four orders of magnitude (e.g., ≈104×\approx 10^4\times in 2D), substantial memory savings (e.g., ≈500×\approx 500\times 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.

Are you an author? Claim this paper to see who's reading it, with views and other statistics, and to write about it here.

Claim this paper
How does this paper connect to your work? Write how you built on it, compared with it or reproduced it, or add a summary, a critique or errata.
Or make it interactive:
Start writing

edit · history

DateVersionSubmitted toPDFEvidence
23 Apr 2026NeurIPS 2026submittedNeurIPS 2026Accept (poster)reviews ↓[1]PDF[1]
Missing a version?

NeurIPS 2026

Accept (poster) · 3 reviews · OpenReview

Updated 25 Nov 2026, 03:49 UTC.

Program Chairs · DecisionOpenReview ↗
Decision
Accept (poster)
Read decision
Meta-review

This paper initially received one “Accept”, one “Borderline accept,” and one “Borderline reject” rating from the reviewers. This work introduced an interesting problem. The proposed method achieves substantial speed and memory gains and performs competitively in image registration and geometry-aware operator learning, but some theoretical and practical aspects, such as the necessity of gradient-based optimization over existing MCMC approaches, clarity on certain technical details, and scalability to higher dimensions, remain insufficiently explored. Overall, the contribution is well-motivated and impactful within the framework, but would benefit from deeper analysis, clearer implementation details, and broader comparisons.

There are a couple of questions and limitations highlighted by three reviewers. The authors' feedback on these questions in the rebuttal will help the reviewers to justify their final decisions.

  • Limited theoretical justification: The paper lacks a fully intuitive and rigorous explanation for why the factorization approach is naturally justified and omits deeper analysis of the discretize-then-optimize rationale.
  • Inadequate comparison to MCMC-based methods: Does not empirically compare the proposed gradient-based optimization to the MCMC approach recommended in the original CPAB work, leaving its necessity and relative advantage unclear.
  • Clarity and reproducibility issues: Some technical distinctions (e.g., between map gradients and loss gradients) are muddled, and details needed for full experimental reproducibility are missing.
  • Evaluation scope: Some baseline comparisons mix paradigms (e.g., per-instance optimization vs. feed-forward inference) and omit details about experimental settings, making it harder to fairly assess performance and generalizability.
Final justification

The rebuttal addressed the concerns raised by the reviewers and provided comprehensive experiments and analysis of the proposed method. It is helpful for assessing the paper's contributions. All reviewers recommend acceptance with three Borderline Accepts and one Accepted after discussion, and the AC concurs. The final version should include all reviewer comments, suggestions, and additional experiments from the rebuttal.

Area Chair fkWw · Meta-reviewOpenReview ↗
Read meta-review
Meta-review

This paper initially received one “Accept”, one “Borderline accept,” and one “Borderline reject” rating from the reviewers. This work introduced an interesting problem. The proposed method achieves substantial speed and memory gains and performs competitively in image registration and geometry-aware operator learning, but some theoretical and practical aspects, such as the necessity of gradient-based optimization over existing MCMC approaches, clarity on certain technical details, and scalability to higher dimensions, remain insufficiently explored. Overall, the contribution is well-motivated and impactful within the framework, but would benefit from deeper analysis, clearer implementation details, and broader comparisons.

There are a couple of questions and limitations highlighted by three reviewers. The authors' feedback on these questions in the rebuttal will help the reviewers to justify their final decisions.

  • Limited theoretical justification: The paper lacks a fully intuitive and rigorous explanation for why the factorization approach is naturally justified and omits deeper analysis of the discretize-then-optimize rationale.
  • Inadequate comparison to MCMC-based methods: Does not empirically compare the proposed gradient-based optimization to the MCMC approach recommended in the original CPAB work, leaving its necessity and relative advantage unclear.
  • Clarity and reproducibility issues: Some technical distinctions (e.g., between map gradients and loss gradients) are muddled, and details needed for full experimental reproducibility are missing.
  • Evaluation scope: Some baseline comparisons mix paradigms (e.g., per-instance optimization vs. feed-forward inference) and omit details about experimental settings, making it harder to fairly assess performance and generalizability.
Final justification

The rebuttal addressed the concerns raised by the reviewers and provided comprehensive experiments and analysis of the proposed method. It is helpful for assessing the paper's contributions. All reviewers recommend acceptance with three Borderline Accepts and one Accepted after discussion, and the AC concurs. The final version should include all reviewer comments, suggestions, and additional experiments from the rebuttal.

Reviewer RJ3mOpenReview ↗
Rating
4/6
Confidence
4/5
Quality
3/4
Clarity
3/4
Significance
2/4
Originality
3/4
Contribution type
general
Ethical concerns
NO or VERY MINOR ethics concerns only
Read review
Summary

The paper proposes a computational scheme that renders the gradient-based optimization over Continuous Piecewise-Affine Based (CPAB) maps feasible in terms of its computational complexity. The accumulation of the loss function over the mapped domain is exploited to cast the computation of the loss function's gradient w.r.t. the CPAB parameters to cell-wise evaluations. Since the basis of the CPAB parameterization is fixed on each cell of the domain, the components of the basis do not enter the trajectory-dependent per-cell computations, thus decreasing their complexity. The improved computational scheme for the loss function's gradient allows for employing gradient-based optimizers to infer more finely discretized CPAB maps in 2D and 3D images' diffeomorphic correspondence problems.

Strengths and weaknesses

Strengths:

(S1) The paper builds on a good technical insight into the CPAB formulation of diffeomorphisms, namely, that the accumulation of loss functions over the CPAB transformation points allows for cell-wise evaluations of the loss functions' gradients, which, in turn, decouple the on-trajectory computations from their projection to the gradient vector elements. Consequently, the computational scheme is original and improves the applicability of the CPAB formulation in gradient-based optimization pipelines.

(S2) The performed experiments cover most of the CPAB application cases and the efficiency of finer tessellations in diffeomorphic matching problems has been sufficiently supported.

(S3) The paper is mostly well-written and the main contributions are clearly stated and supported by the results.

Weaknesses:

(W1) My first concern relates to the main contribution of the paper, which is the improvement of the order of the computational cost of the gradient of the CPAB maps w.r.t. their parameters. The original CPAB paper [13] suggests (Algorithm 2 and Scts. 4.8 & 5.4) the usage of Gaussian priors for the 1st-order approximation of a learnable diffeomorphism and for its parameters, an option that reduces the optimization cost to a simple line search for the parameters' magnitude, in the landmarks matching cases. The case of diffeomorphic matching of functions is treated in [13], retaining this Bayesian approach, via MCMC, avoiding gradients with respect to the CPAB parameters. Moreover, these gradients' computation and the corresponding implementation are given in [13] for completeness, since there it is claimed that "MCMC methods are found to be easier to tune and to produce better results than gradient-based optimization". Consequently, what is improved in the present paper is characterized as supplementary in the original CPAB journal paper. This does not mean that this paper's main contribution is unnecessary per se; however, it should be given emphasis on comparing the gradient - based optimization of CPAB with the MCMC - based one proposed in [13]. Such a comparison is absent from the paper. Specifically, in all diffeomorphism inference experiments of Scts. 4.2-4.6, the MCMC - based determination of the parameters of CPAB should be included as a baseline, in order to verify the necessity of a gradient-based optimizer.

(W2) The contributed decoupling between BB matrix and on-trajectory integration is actually forced by splitting the integrands' summation (10) into per-cell summations. Consequently, the claim that "the basis slice Bi,cB_{i,c} acts as a fixed coefficient" should be rephrased since, by its definition, cc of Bi,cB_{i,c} is trajectory - dependent. The authors actually force cc to be fixed and accumulate the integrands that cross this cell. This is valid only if a second summation is added in (10) w.r.t. the points, otherwise (10) is not equivalent to (12). So, it is not the CPAB gradient w.r.t. its parameters that is reformulated and computationally improved but the corresponding gradients of CPAB functionals, where accumulation over the CPAB points is involved. This distinction should be made clear when FG-CPAB is introduced and summarized (in Abstract, Introduction and Discussion). For example, the claim that "the proposed formulation removes the main computational bottleneck of standard CPAB" is not accurate: the gradient of the CPAB maps does not allow for decoupling on-trajectory integration from parameter-space coefficients, intrinsically (Bi,cB_{i,c} is trajectory-dependent). It should be made clear that this intrinsic coupling (and the corresponding bottleneck) can be lifted only when accumulation over the whole domain is evident, which is the case of loss functions over CPAB transformations.

(W3) In the perspective described in (W2) above, the CPAB θ\theta - gradient formula (24), derived in [13], can be decoupled in terms of BB - matrix, as well, if it is contracted with the loss function variations with respect to CPAB (the adjoint vectors). Consequently, why is the exact formula (24) of the CPAB gradients in [13] not employed in the present paper and it is substituted by an inexact midpoint rule? In the main text, it is referred that "Using different forward and backward schemes is the approach adopted in the original CPAB formulation"; however, I cannot spot in the CPAB journal paper, [13], any other scheme than the succession (19) of the matrix exponentials of (18). Even in the discussion of Sct. 4.7 of [13] concerning the θ\theta - gradient of the CPAB map, the authors refer to Algorithm 1, which evaluates the matrix exponentials' succession of (19). Actually, the second-order approximation of the exponential map, adopted in (5), though it simplifies the derivation of the θ\theta - gradient of the CPAB map, it is not intrinsically necessary for decoupling the BB matrix and the loss function gradient evolution. Resolution of equation (24) of [13] in terms of y(x,t)y(x,t) is explicitly tractable and should not be skipped just to simplify the method's underlying technical derivations (i.e. without any computational advantage).

(W4) In the absence of implementation code, the reproducibility of the proposed gradient computation algorithm and of its incorporation in the performed diffeomorphic matching experiments asks for detailed and thorough descriptions. Such descriptions are provided for the implementation of the segmented trajectory caching (appendix D) and for the experiments of Scts. 4.3 and 4.5. However, for the other performed experiments, the provided information does not allow for reproducing them:

a) Concerning the performance comparison with libcpab and DIFW, what exactly is replaced in both these libraries? These libraries use autograd over the implemented θ\theta-parametrized CPAB map, however FG-CPAB relies on computing the loss function's gradient without computing the gradient of the CPAB map. So, how is this computation incorporated in the optimization pipelines of these libraries? What optimization problems are considered to compare FG-CPAB with libcpab and DIFW timings? In appendix A, there is only a reference to "a workload of 125,000 points with batch size of 16". Moreover, a significant difference in the timings of the forward application of CPAB is registered in the experimental results. However, FG-CPAB employs the original CPAB forward transformation in Sct. 3.1. With the provided information, this performance improvement cannot be explained. What should be modified in the libcpab implementation to obtain the observed forward performance of FG-CPAB?

b) Concerning the 3D registration, the authors refer to an "IXI dataset evaluation protocol commonly used in learning-based registration methods" (appendix D1). At least one publication should be cited, whose protocol is followed in this paper's experiment. From the employed loss function, one may deduce that, instead of the dataset's MRI images, some labelled version of them is used. Which are the employed labels? How are the DSC scores of the different labels accumulated? Since the considered diffeomorphic matching problem employs a common atlas for all patients, which is this atlas? Finally, in the employed loss function, there is a regularization term over the gradient of the displacement field (I suppose this gradient refers to the Jacobian of the diffeomorphism). However, the loss functions covered by the moment accumulation of (11) depend only on the CPAB map and not on its Jacobian. How should one modify (11) to evaluate the gradient of the loss function used in the 3D registration experiment?

Questions

Question 1: Is the gradient-based optimization actually necessary, or can the MCMC, suggested in the CPAB original journal paper [13], cover the diffeomorphism inference applications considered in the paper? Considering a fine-tuned, MCMC - based determination of the parameters of CPAB, along the lines proposed in [13], will allow the authors to answer this question, cover the concerns of the weakness (W1) and justify the significance of the results.

Suggestion 1: The distinction between the CPAB gradient computation (which cannot be factored) and the loss function's gradient computation (which is factored in the paper) should be made clear and the missing loss function - driven summation w.r.t. the transformed points should be restored in equations (9) and (10) and explained accordingly. This is to lift the concerns contained in weakness (W2), thus improving the paper's clarity and correctness.

Suggestion 2: Details of the incorporation of the proposed loss function's gradient computation in a practical gradient-based optimization pipeline should be provided, with correspondence to the pipelines adopted in the baseline CPAB implementations (please refer to the weakness (W4)-a)). Details on the experimental data and the FG-CPAB implementation that answer the questions raised in (W4) are necessary to render the gradient computational scheme and the performed experiments reproducible. Reproducibility will significantly enhance the quality of the paper.

Limitations

There is no discussion about the limitations of FG-CPAB, only a sentence about the intrinsic limitation of CPAB to low dimensions, due to its dependence on tesselations.

The computational necessity of the inexact midpoint rule of (5), instead of the exact one of (4), should be justified and the approximation error imposed by this choice should be considered. Also, a possible adaptation of the moment accumulation formula should be analyzed if the exact CPAB map's gradient is considered, instead of the inexact one in (6) (please refer to the weakness (W3)).

There are several other adaptations that should be discussed to cover loss functions that contain regularization terms on the diffeomorphisms' velocity field (like the one of LDDMM) and/or their Jacobian.

Final justification

The authors for considered all issues raised in the review.

With the provided clarifications, a revised version of the paper that will include all the changes claimed in the authors' Rebuttal would have increased clarity and quality, thus improving my overall evaluation to 4: Borderline accept.

Formatting concerns

There are formatting violations in all tables and figures of the main text, except in Figure 1. Tables' and figures' captions have decreased font size.

3 comments
Authors · RebuttalOpenReview ↗
Rebuttal

We thank the reviewer for the detailed and encouraging evaluation, as well as the valuable constructive suggestions.

R1/W1. Is gradient-based optimization necessary, or can MCMC cover these applications?

Note: The journal extension (Freifeld et al., PAMI 2017) introduced gradient-based optimization, which was not included in the original conference paper (Freifeld et al., ICCV 2015).

  • End-to-end differentiability: CPAB was originally developed a decade ago as a standalone registration tool outside deep-learning frameworks. When integrated as a differentiable component within a larger neural network, exact gradients are required for backpropagation and end-to-end training, a requirement MCMC cannot satisfy.

  • High-dimensional scaling: In general, typical MCMC methods such as particle filters or the Metropolis algorithm with a Gaussian proposal used in the original CPAB paper scale poorly with the dimensionality of the parameter space θ\theta. Thus, unsurprisingly, this degradation also occurs with fine tessellations. Early MCMC evaluations were limited to low-dimensional parameter spaces (e.g., d=38d = 38 in the landmark experiment in Freifeld et al.). In contrast, our synthetic benchmarks use 842 parameters in 2D and 8,232 in 3D, while our IXI setting requires 20,577 parameters per CPAB transformation.

This explains why recent CPAB literature (i.e., the methods in lines 40-41 in our paper) relies heavily on gradient-based optimization.

Empirical validation: For completeness, we benchmarked the official CPAB repository's MCMC implementation under our exact IXI experimental setup. Even with a 100× larger optimization budget (wall-clock time), MCMC achieved a Dice score of only 0.453, compared to 0.760 for our gradient-based FG-CPAB. This confirms that while MCMC is feasible for simple setups, it is uncompetitive for the fine-tessellation tasks evaluated here. We will include this comparison in the revised manuscript and clarify the practical importance of gradient-based optimization in fine-tessellation settings.

R2/W2. What exactly is factorized, and where is the missing sum over points?

We agree that Eq. (10) should explicitly include the sum over points when transitioning to the cell-wise accumulator in Eq. (11), and we will correct this notation in the revised manuscript. We will also clarify that FG-CPAB factorizes the vector-Jacobian product required for loss optimization rather than materializing the full Jacobian of the CPAB map.

However, we kindly point out that Bi,cB_{i,c} itself is not trajectory-dependent: the basis is fixed, while only the active cell index cn(t)c_n^{(t)} depends on the trajectory. The sets

Ic={(n,t):cn(t)=c}\mathcal{I}_c=\lbrace (n,t):c_n^{(t)}=c\rbrace

partition all point-time visits, so regrouping the sum by cell is exact. We will revise the manuscript to make this distinction and the exact cell-wise regrouping explicit.

R3/W3. Why not use Eq. (24) of the original paper, and is midpoint necessary?

Equation (24) of Freifeld et al. (PAMI 2017) exactly defines the continuous sensitivity dynamics, but it does not provide a closed-form gradient. It requires solving one sensitivity equation, yi=∂p/∂θiy_i=\partial p/\partial\theta_i, for every parameter and point, resulting in the O(dTN)O(dTN) computation that FG-CPAB seeks to avoid.

Moreover, the official CPAB implementation accompanying the original paper evaluates Eq. (24) numerically using midpoint integration. Thus, our method does not replace an available closed-form gradient with a midpoint approximation. The main difference is computational organization: the original method integrates dd parameter-specific sensitivities along every trajectory, whereas FG-CPAB integrates a single state-sized adjoint, accumulates parameter-independent cell moments, and applies the basis only once afterward.

The midpoint rule is not fundamental to the factorization; it is used to match the original implementation, and because it provides a simple and accurate second-order discretization. Other integration schemes could also be used by deriving their corresponding discrete adjoints.

R4/W4(a). How is FG-CPAB incorporated into optimization, what is benchmarked, and why is the forward faster?

We integrated FG-CPAB with PyTorch autograd as a standard differentiable layer. The forward pass computes Y=Φθ(X)Y=\Phi_\theta(X), while the backward pass receives ∂L/∂Y\partial\mathcal{L}/\partial Y and directly computes ∂L/∂θ\partial\mathcal{L}/\partial\theta without materializing the full Jacobian. It can therefore be used with Adam or any other gradient-based optimizer. The full implementation will be released upon acceptance.

The performance figures benchmark the CPAB primitive, not convergence on a particular optimization objective: the public libcpab and DIFW implementations and our implementation transform the same point workload, and the backward timing measures the corresponding vector-Jacobian product under the same upstream gradient shape. We do not replace a component inside libcpab or DIFW; they are reference implementations against which our separately implemented forward/backward kernels are timed.

The backward improvement comes from factorization (which in turn leverages the linearity and the sparsity/locality of the CPA basis). The forward improvement is a separate implementation contribution: the small per-cell exponential matrices are precomputed, and cell lookup plus point updates are implemented in optimized GPU kernels with one thread processing each point.

R5/W4(b). IXI data, labels, atlas, Dice aggregation, and diffusion regularization.

Code will be released upon acceptance.

We follow the public TransMorph IXI atlas-to-patient protocol [7]. The dataset contains 576 preprocessed T1-weighted MRI volumes, divided into 403 training, 58 validation, and 115 test subjects. Each volume is skull-stripped, affinely aligned, segmented using FreeSurfer, normalized to [0,1][0,1], and represented at a resolution of 160×192×224160\times192\times224. Because FG-CPAB requires no offline training, we evaluate directly on all 115 test subjects.

The fixed image is the common atlas distributed with the TransMorph IXI dataset, originally obtained from the CycleMorph protocol, together with its corresponding segmentation. Registration is optimized using the MRI intensities, not the anatomical labels. Specifically, we use a 20×20×2020\times20\times20 CPAB tessellation and optimize the parameters with Adam using LNCC (window size 9, sampling stride 2, weight 1.0) and diffusion regularization (weight 3.0). The segmentation labels are used only for evaluation. We will add these protocol details to the revised manuscript.

The diffusion regularizer does not require changing the moment formula. It is implemented by finite differences of the final displacement grid,

un=pn(T)−pn(0),Rdiff=∑n∥∇hun∥2.u_n=p_n^{(T)}-p_n^{(0)},\qquad R_{\mathrm{diff}}=\sum_n\|\nabla_h u_n\|^2.

Although this term couples neighboring transformed points, it is still a differentiable scalar function of the final positions. We first compute

λn(T)=∂∂pn(T)(LLNCC+βRdiff),\lambda_n^{(T)} =\frac{\partial}{\partial p_n^{(T)}} \left(\mathcal L_{\mathrm{LNCC}}+\beta R_{\mathrm{diff}}\right),

including the finite-difference stencil and its neighboring terms. The same adjoint sweep and moment accumulation then compute the CPAB parameter gradient. Equation (11) does not require the terminal loss to be pointwise separable.

Summary

We sincerely thank the reviewer for the time and care devoted to evaluating our work. We appreciate the constructive suggestions and will incorporate them into the revised manuscript. We hope our responses clarify the points raised, and we would be pleased to address any remaining questions or concerns.

Reviewer RJ3m · CommentOpenReview ↗

I would like to thank the authors for considering all issues raised in the review.

I have no further questions.

With the provided clarifications, a revised version of the paper that will include all the changes claimed in the authors' Rebuttal would have increased clarity and quality, thus improving my overall evaluation to 4: Borderline accept.

Authors · CommentOpenReview ↗

Dear Reviewer,

We are glad that our response fully addressed your concerns and that you will be raising your assessment in support of acceptance. We appreciate your time and constructive feedback throughout the review process.

Best regards, The Authors

Reviewer tJy5OpenReview ↗
Rating
4/6
Confidence
3/5
Quality
3/4
Clarity
3/4
Significance
3/4
Originality
2/4
Contribution type
general
Ethical concerns
NO or VERY MINOR ethics concerns only
Read review
Summary

The paper introduces FG-CPAB, an efficient gradient computation method for Continuous Piecewise-Affine Based diffeomorphic transformations. CPAB provides compact, topology-preserving spatial deformations, but existing implementations are difficult to scale because gradient computation becomes expensive for fine tessellations.

FG-CPAB addresses this by separating trajectory integration from parameter-gradient recovery. It accumulates local geometric information during the backward pass and then recovers all parameter gradients through a final sparse projection. This makes fine-tessellation CPAB practical in both 2D and 3D.

Experiments show large speedups and memory reductions compared with standard CPAB implementations. The method also performs competitively on synthetic registration, 3D medical image registration, and geometry-aware operator learning, while preserving diffeomorphic topology. Overall, the paper presents a practical and well-motivated improvement that makes CPAB substantially more scalable.

Strengths and weaknesses

Strengths. The paper addresses a clear scalability bottleneck in CPAB diffeomorphisms and proposes a well-motivated factorized-gradient formulation. The method has a concrete algorithmic contribution, reducing the coupling between trajectory integration and parameter-gradient computation. The experimental results are strong, showing substantial speedups, large memory savings, and practical benefits in 2D/3D registration and geometry-aware operator learning.

Weaknesses. The novelty relative to prior CPAB derivative implementations, discrete adjoint methods, checkpointing, and other compact deformation models could be positioned more clearly. Some comparisons, especially against learned registration methods, mix different evaluation settings because FG-CPAB uses per-instance optimization while many baselines use feed-forward inference. The method also remains limited by the growth of tessellation cells in higher dimensions, so its scalability beyond 3D is unclear.

Questions

How does FG-CPAB differ fundamentally from prior CPAB derivative implementations and generic discrete-adjoint methods?

How sensitive is the method to tessellation resolution and solver step count in practical applications?

Can the authors provide more details on gradient consistency near cell boundaries, where the CPAB velocity field is not differentiable?

How should the runtime comparison be interpreted against learned registration methods that use feed-forward inference rather than per-instance optimization?

Limitations

A main limitation of this work is that CPAB still relies on tessellating the spatial domain, so the number of cells can grow rapidly with dimension. Although FG-CPAB significantly improves gradient computation and memory efficiency in 2D and 3D, its scalability to higher-dimensional domains remains unclear. In addition, some comparisons involve different evaluation paradigms, especially per-instance optimization versus feed-forward learned registration, which may require more careful discussion.

Final justification

I would like to keep my original rating "borderline accept". The authors did a good research but still need more innovative contribution.

Formatting concerns

None

3 comments
Authors · RebuttalOpenReview ↗
Rebuttal

We thank the reviewer for the thoughtful feedback and, overall, positive appreciation of the paper.

R1. How does FG-CPAB differ from prior CPAB derivatives and generic discrete adjoints?

The original CPAB derivative evolves, for every point and parameter ii, a sensitivity

yi(t)=∂p(t)∂θi.y_i(t)=\frac{\partial p(t)}{\partial\theta_i}.

Equation (24) of Freifeld et al. (PAMI 2017) defines dd such sensitivity equations. Consequently, the trajectory computation scales as O(dTN)O(dTN), and the original public implementation follows this parameter-indexed organization.

A generic discrete adjoint removes the need to store the full state-sensitivity matrix, but it does not automatically exploit the CPAB parameterization. At every point and timestep, a generic implementation still evaluates parameter contributions through ∂v/∂θi=Bi,cp~\partial v/\partial\theta_i=B_{i,c}\widetilde p, retaining an O(d)O(d) operation inside the trajectory loop.

FG-CPAB uses two CPAB-specific facts:

  1. the field coefficients depend linearly on θ\theta through a fixed basis BB; and
  2. at each step, a point interacts with only its active cell.

These facts let us accumulate parameter-independent, cell-local vector-Jacobian products and apply B⊤B^\top only once after all points and timesteps have been processed. The resulting cost is more precisely

O(TN+dC),O(TN+dC),

We agree that discrete adjoints and checkpointing themselves are established techniques and did not claim otherwise. Our novelty (beyond of course being the first to apply them to CPAB) is the CPAB-specific reorganization into cell moments. This reorganization is the key behind our computational and memory benefits.

R2. Sensitivity to tessellation resolution and solver step count

We would kindly refer the reviewer to Figures 3 and 8. The figures show that finer tessellations consistently improve IXI Dice and synthetic registration MSE up to the highest resolutions tested. This is the expected expressivity-cost trade-off: finer cells model more local variation, while increasing the number of cells, parameters, and projection work. FG-CPAB does not eliminate this tradeoff; rather, it makes the useful fine-resolution regime computationally accessible.

For solver steps, Table 6 sweeps (5,10,…,100)(5,10,\ldots,100) steps while holding the 2D (30×30)(30\times30) tessellation and optimization setup fixed. Increasing from 5 to 20 steps reduces MSE from (1.42×10−2)(1.42\times10^{-2}) to (1.04×10−4)(1.04\times10^{-4}). Accuracy then largely plateaus: increasing to 50 steps obtains (8.89×10−5)(8.89\times10^{-5}), the best value in the sweep is (8.30×10−5)(8.30\times10^{-5}) at 65 steps, and increasing to 100 steps obtains (8.31×10−5)(8.31\times10^{-5}). Meanwhile, backward latency increases from (0.182)(0.182) ms at 5 steps to (0.415)(0.415) ms at 50 and (0.720)(0.720) ms at 100. We therefore use 50 as a conservative default within the accuracy plateau (also the default in all previous implementations).

R3. Gradient consistency near cell boundaries

There are two distinct notions:

  1. Continuous CPAB flow. The CPA velocity is Lipschitz continuous (and thus the CPAB flow is a diffeomorphism). Its spatial derivative is piecewise constant and may jump across a cell boundary. Sensitivities are therefore integrated piecewise and are well defined almost everywhere.

  2. Discrete implementation. The active cell is recorded during the forward pass and reused during replay. Reverse-mode differentiation follows the derivative of that discrete branch. Our finite-difference check in Appendix H includes trajectories with cell crossings and finds cosine similarity above 0.9980.998 at 50 steps.

R4. How should the comparison with learned registration methods be interpreted?

We agree that per-instance optimization and amortized feed-forward inference represent different computational paradigms and should not be treated as having identical runtime settings. A central motivation for learned registration is to amortize the traditionally high cost of per-instance optimization. FG-CPAB addresses this underlying bottleneck from a complementary direction: it makes expressive diffeomorphic optimization sufficiently efficient to perform directly for each image pair, without dataset-specific training.

FG-CPAB requires no offline training and optimizes each new image pair in approximately 5 seconds. In contrast, learned methods incur a substantial upfront training cost. For example, on the same hardware, TransMorph requires approximately 47 hours of training on IXI (0.5 seconds inference), whereas FG-CPAB can be applied directly.

Table 3 is intended solely to compare registration accuracy and topology preservation under a common IXI evaluation protocol. The learned baselines contextualize the registration quality achieved by FG-CPAB without offline training, rather than serving as computational-efficiency baselines. We will revise the table and accompanying text to make this distinction explicit.

R5. Limitations: Is the framework applicable in higher dimensions?

For a domain of spatial dimension KK, the derivation is dimension-independent: each cell moment has size K×(K+1)K\times(K+1), and the parameter dependence is still deferred to the final basis projection. FG-CPAB therefore removes the additional multiplicative factor dd from trajectory integration in any dimension KK.

It does not remove the curse of dimensionality inherent in tessellation-based models. The number of cells grows exponentially with KK at a fixed per-axis resolution, so memory and projection costs eventually become prohibitive. Our evidence supports spatial dimensions K≤3K\leq3; we do not claim that an unstructured full tessellation is practical for high-dimensional feature spaces. Higher-dimensional applications would require additional structure, such as separable, product, low-rank, or adaptively refined velocity fields. We will expand the brief mention of this limitation in the original discussion section to make the scope explicit in the revised manuscript.

This limitation is not unique to CPAB and, hence, is also not unique to FG-CPAB. Dense velocity-field methods, including SVF-based VoxelMorph variants and LDDMM implementations, also operate over spatial discretizations whose size grows exponentially with dimension at a fixed per-axis resolution. Consequently, these methods are likewise used primarily in spatial dimensions K≤3K\leq3 in practice, although they are not mathematically restricted to these dimensions.

Summary

We sincerely thank the reviewer for the time and care invested in evaluating our work. We hope our responses clarify the points raised, and we would be happy to address any remaining questions or concerns.

Reviewer tJy5 · CommentOpenReview ↗

I think the authors already answer my questions one by one. Thanks for their effort.

Authors · CommentOpenReview ↗

Dear Reviewer tJy5,

We are glad to hear that our response addressed your concerns, and we thank you for supporting the acceptance of our paper. We sincerely appreciate your time, thoughtful evaluation, and constructive feedback throughout the review process.

Best regards, The Authors

Reviewer RnLbOpenReview ↗
Rating
5/6
Confidence
3/5
Quality
3/4
Clarity
3/4
Significance
3/4
Originality
3/4
Contribution type
general
Ethical concerns
NO or VERY MINOR ethics concerns only
Read review
Summary

This paper studies a new framework of parametrizing diffeomorphisms. Diffeomorphisms is of importance in many application and theoretical areas. The previous approach uses continous piecewise affine based transformation, which was proposed more than ten years ago. However, despite the theoretical applicability of CPAB, the practical potential has not been released due to its computational cost. This paper introduces a factorized gradient formulation for scalable CPAB transformations. The proposed method successfully reduces the computational cost from dTN to TN+dC. This approach has made the CPAB applicable in practice.

Strengths and weaknesses

The strengths of this paper are following:

  1. This is well organized submission. The problem is clearly stated and this research has focused on the everlasting issue since the proposal of CPAB. The scalable diffeomorphism optimization in 2D and 3D is of greate importence in applications.

  2. It has been studied and verified that continuous piecewise affine based transformation since it was introduced by Freifeld et al. But it is less popularized due to the computational cost of evaluating the parameter gradient. The main contribution of this work is to improve the computational efficiencty through acceleration and memory saving which improves CPAB scaling over the standard libcpab implementation. Making an impractical method computationally efficient is a contribution of this work. And this part is effectively verified by experiments.

  3. More than the practical value, it is plausible that the result of this paper will initiate a few theoretical studies due to the general importance of diffeomorphisms.

Weaknesses

I would like to see an intuitive discussion on the naturality of the improvement. It has been shown through experiments and analysis, but it is not clear why factorization is a reasonable approach.

Another concern is the following: The paper mentioned in section 3 that the Discretize-then-Optimize approach because the existing work indicates that optimize-then-discretize may yield inconsistent gradients. But the current work has not provided sufficient theoretical investigation why discretize-then-optimize method can address the issue successfully. Appendix H is trying to extend the discussion, however, the current form is a bit away from a convincing explaination. Lacking a careful analysis on this point might leave the claim incomplete even it will not make the paper collapse, I believe the revision should focus on it to make the submission stronger.

Questions

One question is about the weakness mentioned above, and the other question is : I am not sure how the current framework is applicable in higher dimensions?

Limitations

yes, limitations have been discussed

Final justification

After reading the rebuttal and the discussion of the authors with all other reviewer, I don't have further concerns and will keep my original score.

Formatting concerns

No

3 comments
Authors · RebuttalOpenReview ↗
Rebuttal

We thank the reviewer for the thoughtful feedback and overall positive appreciation of the paper.

R1. Why is factorization a natural approach?

The most intuitive view is through the computational graph

θ⟼a=Bθ⟼{pn(t)}n,t⟼L.\theta \longmapsto a=B\theta \longmapsto \{p_n^{(t)}\}_{n,t} \longmapsto \mathcal L.

Here, a=vec⁡({A}c=1C)a=\operatorname{vec}(\lbrace A \rbrace_{c=1}^C) contains the parameters of the per-cell affine velocity fields. The loss does not require the full Jacobian ∂pn(T)/∂θ\partial p_n^{(T)}/\partial\theta; it requires only its contraction with the upstream loss gradient. Applying the chain rule in reverse order gives

∇θL=B⊤∇aL.\nabla_\theta \mathcal L = B^\top \nabla_a \mathcal L.

Each point occupies only one cell at a given step, and its contribution to ∇aL\nabla_a\mathcal L is a small K×(K+1)K\times(K+1) outer product associated with that cell, where K denotes the spatial dimension of the domain. Contributions from all points and timesteps that visit the same cell can therefore be summed before B⊤B^\top is applied. FG-CPAB is thus the CPAB analogue of a standard vector-Jacobian product: contract with the loss first, aggregate in the local coefficient space, and only then project to parameter space. The previous derivative implementation ([9][11]) instead propagates a sensitivity for every parameter along every trajectory.

R2. Why does Discretize-then-Optimize help?

The original CPAB implementation (Freifeld et al., TPAMI 2017) already follows a Discretize-then-Optimize treatment. Lines 149–156 are intended only to motivate why we retain this established choice for the piecewise-affine dynamics. This treatment improves gradient consistency by reusing the forward trajectory and its cell assignments during the backward pass. We do not present Discretize-then-Optimize as a contribution of this work; our contribution is the factorization of the resulting gradient computation through cell-wise moment accumulation and a final basis projection.

To make our argument more explicit, we first show that using velocities from two different cells results in an O(h)O(h) discrepancy. Suppose that p(t)p^{(t)} is propagated using two matrices, A1\mathbf{A}_1 and A2\mathbf{A}_2, corresponding to neighboring cells:

p1(t+1)=exp⁡(hA1)p(t),p2(t+1)=exp⁡(hA2)p(t).(1)p_1^{(t+1)}=\exp(h\mathbf{A}_1)p^{(t)}, \qquad p_2^{(t+1)}=\exp(h\mathbf{A}_2)p^{(t)}. \tag{1}

Using a Taylor expansion, their difference is $ p_1^{(t+1)}-p_2^{(t+1)}=h(\mathbf{A}_1-\mathbf{A}_2)p^{(t)}+O(h^2), $ which is O(h)O(h) under the assumption that the matrices Ai\mathbf{A}_i are bounded. Accumulating this discrepancy over multiple time steps may produce substantial errors and inconsistencies between the forward and backward trajectories. This is the main reason reported in [14] for choosing Discretize-then-Optimize over Optimize-then-Discretize; see Section IV, particularly Eqs. (9)–(10). Further examples and analyses appear in Max D. Gunzburger's book Perspectives in Flow Control and Optimization, which considers flow-optimization algorithms that are analogous to neural-network training in this respect.

We now analyze our use of different time integrators for the forward computation and for trajectory reconstruction between checkpoints during the backward computation, assuming that the trajectory remains within the same cell during each step. The forward computation in Eq. (4) of the manuscript is

p~(t+1)=exp⁡(hA)p~(t).(2)\tilde{p}^{(t+1)}=\exp(h\mathbf{A})\tilde{p}^{(t)}. \tag{2}

In contrast, trajectory reconstruction between checkpoints during gradient computation uses the RK2 update from Eq. (5):

p(t+1)=(I+hA+h22A2)p(t).(3)p^{(t+1)}=\left(\mathbf{I}+h\mathbf{A}+\frac{h^2}{2}\mathbf{A}^2\right)p^{(t)}. \tag{3}

Because $ \exp(x)=1+x+\frac{x^2}{2}+O(x^3), $ replacing the matrix exponential in Eq. (2) with the RK2 approximation in Eq. (3) yields

p~(t+1)−p(t+1)=O(h3∥A∥3).(4)\tilde{p}^{(t+1)}-p^{(t+1)}=O\left(h^3\lVert\mathbf{A}\rVert^3\right). \tag{4}

Accumulating this local error over time yields an O(h2)O(h^2) global discrepancy, assuming that A\mathbf{A} is bounded, consistent with the second-order accuracy of RK2. Thus, the O(h3)O(h^3) local error caused by using different integration methods in Eq. (4) is negligible compared with the O(h)O(h) discrepancy caused by inconsistent cell assignments in Eq. (1). This explains the small gradient differences observed in practice.

We use the matrix-exponential forward integration in Eq. (2) because it is faster in our implementation and maintains consistency with Freifeld et al. (TPAMI 2017) in our comparison. Using RK2 as the forward integrator yields results similar to those reported in the paper. We will add this analysis to Appendix H.

R3. Is the framework applicable in higher dimensions?

For a domain of spatial dimension KK, the derivation is dimension-independent: each cell moment has size K×(K+1)K\times(K+1), and the parameter dependence is still deferred to the final basis projection. FG-CPAB therefore removes the additional multiplicative factor dd from trajectory integration in any dimension KK.

It does not remove the curse of dimensionality inherent in tessellation-based models. The number of cells grows exponentially with KK at a fixed per-axis resolution, so memory and projection costs eventually become prohibitive. Our evidence supports spatial dimensions K≤3K\leq3; we do not claim that an unstructured full tessellation is practical for high-dimensional feature spaces. Higher-dimensional applications would require additional structure, such as separable, product, low-rank, or adaptively refined velocity fields. We will expand the brief mention of this limitation in the original discussion section to make the scope explicit in the revised manuscript.

This limitation is not unique to CPAB and, hence, is also not unique to FG-CPAB. Dense velocity-field methods, including SVF-based VoxelMorph variants and LDDMM implementations, also operate over spatial discretizations whose size grows exponentially with dimension at a fixed per-axis resolution. Consequently, these methods are likewise used primarily in spatial dimensions K≤3K\leq3 in practice, although they are not mathematically restricted to these dimensions.

Summary

We sincerely thank the reviewer for the time and care invested in evaluating our work. We hope our responses clarify the points raised, and we would be happy to address any remaining questions or concerns.

Reviewer RnLb · CommentOpenReview ↗

Thanks for the detailed reply, I have no further concerns and will keep the original recommendation.

Authors · CommentOpenReview ↗

Dear Reviewer RnLb,

We are glad to hear that our response addressed your concerns, and we thank you for supporting the acceptance of our paper. We sincerely appreciate your time, thoughtful evaluation, and constructive feedback throughout the review process.

Best regards, The Authors

From OpenReview, CC BY 4.0. Authors as signed there; shown unedited.

Missing a submission?

Loading the discussion…