TetraCoder: Adaptive Tetrahedral Encoding for Neural Fields
Daniele Della Pietra, Antonella Rech, Nicola Conci, Nicola Garau
cs.GR, cs.CV
2026-11-13
TetraCoder fits images with fewer parameters than Instant-NGP at higher PSNR, and extracts analytic meshes about 6.4× faster than TetraSDF.
A neural field maps a coordinate to color, density, or signed distance. Sampling a surface is cheaper on an explicit mesh. Asking what sits at a point is cheaper on an implicit field. Editing and simulation need both answers to describe the same surface. On an SDF that surface is the zero level set. Marching Cubes only approximates it, and the error follows the sampling grid. A continuous piecewise-affine field can be cut along its linear pieces, so sampling error never enters the mesh.
Each current encoding gives something up. Instant-NGP's multiresolution hash grid holds detail, but a collision ties unrelated places to one slot, and trilinear interpolation is not piecewise affine, so an analytic mesh will not match the learned field. TetraSDF gets piecewise affinity back with barycentric weights on tetrahedra, then has to intersect tetrahedra across grid levels. That cost grows with the number of levels. A fixed tetrahedralization cannot move vertices during training. A code stored on a surface mesh needs the mesh first.
TetraCoder keeps one tetrahedral grid and does not hash. Each vertex stores a position and a feature. A query is encoded inside the tetrahedron that contains it: four barycentric weights from volume ratios, then a weighted sum of the vertex features. Inside a cell those weights are affine in the coordinate, so the code is e(x)=Ax+b there. Adjacent cells agree on a shared face, and the field is continuous. The encoding is continuous piecewise affine. A decoder limited to affine layers and ReLU keeps that property. The zero level set is the polygons where each affine piece crosses zero, assembled into a triangle mesh. Editing one vertex feature changes only the tetrahedra that touch it.
Coarse shape and fine detail share that single level. Densification scores a tetrahedron by the fitting-loss gradient on its interpolated features, times its longest edge, and inserts a vertex where the cell is large and the gradient is strong. The new feature is copied from the encoding before insertion, so the field does not jump. Pruning drops vertices whose gradients stay small and whose features sit near the neighbor mean. Movement runs Adam on vertex positions. Features move with their vertices, and the parameter count stays put. Insertion and deletion rebuild a Delaunay mesh. Connectivity is refreshed if a tetrahedron flips or collapses. Ray samples walk that same face adjacency.
Image fitting uses 32-dimensional features and an MLP of width 64 to regress RGB. Point-cloud fitting uses 8-dimensional features and a ReLU MLP with three layers of width 12, an L1 loss plus an Eikonal penalty, and a tanh around the scalar that is treated as the SDF. Analytic extraction uses the zero of the pre-tanh scalar, since tanh is zero only at zero. Image reconstruction follows NeuS2: the SDF is that raw scalar, a radiance decoder predicts view-dependent color, and opacity still uses the logistic ratio from NeuS. Editing does not train again. Moving vertices deforms the surface while features, connectivity, and the decoder stay fixed. Overwriting selected vertex features changes color. The original features still set the SDF and the normals.
Four images at up to 8000×8000, trained for 350 epochs, against a hash grid.
| Image | Method | PSNR | Params |
| Albert | Hash | 50.31 | 5.75M |
| Albert | TetraCoder | 59.81 | 3.61M |
| Summer | Hash | 37.94 | 6.57M |
| Summer | TetraCoder | 38.18 | 4.82M |
| Pluto | Hash | 44.03 | 23.96M |
| Pluto | TetraCoder | 48.63 | 17.27M |
| Girl | Hash | 35.96 | 86.20M |
| Girl | TetraCoder | 36.14 | 58.74M |
Every image uses fewer parameters and a higher PSNR. The margin is 9.5 dB on Albert and 4.6 dB on Pluto, then 0.24 dB and 0.18 dB on Summer and Girl.
Five Stanford meshes, 500,000 SDF samples (95% near the surface, 5% in the unit cube), same supervision and 5,000 updates as TetraSDF Large.
| Metric | TetraSDF Large | TetraCoder |
| Chamfer (×10⁻³) | 1.718 | 1.611 |
| Extraction (s) | 2.859 | 0.446 |
| Params (M) | 16.778 | 5.221 |
| Skinny triangles (%) | 19.55 | 9.14 |
| SSDF | 0.076 | 0.027 |
Extraction is about 6.4× faster. The Delaunay-edge rate is 83.50% against 82.37%. VSDF drops from 0.078 to 0.027. Skinny triangles fall by about half.
NeRF Synthetic and DTU, 20,000 iterations, 28-dimensional features matched to NeuS2's 14 levels times 2. CD is in millimeters. The table averages the two datasets.
| Method | PSNR | SSIM | CD |
| Tetra-NeRF | 28.04 | 0.927 | 8.35 |
| NeuMesh++ | 30.36 | 0.9475 | not reported |
| NeuS2 | 31.86 | 0.9455 | 2.4055 |
| Instant-NGP | 32.51 | 0.9510 | 3.2400 |
| TetraCoder | 32.81 | 0.9560 | 2.3725 |
On NeRF Synthetic, PSNR is 33.27 against 32.75 for Instant-NGP and 31.58 for NeuS2. CD is 3.93 against 4.71 and 4.10. On DTU, PSNR is 32.34 against 32.27 and 32.14. CD is 0.705 against 1.77 and 0.711. The average ranks first. Mean CD is only 0.033 mm under NeuS2.
Under image supervision, low-capacity TetraSDF extracts in 6.179 seconds at 23.53 dB and CD 12.147×10⁻³, with 93,065 boundary edges, 107,547 non-manifold edges, and 26,374 duplicate triangles. TetraCoder has none of those defects, reaches 35.11 dB and CD 3.20×10⁻³, and extracts in 49.263 seconds. SSDF is 1.25×10⁻⁸ against 4.26×10⁻⁸. Scaled toward NeuS2 capacity, TetraSDF's cross-level polyhedra become impractical in memory and runtime. Dual Contouring trained for 2.5 hours on a 4096³ grid still sits almost two orders of magnitude higher in SSDF.
On unpainted regions, 3D MSE at 20%, 40%, 60%, and 80% edit coverage is 0.000, 0.001, 0.001, and 0.003 for TetraCoder, against 0.055, 0.139, 0.091, and 0.155 for the hash grid. Against NeuMesh++, rendering is about 2× faster, and geometry and appearance edits have about 19× and 18× lower latency. 2D MSE is tabulated times 10⁻²: TetraCoder stays between 0.040 and 0.160, the hash grid between 0.536 and 2.221.
On the NeRF Synthetic ablation, densification, pruning, and movement together give CD 3.926×10⁻³ and PSNR 33.26. Densification alone still reaches 33.17 dB, while CD rises to 6.534×10⁻³. Adding pruning without movement pushes CD to 7.094×10⁻³. Appearance mostly follows densification. Geometry wants all three.
The rendering lead over Instant-NGP and NeuS2 is small. Image and point-cloud fits use fewer parameters. A local feature edit cannot leak through a hash slot. The analytic mesh is the zero set of the learned SDF, and the vertices being moved belong to the encoder. There is no second training pass and no extra cage.
A hash grid is the simpler tool when the only product is a novel view. When reconstruction, a mesh, and edits have to stay one representation, the single adaptive tetrahedral level fits that job. Cutting point-cloud extraction from 2.859 s to 0.446 s matters more than a DTU appearance gap under 0.1 dB versus Instant-NGP.
Three items stay open: dynamic 4D scenes, analytic extraction at more than one level of detail, and recovering the SDF from the extracted mesh. Implicit to explicit is exact. The reverse is unproved.
Two of the four images gain only about 0.2 dB. DTU appearance is nearly tied with NeuS2 and Instant-NGP. The novel-view setup never reports a parameter count. Matching 28 feature channels does not freeze the vertex count, which still grows as the grid adapts, so a parameter win is not shown there. The 6.4× extraction speedup is the Stanford point-cloud comparison. On the Lego field TetraCoder takes 49 seconds, and the smaller TetraSDF takes 6, in exchange for a topologically broken mesh. The 19× and 18× edit claims have no absolute times, and training time is not compared. The runs used two RTX PRO 6000 GPUs.