arXiv:2610.16924cs.NEOct 2026

Manuscript Offprint

arXiv:2610.16924

FidLIF: Parallel Training of High-Fidelity Spiking Neurons with Exact BPTT

Kaixiang He, Yujie Wu

Abstract

Although spiking neural networks (SNNs) show promise in energy-efficient computing through event-driven computation and stateful temporal processing, their recurrent membrane dynamics render their training inherently sequential and inefficient for long sequences. Existing methods achieve full-sequence parallelism in SNNs through two main strategies: redesigning or approximating spiking dynamics to avoid reset-coupled temporal dependencies, or relying on iterative relaxed fixed-point solvers that suffer from excessive memory costs and iteration-dependent backward overhead. To address these limitations, we present FidLIF, a novel framework that reconciles the incremental update and hard-reset behavior of standard spiking LIF neurons with parallel forward propagation and BPTT-equivalent backward propagation. FidLIF iteratively recovers the full-sequence membrane-potential trajectory in parallel. By exploiting the lower bidiagonal structure induced by the local recurrence of LIF neurons, FidLIF formulates each forward trajectory correction and backward adjoint propagation as associative scans with an O(log⁡T)O(\log T) temporal depth. This formulation also supports input-dependent neuronal parameters and allows the same neuron to perform full-sequence parallel training and incremental step-by-step inference at deployment. In our numerical convergence evaluation, FidLIF achieves a mean absolute error below 10−710^{-7} relative to the matched serial relaxed LIF dynamics, while yielding gradients numerically equivalent to exact BPTT. Our Triton implementation further delivers favorable long-sequence latency and memory scaling, while achieving competitive performance on four sequential classification benchmarks. By reconciling parallel training with step-by-step execution, FidLIF enables high-fidelity spiking dynamics to benefit from modern parallel hardware without compromising incremental inference at deployment.

Introduction

Spiking neural networks (SNNs) integrate stateful neuronal dynamics with sparse, event-driven communication (Maass 1997; Roy, Jaiswal, and Panda 2019), enabling highly energy-efficient computation on neuromorphic hardware. With recent advances in surrogate-gradient learning, backpropagation through time (BPTT) (Werbos 1990) can be effectively applied to SNN training. This has allowed SNNs to achieve competitive performance across a growing range of static or short-sequence tasks, such as image classification and object tracking (Neftci, Mostafa, and Zenke 2019; Wu et al. 2018).

Despite the great potential, training SNNs for long-sequence tasks remains an open challenge due to linearly increasing computational and memory costs. Take the standard leaky integrate-and-fire (LIF) spiking neurons as an example. Although the subthreshold dynamics of LIF neurons are linear and theoretically parallelizable, threshold-based spike generation introduces resets and alters the subsequent evolution. Since we cannot obtain the spikes and resets in advance, forward propagation has to proceed sequentially over time, resulting in training costs that grow with the number of time steps.

To improve SNN capabilities for long-sequence learning, several parallel training approaches have been explored in recent years. For instance, some methods, such as Parallel Spiking Neurons (PSN) (Fang et al. 2023), achieve parallelization by completely removing the reset mechanism to decouple temporal dependencies. Alternatively, Forward Parallel Training (FPT) (Feng et al. 2025) treats the soft-reset LIF neuron as a trajectory-solving problem, evaluating all time steps in parallel via iterations. However, these previous works face significant trade-offs: modifying the core spiking dynamics sacrifices the temporal expressivity and hard-reset nature of standard SNNs, while existing iterative solvers require backpropagating through all solver iterations, incurring excessive memory overhead. Moreover, most of these methods sacrifice incremental step-by-step inference capabilities while achieving parallelization, which is disadvantageous for deployment. Therefore, achieving efficient parallel training without compromising the fidelity of recurrent LIF dynamics or deployment inference remains largely unsolved.

To address these limitations, we propose FidLIF, a framework for reconciling parallel forward trajectory recovery and temporal credit assignment with high-fidelity recurrent hard-reset LIF neurons. In forward propagation, FidLIF applies Newton iterations to a differentiable trajectory equation, where the Heaviside function is relaxed by a sigmoid during the iterative solve. At each iteration, linearizing the causal LIF dynamics yields associative temporal updates, allowing all time steps to be updated in parallel with a scan. After the trajectory is recovered, binary spikes are produced using the original Heaviside gate, preserving binary spike communication. For the backward pass, we derive a reverse scan

∗^{*}Corresponding author.

(a) Forward Propagation with Newton Iterations

Figure

(b) Iteration via Associative Scan

(c) Backpropagation via Reverse Associative Scan

Figure 1: Overall workflow of FidLIF. (a) In forward propagation, FidLIF uses Newton's method to recover the membrane potential v across all time steps. (b) Illustration of one forward iteration. Given the result of m-th iteration v(m)\mathbf{v}^{(m)} and its corresponding Jacobian J(m)\mathbf{J}^{(m)}, the result of (m+1)(m+1)-th iteration is obtained by a parallel scan. (c) In backpropagation, only one scan is needed. The transposed Jacobian matrix at the final trajectory is used to compute the adjoint vector y from upstream gradient g.

that is equivalent to BPTT when evaluated on the converged trajectory, avoiding backpropagation through iterations. To enhance modeling capacity without sacrificing incremental step-by-step execution, FidLIF causally generates input-dependent neuronal parameters from recent inputs. Consequently, FidLIF supports full-sequence parallel training and step-by-step incremental inference using the same recurrent neuron formulation.

Our contributions are as follows:

• We introduce FidLIF, a novel framework that retains high-fidelity hard-reset dynamics of LIF neurons while enabling full-sequence parallel training and incremental step-by-step inference within the same neuron. FidLIF also supports input-dependent neuronal parameters for enhanced expressivity.

• We reformulate both forward and backward propagation as associative scans: membrane potential and spike trajectories are computed through iterative parallel scans, while exact BPTT temporal credit assignment is obtained through a single reverse scan, achieving O(Klog⁡T)O(K \log T) and O(log⁡T)O(\log T) temporal depth.

• We provide a Triton-based implementation for the proposed framework and comprehensively evaluate its performance across sequential image, event-vision, and speech classification tasks. Our results demonstrate that FidLIF delivers significant speedups and memory savings on long sequences, while achieving competitive performance on versatile downstream tasks.

References (32)