Improved robustness of reinforcement learning policies upon conversion to spiking neuronal network platforms applied to ATARI games

Devdhar Patel, Hananel Hazan, Daniel J. Saunders, Hava T. Siegelmann, Robert Kozma

Abstract

Deep Reinforcement Learning (RL) agents have achieved remarkable success in complex environments, yet they remain notoriously sensitive to input noise and occlusions. This study investigates whether converting pre-trained ReLU-based agents into Spiking Neural Networks (SNNs) can mitigate this brittleness. By utilizing discrete, binary spike events rather than continuous activations, the researchers demonstrate that SNNs can act as natural filters for noise. The results show that converted SNN policies maintain human-level performance on Atari games while exhibiting significantly greater robustness to environmental perturbations compared to their traditional deep learning counterparts.

Introduction

Deep Reinforcement Learning has famously surpassed human performance in domains ranging from Atari games to Go. However, these models are often "brittle." Because they rely on high-precision continuous activations, even minor changes to the input—such as a few pixels of noise or a small occlusion—can cause performance to collapse. This sensitivity presents a major hurdle for deploying RL in real-world robotics or edge computing, where sensors are rarely perfect.

Biological systems, by contrast, are incredibly noisy yet remarkably stable. This paper looks to the brain’s communication method—spikes—to bridge this gap. Spiking Neural Networks (SNNs) use discrete, binary events rather than continuous values. The goal is to determine if the inherent "bottleneck" of a spike can act as a natural filter against noise and whether standard RL policies can be effectively represented in a spiking format.

Methods

Rather than training SNNs from scratch—a task complicated by the non-differentiable nature of spikes—the authors employ a conversion approach:

  1. Training: A standard Deep Q-Network (DQN) is trained using ReLU nonlinearities on the Atari game Breakout.
  2. Weight Transfer: The learned weights are transplanted into an SNN architecture with an identical structure.
  3. Neuron Modeling: The study experiments with several spiking neuron models, including Integrate-and-Fire (IF), Leaky Integrate-and-Fire (LIF), and a Stochastic LIF model that incorporates "escape noise" into the firing probability.
  4. Optimization: To prevent the network from going "silent" due to sparse activity, Particle Swarm Optimization (PSO) is used to find ideal scaling factors for weights in each layer, ensuring the SNN firing rate accurately reflects the original Q-values.
The architecture of the Deep Q-Network (DQN) being converted into a spiking format.

Experimental Setup

The primary testbed for this research is the Arcade Learning Environment (ALE), specifically the game Atari Breakout.

A screenshot of the Atari Breakout environment used for testing.

Agents receive 80x80 pixel frames as input. The authors compared two preprocessing methods: Binary (black and white difference frames) and Grayscale (weighted sums of the last four frames to capture motion direction). To test robustness, the researchers introduced horizontal "occlusion bars" that moved across the screen, obscuring critical game elements like the paddle or bricks.

Key Insights and Results

The Spike as a Filter

The most profound insight is that the binary nature of a spike acts as a "microscopic bottleneck." Because a neuron only fires if its input exceeds a threshold, low-level noise or sub-threshold perturbations are ignored and do not propagate through the network. Furthermore, the authors found that Stochastic LIF neurons created a "smoother" performance landscape, making the network less sensitive to exact weight scaling.

Performance and Robustness

  • Performance Parity: In many scenarios, converted SNNs outperformed the original ReLU networks. For instance, using grayscale inputs, the ReLU network scored 9.32 ± 0.63, while the SNN with LIF neurons achieved 10.05 ± 0.68.
  • Superior Robustness: When subjected to the 3-pixel thick horizontal occlusion bar, the ReLU network’s performance dropped drastically. In contrast, the SNN maintained a much higher average reward across almost all occlusion positions, demonstrating its resilience to visual interference.
  • Policy Representation: This work proves that SNNs can represent the complex, fine-grained policies required for RL, where the network must distinguish between very similar action values to make optimal decisions.

Conclusion and Future Work

While SNNs show significant promise for robustness, they currently face computational overhead on traditional hardware. Simulating SNNs over many time steps (500 in this study) per game frame is slower than standard NN inference.

The true potential of this work lies in neuromorphic hardware (such as Intel’s Loihi), designed to run spiking neurons natively with extreme energy efficiency. Future research will focus on more rigorous adversarial attacks and exploring direct training in the spiking domain using biologically inspired rules like Spike-Timing-Dependent Plasticity (STDP).

Summary updated

Abstract

Deep Reinforcement Learning (RL) demonstrates excellent performance on tasks that can be solved by trained policy. It plays a dominant role among cutting-edge machine learning approaches using multi-layer Neural networks (NNs). At the same time, Deep RL suffers from high sensitivity to noisy, incomplete, and misleading input data. Following biological intuition, we involve Spiking Neural Networks (SNNs) to address some deficiencies of deep RL solutions. Previous studies in image classification domain demonstrated that standard NNs (with ReLU nonlinearity) trained using supervised learning can be converted to SNNs with negligible deterioration in performance. In this paper, we extend those conversion results to the domain of Q-Learning NNs trained using RL. We provide a proof of principle of the conversion of standard NN to SNN. In addition, we show that the SNN has improved robustness to occlusion in the input image. Finally, we introduce results with converting full-scale Deep Q-network to SNN, paving the way for future research to robust Deep RL applications.
BibTeX
@inproceedings{patel2019improved,
  author = {Devdhar Patel and Hananel Hazan and Daniel J. Saunders and Hava T. Siegelmann and Robert Kozma},
  title = {{Improved robustness of reinforcement learning policies upon conversion to spiking neuronal network platforms applied to ATARI games}},
  booktitle = {Neural Networks},
  year = {2019},
  url = {https://openreview.net/forum?id=KZt3K1Iy9z},
}
Figure