# Exact Gradients for Stochastic Spiking Neural Networks Driven by Rough Signals

arXiv: https://arxiv.org/abs/2405.13587 · HTML: https://mlsanity.com/paper/2405.13587/

## Key facts

- Cited by 9 papers in the map (data through 14 Oct 2026).
- Builds on 27 of its 58 references that are in the map.
- First posted on arXiv 22 May 2024.

## Builds on (most cited first, 27 of 27)

- [Neural Ordinary Differential Equations](https://mlsanity.com/paper/1806.07366/) (2018)
- [Surrogate Gradient Learning in Spiking Neural Networks](https://mlsanity.com/paper/1901.09948/) (2019)
- [Kernel Mean Embedding of Distributions: A Review and Beyond](https://mlsanity.com/paper/1605.09522/) (2016)
- [On Neural Differential Equations](https://mlsanity.com/paper/2202.02435/) (2022)
- [Neural SDEs as Infinite-Dimensional GANs](https://mlsanity.com/paper/2102.03657/) (2021)
- [Neural Jump Stochastic Differential Equations](https://mlsanity.com/paper/1905.10403/) (2019)
- [Neural Rough Differential Equations for Long Time Series](https://mlsanity.com/paper/2009.08295/) (2020)
- [Kernels for sequentially ordered data](https://mlsanity.com/paper/1601.08169/) (2016)
- [Event-Based Backpropagation can compute Exact Gradients for Spiking Neural Networks](https://mlsanity.com/paper/2009.08378/) (2020)
- [The Signature Kernel is the solution of a Goursat PDE](https://mlsanity.com/paper/2006.14794/) (2020)
- [Signature moments to characterize laws of stochastic processes](https://mlsanity.com/paper/1810.10971/) (2018)
- [Online Training Through Time for Spiking Neural Networks](https://mlsanity.com/paper/2210.04195/) (2022)
- [Non-adversarial training of Neural SDEs with signature kernel scores](https://mlsanity.com/paper/2305.16274/) (2023)
- [Distribution Regression for Sequential Data](https://mlsanity.com/paper/2006.05805/) (2020)
- [Higher Order Kernel Mean Embeddings to Capture Filtrations of Stochastic Processes](https://mlsanity.com/paper/2109.03582/) (2021)
- [Neural signature kernels as infinite-width-depth-limits of controlled ResNets](https://mlsanity.com/paper/2303.17671/) (2023)
- [SigGPDE: Scaling Sparse Gaussian Processes on Sequential Data](https://mlsanity.com/paper/2105.04211/) (2021)
- [Exploiting Noise as a Resource for Computation and Learning in Spiking Neural Networks](https://mlsanity.com/paper/2305.16044/) (2023)
- [Signature Kernel Conditional Independence Tests in Causal Discovery for Stochastic Processes](https://mlsanity.com/paper/2402.18477/) (2024)
- [SK-Tree: a systematic malware detection algorithm on streaming trees via the signature kernel](https://mlsanity.com/paper/2102.07904/) (2021)
- [A Neural RDE approach for continuous-time non-Markovian stochastic control problems](https://mlsanity.com/paper/2306.14258/) (2023)
- [Lecture notes on rough paths and applications to machine learning](https://mlsanity.com/paper/2404.06583/) (2024)
- [New directions in the applications of rough path theory](https://mlsanity.com/paper/2302.04586/) (2023)
- [Elucidating the theoretical underpinnings of surrogate gradient learning in spiking neural networks](https://mlsanity.com/paper/2404.14964/) (2024)
- [A Differentiable Point Process with Its Application to Spiking Neural Networks](https://mlsanity.com/paper/2106.00901/) (2021)
- [Modeling and sensitivity analysis methodology for hybrid dynamical systems](https://mlsanity.com/paper/1710.04292/) (2017)
- [Adjoint Sensitivity Analysis of Hybrid Multibody Dynamical Systems](https://mlsanity.com/paper/1802.07188/) (2018)

## Built on by (most cited first, 9 of 9)

- [Structured Linear CDEs: Maximally Expressive and Parallel-in-Time Sequence Models](https://mlsanity.com/paper/2505.17761/) (2025)
- [Sparse Signature Coefficient Recovery via Kernels](https://mlsanity.com/paper/2412.08579/) (2024)
- [pySigLib -- Fast Signature-Based Computations on CPU and GPU](https://mlsanity.com/paper/2509.10613/) (2025)
- [ParallelFlow: Parallelizing Linear Transformers via Flow Discretization](https://mlsanity.com/paper/2504.00492/) (2025)
- [Training event-based neural networks with exact gradients via Differentiable ODE Solving in JAX](https://mlsanity.com/paper/2603.08146/) (2026)
- [Novelty detection on path space](https://mlsanity.com/paper/2512.03243/) (2025)
- [Variational Inference for L'evy Process-Driven SDEs via Neural Tilting](https://mlsanity.com/paper/2605.10934/) (2026)
- [Faithful Embeddings of Irregular and Asynchronous Data for Online Log-NCDEs](https://mlsanity.com/paper/2605.30213/) (2026)
- [Scalable Training of Continuous-Time Spiking Neural Networks with Differentiable Spike-Time Discretization](https://mlsanity.com/paper/2607.14672/) (2026)

## Abstract (arXiv)

We introduce a mathematically rigorous framework based on rough path theory to model stochastic spiking neural networks (SSNNs) as stochastic differential equations with event discontinuities (Event SDEs) and driven by c`adl`ag rough paths. Our formalism is general enough to allow for potential jumps to be present both in the solution trajectories as well as in the driving noise. We then identify a set of sufficient conditions ensuring the existence of pathwise gradients of solution trajectories and event times with respect to the network's parameters and show how these gradients satisfy a recursive relation. Furthermore, we introduce a general-purpose loss function defined by means of a new class of signature kernels indexed on c`adl`ag rough paths and use it to train SSNNs as generative models. We provide an end-to-end autodifferentiable solver for Event SDEs and make its implementation available as part of the textttdiffrax library. Our framework is, to our knowledge, the first enabling gradient-based training of SSNNs with noise affecting both the spike timing and the network's dynamics.
