Measuring Before Searching: Chip-Calibrated Cost Models for Spiking Architecture Search

Spiking neural networks (SNNs) are networks whose neurons communicate with discrete binary events, or "spikes." They are meant to run on neuromorphic chips such as Intel Loihi, which spend energy mainly when spikes occur. Many groups now use automated architecture search, where an algorithm rather than a human picks the network's layers and connections, to design SNNs. Almost all of these searches score candidate networks with a software stand-in for energy: total spike count, or synaptic operations multiplied by a fixed per-operation cost. Nobody has checked whether these stand-ins put candidate networks in the same order as energy and latency measured on a real chip. There are concrete reasons to doubt that they do. On real chips, routing spike packets between cores, static leakage that accumulates over every timestep, and splitting layers that exceed a core's fan-in limit can outweigh the arithmetic savings. When a network trained in software is moved onto the chip, its accuracy can collapse.

This note proposes to measure that ranking question directly on Loihi. It then builds a cheap cost model from the chip compiler's own output, calibrated against a few hundred on-chip measurements, and uses that model inside the search. The claim that would be new is not "put the chip in the loop." It is narrower and testable: features taken from how the compiler partitions and routes a candidate network predict measured on-chip energy, latency, and accuracy loss much better than spike counts or analytical formulas. Search driven by those features should find networks that are better on the chip, even when they look worse on software proxies.

Core Claim and Positioning

The closest work is a family of spike-aware search methods that never touch neuromorphic silicon. AutoSNN searches a weight-shared supernet with an evolutionary loop. Its fitness multiplies accuracy by a spike-count penalty. The paper itself notes that power in watts depends on the chip and is not captured. SNASNet and MONAS-ESNN score candidates at initialization with a spike-pattern Hamming distance. They also add backward, recurrent connections that let networks run at 3–5 timesteps. MONAS-ESNN equates energy with spike count. SpikeNAS validates on a Jetson GPU. HASNAS/NeuroNAS uses analytical crossbar area, latency, and energy models and explicitly defers physical validation. These papers supply our search spaces and search algorithms. What they leave open is whether their objectives mean anything on a chip.

Three other papers motivate the gap. LaneSNNs reports a convolutional SNN whose intersection-over-union fell from 0.598 in GPU simulation to 0.208 on Loihi. The authors attribute the drop to weight approximation and fan-in/fan-out routing limits. NxTF is a Loihi compiler that greedily partitions fixed, human-designed networks across neurocores and shares axons. It supplies our measurement and feature-extraction toolchain. We move its outputs upstream into the search, which NxTF does not do. Hardware-friendly Neural Network Architecture for Neuromorphic Computing is manual crossbar co-design. It replaces pooling with strided convolutions and fully connected layers with global average pooling (GAP) to bound fan-in. That directly contradicts AutoSNN's finding that GAP and strided downsampling inflate spiking. Neither side measured on a chip. Our study can settle the dispute.

The proposal also borrows a lesson from conventional hardware co-design. PHAZE shows large gains when placement is optimized jointly with the hardware rather than afterward. Our version is the neuromorphic analogue, but with a learned rather than exact cost model, because on-chip runtime depends on input-dependent firing.

Research Program

The program has three stages.

Stage 1: build a measured dataset. We sample about 300 architectures that span the AutoSNN and SNASNet search spaces. Each architecture is described as a set of choices: convolution types, downsampling by max pooling, strided convolution, or average pooling, GAP versus a small fully connected head, forward and backward skip connections, channel width, and timestep count. We train each one with surrogate-gradient training on DVS128 Gesture and N-MNIST. We compile each with NxTF onto Loihi and measure several quantities: dynamic and total energy per sample, latency per sample, on-chip accuracy, and the gap between simulated and on-chip accuracy.

Stage 2: fit a cost model from compiler outputs. From each compiled network we record features that come out of compilation itself. These include the number of neurocores used, how many layers had to be split to respect fan-in or axon limits, and estimated cross-core spike traffic. That traffic estimate is measured spike rates on a calibration batch, weighted by the number of mesh hops between source and destination cores. We also record timesteps times cores, as a proxy for static and peripheral cost, and the fraction of traffic carried by backward connections. We fit a small regression for energy, latency, and accuracy gap:

$$\hat{E}(A) = \sum_k w_k\,\phi_k(A),$$

Here $A$ is a candidate architecture, $\phi_k(A)$ are the compiler-derived features, and $w_k$ are weights fit to the measured energies. We use the same form for latency and for the accuracy gap. A linear model is intentional. If simple compiler features carry the signal, a reviewer can read off which physical effect matters. We would move to a gradient-boosted model only if held-out error demands it.

Stage 3: search with the calibrated model. We run NSGA-II multi-objective search, the method MONAS-ESNN uses, with three objectives: simulated accuracy minus predicted accuracy gap, predicted energy, and predicted latency. We then measure the resulting Pareto front, the set of networks where no objective can improve without another getting worse, on the chip.

Baselines

The naive reference point is a hand-designed network deployed with no search. We use the MobileNet-style SNN that NxTF compiles. On Loihi, NxTF reports 91.48% CIFAR-10 accuracy (8.52% error) and 0.62 mJ per sample on N-MNIST. We redeploy it under our exact measurement protocol so that every number comes from the same harness.

The strongest existing search methods are AutoSNN's spike-count fitness and MONAS-ESNN's accuracy-versus-spike-count NSGA-II. AutoSNN reports 96.53% on DVS128 Gesture with 3.5–4× fewer spikes than hand-crafted models, and 93.15% on CIFAR-10 with 310K spikes. It reports no on-chip energy, and we found no reported result on Lacuna for on-chip energy of any searched SNN. We rerun both methods in our search space, with the same training recipe, the same number of fully trained candidates, and the same search budget. We then deploy their chosen fronts through NxTF.

The analytical competitor is a HASNAS-style cost model, which estimates energy from synaptic operations and memory using fixed per-operation coefficients. It gets the same search algorithm and budget.

The key ablation removes the routing-traffic and layer-splitting features and keeps only spike count and timesteps. This isolates whether compilation-derived information is what helps. A small-budget reference runs the chip directly as the fitness evaluator, for as many evaluations as the chip time spent on Stage 1 buys.

We beat a baseline if two things hold on held-out test data. First, our measured front dominates its measured front in hypervolume, the area of objective space a Pareto front covers. Second, at matched on-chip accuracy, our network uses at least 20% less measured energy per sample. A smaller margin would be within the variance of rerunning search.

Why not just…?

Why not just keep using spike count, since energy on an event-driven chip should scale with spikes? This might be roughly right, and the first experiment tests it. We report Kendall's $\tau$ between spike count and measured energy across the 300 architectures, using the same rank statistic MONAS-ESNN uses for its accuracy proxies. If $\tau$ is above about 0.9 and the selected fronts coincide, spike count is adequate. The paper then reports that negative result and stops claiming a better objective. LaneSNNs' routing-driven collapse and the cost of splitting wide layers are our reasons to expect lower agreement, especially for backward-connection architectures.

Why not just use an analytical hardware model like HASNAS or SpikeNAS? This is the most serious alternative, because it is cheap and needs no chip. Our cost model is itself an analytical model. The difference is that its features come from actual compilation and it is calibrated to measurements. The analytical-model baseline and the feature ablation decide whether that difference matters. If the uncalibrated model ranks equally well, the honest conclusion is that analytical models suffice on Loihi, and the measured dataset becomes the contribution.

Why not just calibrate a human-designed network after conversion? Post-conversion calibration in A Free Lunch From ANN reaches 75.8% ImageNet top-1 with RegNetX-4GF, but at $T=128$. Our timesteps-times-cores feature predicts that running this many steps will be dominated by static cost. We test this by deploying a calibrated converted network alongside the searched ones.

Why not just put the chip in every fitness evaluation? Each evaluation needs a trained network plus compilation and measurement, which limits evaluations to hundreds. The small-budget chip-in-the-loop reference measures what that limit costs.

Proposed Experiments and Decisive Checks

The first check is the ranking study. It compares Kendall's $\tau$ against measured energy and latency for four predictors: spike count, synaptic operations, the analytical model, and the calibrated compiler-feature model. It uses 5-fold held-out evaluation over architectures, separately for DVS128 Gesture and N-MNIST.

The second check is the full search comparison under matched budgets, with on-chip hypervolume as the outcome.

The third check resolves two specific design disputes on silicon. One is GAP versus max pooling versus strided downsampling: we measure energy and accuracy gap for otherwise identical networks, which tests AutoSNN's claim against Gopalakrishnan et al.'s. The other is whether SNASNet-style backward connections keep their timestep advantage once cross-core routing is paid for. We examine this through measured latency as a function of backward-traffic hop distance.

The fourth check transfers the cost model from DVS128 Gesture to N-MNIST without refitting. If accuracy on N-MNIST falls apart, the model has captured dataset firing statistics rather than hardware behavior.

The main risk is chip access and measurement noise. We will report repeated-measurement variance per architecture and treat ranking differences smaller than that variance as ties.