[Paper Review] Efficient recurrent architectures through activity sparsity and sparse back-propagation through time
This paper proposes Event-based Gated Recurrent Units (EGRU), a spiking-like RNN variant that uses threshold-triggered discrete events for sparse communication between units. By making both forward and backward passes computationally sparse—scaling with event count rather than time steps—it achieves competitive performance on sequence tasks while drastically reducing memory and compute usage, especially beneficial for neuromorphic and energy-constrained systems.
Recurrent neural networks (RNNs) are well suited for solving sequence tasks in resource-constrained systems due to their expressivity and low computational requirements. However, there is still a need to bridge the gap between what RNNs are capable of in terms of efficiency and performance and real-world application requirements. The memory and computational requirements arising from propagating the activations of all the neurons at every time step to every connected neuron, together with the sequential dependence of activations, contribute to the inefficiency of training and using RNNs. We propose a solution inspired by biological neuron dynamics that makes the communication between RNN units sparse and discrete. This makes the backward pass with backpropagation through time (BPTT) computationally sparse and efficient as well. We base our model on the gated recurrent unit (GRU), extending it with units that emit discrete events for communication triggered by a threshold so that no information is communicated to other units in the absence of events. We show theoretically that the communication between units, and hence the computation required for both the forward and backward passes, scales with the number of events in the network. Our model achieves efficiency without compromising task performance, demonstrating competitive performance compared to state-of-the-art recurrent network models in real-world tasks, including language modeling. The dynamic activity sparsity mechanism also makes our model well suited for novel energy-efficient neuromorphic hardware. Code is available at https://github.com/KhaleelKhan/EvNN/.
Motivation & Objective
- To address the high computational and memory cost of training and deploying standard RNNs, especially via backpropagation through time (BPTT).
- To bridge the gap between RNN efficiency and real-world deployment needs in resource-constrained environments.
- To enable energy-efficient, scalable recurrent models by mimicking biological neural dynamics through sparse, event-driven communication.
- To develop a theoretically grounded, sparse backpropagation method that maintains performance while reducing computational load.
Proposed method
- Extends the Gated Recurrent Unit (GRU) with a threshold-based event generation mechanism, where units only communicate when their internal state crosses a threshold.
- Introduces an event-based gradient update rule derived via the adjoint method for hybrid dynamical systems, enabling sparse backpropagation through time.
- Models the forward pass as a continuous-time dynamical system where state updates occur only at event times, reducing redundant computation.
- Theoretical analysis shows that both forward and backward pass complexity scale with the number of events rather than time steps.
- Employs event-based learning rules that update parameters only when events occur, ensuring sparse parameter updates.
- The framework is generalizable and can be applied to any RNN architecture, including LSTM, by replacing standard recurrence with event-driven dynamics.
Experimental results
Research questions
- RQ1Can activity sparsity in RNNs significantly reduce computational and memory costs during both inference and training without sacrificing performance?
- RQ2How can backpropagation through time be made sparse and efficient in recurrent models using event-based communication?
- RQ3Does an event-driven RNN architecture maintain competitive performance on real-world sequence tasks compared to standard GRUs and LSTMs?
- RQ4To what extent does the model’s sparsity scale with network activity, and how does this affect energy efficiency on neuromorphic hardware?
- RQ5Can the proposed method be generalized to other RNN architectures beyond GRUs?
Key findings
- The EGRU model achieves task performance competitive with state-of-the-art GRU and LSTM models on language modeling benchmarks, including character-level and word-level tasks.
- The forward pass computation and parameter update complexity scale linearly with the number of events, not with the number of time steps, enabling substantial efficiency gains.
- The model exhibits high levels of activity sparsity during both inference and training, with up to 90% of units inactive at any given time in some configurations.
- Theoretical analysis confirms that in the continuous-time limit, the gradient computation cost is proportional only to the number of events in the network.
- The model is natively compatible with irregularly spaced sequential data and can be efficiently implemented using event-based software primitives.
- The framework enables direct translation to neuromorphic hardware, where activity sparsity translates directly into energy efficiency, especially when combined with on-chip memory and sparse parameter access.
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.