Error Amplification Limits ANN-to-SNN Conversion in Continuous Control

Zijie Xu, Zihan Huang, Yiting Dong, Kang Chen, Wenxuan Liu, Zhaofei Yu

Introduction

Spiking Neural Networks (SNNs) are widely considered the "holy grail" for low-power edge devices, such as drones and wearables, because they process information using discrete, sparse spikes—much like the human brain. However, training SNNs from scratch is notoriously difficult and computationally expensive. A common and highly effective workaround is ANN-to-SNN conversion, which involves taking a well-trained Artificial Neural Network (ANN) and swapping its continuous activation functions (like ReLU) for spiking neurons.

While this conversion technique works beautifully for image classification and discrete action games (e.g., Atari), it historically falls apart in continuous control tasks, such as robotic locomotion. In Reinforcement Learning (RL), where training through environment interaction is expensive and potentially unsafe, a reliable conversion method is highly desirable. This paper identifies the root cause of this failure and introduces a lightweight, plug-and-play solution to bridge the gap between ANN and SNN performance in continuous control.

The Root Cause: Error Amplification and State Drift

In continuous control tasks, an RL agent must output precise, high-dimensional vectors to navigate its environment. The authors discovered that when an ANN is converted to an SNN, the resulting approximation errors are not merely random noise; they are temporally correlated.

If an SNN overestimates an action at step one, it is highly likely to overestimate it again at step two. By analyzing the cosine similarity of errors across steps, the researchers found a critical divergence: while original ANN policies are naturally error-correcting (exhibiting negative correlation), standard SNN conversions are error-accumulating (exhibiting positive correlation).

This "error amplification" causes the robot’s trajectory to drift further and further away from the ANN’s optimal path. Ultimately, this noise pushes the agent into unfamiliar states that the original ANN never encountered during training, creating a catastrophic feedback loop known as state distribution shift.

The Solution: Cross-Step Residual Potential Initialization (CRPI)

To combat this snowballing error, the authors propose Cross-Step Residual Potential Initialization (CRPI).

In a standard conversion pipeline, an SNN is simulated for $T$ time steps to produce an action. Afterward, all of its internal "membrane potentials" (the neurons' internal voltages) are reset to zero before the next observation arrives. The authors argue that this reset is a "lossy" operation that throws away valuable information about the residual error from the previous step.

CRPI changes the rules by treating the membrane potential as a form of short-term memory:

  1. Residual Carry-over: Instead of resetting to zero or a fixed baseline, CRPI calculates the leftover membrane potential from the previous decision step.
  2. Initialization: It uses this residual voltage to initialize the neurons for the next decision step.
  3. Error Suppression: Mathematically, this acts as a first-order correction. By carrying over the leftover voltage, the SNN naturally compensates for the approximation error it made previously, maintaining rate-coding accuracy across long horizons.

Crucially, CRPI is gradient-free and requires no additional training. It is an inference-time fix that seamlessly integrates with advanced neuron models, such as Signed Neuron Models (SNM) and Multi-Threshold (MT) neurons.

Experimental Validation

The researchers evaluated CRPI across two major reinforcement learning benchmarks:

  • MuJoCo (Vector-based): Standard robotics tasks including Ant-v4, HalfCheetah-v4, Hopper-v4, and Walker2d-v4.
  • DeepMind Control (DMC) Suite (Vision-based): Challenging tasks requiring raw pixel processing, such as Cartpole Swingup, Finger Spin, Cheetah Run, and Quadruped Walk.

Key Results

  • Performance Recovery: CRPI allowed the SNN to recover nearly 100% of the original ANN's performance in many scenarios. For instance, on the Hopper-v4 task using the DDPG algorithm, the baseline SNN achieved only ~68% of the ANN's return. Implementing CRPI boosted this to ~86%, and even exceeded 100% recovery in certain TD3 and SAC configurations.
  • Outperforming Direct Training: On the complex visual DMC tasks, converted SNNs equipped with CRPI outperformed state-of-the-art SNNs that were trained directly using complex "spiking world models."
  • Massive Energy Savings: The SNNs achieved these robust results while remaining significantly more efficient. An MT-based SNN (with $T=2$) consumed roughly 270x less energy (2.09 µJ vs. 566.84 µJ) per inference compared to the baseline ANN.
  • Negligible Overhead: Implementing the CRPI mechanism adds less than 1% computational overhead compared to a vanilla SNN.

Limitations and Future Directions

While CRPI is highly effective, it currently relies on a correlation hyperparameter ($\alpha$). Although the authors identified a range that generally works well, optimizing it for different environments currently requires a coarse grid search. Future work will focus on developing adaptive tuning schemes for $\alpha$ to make the system robust across varying dynamical systems without manual intervention.

Furthermore, the authors suggest that error amplification is not uniquely limited to RL. This phenomenon might also be a critical bottleneck in other sequential tasks, indicating that CRPI could potentially benefit the conversion of Large Language Models (LLMs) or Diffusion Models into energy-efficient SNNs.

Summary updated

BibTeX
@inproceedings{xu2026error,
  author = {Zijie Xu and Zihan Huang and Yiting Dong and Kang Chen and Wenxuan Liu and Zhaofei Yu},
  title = {{Error Amplification Limits ANN-to-SNN Conversion in Continuous Control}},
  booktitle = {International Conference on Machine Learning},
  year = {2026},
  url = {https://openreview.net/forum?id=goVeG3ui1Y},
}
Figure