Battery-free sensors run on harvested energy from vibration, light or radio. They compute in bursts and lose power without warning. A neural network deployed on such a device must be cut into pieces that each fit inside one burst of energy, and anything not finished must be saved to non-volatile memory before the lights go out. If the pieces are too large, or saving the intermediate state costs too much, the device can fall into a loop: it wakes, restores, computes a little, saves, dies, and repeats forever without ever producing an answer. Whether this happens depends on the network's shape. The size of the largest piece that cannot be split, and the amount of data alive at each cut point, are both set by the architecture. Yet today's architecture search for these devices checks that the network works on a handful of recorded power traces. Nobody proves that it will finish.
We propose to make "every inference eventually completes" a hard constraint inside hardware-aware neural architecture search (NAS, the automated search over network topologies for a target device). The constraint is stated relative to a fairness assumption about the environment. Fairness here is the formal-verification notion that rules out executions where the environment starves the system forever; the specific form we use says energy bursts of a minimum size keep arriving within a bounded window. For each candidate architecture we compute a certificate: the smallest guaranteed burst under which the device's runtime always completes an inference, and within how many power cycles. Search then keeps only certified architectures. The work stands or falls on cost. The certificate must be cheap enough to compute for every candidate, on the order of a zero-cost accuracy proxy, or it will never be used inside a search loop.
Core Claim
A liveness certificate under finitary fairness can be computed per architecture in milliseconds by solving a small two-player game. In that game the environment chooses energy arrivals, subject to the fairness assumption, and the runtime chooses where to cut and when to checkpoint. Using this certificate as a hard filter in NAS gives architectures that never livelock under any fair energy schedule, at a small accuracy cost relative to unconstrained search and at negligible added search cost.
The certificate also catches failures that the obvious static check misses. That check compares the largest chunk's energy against the minimum burst. It misses cases that arise from two sources: the extra tensors that skip connections keep alive across cut points, and adaptive runtimes that repeatedly try to merge chunks.
Where This Sits
The application regime comes from NExUME. NExUME splits inference into "QuantaTasks", the smallest unit guaranteed to finish before energy runs out, and fuses them when surplus energy is available. It picks base topologies with an energy-aware search called DynNAS. It reports 6% to 22% accuracy gains over the Stateful and DynBal runtimes on MSP430, Arduino Nano and ESP32. However, forward progress is validated only by simulating recorded traces. Its "checkpoint paradox", where saving state drains the energy meant for computing, is exactly the livelock we want to rule out by construction rather than observe after the fact. NExUME motivates this proposal; we reuse its runtime structure and its datasets.
The formal side supplies the method. Finitary fairness, as used in Fair Termination for Parameterized Probabilistic Concurrent Systems, bounds how long an enabled action can be delayed by a fixed but unknown $k$. That paper reduces fair termination to plain termination by adding "alarm clock" counters to the state. We apply the same reduction to energy arrivals, which keeps our game finite.
This choice is forced by negative results elsewhere in the file. Fair termination for thread pools is Ackermann-complete (Context-Bounded Verification of Thread Pools). Standard fairness pushes chase termination to $\Pi^1_1$ (Restricted Chase Termination: You Want More than Fairness). A certificate that must be computed for fifteen thousand architectures cannot rest on unbounded fairness, so we use the bounded form.
The fixpoint machinery follows the symbolic fair-game approach of A Flexible Toolchain for Symbolic Rabin Games under Fair and Stochastic Uncertainties, which swaps the one-step predecessor operator to handle fair adversaries. For the strong-fairness variant we use the near-linear Streett algorithms of Near-Linear Time Algorithms for Streett Objectives in Graphs and MDPs.
The constraint-handling side is set by two methods. ConNAS steers architecture gradients toward feasibility for non-differentiable static limits. DUCCIO handles several memory and latency limits in one run with clipped penalties. Both enforce static thresholds on single steady-state inferences. Neither can express a temporal property like completion under an adversarial power schedule. That is the one thing we add.
We deliberately set aside the tempting link between FairNAS's "evaluation fairness" and scheduler fairness. FairNAS already activates every choice block exactly once per step, which is stronger than any finitary guarantee. Formalizing supernet sampling as a fair scheduler would restate what FairNAS achieves rather than improve it.
The Certificate
We model one inference as a game played on states $(c, q, t)$:
- $c$ is the current cut frontier in the network's directed acyclic graph, meaning the set of tensors computed and still needed.
- $q$ is the discretized capacitor charge.
- $t$ is the fairness counter.
At each step the runtime chooses one of three actions: compute the next operation, checkpoint the frontier, or fuse ahead. Each action consumes energy drawn from per-operation measurements, and checkpointing costs in proportion to the bytes of $c$. The environment chooses the harvested energy each cycle, subject to the finitary fairness assumption that within every $k$ cycles at least one burst delivers at least $E$. A power failure resets $q$ and rolls $c$ back to the last checkpoint.
The architecture $a$ is live at $(E, k)$ if the runtime has a strategy that reaches the output from every state consistent with the assumption. We define the certificate
$$E^\star(a, k) = \min \{ E : \text{inference of } a \text{ completes under every energy schedule with a burst} \ge E \text{ in each window of } k \text{ cycles} \},$$
computed by binary search over $E$, with one attractor fixpoint per query. Checking a fixed runtime policy, such as NExUME's voltage-triggered fusion, is the one-player special case: we replace the runtime's choices with the policy and ask whether the policy reaches the output against all fair schedules. The fixpoint also returns a worst-case bound on power cycles to completion. We report this bound as the response-time half of the certificate.
Cost is controlled by composition. NAS-Bench-201 networks repeat one 4-node cell, so its cut frontiers can be enumerated. The game is solved once per cell type and composed along the fixed skeleton, with the boundary tensor as interface. This composition is sound because the only state crossing a cell boundary is that tensor and the charge level. Our target is that computing $E^\star$ takes no longer than computing the synflow or jacob_cov proxies of Zero-Cost Proxies for Lightweight NAS for the same architecture. We will measure both on the same machine and report the ratio.
Research Program
We will build three things.
The first is an energy table. For each NAS-Bench-201 operation at each resolution, and for the search space of small sensor networks described below, we measure compute energy and non-volatile-memory write cost on MSP430 and ESP32 boards. This follows the lookup-table approach of MoGA. Because additive latency tables are known to drift from compiled reality (HW-NAS-Bench), we validate the table against whole-network measurements on a sample of deployed architectures. The certificate inherits any table error, and we report that error explicitly.
The second is the game solver with compositional caching.
The third is a search loop that treats "$E^\star(a,k) \le E_{\text{env}}$" as a hard filter, where $E_{\text{env}}$ is the minimum burst the target environment can guarantee. We plug the filter into regularized evolution and, separately, into zero-cost-proxy-ranked evolution in the style of HaeNAS. Because the filter is a black box over architectures, it can also serve as the feasibility oracle for ConNAS's gradient steering.
The analysis question is scientific as well as practical: how often do real architectures sit in the gap between "the largest chunk fits" and "provably completes", and which structural features put them there? We expect skip connections that widen cut frontiers, and pooling-then-concat patterns, to matter. The alternative is that the gap is empty in practice.
Baselines
The naive reference is unconstrained search followed by deployment with NExUME's runtime. We take the NAS-Bench-201 best architecture under an equivalent memory limit, and for the sensor tasks the most accurate architecture from DUCCIO-style search. We then measure how many inference requests complete under adversarial-but-fair energy schedules. This tells us whether the problem exists at all. If these architectures almost never livelock, the proposal is moot and we will say so.
The strongest existing method is NExUME's own pipeline, DynNAS plus DynInfer, run on its datasets and boards with its recorded traces. On accuracy, the cited paper reports a 6% to 22% gain over Stateful and DynBal. We found no reported result on Lacuna for NExUME's inference completion rate under adversarial or worst-case fair schedules. So our comparison on that axis is new measurement, not a comparison against a published number. We give NExUME the same energy table, the same search budget in GPU hours, and the same trace set for fitting. Beating it means two things together: a completion rate of one under every fair schedule we construct, where NExUME has any nonzero failure rate, and accuracy within a pre-registered margin of one percentage point of NExUME's on the same task.
The strongest constraint-handling competitor is ConNAS given a static proxy constraint: per-inference energy plus a maximum chunk energy below $E_{\text{env}}$. Its reported 100% constraint satisfaction and 0.14% to 0.65% gap to the feasible optimum on NATS-Bench make it the natural bar. It gets the same energy table and search space, and its tuning budget matches ours. We beat it if architectures satisfying its static constraint still livelock under our game while ours do not, at comparable accuracy.
The ablation that isolates the key ingredient is the static inequality alone, "largest indivisible chunk energy plus its checkpoint cost is at most $E$", used as the filter. Everything else is held fixed. Any difference between this ablation and the full certificate is the value added by the game formulation.
Why not just…?
Why not just check that the largest chunk plus its checkpoint fits in the minimum burst? This is the real threat. For a plain chain of layers under a runtime that never fuses, the inequality is close to exact, and the game adds little. The proposal's value depends on it failing in two cases: DAG cells where live-tensor frontiers make checkpoint costs depend on cut placement, and fusion policies that can gamble on surplus energy and lose repeatedly.
We will settle this by computing both the inequality and $E^\star$ for all 15,625 NAS-Bench-201 cells and every architecture in the sensor search space, and reporting how often they disagree. If they disagree on under 1% of architectures in both spaces, we will present the inequality as the practical constraint and the game as its proof of soundness. The contribution then becomes a validated cheap constraint rather than a model checker in the loop.
Why not just test on many recorded power traces, as NExUME does? Recorded traces sample typical harvesting conditions, not the worst schedules that still satisfy the fairness assumption. A livelock needs a specific pattern of arrivals just below what a fusion attempt requires. We will extract the losing strategies from the game solver, replay them as synthetic traces in NExUME's simulator, and report how many architectures that passed on recorded traces fail on these.
Why not just add a watchdog that drops an inference after too many power cycles? A timeout turns livelock into silent dropped inferences. For a condition monitor, a dropped reading may be as bad as a hang. We will report drop rates under the watchdog alongside completion rates of certified architectures. The two approaches are complementary: our response-time bound tells the watchdog what timeout to set.
Why not just add an energy penalty to the loss? Soft penalties produce architectures just past the limit. ConNAS reports that penalty methods such as FBNet and TAS frequently output invalid models, and DUCCIO documents the tuning runs needed to pick the penalty weight. Liveness is a yes-or-no property that a scalar penalty cannot express. We include DUCCIO's clipped penalty on per-inference energy as a secondary baseline.
Proposed Experiments
We use two regimes. The first is structural and exhaustive: NAS-Bench-201, with accuracies from NAS-Bench-201 (best reported 94.37% on CIFAR-10) and our measured per-operation energies. These networks are too large for an MSP430, so this regime uses simulated harvesting and serves to study certificate cost and the frequency of disagreement between the inequality and the game across a complete space. The second is deployment on MSP430 and ESP32 with NExUME's MHEALTH, PAMAP2 and machine-status datasets, plus ConNAS's induction-motor task under its 64kB limit, searched in a small DUCCIO-style convolutional space.
The metrics fall into four groups:
- completion rate under recorded traces and under solver-generated adversarial fair schedules;
- worst-case power cycles to completion, predicted versus observed;
- task accuracy;
- certificate time per architecture relative to zero-cost proxy time, and total search GPU hours. HaeNAS's reported 160 GPU hours for ImageNet search is an order-of-magnitude reference, not a like-for-like comparison.
We sweep $k$ and $E_{\text{env}}$ to trace the accuracy cost of stronger guarantees.
Three checks are decisive:
- Certified architectures must show zero livelocks on hardware under every adversarial schedule we replay. A single failure indicates a modeling error, most likely in the energy table, and we will trace it.
- The disagreement rate between the inequality and the game determines whether the game belongs in the loop or only in the soundness argument.
- Certificate cost must stay within a small constant factor of a zero-cost proxy's cost. Otherwise the constraint is impractical for search at scale, regardless of how correct it is.
References
- NExUME: Adaptive Training and Inference for DNNs under Intermittent Power Environments
- Fair Termination for Parameterized Probabilistic Concurrent Systems
- Context-bounded verification of thread pools
- Restricted Chase Termination: You Want More than Fairness
- A Flexible Toolchain for Symbolic Rabin Games under Fair and Stochastic Uncertainties
- Near-Linear Time Algorithms for Streett Objectives in Graphs and MDPs
- Constraint-guided Hardware-aware NAS through Gradient Modification
- Enhancing Neural Architecture Search With Multiple Hardware Constraints for Deep Learning Model Deployment on Tiny IoT Devices
- FairNAS: Rethinking Evaluation Fairness of Weight Sharing Neural Architecture Search
- Zero-Cost Proxies for Lightweight NAS
- MoGA: Searching Beyond Mobilenetv3
- HW-NAS-Bench: Hardware-Aware Neural Architecture Search Benchmark
- HaeNAS: Hardware-Aware Efficient Neural Architecture Search via Zero-Cost Proxy
- NAS-Bench-201: Extending the Scope of Reproducible Neural Architecture Search