Certified Continuous Error Bounds for Neural Field Compressors

Simulation codes now produce data faster than storage systems can write it. Scientists therefore keep lossy-compressed versions, but only when the compressor promises that every stored value is within a user-chosen tolerance $\epsilon$ of the truth. A newer kind of compressor overfits a small neural network to the field, mapping coordinates $(x,y,z,t)$ to physical values, and stores only the network weights. These implicit neural representations reach compression ratios in the hundreds to thousands. They also let users query the field at any point, not just on the original grid. That continuity is the reason to use them, and it is exactly where their guarantee breaks down.

Existing remedies check the error only at grid points and say nothing about the off-grid values a user actually requests. This note proposes to certify the network over every grid cell, using the bound-propagation tools of neural network verification. The certificate proves that the decoded field stays within $\epsilon$ of a reference interpolant of the original data everywhere in the domain. Cells that fail certification receive small stored corrections. The result is a compressor whose guarantee holds for every continuous query.

Core Claim

Neural network verification is usually framed as one hard query: a large input region, a deep network, and exponential case-splitting. Certifying a neural field is the opposite regime. It consists of millions of tiny queries, one per grid cell, and on tiny input boxes linear relaxations of smooth activations are nearly exact.

The precise property to certify is

$$\sup_{x \in C} \, |f_\theta(x) - I[X](x)| \le \epsilon \quad \text{for every grid cell } C,$$

where $f_\theta$ is the network as stored (quantized weights, executed in floating point), $X$ is the original grid data, and $I[X]$ is its trilinear interpolant. That interpolant is the reference field any grid-based compressor implicitly provides.

The scaling argument is simple. A chord-and-tangent linear bound on $\sin$ or a Gaussian over an input interval of width $w$ has error proportional to $w^2$ times the activation's curvature, by the Taylor remainder. Cell-sized boxes therefore give bounds that tighten quadratically with grid resolution, unlike the loose bounds seen on vision perturbation balls.

The central bet is the following. Batched bound propagation on a GPU can certify all cells at a cost comparable to one training epoch. Training with a certification-aware loss can then push the fraction of cells needing correction low enough that certified neural fields beat classical compressors at an equal continuous guarantee. Compression ratio is the metric.

Relation to Prior Work

Several papers motivate the gap.

  • Grid-only guarantees. AE-SZ uses an autoencoder as a predictor and enforces the bound by quantizing every grid residual. It treats the network as an unverified heuristic and guarantees grid points only.
  • No guarantees at all. COIN and Einstein Fields store sine-activated or Sobolev-trained fields with no pointwise bound. Einstein Fields explicitly names its precision wall: $10^{-7}$ achieved versus the $10^{-12}$ needed for high-precision relativistic applications.
  • Aggregate error only. The in situ sketch-regularized compressor reports only aggregate relative Frobenius error.
  • Soft penalties. The physics-informed VQ autoencoder relies on soft penalties and still violates constraints locally.

Several papers supply the methods.

  • Fast GPU abstract interpretation. DIFFAI makes abstract interpretation differentiable and fast enough to use as a training loss. We reuse this for certification-aware training, applied to coordinate boxes rather than pixel perturbation balls.
  • Branching on hard cases. The GPU branch-and-bound verifiers characterized in NN4SysBench supply the idea of splitting hard queries. Here the split happens spatially, by subdividing a failing cell, instead of on neuron states.
  • Quantization error bounds. QEBVerif bounds the output gap between a float network and its quantized version on classification inputs. We sidestep the hard version of that problem by certifying the quantized stored network directly against the data.
  • Floating-point rounding. The verification work on floating-point discrepancies shows that proofs over real arithmetic can fail on deployed hardware. We therefore add sound rounding-error terms to every bound.

Two papers constrain the design.

  • Loose bounds. DIFFAI's Box domain produced 91.4% error on F-MNIST from overapproximation, so plain interval propagation is not an option for the certifier.
  • Runtime enforcement is costly. SMLE embeds bounding networks with about 2× slowdown and reports that runtime post-processing enforcement is up to 8,000× slower. We therefore keep certification entirely at compression time and leave the decoder untouched.

Research Program

The certifier. We build a batched linear-bound propagator for coordinate networks with sine and Gaussian activations and positional encodings.

  • It uses interval-width-dependent chord and tangent relaxations.
  • It treats weights as the exact stored fixed-point values.
  • It adds a forward rounding-error enclosure for float32 evaluation.
  • For each cell, it compares the network's upper and lower linear bounds against the trilinear interpolant. The interpolant is itself a known polynomial on the cell, so the comparison stays sound.
  • Cells that fail are subdivided up to a fixed depth. Cells still failing receive a correction.

The correction scheme. The simplest correction stores SZ-quantized residuals for that cell's corner values, together with a cell bitmap. The decoder then evaluates the interpolant of the corrected corners inside flagged cells, which is guaranteed within $\epsilon$ by convexity. Unflagged cells are decoded by the network alone.

Training. Training adds a DIFFAI-style penalty on the certified worst-case cell error to the usual fitting loss. The penalty is applied to sampled cells, with a schedule that tightens the relaxation over training.

Analysis. We will measure three quantities against resolution, network frequency, and $\epsilon$:

  1. certification time per million cells;
  2. the fraction of cells certified;
  3. the ratio between certified and empirically sampled maximum error.

The third is the relaxation gap.

Baselines

Naive reference: the uncertified network. We train an implicit neural field and decode it with no check. Off-grid violations are measured by dense random sampling of $10^3$ points per cell against the interpolant. This shows how often the problem actually bites. If violations are rare and small, the proposal's motivation weakens, and we will report that.

Strongest classical competitor: SZ followed by trilinear interpolation. We use SZ with bound $\epsilon$, then interpolate the decompressed grid trilinearly. Because each decompressed value is within $\epsilon$ and trilinear interpolation is a convex combination, this already gives a continuous guarantee for free. That makes it the honest comparison at equal guarantee. For reference, SDRBench reports SZ at about 58:1 compression ratio with PSNR 68.8 on Hurricane ISABEL. ZFP with the same interpolation is a secondary classical point.

Strongest neural competitor: INR as a predictor. We use the same network as an AE-SZ-style predictor whose grid residuals are all quantized and stored, then interpolate the corrected grid. AE-SZ reports compression ratios 100% to 800% above SZ2.1 at equal PSNR AE-SZ. No reported result was found on Lacuna for any certified continuous-domain neural compressor.

Fairness. All methods get the same datasets, the same $\epsilon$ values (relative $10^{-2}$ to $10^{-5}$), the same GPU, and equal hyperparameter-tuning budgets. Compression ratio counts every stored bit, including the network weights, bitmaps, and corrections.

What counts as winning. Beating the baselines means a higher compression ratio at an identical certified continuous bound, with zero violations under dense sampling. Random-access query throughput is reported alongside.

Ablations. Four ablations isolate the key ingredients:

  1. Interval-only propagation versus the width-aware linear relaxation.
  2. A Lipschitz-constant certificate, which certifies a cell when the grid residual plus Lipschitz constant times cell diameter is at most $\epsilon$.
  3. Certification-aware training removed.
  4. The rounding-error term removed, to check whether float32 effects ever flip a certificate.

Why not just…?

Why not just quantize residuals at every grid point and interpolate, as AE-SZ does? This is the real threat. It already delivers a continuous guarantee with the same network. The proposal wins only if per-point residual coding costs more bits than the network's remaining failures. That should happen at high ratios, where even a well-predicted residual stream costs a nontrivial fraction of a bit per value while certified cells cost nothing. The experiment sweeps $\epsilon$ and reports the crossover. If the residual baseline wins everywhere, the defensible contribution shrinks to random-access decoding without grid reconstruction, and we will say so.

Why not just bound the error with a global Lipschitz constant? Lipschitz bounds are cheap and sound. However, sine-activated fields are high-frequency by design, so their global constants are large. Multiplied by cell diameter, they will likely exceed $\epsilon$ at scientific tolerances. The Lipschitz ablation measures directly what fraction of cells it certifies compared with local linear bounds.

Why not just sample densely off-grid and trust it? Sampling finds typical errors but not sparse worst cases. This is the same reason empirical testing is insufficient in safety-critical verification, and SMLE reports above-50% violation rates for training-only enforcement. Our sampled-versus-certified gap measurement will show how much sampling underestimates the worst case on each dataset.

Why not just use SZ or ZFP and skip networks? At tight bounds they may well be best, and we expect the crossover to favor them there. Neural fields report ratios of 142× to 1,882× at 0.5%–5% aggregate error in situ INR. The open question is whether any of that advantage survives a pointwise continuous guarantee. Answering it either way is useful.

Proposed Experiments

Data. We use Hurricane ISABEL, Nyx, and CESM from SDRBench; the 128³ isotropic turbulence and Taylor-Green data from the VQ-AE study; and the Ignition and Channel streams from the in situ INR work. For each, we fit sine-activated fields with 8-bit and 16-bit weights.

The first decisive check: is certification tractable and tight? Certifying a full 512³-cell field must take no longer than training the field. The certified bound must sit within a small factor of the densely sampled maximum, with the gap shrinking roughly quadratically as cells shrink, as the Taylor argument predicts. If the gap stays loose, the relaxation is the bottleneck. The fix would then be branching, and its cost would be reported.

The second decisive check: does the certified scheme pay off? We compare rate-distortion curves under the continuous guarantee against SZ-plus-interpolation and against residual-everywhere. We report the $\epsilon$ range, if any, where the certified neural field wins on compression ratio. Throughput for compression including certification, and for random-access decoding, is reported against SZ.

The third check: are float32 and quantization effects real? We count how often the rounding term or the weight quantization changes a cell's certificate, and whether any uncertified cell actually violates the bound on hardware.