Abstract
While the human brain efficiently adapts to new tasks from a continuous stream of information, neural network models struggle to learn from sequential information without catastrophically forgetting previously learned tasks. This limitation presents a significant hurdle in deploying edge devices in real-world scenarios where information is presented in an inherently sequential manner. Active dendrites of pyramidal neurons play an important role in the brain ability to learn new tasks incrementally. By exploiting key properties of time-to-first-spike encoding and leveraging its high sparsity, we present a novel spiking neural network model enhanced with active dendrites. Our model can efficiently mitigate catastrophic forgetting in temporally-encoded SNNs, which we demonstrate with an end-of-training accuracy across tasks of 88.3% on the test set using the Split MNIST dataset. Furthermore, we provide a novel digital hardware architecture that paves the way for real-world deployment in edge devices. Using a Xilinx Zynq-7020 SoC FPGA, we demonstrate a 100-% match with our quantized software model, achieving an average inference time of 37.3 ms and an 80.0% accuracy.
Introduction: The Problem of Catastrophic Forgetting
Standard Machine Learning (ML) models are inherently "forgetful." When a model is trained on a sequence of tasks—for example, first learning to recognize cyclists and then learning to recognize cars—it typically overwrites the weights associated with the first task, leading to a sharp decline in performance on previous knowledge. This phenomenon, known as catastrophic forgetting, stands in stark contrast to biological brains, which learn incrementally throughout life.
To bridge this gap, researchers have turned to Spiking Neural Networks (SNNs), specifically those using Time-To-First-Spike (TTFS) encoding. TTFS is highly energy-efficient because it represents information through the timing of discrete spikes. However, training these networks is challenging due to the "dead neuron" problem, where inactive neurons fail to provide gradients for learning.
Methodology: Active Dendrites and Temporal Gating
The core innovation of this work is the integration of Active Dendrites into the TTFS neuron model. Inspired by the multi-compartment structure of biological pyramidal neurons, the authors introduce a mechanism for task-specific modulation.
The system employs three key strategies:
- Dendritic Modulation: Each neuron is equipped with multiple dendritic segments, each corresponding to a specific task. These segments add a task-specific delay to the neuron's spike time ($t_j$).
- Temporal Gating: By modulating spike timing, the model can push certain neurons' spikes beyond a maximum observation window ($T_{max}$). These neurons are effectively "killed" for that specific task, acting as a gating mechanism without the need for complex layers like $k$-Winners-Take-All.
- Intrinsic Sub-networks: This gating ensures that different tasks utilize different subsets of neurons. Consequently, the weights critical for one task are preserved while the network learns another, creating stable sub-networks within the global architecture.
Experimental Results
The model was rigorously tested using the Split MNIST benchmark, a standard for continual learning where the 10-digit dataset is split into five sequential tasks (e.g., 0 vs 1, then 2 vs 3).
- Software Performance: The active dendrite model achieved an average end-of-training accuracy of 88.3%. In contrast, a baseline SNN without dendritic modulation saw its accuracy drop to 69.4% due to forgetting.
- Hardware Implementation: The authors deployed the model on a Xilinx Zynq-7020 SoC FPGA. The hardware implementation achieved a 100% match with the quantized software model.
- Efficiency and Resource Use: The FPGA design demonstrated an average inference time of 37.3 ms per image. It utilized 93% of Logic Tables (LUTs) and 29% of Block RAM (BRAM). Even after quantizing synaptic weights to 4-bit and dendritic delays to 8-bit, the hardware maintained a respectable 80.0% accuracy.
Conclusion and Future Directions
This research demonstrates that biological principles like dendritic gating can be effectively translated into digital hardware to solve fundamental AI challenges. By turning the "dead neuron" problem into a feature for task gating, the authors provide a path toward efficient, continual learning on edge devices. While the current system requires a Task ID during inference, future iterations aim to enable the network to infer task context autonomously. Additionally, scaling this architecture to more complex datasets like CIFAR-100 remains a key objective for proving its real-world versatility.
Summary updated