*H. Ugail, Proximity-Preserving Neural Subdivision, arXiv:2608.14704, 2026. https://arxiv.org/abs/2608.14704
Classical subdivision is useful because it is repeatable. A single stencil defines the whole refinement rule, the rule can be applied to its own output, and the behaviour of the resulting operator under iteration is understood. That uniformity is also the limitation, because a fixed stencil underfits localised features such as sharp ridges wherever curvature concentrates. Neural mesh refinement adapts to those features, but a network that predicts vertex positions freely is not a subdivision operator, and repeated application drives it out of the classical regime.
This is an open-source reference implementation of a trainable subdivision operator that augments Loop subdivision with a small, bounded, curvature-gated correction expressed in a covariant local frame, so that rigid-motion equivariance, affine reproduction, a quadratic proximity envelope around Loop, and planar spectral inheritance all hold by construction, for any finite network weights, before any training takes place.
The repository contains the trained checkpoints and every precomputed table, so the complete evaluation reproduces without any training.
For each interior edge with Loop edge vertex
where
The construction is guaranteed by the following proposition:
For any mesh in the shape-regular class, any budget
-
The structural guarantees are architectural, not trained. Across random weight draws, trained weights, and weights optimised adversarially against each bound, the equivariance residual stays at floating-point noise, the departure from Loop on planar input is exactly zero, and the proximity ratio
$|q_i^\theta - q_i^0| / (C h_i^2)$ stays at or below one. Gradient ascent that is free in both the network weights and the mesh geometry does not produce a violation. -
Loop's spectrum is inherited exactly at the planar reference. The local subdivision matrix extracted from a planar valence-$k$ star reproduces the analytic tangent eigenvalue
$\tfrac{3}{8} + \tfrac{1}{4}\cos(2\pi/k)$ for$k = 3, \ldots, 12$ , and the linearisation of the learned operator equals Loop's to machine precision at every one of those valences. Off the planar reference the Reif gap is preserved at zero perturbation for every budget and narrows smoothly in proportion to$C$ , which is the sense in which$C$ is a spectral safety parameter as well as a capacity parameter. This is a planar inheritance result and not a global$C^1$ theorem at extraordinary vertices. -
Feature approximation improves where fixed stencils underfit. On ten held-out Gaussian ridges the trained operator improves signed-distance root-mean-square error by 21.0% near the feature, with a bootstrap 95% confidence interval of [13.7, 31.3], and by 13.3% globally with an interval of [7.4, 21.4]. Hausdorff error improves by 9.3% with an interval of [1.7, 21.0]. Normal error is left essentially unchanged, at +0.4% near the feature and +0.1% globally, and neither difference is statistically significant.
-
One-step accuracy and repeated-application stability are different problems. The unconstrained foil achieves larger one-step gains, at 56.0% near-feature signed-distance improvement, because free vertex prediction has more capacity to fit a target than gated bounded correction. It also degrades the global normal error to −4.0%, which is the signature of high-frequency artefacts. Through four levels of repeated subdivision its proximity ratio reaches
$1.15 \times 10^4$ and its maximum face-normal jump approaches$\pi$ , indicating extensive face flips, while the constrained operator stays inside its envelope with the maximum ratio decreasing level by level. -
The budget behaves as a real user-facing knob. Sweeping
$C$ over 0.1, 0.25, 0.5 and 1.0 moves the near-feature signed-distance gain from roughly 5% to roughly 22%, with diminishing returns beyond 0.5, and the measured proximity ratio remains at or below the architectural cap at every tested budget. Larger$C$ buys approximation, smaller$C$ buys proximity to Loop and a wider spectral margin. -
The gains are feature-driven rather than universal. On smooth saddle surfaces the operator provides essentially no improvement over Loop, which is the expected behaviour. Saddles are already well approximated by Loop, with truncation error that is small and not localised, so the gate stays close to zero and there is little for a curvature-gated correction to do. The null result is reported as such.
-
run_pipeline_full.ipynb— the complete pipeline in a single notebook. Builds the operator with its architectural switches, certifies the bounded-displacement, equivariance and affine-reproduction guarantees under random, trained and adversarial weights, extracts and diagonalises the local subdivision matrix at valence-$k$ stars, ablates each architectural element in turn, trains the operator and the unconstrained foil on the ridge benchmark, runs the paired bootstrap analysis, the repeated-subdivision study, the budget sweep and the capacity control, evaluates the saddle null result and the cross-family sphere-ridge generalisation, and regenerates every figure and metric table. -
Results/models/— the trained checkpoints. The headline operator at$C = 0.5$ , the unconstrained foil, the four budget-sweep operators, the wider capacity-control operator, the saddle operator, and the ablation variants. The notebook loads any checkpoint it finds and skips that training, so the default run on a fresh clone is evaluation-only. -
Results/metrics/— the precomputed result tables. The held-out ridge comparison ismain_results_table.csv, the architectural certificates and their adversarial stress tests arestructural_certification.csv, the valence sweep isspectral_certification.csv, the architectural ablation isablation.csv, the budget sweep isc_sweep.csv, the cross-family evaluation iscross_family_sphere_ridge.csv, and the complete run record including all bootstrap intervals ismetrics_summary.json. These are sufficient to check every reported number without re-running anything. -
Results/figures/— the publication figures. -
demo/— a short standalone notebook that loads the shipped checkpoint and refines a mesh, with the budget exposed as a single parameter. -
requirements.txt— dependencies (PyTorch, NumPy, Matplotlib).
The fastest way to check the headline numbers is to open the precomputed tables:
git clone https://github.com/ugail/Proximity-Preserving-Neural-Subdivision.git
cd Proximity-Preserving-Neural-Subdivision
Every value reported in the paper is in Results/metrics/, and metrics_summary.json contains the complete run record with its bootstrap confidence intervals.
To reproduce the complete evaluation from the shipped checkpoints:
pip install -r requirements.txt
jupyter notebook run_pipeline_full.ipynb
Run all cells. The notebook detects the included checkpoints, skips all training, and regenerates every figure and table. No GPU is needed for this evaluation-only run. Every path is derived from the repository root, so nothing needs editing before the first run, and the same notebook runs unchanged in Google Colab.
The notebook is incremental. Checkpoints found in Results/models are loaded and their training is skipped, so deleting a checkpoint file retrains exactly that model, and emptying Results/models retrains the whole system. Setting FORCE_RETRAIN = True in the configuration cell has the same effect without deleting anything. A complete retraining run takes roughly twenty minutes on a laptop CPU, since the meshes are small and the network is a two-layer multilayer perceptron with sixty-four parameters per hidden layer. For a quick functional check before a full run, set SMOKE_MODE = True in the configuration cell, which shrinks every split and shortens every training schedule.
The operator class is defined by four architectural elements, each exposed as a switch so that its contribution can be isolated. The
Approximation is measured by signed-distance root-mean-square error and Hausdorff distance against the analytic surface, split into a near-feature region and the global region, together with mean and maximum face-normal angular error. Structure is measured by the maximum proximity ratio against the architectural cap, the equivariance residual, the departure from Loop on planar input, the tangent eigenvalues and Reif gap of the local subdivision matrix, and the maximum face-normal jump after repeated refinement. All paired comparisons report bootstrap 95% confidence intervals computed from two thousand resamples.
-
Practitioners of geometry processing and subdivision modelling who want feature-sensitive refinement with a prescribed and checkable proximity envelope around a classical scheme, so that adaptivity does not cost the properties that made the classical scheme trustworthy.
-
Researchers in geometric and constraint-aware deep learning who want a worked example of output-level structural guarantees on a continuous geometric operator, with the guarantee, its adversarial verification, its spectral certification, and its honest cost accounting in one place.
-
Researchers in subdivision theory who want a construction in which the proximity hypothesis of Wallner and Dyn is satisfied by parameterisation rather than by assumption, together with the numerical evidence for what happens off the planar reference where no exact statement is available.
If you use this implementation or the precomputed results, please cite the paper:
*H. Ugail, Proximity-Preserving Neural Subdivision, arXiv:2608.14704, 2026. https://arxiv.org/abs/2608.14704
Released under the MIT License. See LICENSE for the full text.