[Paper Review] Online Spatio-Temporal Learning in Deep Neural Networks
This paper proposes Online Spatio-Temporal Learning (OSTL), a novel online learning algorithm for deep spiking neural networks (SNNs) that separates spatial and temporal gradient components. OSTL achieves BPTT-equivalent gradients for shallow SNNs and enables low-complexity online training of deep SNNs and RNNs, including LSTMs and GRUs, with performance on par with BPTT baselines on language modeling and speech recognition tasks.
Biological neural networks are equipped with an inherent capability to continuously adapt through online learning. This aspect remains in stark contrast to learning with error backpropagation through time (BPTT) applied to recurrent neural networks (RNNs), or recently to biologically-inspired spiking neural networks (SNNs). BPTT involves offline computation of the gradients due to the requirement to unroll the network through time. Online learning has recently regained the attention of the research community, focusing either on approaches that approximate BPTT or on biologically-plausible schemes applied to SNNs. Here we present an alternative perspective that is based on a clear separation of spatial and temporal gradient components. Combined with insights from biology, we derive from first principles a novel online learning algorithm for deep SNNs, called online spatio-temporal learning (OSTL). For shallow networks, OSTL is gradient-equivalent to BPTT enabling for the first time online training of SNNs with BPTT-equivalent gradients. In addition, the proposed formulation unveils a class of SNN architectures trainable online at low time complexity. Moreover, we extend OSTL to a generic form, applicable to a wide range of network architectures, including networks comprising long short-term memory (LSTM) and gated recurrent units (GRU). We demonstrate the operation of our algorithm on various tasks from language modelling to speech recognition and obtain results on par with the BPTT baselines. The proposed algorithm provides a framework for developing succinct and efficient online training approaches for SNNs and in general deep RNNs.
Motivation & Objective
- To address the limitations of backpropagation through time (BPTT) in online learning scenarios, particularly system-locking and high memory demands.
- To develop a biologically plausible, online learning algorithm for deep spiking neural networks (SNNs) that maintains gradient equivalence to BPTT.
- To enable efficient, low-complexity online training of feedforward and recurrent SNNs, including LSTM and GRU architectures.
- To unify online learning for SNNs and RNNs by separating spatial and temporal gradient components, inspired by biological neural computation.
Proposed method
- The algorithm derives from first principles a clear separation of spatial and temporal gradient components in recurrent SNNs.
- It formulates a learning rule that decomposes synaptic weight updates into a learning signal and eligibility traces, akin to three-factor learning rules.
- For shallow networks, OSTL maintains exact gradient equivalence to BPTT and RTRL with deferred updates.
- The method extends to deep feedforward SNNs with time complexity O(kn²), where k is the number of layers and n the number of neurons.
- OSTL is generalized to recurrent networks with LSTM and GRU units by incorporating their internal gating mechanisms into the eligibility trace framework.
- The algorithm avoids full unrolling by using truncated eligibility traces, enabling real-time updates without storing past states.
Experimental results
Research questions
- RQ1Can online learning in SNNs achieve BPTT-equivalent gradients without requiring full unrolling through time?
- RQ2How can the spatial and temporal components of the gradient be separated to enable efficient online training in deep SNNs?
- RQ3Can OSTL be extended to complex RNN units like LSTMs and GRUs while maintaining performance and low time complexity?
- RQ4What is the impact of neglecting the recurrent matrix H in eligibility traces on performance and computational cost?
- RQ5How does OSTL compare to truncated BPTT and other online approximations in tasks with long temporal dependencies?
Key findings
- OSTL achieves BPTT-equivalent gradients for shallow SNNs, enabling exact online learning without offline computation.
- For deep feedforward SNNs, OSTL achieves performance on par with BPTT baselines on language modeling and speech recognition tasks.
- On the TIMIT speech recognition task, OSTL outperforms truncated BPTT with short horizons and maintains competitive error rates without unrolling.
- Neglecting the H matrix in eligibility traces reduces time complexity to O(n²) with only a 4% performance drop, while random e-prop incurs a 15% drop.
- OSTL enables low-complexity online training of deep RNNs, including LSTMs and GRUs, with minimal loss in accuracy.
- The algorithm supports real-time adaptation, making it suitable for deployment on low-power edge devices and privacy-sensitive applications.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.