CAD-style shapes such as brackets, housings and machined parts are increasingly stored as neural implicit fields. A neural implicit field is a small network that takes a 3D point and returns a number whose zero set is the surface. Turning that field into a triangle mesh is still done by sampling it on a grid and hoping. The sampling either rounds off the sharp edges that define the part, or it snaps vertices to edges with a learned predictor that often breaks the mesh. No current method can say how far the output mesh is from the surface the network actually encodes. It also cannot say whether a missing or rounded corner is a property of the network or an artifact of extraction.
We propose to extract meshes from neural fields with tools taken from neural network verification. These are methods that compute guaranteed upper and lower bounds on a network's output over a whole input region. We apply them to fields built as Boolean combinations (min and max) of small smooth networks, the structure that NH-Rep uses to represent sharp CAD solids. The key observation is that, in such a field, a sharp edge is exactly a place where the verifier cannot decide which branch of a min or max is active. The verifier's own branching decisions therefore locate the creases. They also supply certified linear bounds whose intersection gives the crease vertex. The result is a mesh with sharp edges and a per-cell certificate of distance to the field's true zero set.
Core Claim
Write the composite field as $h(x)$, built from leaf networks $h_1,\dots,h_m$ through a tree of min and max operations. Run linear bound propagation over a box $B$ of 3D space. In the style of CROWN/GenBaB, this returns affine functions such that, for every $x \in B$,
$$ a_i^\top x + b_i \;\le\; h_i(x) \;\le\; a_i^\top x + c_i , $$
where $a_i$ is a slope vector and $b_i \le c_i$ are offsets. The gap $c_i - b_i$ measures how far leaf $i$ is from being affine on $B$.
A min node whose two inputs have overlapping bound ranges on $B$ is "unstable", in the same sense as a ReLU whose input interval straddles zero. We claim three things. First, unstable min/max nodes on surface-containing boxes are a sound and nearly complete detector of creases in the field. Second, splitting on them (case "leaf $i$ is the minimum" versus "leaf $j$ is the minimum") is a much cheaper way to tighten bounds than splitting space. Third, solving the small linear system formed by the active leaves' certified planes gives a crease or corner vertex. That vertex is guaranteed to lie inside its cell and within a computable distance $\epsilon_B$ of the true zero set. The leaves can use any activation for which GenBaB-style relaxations exist (ReLU, softplus, sine). The output is a dual-contouring mesh whose every vertex carries a certificate.
Prior work did not combine these pieces. NH-Rep builds the Boolean structure but evaluates extraction only empirically, with Chamfer and Hausdorff distances. GenBaB provides general branching over computational graphs but has only been applied to classification and power-flow specifications. Neural Dual Contouring snaps vertices to corners with a learned predictor that has no guarantee. Our proposal uses verification as the extraction algorithm. It does not add verification as an after-the-fact audit.
Research Program
The first component is a bounding engine for Boolean neural fields. We extend linear bound propagation to the min/max tree and the leaf networks. Min and max are treated as two-input piecewise-linear operators and get a branching rule analogous to ReLU splitting, following the unified view in A Unified View of Piecewise Linear Neural Network Verification. Smooth leaves get curvature-aware relaxations with pre-optimized split points as in GenBaB. Sine leaves matter most here: GenBaB reports that bound propagation without branching verifies only 4% of instances on a sine network. We will measure how much leaf activation choice changes extraction cost. The question is whether a "verification-friendly" leaf activation exists that does not sacrifice fit. The engine also bounds the field's gradient over a box, using the network that computes the gradient. This lets us certify that a leaf's zero set is a single sheet within a cell, because a gradient bounded away from zero along some direction means the sheet is a graph over the other two coordinates.
The second component is the extraction algorithm. It is an octree search that works like branch-and-bound. A box is discarded when the bounds certify that $h$ has one sign on it. On a box that contains the surface, the algorithm first tries to stabilize min/max nodes by branching on them. It falls back to spatial subdivision only when leaf relaxations are too loose. A box is accepted once three conditions hold: every active leaf's bound gap is below the tolerance, every active leaf is certified single-sheet, and the active set has size one (smooth patch), two (crease) or three (corner). Vertex placement then solves for the point where the active leaves' midpoint planes meet. This is ordinary dual contouring, but the planes come from certified bounds rather than sampled normals. Because the bounds are valid across the whole box, the vertex comes with a distance certificate. We will state and prove the relation between the leaf bound gaps, the angle between the leaf planes, and $\epsilon_B$. The certificate necessarily degrades as two leaf planes become nearly parallel, so the bound has to account for that conditioning.
The third component is the topology claim, and it is the riskiest. Dual contouring on an octree with certified signs and certified single-sheet cells should give a manifold, watertight mesh, except at cells where the certificate fails. We will report the fraction of certified cells honestly rather than claim watertightness for everything. Where cells remain uncertified at the budget limit, we mark them and fall back to dense sampling. The mesh is then certified except on an explicit, measurable set.
Baselines
The naive reference point is Marching Cubes run densely on the same NH-Rep field. It is the default way such fields are meshed, and it shows how much the Boolean structure loses at extraction time. VoroMesh quantifies how much Marching Cubes truncates corners: it reports Chamfer Distance 10.653 for Marching Cubes against 0.791 for VoroMesh at $32^3$ on Thingi32/ABC. Plain dual contouring with sampled gradients is reported at 5.992 in the same setting. We will run Marching Cubes and dual contouring on our fields at a series of resolutions. The comparison is made at matched wall-clock time and at matched triangle count.
The strongest existing competitors are VoroMesh and Neural Dual Contouring. VoroMesh is strongest on validity: it reports 100% watertightness by construction, against 20–31% for NDC. NDC is strongest on sharp edges and compactness: it reports superior Edge Chamfer Distance on ABC and a 23:1 reduction in mesh complexity relative to Neural Marching Cubes. Both will be run on the same ABC subset and resolution as our method. VoroMesh will be fit to the same NH-Rep field rather than to ground truth, so that every method meshes the same object. NDC will use its released pretrained model, with no extra tuning budget beyond what we give our own tolerance parameter. For context only, EdgeMovingNet reports Chamfer Distance 0.703 and F-score 0.993 on ABC from point clouds. Its input setting differs, so it is not a direct comparison. For NH-Rep's own extraction quality, no reported result was found on Lacuna.
Beating these baselines means two things. Our Chamfer and Edge Chamfer Distance to the analytic CAD surface must be no worse than VoroMesh's at equal triangle count. Our watertight and manifold rate must be at least VoroMesh's on certified cells. Neither baseline can provide the third output: a per-vertex distance certificate to the field that is never violated under dense random testing.
Three ablations isolate the key ingredient. The first removes min/max branching, so the search can only subdivide space. The second replaces linear bounds with plain interval arithmetic. The third places crease vertices by a standard quadric-error solve on sampled gradients instead of on certified planes. The first ablation tests the central claim. If it matches the full method in cell count and edge accuracy, the verification-as-crease-detector idea adds nothing.
Why not just…?
Why not just bound the field with interval arithmetic in an octree? This is the most serious threat, because interval evaluation of implicit functions is cheap and old. Its weakness is the one Robustness Verification of Classification Deep Neural Networks via Linear Programming. documents for smooth activations: loose envelopes compound with depth. Near a crease, intervals cannot tell which leaf is active, so the box must be shrunk until the leaves separate numerically. The second ablation settles the question. We will plot the number of cells and the runtime needed to reach a fixed certified tolerance. If interval arithmetic gets within a small constant factor of our method on shallow leaves, we will narrow the claim to deeper or sine-activated leaves, where we expect the gap to be largest.
Why not just sample very densely and run dual contouring or NDC? Dense sampling usually works on clean CAD fields, and NDC captures corners well. But dense sampling gives no statement about what lies between samples, and NDC's predictions are unconstrained, with watertightness of only 20–31% as reported in VoroMesh. Our experiments measure how often dense-sampling dual contouring produces errors that dense random probing reveals, at resolutions matched in cost to our method. A near-zero rate would weaken the practical case, though not the certificate.
Why not just use VoroMesh, which is already watertight? VoroMesh guarantees watertightness by construction, but its generator points are optimized with a surrogate loss. Nothing certifies that the resulting mesh lies close to the field. It also produces sliver faces. We compare certified and empirical Hausdorff distance to the field and count slivers. If VoroMesh fit to the field is uniformly as accurate as our method, our contribution reduces to the certificate itself, and we will say so.
Why not just train one smooth network with a sharpness prior, as in NeurCADRecon? NeurCADRecon penalizes Gaussian curvature, with a double-trough loss that allows corners, and it does recover sharper shapes. However, its creases are only approximately sharp, and a certificate would require bounding second derivatives, which no current verifier supports. We include single-network fields as a contrast condition. Without explicit min/max nodes, crease cells cannot be identified structurally, and we expect spatial subdivision to blow up. This experiment shows directly whether the Boolean structure is what makes certification affordable.
Proposed Experiments
The main benchmark is ABC, using the manifold B-Rep subset that NH-Rep was evaluated on. Thingi32 provides a comparison under VoroMesh's protocol. Fields are NH-Rep trees with leaves in three activation variants: ReLU, softplus and sine. Metrics are Chamfer, Hausdorff and Edge Chamfer Distance to the analytic surface, and F-score. We also report watertight and manifold rates, triangle count, runtime, the fraction of surface cells certified, and the ratio of certified to empirically measured distance (a measure of certificate tightness).
There are three decisive checks. The first is soundness: across millions of random probe points per shape, no vertex certificate may ever be violated. The second is the crease-detection claim: unstable min/max cells should match the analytic feature curves of the B-Rep in both precision and recall. The third is the min/max-branching ablation: it should cut certified-cell count and runtime substantially relative to spatial-only splitting at equal tolerance, and the advantage should grow with leaf depth and with sine leaves.
If the first check fails, the bounding engine is wrong. If the second or third fails, the idea reduces to interval octrees with extra steps, and the project should stop there.
References
- Implicit Conversion of Manifold B-Rep Solids by Neural Halfspace Representation
- Formal Verification for Neural Networks with General Nonlinearities via Branch-and-Bound
- Neural dual contouring
- A Unified View of Piecewise Linear Neural Network Verification
- VoroMesh: Learning Watertight Surface Meshes with Voronoi Diagrams
- EdgeMovingNet: Edge-preserving Point Cloud Reconstruction via Joint Geometry Features
- Robustness Verification of Classification Deep Neural Networks via Linear Programming.
- NeurCADRecon: Neural Representation for Reconstructing CAD Surfaces by Enforcing Zero Gaussian Curvature