The fundamental bottleneck in training models that process time—such as Recurrent Neural Networks (RNNs) and Spiking Neural Networks (SNNs)—is not computation, but memory. Standard training relies on Backpropagation Through Time (BPTT), which requires "unrolling" the network across every temporal step. To calculate gradients, the system must store the entire history of neural activations.
As sequences grow longer or temporal resolutions become finer, this storage requirement scales linearly ($O(T)$), eventually hitting a "memory wall." This wall prevents us from training models on long-form context, high-frequency biological simulations, or resource-constrained edge hardware. A growing body of research is now focused on breaking this linear dependency, moving toward algorithms that offer constant memory cost regardless of the sequence length.
The Memory Wall of Temporal Credit Assignment
In a standard feedforward network, you only need to store the activations of the current layer to compute gradients. In a temporal network, a neuron's state at time $t$ depends on its state at $t-1$. To understand how a weight change affects the loss at the end of a sequence, BPTT must traverse the entire history in reverse.
As noted by Guillaume Hennequin and colleagues in their work on Second-order forward-mode optimization, this linear scaling is a "memory wall" that makes long-horizon tasks computationally prohibitive. This issue is even more acute in Spiking Neural Networks. Because SNNs mimic biological neurons by maintaining a "membrane potential" that evolves over time, researchers like Kaushik Roy have pointed out that the need to retrieve and update these potentials at every timestep creates a massive memory access bottleneck (DIET-SNN).
Moving from Backwards to Online Learning
The most direct way to bypass the memory wall is to stop looking backward. Online learning algorithms update weights as the data streams in, rather than waiting for the end of a sequence.
One approach is Forward-Mode Differentiation. Instead of storing states to go backward, the model tracks how the current state's "sensitivity" to the weights evolves forward in time. While vanilla forward-mode is often computationally expensive, new methods like SOFO (Hennequin et al.) use random subspace optimization to achieve second-order convergence with constant memory.
In the spiking domain, researchers are developing "stabilized" online rules. Yaoyu Zhu and Zhaofei Yu introduced Online Spiking Renormalization (Online Stabilization of Spiking Neural Networks), which allows for batch normalization in an online setting. Similarly, the BrainScale system (Xiao Liu) uses a novel algorithm (ES-D-RTRL) to reduce memory complexity from quadratic to linear, enabling the simulation of whole-brain models on a single GPU.
Implicit Differentiation and Equilibrium States
Another path to constant memory is to treat the temporal network as an equilibrium model. Instead of explicitly simulating $T$ timesteps, we view the network's final state as the solution to a fixed-point equation.
By using Implicit Differentiation, we can calculate gradients directly from this equilibrium state without ever storing the intermediate steps. Zhigao Cao applied this to SNNs with the MPIS-SNN architecture (Efficient Training of Spiking Neural Networks with Multi-parallel Implicit Stream Architecture), achieving constant memory costs regardless of simulation time. This same logic has been extended to complex structures like graphs; Mengzhu Wang and colleagues used implicit differentiation in Dy-SIGN (Dynamic Spiking Graph Neural Networks) to model dynamic relationships without the linear memory growth typical of temporal graph networks.
Temporal Locality and Architectural Shifts
If the problem is the "length" of time, some researchers suggest making time shorter or more "local."
- Local Learning Rules: Biologically inspired rules like S-TLLR (Kaushik Roy) use temporal local learning inspired by STDP. By making the weight update dependent only on nearby time steps, they achieve up to 50x memory reduction compared to BPTT.
- Spatial Propagation: The AMP2 strategy (Song Jian) collapses the temporal dimension entirely by propagating membrane potentials spatially across layers in a single timestep, removing the need to replicate data across time.
- State-Space Transformations: For edge devices, TinyDéjàVu (Zhaolan Huang) transforms standard temporal operators into State-Space Models (SSMs). This eliminates the need for sliding windows, which typically require memory that scales with the window size, allowing for "always-on" inference on microcontrollers.
Why It Works: The Shift in Perspective
The common thread across these papers is a shift in how we handle the temporal dimension. BPTT treats time as a spatial dimension to be unrolled and stored. The emerging direction treats time as a flow to be distilled.
Whether through forward-mode gradients that track sensitivities as they happen, implicit methods that jump to the steady-state result, or local rules that ignore distant history, these methods all aim to decouple the quality of learning from the duration of the sequence. By achieving constant memory scaling, these researchers are moving neural networks closer to the efficiency of biological brains, which learn continuously from a stream of experience without needing to "pause and rewind" their entire history.