A robot or drone that cannot afford a round trip to the cloud has to compute its own actions on a small local processor. It also has to share that processor with other jobs, so the compute actually available in each control step changes from step to step. When a step's budget runs out before the policy network finishes, current systems either miss the deadline or fall back to a cruder answer. They choose that answer from a handful of early-exit points attached to a fixed network. This note proposes something different: evolve the network's wiring together with the order in which its units are computed. The goal is a network whose output is a usable action no matter where computation is cut off. Units that were not reached in the current step reuse their values from the previous step, which is often a good guess in smooth control.
The two-sentence version is this. We use topology-evolving neuroevolution, meaning evolutionary search that grows a network's wiring and weights together starting from a minimal graph. Its fitness is the task reward earned when every control step is interrupted at a randomly drawn compute budget. The claim is that evolution will discover sparse graphs whose partial evaluations degrade gracefully. These should beat networks sized for the worst-case budget, and fixed networks with early-exit heads, whenever the budget distribution is wide or heavy-tailed.
Core Claim
The edge-latency literature treats deadlines as a problem to be solved around a fixed network. RTInfer schedules pruned and early-exit variants of pretrained models on a Jetson Xavier NX. It drives deadline misses to zero, but only by picking among variants swept offline from monolithic backbones. Empowering Adaptive Early-Exit Inference with Latency Awareness tunes exit thresholds on fixed backbones to meet an average latency target. It cannot guarantee a per-sample hard deadline and does not choose where exits go. Direct Training Needs Regularisation makes a fixed spiking network produce decisive output early through a loss penalty, but the architecture stays given. These three papers motivate the proposal: they show that anytime behaviour is valuable, and that the structure of the network is the one thing none of them optimize.
On the neuroevolution side, CLAN runs NEAT (NeuroEvolution of Augmenting Topologies) across Raspberry Pi clusters with under 1 MB of memory. TensorNEAT runs NEAT on GPUs by padding graphs into fixed-size tensors. Both select purely on reward, so a network that takes fifty times longer is judged the same as a fast one with an equal score. These papers supply the method we build on.
What is new here is that the unit of evaluation becomes the interrupted forward pass. Each genome carries three things: its graph, its weights, and a priority order over hidden and output nodes consistent with the graph's dependencies. At control step $t$ a budget $b_t$ is drawn, counted in edge evaluations and calibrated to wall-clock time on target hardware. Nodes are computed in priority order until the budget is spent. Any node not reached keeps its activation from step $t-1$, and the action is read from the output nodes as they stand. Fitness is
$$F(g) = \mathbb{E}_{b_{1:T} \sim \mathcal{B}} \left[ \sum_{t=1}^{T} r_t \right],$$
where $g$ is the genome, $\mathcal{B}$ is the per-step budget distribution, $r_t$ is the environment reward at step $t$, and $T$ is episode length. Deadline misses are zero by construction, because an action always exists. The open question is how much reward survives interruption, and whether evolution can find structure that makes interruption cheap.
Research Program
The first piece is implementation, and it fits TensorNEAT's representation with little change. TensorNEAT already evaluates feedforward graphs in topologically sorted order. Budgeted evaluation becomes a prefix mask over the sorted node list, applied inside the vectorized map over the population. Carrying stale activations is one extra state tensor per individual. The priority order is an evolved key per node gene, sorted subject to dependency constraints. We add a mutation that perturbs the keys and inherit them through NEAT's innovation-number alignment during crossover. We use the Brax physics engine on GPU so that populations of thousands can be scored under many budget draws. This matters because $F$ is a noisy expectation.
The second piece is calibrating budgets to real hardware. We follow the lesson of EvoLP that static lookup tables mispredict edge latency. Accordingly, we measure the wall-clock cost per edge and per node of sparse graph evaluation on a Raspberry Pi 4 CPU and a Jetson-class board. From those measurements we fit a per-hardware cost model. We then build $\mathcal{B}$ from measured contention traces: the policy runs alongside a co-scheduled vision job and we record how much time is left per control period. We also build synthetic families that vary the mean and tail weight of the budget independently.
The third piece is analysis. For every evolved champion we record its anytime profile, meaning return as a function of a fixed budget. We also record how its priority order relates to its graph. Specifically, we test whether evolution learns to compute a short direct input-to-output path first, followed by corrective hidden units. That would be an evolved analogue of a residual early exit. The file's gap analysis notes that the DFaaS study treated NEAT as a black box and never inspected the evolved graphs (Comparing Actor-Critic and Neuroevolution Approaches). We commit to the structural analysis that study left out.
Baselines
The naive reference point is a standard TensorNEAT policy evolved on unconstrained reward. At deployment it is interrupted under the same budgets and applies the same stale-activation fallback. The comparison is fair because both methods get the same population size, number of generations, and environment steps. If our method cannot beat this, the anytime fitness is not buying anything.
The strongest structural competitor is worst-case-sized NEAT. This is NEAT with a hard cap on edge count set so that the full network always finishes within a chosen low quantile of $\mathcal{B}$, swept over the 1st, 5th and 10th percentiles. It is the engineering answer a real-time practitioner would reach for. It is also the right comparison for the minimalism argument: Spiking Neural Networks as a Controller for Emergent Swarm Agents found that evolution gets useful behaviour from controllers of 6 to 13 neurons, so a tiny always-finishing network may be enough. It receives the same compute and hyperparameter search as our method. Beating it means higher mean return under $\mathcal{B}$ at an equal hard-deadline guarantee.
The strongest gradient-based competitor is a PPO-trained MLP with an output head after each hidden layer. At each step it uses the deepest head the budget can reach, and all heads are trained jointly on the policy loss. This is the natural control counterpart of the early-exit designs in RTInfer and the iPPP paper. We use the per-step "deepest reachable head" rule rather than iPPP thresholds, because iPPP targets average latency and we need hard per-step deadlines. It gets a matched tuning budget measured in environment steps. It is not held to matched wall-clock time, since PPO is expected to be more sample-efficient. We found no reported result on Lacuna for any NEAT or PPO controller evaluated under per-step interrupted budgets. The closest anchor is Brain topology improved spiking neural network. With no interruption, its evolutionarily tuned sparse spiking network scores 2,468.18 on MuJoCo Half-Cheetah-v2, against 1,601.05 for an MLP. That comes from a different simulator and has no deadline, so we treat it only as a sanity scale, not as a target.
Two ablations isolate the key ingredients. The first keeps the anytime fitness but fixes the topology to a dense MLP of matched edge count and evolves weights and priorities only. This tests whether evolving the wiring matters or whether the anytime objective alone does the work. The second removes stale-activation carryover and resets unreached nodes to zero. This tests whether reusing temporal state is essential, which is the property the file flags as missing from feedforward early-halting approaches.
Why not just…?
Why not just evolve a network small enough to always finish? This is the real threat. If the budget distribution is narrow, a worst-case-sized network loses nothing, and we expect our method to tie it. The claim is conditional: gains should appear only when the gap between a low budget quantile and the median budget is large. The experiment varies tail weight at a fixed mean. The claim fails if worst-case NEAT matches our method even under heavy tails.
Why not just use PPO with early-exit heads? The FaaS study found PPO far more stable than NEAT, with under 4% rejections against NEAT's 30–40% (Comparing Actor-Critic and Neuroevolution Approaches). A reviewer can therefore fairly expect PPO to win. The difference is granularity. Exit heads offer a few depths, while an evolved priority order offers an exit after every node. In addition, backward passes limit on-device retraining, which CLAN highlights with its memory numbers. We run this baseline at full strength. If it matches our method on the anytime profile, we will report that evolution's contribution is limited to the memory footprint.
Why not just hold the last action when the deadline is missed? In smooth locomotion, holding the previous action may be nearly free, which would make every scheme look similar. Stale-activation reuse is a generalization of action holding. The naive baseline includes holding, so this effect is measured directly. We also include tasks with abrupt events, such as LunarLander's landing phase, where holding the last action should be costly.
Proposed Experiments
The main experiments use Brax Hopper, HalfCheetah and Ant through TensorNEAT, plus CartPole and LunarLander, the tasks CLAN used. Each is evaluated under three budget families: measured contention traces from the Pi and the Jetson-class board, a synthetic narrow family, and a synthetic heavy-tailed family, all at matched mean budget. The metrics are mean return under $\mathcal{B}$, the full return-versus-budget anytime profile, the edge and node counts of champions, and on-device wall-clock per step. That last measurement confirms that zero deadline misses holds on the actual hardware and not just in the cost model. We use at least ten seeds per condition, because the swarm study reported seed sensitivity.
Three checks decide the question. First, under heavy-tailed budgets our method must beat worst-case-sized NEAT on mean return. It must also stay within noise of it under the narrow family, which confirms the effect is caused by budget spread. Second, the fixed-topology ablation must lose to the full method. This would show that evolved wiring, not just the objective, produces graceful degradation. Third, the multi-exit PPO baseline's anytime profile must lie below ours at intermediate budgets. If only the first check passes, the contribution narrows to a useful sizing result for real-time neuroevolution. If none passes, the conclusion is that interruptibility is not worth evolving for at these scales.
References
- RTInfer: Real-Time Inference of Multiple DNNs on Edge GPUs
- Empowering Adaptive Early-Exit Inference with Latency Awareness
- Direct Training Needs Regularisation: Anytime Optimal Inference Spiking Neural Network
- CLAN: Continuous Learning using Asynchronous Neuroevolution on Commodity Edge Devices
- TensorNEAT: A GPU-accelerated Library for NeuroEvolution of Augmenting Topologies
- EvoLP: Self-Evolving Latency Predictor for Model Compression in Real-Time Edge Systems
- Comparing Actor-Critic and Neuroevolution Approaches for Traffic Offloading in FaaS-powered Edge Systems
- Spiking Neural Networks as a Controller for Emergent Swarm Agents
- Brain topology improved spiking neural network for efficient reinforcement learning of continuous control