AI
New Framework Automates Neural Network Verification from Neuron-Level Design to Tensor-Level Code
Neuton bridges a long-standing gap in DNN certification by automatically converting abstract interpreter specifications into efficient executable implementations, allowing researchers to deploy new verification methods without deep tensor programming expertise.
Creating new abstract interpretation-based certifiers for deep neural networks remains a bottleneck in the field: researchers think about algorithms at the neuron level, but turning those designs into working code requires translating them to tensor-level operations—a technically demanding step that has kept many promising ideas from reaching practical deployment.
The Gap Between Theory and Implementation#
Existing certification libraries such as auto_LiRPA, IVAN, and ERAN provide built-in support for a fixed set of certifiers, but extending them demands both formal methods knowledge and expertise in tensor programming. Domain-specific languages like ConstraintFlow allow researchers to express certifiers at an intuitive neuron level, yet they cannot execute those specifications on real networks. This disconnect means novel certifier designs often remain on paper rather than becoming tools that practitioners can test and use.
How Neuton Works#
Neuton closes this gap by automatically transforming neuron-level certifier logic into executable tensor code. The framework makes three key innovations:
- Shape inference and implicit operations: A stack-based intermediate representation analyzes the specification and automatically infers necessary tensor operations—broadcasts, dimension expansions, reductions—that aren't always explicit in neuron-level descriptions.
- Tensor optimization: Domain-specific rewrite rules detect and replace common tensor operation sequences with faster equivalents.
- Sparse tensor format: A new format called gBCSR uses variable-sized, layer-aligned blocks over a non-zero default value, designed specifically for the sparsity patterns found in DNN certifier computations.
The team formally proved that the translation preserves neuron-level semantics, ensuring correctness through the compilation process.
Evaluation and Impact#
Neuton was tested on 8 different certifiers across 32 DNN benchmarks. The framework successfully compiled four existing certifiers and, notably, produced the first executable implementations of four others—including two that had been specified previously but never actually run, plus two entirely new certifier designs. This capability exposed precision-runtime trade-offs that weren't visible before; for instance, SkipPoly achieves the same precision as DeepPoly on all 32 test networks while running as fast or faster on half of them. Performance on existing certifiers matches hand-optimized libraries, suggesting the approach is both sound and practical.

