TL;DR
CubicSplat introduces an "error-bounded forward relaxation" framework for differentiable vector graphics rendering, resolving the fundamental tension between forward geometric exactness and backward gradient quality. By replacing complex, iterative Bézier root-solvers with uniform polyline surrogates, it creates a stable, static computation graph that delivers well-conditioned gradients. This approach achieves state-of-the-art image reconstruction quality with over a 2 dB PSNR gain in closed-fill settings while training up to 4× faster than existing baselines.
What Problem Does This Paper Address?
Differentiable vector graphics (VG) rasterization allows researchers to optimize parametric shapes (like Bézier curves) directly from target images using gradient descent. This is incredibly useful for tasks like image vectorization, font generation, and digital art stylization. However, classical rasterization is inherently discontinuous—moving a shape by a fraction of a pixel causes a discrete jump in pixel color, yielding gradients that are either zero everywhere or explosive at boundaries.
Existing differentiable renderers attempt to smooth out this forward pass, but they fall into a trap the authors term the gradient seesaw:
- Exact forward, ill-conditioned backward: Methods that use exact analytical solvers (like DiffVG) introduce severe gradient noise and instability at degenerate geometric configurations.
- Smooth gradients, bloated forward: Point-sampling methods (like Bézier Splatting) use discrete Gaussian splats along curves, which introduces phase-sensitive aliasing, breaks scale equivariance, and fails when rendering at higher resolutions than training.
- Adaptive refinement, discontinuous graphs: Dynamically splitting curves based on curvature alters the computation graph at discrete intervals, injecting non-smooth variance that undermines optimization stability.
CubicSplat aims to break this seesaw by intentionally relaxing the forward pass to guarantee stable, well-conditioned gradients while keeping geometric errors mathematically bounded.
Methods
The CubicSplat pipeline consists of three main stages designed to maintain a stable, static computation graph:
- Polyline Surrogates ($\Pi_S$): Instead of solving exact closest-point distances on cubic Bézier curves iteratively, CubicSplat approximates each primitive using a uniform $S$-segment polyline. This reduces all distance queries to closed-form, point-to-segment computations, completely removing iterative root-finding solvers from the backward pass. The geometric error of this surrogate is strictly bounded at $\mathcal{O}(S^{-2})$.
- Differentiable Coverage: The renderer computes a topology-dependent signed residual distance from pixel centers to the polyline. A smooth coverage kernel (a half-sided Gaussian for open strokes and a logistic sigmoid for closed fills) maps this residual to a soft per-pixel opacity value ($\alpha_p$).
- Visibility-Driven Adaptation (Gini Pruning): Primitives are blended front-to-back using standard alpha compositing. Rather than adding explicit geometric regularization losses (e.g., penalizing self-intersections), CubicSplat tracks per-primitive visibility statistics directly from the compositing pass. Primitives that contribute minimally to the scene are identified via a Gini dispersion coefficient and pruned, freeing up capacity to initialize new primitives in high-error regions.
Datasets
The authors evaluated CubicSplat using high-resolution, diverse benchmarks:
- DIV2K subset: A 200-image subset used for large-scale quantitative evaluation of open strokes and closed fills.
- Kodak dataset: The full 24-image benchmark suite evaluated at original resolution.
- DanbooRegion dataset: A detailed illustration dataset used to demonstrate the method's scaling performance under extreme primitive counts.
Key Insights and Ideas
- The "Gradient Seesaw" Paradigm: The core realization is that maximizing forward rendering fidelity can systematically ruin the backward gradient signal. Differentiable rendering should be viewed as a gradient-oracle design problem, where a slightly relaxed but stable forward pass is preferable to an exact but chaotic one.
- Solution-Equivariance Regime: The authors discovered that increasing the polyline sampling density $S$ past a modest threshold ($S=24$ for open, $S=12$ for closed) yields nearly identical reconstruction quality. This proves that $S$ acts primarily as a relaxation knob for gradient conditioning rather than a binding accuracy bottleneck.
- Renderer-Intrinsic Regularization: Tracking intermediate transmittance values during alpha compositing provides a zero-overhead indicator of primitive degeneracy. Pruning based on these visibility stats replaces complex geometric constraints, allowing arbitrary curve configurations to emerge freely during optimization.
Key Results
- State-of-the-Art Quality: On the DIV2K benchmark with 1024 primitives, CubicSplat achieves 25.78 dB (closed fill) compared to Bézier Splatting's 23.45 dB—a massive 2.33 dB gain.
- Parameter Efficiency: CubicSplat is highly compact; using just 256 curves, it matches the reconstruction quality that DiffVG requires 1024 curves to achieve.
- Substantial Speedups: Training is up to 4× faster for closed fills and 1.8× faster for open strokes compared to Bézier Splatting. A single forward-backward step on a $2040 \times 1344$ image with 2048 curves takes just 6.77 ms (120× faster than DiffVG).
- Extreme Scalability: Because the polyline surrogate avoids dense point-splat accumulation, rendering remains resolution-faithful up to 24K magnification, and primitive counts scale smoothly up to 32K on a single consumer GPU.
Limitations and Future Work
- Perceptual Metric Bias: At very low primitive budgets, CubicSplat produces clean, stylized vector boundaries that under-represent photographic micro-textures. Consequently, it can sometimes trail point-sampled methods on the LPIPS metric, which favors high-frequency stochastic fluctuations over clean geometry.
- Future Directions: The authors suggest extending CubicSplat by integrating it with perceptual losses, semantic constraints, and text-to-SVG generative diffusion priors. Additionally, its lightweight per-frame cost and stable gradient structure make it a promising candidate for real-time interactive design tools and video vectorization.
Summary updated