# Do Not Let Spikes Flip: Margin-Resculpted Learning for Robust Spiking Neural Networks

*Desong Zhang, Jia Hu, Geyong Min*

[NeurIPS page](https://neurips.cc/virtual/2026/poster/152693) · [OpenReview](https://openreview.net/forum?id=R7E5DE5F3A) · [Open on the map](../papers.html#p152693)

Category: [Brain Signals & Spiking Networks](../pcat/6.md) › [Spiking Neural Network Efficiency](../pgroup/102.md) · Type: new method · Keywords: spiking neural networks, robustness, spike flips, margin occupancy, regularization

## Summary
Margin-Resculpted Learning (MRL) regularizes threshold-margin occupancy to reduce vulnerable spike flips and improve the robustness of Spiking Neural Networks.

## Explained to a 5-year-old
Spiking Neural Networks are like tiny computers that talk by sending little energy-saving signals called spikes. When something goes wrong, these spikes can change to the wrong signal, causing the computer to act badly. The researchers measured how often spikes flip by counting them. They found that spikes near a special point are more likely to flip, so they added a rule to keep that point safe. This helps the network work more reliably, especially in robots and devices that need to save energy.

## Explained to a 5-year-old, longer
Spiking Neural Networks are a kind of computer brain that uses very small, fast signals called spikes to share information. These spikes are like tiny electric pulses that travel quickly and use very little energy, which is great for battery-powered devices. However, if something interferes with the spikes, they can sometimes change to the wrong signal, causing the network to make mistakes. The researchers noticed that most of these mistakes happen when a spike is close to the point where the network decides to fire. They created a way to count how often spikes flip to the wrong signal, which they call the flip rate. They also measured how much of the network’s “firing space” is crowded near that decision point, which they call margin occupancy. By watching these two numbers, they could see which parts of the network were most vulnerable to errors. To fix the problem, they added a gentle rule that limits how crowded the firing space can get, helping spikes stay stable. This rule still lets the network learn because it leaves enough room for the spikes to fire when they should. After applying this rule, the network made far fewer mistakes even when the environment was noisy or changed. The improvement worked for many different kinds of data, like still pictures and fast video streams. Overall, the new method makes spiking networks more trustworthy for real-world uses like robots and smart sensors.

## For a technical reader
The paper observes that spiking neural networks (SNNs) can suffer from “spike flips” when perturbed, causing unreliable outputs. It introduces a flip-rate metric and a margin-occupancy measure to pinpoint where spikes are most vulnerable near the firing threshold. Based on these diagnostics, the authors propose Margin-Resculpted Learning (MRL), which adds an activity-adaptive regularization to limit excessive margin occupancy. MRL reduces the frequency of spike flips while preserving enough threshold margin for surrogate-gradient learning, leading to consistent robustness gains across datasets and attack settings.

## Problem
Current SNN robustness methods focus on continuous perturbations and membrane-potential stability, overlooking the stability of spike patterns under perturbations. This leads to spike flips that degrade reliability.

## Method
The approach quantifies spike flips via a flip-rate metric and introduces margin occupancy to measure threshold-margin vulnerability. It then regularizes excessive margin occupancy with an activity-adaptive bound to reduce flips while preserving surrogate-gradient learning.

## Contributions
It formalizes perturbation-induced spike flips and introduces flip rate and margin occupancy as diagnostic metrics, and proposes a regularization technique that reduces spike flips while maintaining surrogate-gradient learning.

This page was written by language models from the title and abstract of each paper, and the answers were checked by two other models. It can be wrong: check the paper itself. [Suggest a correction](../feedback/?on=p/152693)
