Causal pieces: analysing and improving spiking neural networks piece by piece

Dominik Dold, Philipp Christian Petersen

TL;DR

Spiking Neural Networks (SNNs) promise ultra-low-power AI, yet their jagged, event-driven dynamics make them notoriously difficult to understand mathematically and initialize properly. Inspired by how standard ReLU networks slice space into linear regions, the authors introduce causal pieces—distinct regions of input and parameter space where the exact same subnetwork triggers the output spikes. Counting these pieces not only bounds an SNN's expressivity, it reliably predicts before training even begins whether a network will learn or fail.

What Problem Does This Paper Address?

Standard artificial neural networks (ANNs) pass continuous numbers around; SNNs communicate like biological brains using discrete, timed electrical pulses—or "spikes." While this makes SNNs ideal for energy-starved edge hardware (like spacecraft), it creates a mathematical headache. Slightly nudging an input or weight can cause an output spike to jump discontinuously or vanish entirely.

In traditional deep learning with ReLU activations, researchers measure expressivity by counting linear pieces—regions where the network behaves as a simple linear function. Because of spike-time discontinuities, SNNs lacked an analogous, rigorous framework unless researchers imposed heavy simplifications (like banning inhibitory/negative weights). Worse, practitioners had no principled metric to guide weight initialization, often blindly borrowing ANN initialization schemes designed for entirely different dynamics.

Methods

The authors focus on feedforward SNNs using time-to-first-spike coding, where information lives in spike timing and each neuron fires at most once. For theoretical proofs, they analyze non-leaky integrate-and-fire (nLIF) neurons (a tractable limit of standard LIF neurons with infinite membrane time constants, though inputs still integrate smoothly over a finite synaptic time constant $\tau_{\text{s}}$). They also validate their findings empirically on standard leaky LIF neurons.

Their core conceptual leap builds a hierarchy of causality:

  • Causal Set: For a single neuron, the subset of incoming pre-synaptic neurons that actually fired before it did—meaning they helped push it over its firing threshold.
  • Causal Subnetwork: Scaling up to deep networks, the exact web of neurons and synapses across layers that caused the final output spikes.
  • Causal Piece: A region in the input (and weight) space where the causal subnetwork remains completely unchanged.
Figure 1: Causal pieces. (A) Every coloured region is a causal piece, fully partitioning the input space (here: 2D inputs). Within each piece, the same subnetwork causes the SNN output (left, coloured like the corresponding piece). Here we scan a 2D hyperplane I in the 40-dimensional input space, parametrised by (α0, α1) ∈[0, 1]2. (B) On each piece (coloured), the output spike time of the SNN is a continuous function. (C) Causal pieces for an SNN with no (left) and one (right) hidden layer.

Within any single causal piece, the jagged SNN tames itself: output spike times vary smoothly (locally Lipschitz continuous) with respect to inputs and weights. Discontinuities only happen when crossing the border from one piece to another. Crucially, instead of counting all theoretical pieces in an empty void, the authors count practically relevant pieces—those actually populated by at least one training data point, which takes time linear in the dataset and parameter sizes.

Datasets

The authors evaluate their framework on four static classification benchmarks, converting input features and pixel intensities into spike latencies:

  • Yin-Yang: A 2D non-linear classification task (three classes forming a Yin-Yang symbol), using both a standard 5,000-sample split and a dense $400 \times 400$ grid to probe piece growth.
  • MNIST & Fashion-MNIST: Standard grayscale image benchmarks for handwritten digits and clothing items.
  • EuroSAT RGB: Real satellite imagery from the European Space Agency’s Sentinel-2 mission for land-cover classification.

No new benchmarks were introduced.

Key Insights and Ideas

  • Zero-mean initialization is a trap for SNNs: Borrowing standard zero-mean Gaussian initializations from ANNs starves SNNs of causal pieces. Finding valid causal sets is mathematically akin to a random walk where cumulative weights must cross a positive firing threshold; distributions with a positive, non-zero mean (or high variance) drastically increase the number of pieces.
  • Bad initializations rarely recover: An nLIF network with $p$ causal pieces faces a strict mathematical floor on its approximation error proportional to $p^{-2}$. Empirically, if an SNN starts with too few pieces on the training data, gradient descent struggles to mint new ones—the reorganization of pieces simply dies out early in training.
  • Brain-like excitatory networks don't sacrifice power: Constraining an SNN to have only positive weights (mimicking excitatory neurons in the mammalian neocortex, paired with a standard linear readout) makes the network globally Lipschitz continuous while still realizing huge numbers of causal pieces.

Key Results

  • Initialization predicts final accuracy: Across 200 shallow networks trained with exact spike-time gradients on Yin-Yang, the log-number of causal pieces before training strongly correlated with final test accuracy—reaching $r = 0.70$ ($\tau_{\text{s}} = 0.5$) and $r = 0.85$ ($\tau_{\text{s}} = 0.1$) for nLIF, and $r = 0.87$ for standard leaky LIF neurons. For example, a poor initialization (131 pieces) decayed to 43 pieces and 69% accuracy, whereas a rich initialization (1,135 pieces) maintained 1,096 pieces and hit 96% accuracy.
Figure 3: Network initialisation strongly affects training success. (A) The logarithm of the number of pieces (here: of the output layer) at network initialisation strongly correlates with performance after training (r = 0.70, log-linear). Shown for τs = 0.5. (B) Same as (A), but with the number of pieces after training. (C) Number of pieces before and after training. The diagonal indicates no change in pieces. (D) Same as (A), but for nLIF neurons with time constant τs = 0.1. (E) Illustration of the Yin-Yang dataset with three classes: the two halves and the dots. (F) Causal pieces (each piece is indicated by a different colour) of the hidden layer for a poor initialisation, evaluated using only training samples. (G) Same as (F), but for one of the best initialisations.
  • Scaling to vision benchmarks: On Fashion-MNIST and EuroSAT, initial piece counts correlated strongly with final test accuracy for both nLIF ($r = 0.89$ and $r = 0.83$, linear) and leaky LIF networks ($r = 0.80$ on both).
  • Width, depth, and positive weights: Using evolutionary optimization to tune weight initialization, adding hidden layers sparked rapid logistic growth in causal pieces before saturating. Furthermore, deep SNNs restricted to positive weights matched fully-connected ANN baselines across Yin-Yang, MNIST, and EuroSAT.

Limitations and Future Work

  • Model & coding scope: Rigorous mathematical proofs (like the $p^{-2}$ error bound) currently apply to feedforward nLIF networks using single-spike coding, though a recent "transference principle" allows extending the bound to simple multi-spike nLIF neurons. Extending proofs directly to leaky LIF neurons will require non-trivial mathematical adaptations.
  • Untested regimes: The framework has not yet been established for recurrent SNNs, arbitrary multi-spike dynamics, or networks trained via surrogate gradients (a popular alternative to exact spike-time gradients).
  • Expressivity vs. generalization: Like linear pieces in ANNs, causal pieces measure approximation capacity rather than generalization to unseen data, though comparing piece counts between training and validation splits offers an intriguing future direction—alongside using causal pieces to analyze real biological neural recordings.

Summary updated

Abstract

We introduce *causal pieces*, a novel concept for analysing spiking neural networks (SNNs), inspired by *linear pieces* used to study expressivity and trainability in artificial neural networks (ANNs). Causal pieces partition the input and parameter space of a feedforward SNN with single-spike coding into distinct regions where the same subnetwork causes the output spikes. For networks of current-based leaky integrate-and-fire (LIF) neurons with large membrane time constants, we show that within each causal piece, output spike times are locally Lipschitz continuous with respect to inputs and network parameters. We further prove a lower bound on the approximation error that depends on the number of causal pieces. Thus, the number of causal pieces is a measure of the approximation capabilities of SNNs, which is valid despite spike-time discontinuities and applies to networks with both excitatory and inhibitory synapses. Empirically, we find that parameter initialisations yielding more causal pieces on the training set strongly correlate with SNN training success across multiple benchmarks, including Yin-Yang, Fashion-MNIST, and EuroSAT. Moreover, simulations with standard single-spike LIF neurons indicate that our findings extend beyond the theoretically analysed regime. These results establish causal pieces as a powerful and principled tool for analysing and improving the computational capabilities of SNNs.
BibTeX
@inproceedings{dold2026causal,
  author = {Dominik Dold and Philipp Christian Petersen},
  title = {{Causal pieces: analysing and improving spiking neural networks piece by piece}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2026},
  url = {https://openreview.net/forum?id=vmQvISAYfP},
}

Loading related content...

Figure