Papers
Topics
Authors
Recent
Search
2000 character limit reached

FlatCAD: Curvature-Regularized Neural SDFs

Updated 10 November 2025
  • FlatCAD is a curvature-regularized neural SDF learning framework that biases surfaces toward developability by penalizing the mixed Weingarten term.
  • It employs finite-difference and autodiff proxies to approximate curvature without full Hessian evaluation, significantly reducing memory and runtime.
  • Empirical evaluations on CAD benchmarks show superior Normal Consistency, lower Chamfer Distance, and higher F1 scores compared to traditional methods.

FlatCAD is a curvature-regularized approach to neural signed-distance field (SDF) learning tailored for computer-aided design (CAD) geometry. It introduces an efficient curvature proxy that targets only the off-diagonal (mixed) Weingarten term, allowing scalable enforcement of developable, CAD-style surface behavior in neural SDFs. FlatCAD eliminates the need for full Hessian evaluation and second-order automatic differentiation, reducing both memory footprint and computational costs while maintaining or improving geometric fidelity on engineering-grade shape reconstruction tasks.

1. Mathematical Foundations of Curvature Regularization

FlatCAD operates on the implicit neural surface representation: f:R3→R,S={x∣f(x)=0}f: \mathbb{R}^3 \to \mathbb{R}, \quad \mathcal{S} = \{x \mid f(x) = 0\} where ff is a multilayer perceptron (MLP) realized SDF. The first derivative ∇f(x)\nabla f(x) provides surface normals: n(x)=∇f(x)∥∇f(x)∥n(x) = \frac{\nabla f(x)}{\|\nabla f(x)\|} satisfying the eikonal constraint ∥∇f∥=1\|\nabla f\| = 1 near S\mathcal{S}. Curvature information is encoded in the Hessian Hf(x)=∇2f(x)H_f(x) = \nabla^2 f(x), whose restriction to the tangent plane forms the shape (Weingarten) operator: S=(uTHfuuTHfv vTHfuvTHfv)S = \begin{pmatrix} u^T H_f u & u^T H_f v \ v^T H_f u & v^T H_f v \end{pmatrix} with (u,v)(u, v) an orthonormal basis for the tangent space at xx. Principal curvatures ff0 are the eigenvalues of ff1, and Gaussian curvature ff2.

FlatCAD's core innovation is to penalize only the off-diagonal (mixed) term, ff3. Under rotation by ff4, ff5 becomes: ff6 and its squared expectation over random ff7 yields

ff8

Regularizing ff9 biases the surface locally toward developability (∇f(x)\nabla f(x)0), suppressing warp while allowing uniform bending or flattening, as desired in CAD reconstructions.

The full FlatCAD training loss: ∇f(x)\nabla f(x)1 comprises a on-surface Dirichlet term ∇f(x)\nabla f(x)2, an off-surface term ∇f(x)\nabla f(x)3 (with ∇f(x)\nabla f(x)4), an eikonal term ∇f(x)\nabla f(x)5, and the curvature proxy ∇f(x)\nabla f(x)6 applied on a shell of ∇f(x)\nabla f(x)7 near-surface points via

∇f(x)\nabla f(x)8

Recommended weights are ∇f(x)\nabla f(x)9, n(x)=∇f(x)∥∇f(x)∥n(x) = \frac{\nabla f(x)}{\|\nabla f(x)\|}0, n(x)=∇f(x)∥∇f(x)∥n(x) = \frac{\nabla f(x)}{\|\nabla f(x)\|}1, and n(x)=∇f(x)∥∇f(x)∥n(x) = \frac{\nabla f(x)}{\|\nabla f(x)\|}2.

2. Implementation Strategies for the Curvature Proxy

FlatCAD enables two operationally distinct but mathematically equivalent instantiations for the off-diagonal curvature penalty:

2.1. Finite-Difference Proxy

This approach approximates the mixed second-order derivative n(x)=∇f(x)∥∇f(x)∥n(x) = \frac{\nabla f(x)}{\|\nabla f(x)\|}3 without explicit Hessian computation. For a shell point n(x)=∇f(x)∥∇f(x)∥n(x) = \frac{\nabla f(x)}{\|\nabla f(x)\|}4 and step n(x)=∇f(x)∥∇f(x)∥n(x) = \frac{\nabla f(x)}{\|\nabla f(x)\|}5:

  • n(x)=∇f(x)∥∇f(x)∥n(x) = \frac{\nabla f(x)}{\|\nabla f(x)\|}6
  • n(x)=∇f(x)∥∇f(x)∥n(x) = \frac{\nabla f(x)}{\|\nabla f(x)\|}7
  • n(x)=∇f(x)∥∇f(x)∥n(x) = \frac{\nabla f(x)}{\|\nabla f(x)\|}8
  • n(x)=∇f(x)∥∇f(x)∥n(x) = \frac{\nabla f(x)}{\|\nabla f(x)\|}9

The mixed-difference stencil yields: ∥∇f∥=1\|\nabla f\| = 10 Thus, the curvature proxy at ∥∇f∥=1\|\nabla f\| = 11 is

∥∇f∥=1\|\nabla f\| = 12

requiring four forward SDF evaluations per proxy point and one gradient, with ∥∇f∥=1\|\nabla f\| = 13 error vanishing as ∥∇f∥=1\|\nabla f\| = 14.

2.2. Autodiff (Hessian-Vector Product) Proxy

This variant leverages vector-Hessian products and reverse-mode autodiff without forming the full Hessian:

  1. Compute ∥∇f∥=1\|\nabla f\| = 15 (forward).
  2. Get ∥∇f∥=1\|\nabla f\| = 16 (reverse).
  3. Form ∥∇f∥=1\|\nabla f\| = 17.
  4. Compute ∥∇f∥=1\|\nabla f\| = 18 (second reverse).
  5. Contract: ∥∇f∥=1\|\nabla f\| = 19.
  6. Normalize: S\mathcal{S}0. The cost is two backward sweeps per point, with no explicit Hessian storage.

Pseudocode

(u,v)(u, v)4

Editor's term: Finite-difference (Proxy-FD) and autodiff (Proxy-AD) proxies exhibit near-identical accuracy.

3. Practical Training Loop and Computational Complexity

A single FlatCAD training iteration comprises:

  1. Sampling S\mathcal{S}1 on-surface points for S\mathcal{S}2.
  2. Sampling S\mathcal{S}3 free-space points for S\mathcal{S}4.
  3. Sampling S\mathcal{S}5 points for S\mathcal{S}6.
  4. Drawing S\mathcal{S}7 shell points with tangent frames for S\mathcal{S}8.
  5. Forward pass: S\mathcal{S}9 at all points; Hf(x)=∇2f(x)H_f(x) = \nabla^2 f(x)0 at eikonal and proxy points.
  6. Loss computation and gradient update.

In traditional full-Hessian Gaussian curvature regularization (as in NeurCADRecon), each sample requires all six independent second derivatives—necessitating six Hessian-vector products per point—which leads to large memory graphs and prohibitive GPU utilization.

By contrast:

  • Proxy-AD requires only one Hessian-vector product (two backward sweeps) per proxy point, with memory scaling comparable to standard first-order autodiff.
  • Proxy-FD forgoes second-order graphs entirely—using only four forward SDF evaluations and a single gradient per proxy point.

Empirical complexity (NVIDIA H100, Hf(x)=∇2f(x)H_f(x) = \nabla^2 f(x)1MB ABC subset):

Method Iter Time (ms) Conv Time (s) GPU Mem (GB)
DiGS 2.99 289.8 1.61
NSH 1.84 151.8 1.79
NeurCADRecon 5.60 455.2 6.06
Proxy-AD 2.54 191.8 3.46
Proxy-FD 3.13 172.7 3.69

Both FlatCAD variants roughly halve memory and wall-clock time compared to NeurCADRecon, with minimal impact on convergence behavior.

4. Empirical Evaluation on CAD Datasets

FlatCAD has been validated on the ABC benchmark in two regimes: "1 MB set" (100 random CAD parts, Hf(x)=∇2f(x)H_f(x) = \nabla^2 f(x)21 MB) and "5 MB set" (100 hand-selected models, Hf(x)=∇2f(x)H_f(x) = \nabla^2 f(x)35 MB). Core metrics are Normal Consistency (NC; higher is better, Hf(x)=∇2f(x)H_f(x) = \nabla^2 f(x)4), Chamfer Distance (CD; lower is better, Hf(x)=∇2f(x)H_f(x) = \nabla^2 f(x)5), and F1 score (Hf(x)=∇2f(x)H_f(x) = \nabla^2 f(x)6).

On the 5 MB set:

Method NC ↑ CD ↓ F1 ↑
NeurCADRecon 96.83 5.94 81.04
Proxy-AD 97.14 5.27 86.56
Proxy-FD 97.38 4.93 85.86

Proxy-FD attains the best NC and CD, while Proxy-AD leads F1; both outperform NeurCADRecon in accuracy and efficiency. Performance persists under data sparsity: FlatCAD remains robust down to 5 K input points; only at 1 K do reconstructions degrade notably. The proxy's developability bias supports plausible hole-filling.

Ablation studies show that the curvature proxy weight Hf(x)=∇2f(x)H_f(x) = \nabla^2 f(x)7 in Hf(x)=∇2f(x)H_f(x) = \nabla^2 f(x)8 always induces smooth, CAD-like surfaces, with Hf(x)=∇2f(x)H_f(x) = \nabla^2 f(x)9 providing the best accuracy-to-smoothness balance. Proxy-AD and Proxy-FD differ in runtime by less than 5 %.

5. Extensions: Scheduling the Weingarten Proxy Weight

FlatCAD's original formulation applied a constant off-diagonal Weingarten (ODW) penalty. Later work demonstrated that dynamically scheduling the ODW weight during training improves both stability and fidelity ["Scheduling the Off-Diagonal Weingarten Loss of Neural SDFs for CAD Models" (Yin et al., 5 Nov 2025)].

Five ODW weight schedules were formalized for S=(uTHfuuTHfv vTHfuvTHfv)S = \begin{pmatrix} u^T H_f u & u^T H_f v \ v^T H_f u & v^T H_f v \end{pmatrix}0 with S=(uTHfuuTHfv vTHfuvTHfv)S = \begin{pmatrix} u^T H_f u & u^T H_f v \ v^T H_f u & v^T H_f v \end{pmatrix}1 as normalized training progress:

  • Constant: S=(uTHfuuTHfv vTHfuvTHfv)S = \begin{pmatrix} u^T H_f u & u^T H_f v \ v^T H_f u & v^T H_f v \end{pmatrix}2 (FlatCAD baseline).
  • Linear decay: plateau at 10 (S=(uTHfuuTHfv vTHfuvTHfv)S = \begin{pmatrix} u^T H_f u & u^T H_f v \ v^T H_f u & v^T H_f v \end{pmatrix}3), linearly to S=(uTHfuuTHfv vTHfuvTHfv)S = \begin{pmatrix} u^T H_f u & u^T H_f v \ v^T H_f u & v^T H_f v \end{pmatrix}4 at S=(uTHfuuTHfv vTHfuvTHfv)S = \begin{pmatrix} u^T H_f u & u^T H_f v \ v^T H_f u & v^T H_f v \end{pmatrix}5, then to 0 at S=(uTHfuuTHfv vTHfuvTHfv)S = \begin{pmatrix} u^T H_f u & u^T H_f v \ v^T H_f u & v^T H_f v \end{pmatrix}6.
  • Quintic ("smooth") decay: slow easing from 10 to S=(uTHfuuTHfv vTHfuvTHfv)S = \begin{pmatrix} u^T H_f u & u^T H_f v \ v^T H_f u & v^T H_f v \end{pmatrix}7 between S=(uTHfuuTHfv vTHfuvTHfv)S = \begin{pmatrix} u^T H_f u & u^T H_f v \ v^T H_f u & v^T H_f v \end{pmatrix}8 and S=(uTHfuuTHfv vTHfuvTHfv)S = \begin{pmatrix} u^T H_f u & u^T H_f v \ v^T H_f u & v^T H_f v \end{pmatrix}9, then to 0.
  • Step interpolation: 10 for (u,v)(u, v)0, (u,v)(u, v)1 for (u,v)(u, v)2, then 0.
  • Warm-up (increasing linear): starts at 0, ramps up to 10 at (u,v)(u, v)3.

On the ABC benchmark (25 models):

Schedule NC CD F1 Time (s)
FlatCAD (const.) 96.14 4.37 84.98 877.5
Linear decay 97.95 3.05 90.59 882.7
Quintic interp. 98.01 2.86 92.72 878.2
Step 97.99 2.87 92.71 1003.5

Decay schedules yield 30–35% lower Chamfer Distance and improve F1 and NC. Quintic is optimal in stability and detail recovery, while warm-up (reverse schedule) degrades performance. Strong initial regularization stabilizes optimization, suppresses curvature noise, and facilitates eventual detail capture as the penalty decays.

6. Implications for CAD Reconstruction and Engineering Applications

FlatCAD, by decoupling the geometric bias (developability, minimal warp) from computational bottlenecks (full Hessian graphs), enables practical large-scale neural SDF learning for complex CAD surfaces. Its framework-agnostic, drop-in nature supports deployment in existing geometric learning stacks with minimal implementation effort. Robust behavior in data-sparse regimes and superior topology preservation recommend FlatCAD as a default regularizer for neural geometric reconstruction in engineering workflows.

The curvature proxy's parameter-free, purely geometric construction and tunable scheduling argue for its continued relevance as SDFs expand as a modeling primitive across CAD, reverse engineering, and shape optimization contexts. The separation of computational and geometric concerns in FlatCAD suggests the design space of higher-order regularization proxies for neural implicit methods is not yet exhausted.

Definition Search Book Streamline Icon: https://streamlinehq.com
References (1)

Topic to Video (Beta)

No one has generated a video about this topic yet.

Whiteboard

No one has generated a whiteboard explanation for this topic yet.

Follow Topic

Get notified by email when new papers are published related to FlatCAD.