Recomputing the Geometry: Fused Matrix-Free Spline Operators for Isogeometric Analysis on GPUs

Isogeometric analysis (IGA) runs physics simulations directly on the smooth spline surfaces and volumes that CAD software uses to describe a shape, instead of first converting the shape into a mesh of small triangles or tetrahedra. Its advantages, smooth stresses and exact geometry, come at a computational price. Each spline basis function overlaps many neighbours, so every element touches $(p+1)^d$ basis functions and needs about as many quadrature points, the sample points used to approximate integrals, for polynomial degree $p$ in $d$ dimensions. Assembled matrices become dense and huge. The best-known fix compresses the operator into a low-rank tensor format, but that compression breaks down exactly on the twisted, warped geometries that make CAD interesting (A Low-Rank Tensor Method for PDE-Constrained Optimization with Isogeometric Analysis).

This note proposes a GPU operator for IGA that never stores the matrix and never stores the geometry at quadrature points. Kernel fusion, the GPU technique of merging several computation steps into one kernel so intermediate data stays in fast on-chip memory, is the means. The idea is IGA-specific. In IGA the geometry is itself a spline built from the same basis functions as the solution. A fused kernel can therefore reload a few control points and recompute the Jacobian (the local stretching of parameter space into physical space) in registers, rather than streaming precomputed geometric factors from memory. We predict that this changes memory traffic per degree of freedom from roughly $(p+1)^d$ stored values to a constant. We also predict that throughput becomes insensitive to how twisted the geometry is, which is the exact failure mode of the tensor-train method.

Core Claim

The obvious bridge between these fields is "write a fused GPU kernel for IGA assembly." The research file lists this as the main gap, and no paper in it does it. It is still mostly engineering, though. A skeptic will point out, correctly, that the high-order finite element community already applies operators matrix-free on GPUs by sum factorization (applying 1D basis tables one direction at a time). That line of work is not in our file, so we cannot cite it, but we treat it as the real competitor. Those operators typically precompute and store geometric factors at every quadrature point.

Our claim is that in IGA this stored-geometry design is disproportionately bad, and that recomputing geometry on the fly is the right fusion. The argument is a counting one. With maximal-continuity splines the number of elements is roughly the number of degrees of freedom, so there are about $(p+1)^d$ quadrature points per unknown. For a 3D Laplacian or elasticity-like operator, the stored factors are the symmetric metric tensor plus a Jacobian determinant, about 7 double-precision values. Per operator application, the stored-geometry approach then moves roughly

$$ B_{\text{stored}} \approx 56\,(p+1)^3 \ \text{bytes per DOF}, \qquad B_{\text{recompute}} \approx 8\,(2 + c) \ \text{bytes per DOF}, $$

where DOF means degree of freedom, the first expression counts 8 bytes for each of the 7 stored values at each quadrature point, and $c \approx 4$ is the number of values per control point (three coordinates plus a NURBS weight) read alongside the solution input and output. At $p=3$ this is about 3.6 kB versus about 50 bytes per DOF, a ratio near 70. The price of recomputation is extra arithmetic. Evaluating the geometry gradient by sum factorization costs about the same as evaluating the solution gradient, and inverting a $3\times 3$ matrix is cheap. We therefore expect a fused recompute kernel to run near the arithmetic limit of the GPU, while the stored-factor version stays bandwidth-limited.

The second claim follows directly. Because nothing in the recompute kernel depends on the geometry being separable or low-rank, its throughput on the twisted beam should match its throughput on the deformed cuboid.

Research Program

The core artifact is a single fused kernel per patch tile. It loads a tile of control points and solution coefficients into shared memory once, together with 1D B-spline basis values and derivatives for each parametric direction (precomputed per knot span and tiny). It then evaluates geometry gradient, Jacobian determinant and inverse, solution gradient, flux, and the transposed contraction back to coefficients, all without writing quadrature-point data to off-chip memory.

This borrows the input/output-aware structure of FlashSchNet, which fuses distance evaluation, Gaussian basis expansion and cutoff into one tiled pass for molecular dynamics. FlashSchNet works on unstructured neighbour graphs and has no tensor-product structure or geometry map; we take its methodological lesson, not its kernels. DiffTaichi supplies the evidence that register-resident megakernels for physics can match hand-written CUDA. It has no spline or Galerkin abstractions, and its kernels do not face a choice between recomputing and storing geometry.

Writing results back is the second design question. Overlapping supports mean neighbouring elements add into the same coefficients, which causes atomic write contention on the GPU. We will compare three strategies on that output path. The first is atomic adds. The second is a FlashSchNet-style contention-free segmented reduction, adapted from graph edges to knot-span overlaps. The third is a coefficient-owned formulation in which each thread block owns a tile of control points and recomputes the elements in its support, exchanging redundant arithmetic for zero contention. The redundant recomputation is cheap only because geometry is recomputed anyway, so the two choices interact. We will measure that interaction rather than assume it.

The third component is a test of whether fusion makes accuracy-improving IGA variants nearly free. SoftIGA subtracts penalized jumps of $p$-th derivatives across element interfaces, which improves conditioning and eigenvalue accuracy. Dispersion optimized quadratures blends Gauss-Legendre and Gauss-Lobatto rules to cancel leading dispersion error. Both normally need extra passes, one over interfaces and one over a second point set. In the fused kernel, the interface jump terms reuse control points already in shared memory, and the second quadrature rule is only another set of 1D tables. Our hypothesis is that both add less than 25% to the cost of a recompute-kernel application, compared with a much larger relative cost in an unfused pipeline.

SoftIGA's conditioning gain has added value here. Matrix-free solvers cannot easily use algebraic preconditioners that need matrix entries, so a 52.9% or 72% lower condition number translates directly into fewer conjugate-gradient iterations. We will pair the operator with Jacobi and with a parametric-domain Kronecker preconditioner. Both are cheap and need no assembled matrix.

Differentiable shape optimization (Design of self-supporting surfaces with isogeometric analysis, multiresolution subdivision shape optimisation) is a natural extension, because recomputing geometry from control points makes the adjoint with respect to control points a local in-kernel computation. We scope it as a stretch goal and not the main claim.

Baselines

The naive reference point is the standard CPU pipeline in GeoPDEs, the open-source IGA package used as the baseline in the tensor-train paper. It assembles the sparse matrix with standard quadrature and solves with conjugate gradient. We run it on the same geometries and refinements, on a modern multicore CPU, with the same solver tolerance. It anchors memory and time-to-solution, and any GPU method should beat it by a wide margin.

The strongest existing method in the file is the low-rank tensor-train approach of A Low-Rank Tensor Method for PDE-Constrained Optimization with Isogeometric Analysis. It interpolates geometry weights into tensor-train form and solves with block alternating minimal energy iterations. It reports compressing the deformed-cuboid problem to "only a few megabytes", scaling to "8 million degrees of freedom" on a wind turbine blade with nearly constant iteration counts, and geometric ranks "between 1 and 20". No reported result found on Lacuna for its wall-clock assembly or solve time, so we will rerun it ourselves on its own four geometries at matched DOF counts and tolerances. We give it its best tolerance-versus-rank setting per geometry. Beating it means equal or better time-to-solution on the benign geometries and a clear win, which we target at 5× or more, on the twisted beam, where its rank inflates.

The strongest unpublished-in-file competitor is a matrix-free sum-factorization GPU operator with stored geometric factors. We implement it in the same codebase as our kernel, with identical tiling, preconditioner and output strategy. This is also the ablation that isolates the key ingredient, since the only difference is whether metric terms are read from memory or recomputed from control points. Beating it means higher DOFs-per-second for $p \ge 3$ and a measured crossover degree that matches the byte-counting prediction above.

We also run an assembled-matrix GPU baseline: the GeoPDEs matrix transferred to the GPU and applied with a vendor sparse matrix-vector product. It shows when storing the matrix stops fitting in GPU memory and how its bandwidth cost grows with $p$.

Two further ablations remove the contention-free output path (atomics only) and remove fusion of the SoftIGA and blended-quadrature terms (separate passes). All GPU variants run on the same GPU, and each gets an equal schedule-tuning budget measured in autotuning trials.

Why not just…?

Why not just use tensor-train compression, which already fits millions of unknowns on a desktop? On separable geometries it is excellent, and we expect it to stay competitive in memory there. The same paper concedes that efficiency depends on geometric rank and degrades on the twisted beam. Our cuboid-versus-twisted-beam throughput ratio directly tests whether recompute fusion removes that sensitivity. If the tensor-train method wins on all four geometries, our second claim is false.

Why not just use standard matrix-free sum factorization with stored geometry, as high-order finite element codes do? This is the most serious threat, and we built the proposal around it. The counting argument says stored factors dominate traffic once quadrature points per DOF approach $(p+1)^3$. That ratio is the IGA-specific fact that finite element experience does not carry over. The ablation settles the question empirically. If stored factors match recompute speed at $p=3,4$, for example because cache reuse is better than we assume, our central claim fails, and we will report the measured crossover.

Why not just express the weak form in a tensor compiler such as AutoTVM, or write it in DiffTaichi? Learning to Optimize Tensor Programs reports 1.2× to 3.8× end-to-end speedups by searching schedules over predefined dense operators. DiffTaichi fuses imperative physics loops on grids and particles. Neither decides by itself to discard a stored intermediate and recompute it, and neither has knot-span-aware tiling. CUDA Agent notes that general compilers struggle with irregular non-GEMM pipelines. We will still implement the stored-factor operator in DiffTaichi as a reference. If it matches our hand-fused stored-factor kernel, that supports reusing DiffTaichi as the implementation vehicle, and the novelty rests on the recompute choice, not on hand-written CUDA.

Why not just use SoftIGA or optimized quadrature on the CPU and skip GPU engineering? Those methods improve accuracy and conditioning but do not shrink the work of applying the operator. The dispersion paper's Table 4 reports assembly times "similar for standard and optimally-blended rules", meaning their cost is not lower than standard assembly. We use them as payloads to fuse, not as rivals.

Proposed Experiments

The four geometries from the tensor-train paper serve as the main suite: quarter annulus, deformed cuboid, twisted beam and wind turbine blade. We solve Poisson and linear elasticity at degrees $p=2$ to $5$, refined up to the largest size that fits on one GPU. Correctness is checked first. We reproduce the SoftIGA Laplacian eigenvalue benchmarks, including the reported $O(h^{2p+2})$ or $O(h^{2p+4})$ convergence and the 52.9% and 72% condition-number reductions, and the blended-quadrature $h^{2p+2}$ rate, all through our fused kernel. Fusion must not change the numerical result beyond roundoff.

Performance metrics are DOFs processed per second per operator application, measured bytes moved per DOF from hardware counters, achieved arithmetic intensity placed on a roofline (the plot of attainable speed against FLOPs per byte), peak memory, and end-to-end time-to-solution at fixed residual tolerance.

Four checks decide the outcome. Measured bytes per DOF for the recompute kernel should stay roughly flat in $p$, while the stored-factor kernel's grows like $(p+1)^3$. The throughput ratio between cuboid and twisted beam should stay within about 10% for our kernel while the tensor-train method degrades. Fusing SoftIGA jump terms and blended quadrature should add under 25% per application, and the improved conditioning should yield a net reduction in time-to-solution with Jacobi-preconditioned conjugate gradient. Finally, the coefficient-owned output path should beat atomics at high continuity, where support overlap is widest.

As a dynamic, non-elliptic sanity check, we port the rotation-free Kirchhoff-Love shell from An Isogeometric Cloth Simulation Based on Fast Projection Method to the fused operator on the Corner Kidnapped Cloth benchmark. That paper reports a 2.5× speedup over high-stiffness implicit models. We report per-step time against a GPU port of its unfused pipeline, to see whether recompute fusion moves spline-based cloth toward the real-time rates the authors name as open work.