TL;DR
SpikeRSI brings recursive self-improvement (RSI) to Spiking Neural Network (SNN) design: an LLM-based agent doesn't just design better spiking models, it also improves how it designs them over time. Instead of relying on blind evolutionary mutations, the agent inspects trained models at the level of individual spikes to diagnose where accuracy is lost or compute is wasted, while refining its own screening and design rules as the search unfolds. Under a fixed budget of 100 trained candidates, SpikeRSI outperforms three LLM-driven program search baselines across four datasets—boosting accuracy by up to 19.7 points under a hard compute cap, or slashing synaptic operations to 6%–13% of the original model under a soft trade-off.
What Problem Does This Paper Address?
Spiking neural networks (SNNs) communicate using sparse, event-driven spikes rather than continuous activations, making them a natural fit for low-power neuromorphic hardware. Designing them, however, is a balancing act. You have to weigh accuracy against computational cost, measured in synaptic operations (SynOps)—roughly, the number of nonzero spikes multiplied by nonzero weights across all layers and time steps.
Because an SNN's architecture, neuron dynamics (like firing thresholds), surrogate gradients, and temporal processing are tightly coupled, tweaking one part shifts both accuracy and SynOps in ways a single validation score can't explain. Existing automated methods fall short here:
- Neural Architecture Search (NAS) explores a rigid, predefined space of cells and operations.
- LLM-driven program search (like FunSearch, EoH, and OpenArchEvo) removes the predefined space by having an LLM edit model code, but still uses the LLM as a blind variation operator inside a fixed evolutionary loop. A search procedure written in advance can't adapt its screening or design rules to new datasets or resource budgets.
Methods
SpikeRSI treats SNN design as a two-level optimization run by an LLM agent (using GPT-6.1 Sol in the Codex CLI): an inner loop that improves the SNN program $M_t$, and an outer loop that refines the search procedure $\Pi_t$ itself.
- Sighted Search (Inner Loop): Instead of blind mutations, the agent diagnoses a parent model at the spike level. It inspects per-layer SynOps, input spike rates, time steps, training curves, and weights to pinpoint bottlenecks. From this, it forms falsifiable hypotheses—ranging from threshold tweaks to full architectural redesigns—and screens major redesigns with short training runs before committing to full evaluation.
- Recursive Self-Improvement (Outer Loop): The procedure $\Pi_t$ governs how the agent analyzes parents, screens redesigns, and allocates its budget. When full training contradicts a short screening run (misranking a good redesign), the agent updates $\Pi_t$—for example, by lengthening screening epochs or saving checkpoints—so later iterations search more effectively.
- Resource-Aware Objectives: SpikeRSI optimizes a MnasNet-style score $R(M) = A(M)(S(M)/C)^w$, where $A(M)$ is accuracy and $S(M)$ is SynOps relative to a reference $C$. Under a hard constraint, $S(M)$ is capped at $C$; under a soft constraint, $w = -0.07$ trades accuracy against SynOps.
Datasets
The authors evaluate SpikeRSI on four classification benchmarks (all using $T=4$ time steps):
- DVS128 Gesture: Event-camera recordings of 11 gestures.
- CIFAR10-DVS: Event-camera recordings of CIFAR-10 images.
- CIFAR-10 and CIFAR-100: Static image datasets fed to the network via direct coding (repeating the image at each time step).
No new benchmarks are introduced.
Key Insights and Ideas
- Cheaper models serve as stepping stones: Under the soft constraint, the agent frequently builds on the cheapest model on the Pareto front rather than the highest-scoring one. Cutting SynOps first—even at a temporary cost to accuracy—creates headroom for later steps to recover accuracy.
- Procedure gains become model gains: Refining $\Pi_t$ directly drives better designs. On CIFAR-100, when a 16-epoch screening run misranked a redesign that actually gained +2.8% accuracy in full training, the agent lengthened screening to 30 and then 40 epochs. Those longer runs selected the winning steps that led to the final model. An ablation on CIFAR10-DVS that resets $\Pi_t$ to $\Pi_0$ before each iteration scores worse, confirming that RSI adds real value over sighted search alone.
- Designing complete SNNs, not just layer stacks: Spike-level reasoning leads to creative fixes outside standard NAS—such as switching to graded spikes in a single pass for static images, stacking consecutive event frames into slices, or using color-grouped $2\times 2$ filters.
Key Results
Starting from a spiking LeNet (~$10^7$ SynOps) with a 100-candidate budget, SpikeRSI outperforms EoH, FunSearch, and OpenArchEvo on all four datasets:
- Hard constraint: SpikeRSI achieves the highest test accuracy on every dataset, improving over the initial model by 6.5 to 19.7 points and beating the strongest baseline by 2.3 to 6.8 points (e.g., 67.12% on CIFAR-100 vs. 60.31% for FunSearch).
- Soft constraint: SpikeRSI ranks first in score $R$ on all four datasets, cutting SynOps to 6%–13% of the initial model while keeping accuracy near or above it (e.g., +10.9 points on CIFAR-100 at 10% SynOps).
- Generality: On CIFAR10-DVS, varying the trade-off exponent $w$ smoothly shifts designs from accuracy-focused to SynOps-saving. Starting from larger 6M–11M parameter models (SEW-ResNet-18, MS-ResNet-18, SpikingResformer, Meta-SpikeFormer), SpikeRSI improves accuracy by 4.3 to 12.1 points under the hard constraint.
Limitations and Future Work
The paper does not include a formal limitations section, though a few practical boundaries are clear from the setup: self-improvement occurs within a single search starting from a human-provided initial procedure $\Pi_0$ (rather than transferring across separate runs), and each candidate still requires full training from scratch for final evaluation. The authors view SpikeRSI as a step toward autonomous research loops that tailor SNNs to specific deployments while continuously improving their own design procedures.
Summary updated