NEXUS: Bit-Exact ANN-to-SNN Equivalence via Neuromorphic Gate Circuits with Surrogate-Free Training
Zhengzheng Tang
TL;DR
NEXUS presents a radical shift in neuromorphic computing by constructing all IEEE-754 FP32 arithmetic from Integrate-and-Fire neuron gates and mapping FP32 values to 32 parallel spikes via Spatial Bit Encoding. This yields bit-exact ANN-to-SNN equivalence, allowing surrogate-free training since the forward pass is mathematically identical to the ANN. Empirical results across large language models and transformer blocks show identical task accuracy to ANN baselines with mean ULP errors around 6 and minimal 0-ULP occurrences, while achieving 27–168,000× energy reductions on Loihi 2 hardware. The single-timestep, leakage-immune encoding and robustness to realistic synaptic noise and threshold variations demonstrate practical viability for deployable, energy-efficient SNNs that do not sacrifice accuracy. Overall, NEXUS enables exact, efficient, and robust neuromorphic computation aligned with conventional floating-point standards.
Abstract
Spiking Neural Networks (SNNs) promise energy-efficient computing through event-driven sparsity, yet all existing approaches sacrifice accuracy by approximating continuous values with discrete spikes. We propose NEXUS, a framework that achieves bit-exact ANN-to-SNN equivalence -- not approximate, but mathematically identical outputs. Our key insight is constructing all arithmetic operations, both linear and nonlinear, from pure IF neuron logic gates that implement IEEE-754 compliant floating-point arithmetic. Through spatial bit encoding (zero encoding error by construction), hierarchical neuromorphic gate circuits (from basic logic gates to complete transformer layers), and surrogate-free STE training (exact identity mapping rather than heuristic approximation), NEXUS produces outputs identical to standard ANNs up to machine precision. Experiments on models up to LLaMA-2 70B demonstrate identical task accuracy (0.00\% degradation) with mean ULP error of only 6.19, while achieving 27-168,000$\times$ energy reduction on neuromorphic hardware. Crucially, spatial bit encoding's single-timestep design renders the framework inherently immune to membrane potential leakage (100\% accuracy across all decay factors $β\in[0.1,1.0]$), while tolerating synaptic noise up to $σ=0.2$ with >98\% gate-level accuracy.
