Boosting Throughput and Efficiency of Hardware Spiking Neural Accelerators using Time Compression Supporting Multiple Spike Codes

Changqing Xu,Wenrui Zhang,Yu Liu,Peng Li
DOI: https://doi.org/10.48550/arXiv.1909.04757
2019-09-11
Abstract:Spiking neural networks (SNNs) are the third generation of neural networks and can explore both rate and temporal coding for energy-efficient event-driven computation. However, the decision accuracy of existing SNN designs is contingent upon processing a large number of spikes over a long period. Nevertheless, the switching power of SNN hardware accelerators is proportional to the number of spikes processed while the length of spike trains limits throughput and static power efficiency. This paper presents the first study on developing temporal compression to significantly boost throughput and reduce energy dissipation of digital hardware SNN accelerators while being applicable to multiple spike codes. The proposed compression architectures consist of low-cost input spike compression units, novel input-and-output-weighted spiking neurons, and reconfigurable time constant scaling to support large and flexible time compression ratios. Our compression architectures can be transparently applied to any given pre-designed SNNs employing either rate or temporal codes while incurring minimal modification of the neural models, learning algorithms, and hardware design. Using spiking speech and image recognition datasets, we demonstrate the feasibility of supporting large time compression ratios of up to 16x, delivering up to 15.93x, 13.88x, and 86.21x improvements in throughput, energy dissipation, the tradeoffs between hardware area, runtime, energy, and classification accuracy, respectively based on different spike codes on a Xilinx Zynq-7000 FPGA. These results are achieved while incurring little extra hardware overhead.
Neural and Evolutionary Computing,Machine Learning
What problem does this paper attempt to address?
The problem that this paper attempts to solve is how to significantly increase throughput and reduce energy consumption while maintaining decision - making accuracy in hardware spiking neural network accelerators. Existing spiking neural network (SNNs) designs need to process a large number of spikes and make decisions over a long period of time, which leads to high energy consumption and low throughput of hardware accelerators. To solve this problem, the paper proposes a time - compression technique, aiming to improve the efficiency of hardware accelerators by compressing the time length of spike sequences without changing the number of spikes and their time characteristics. Specifically, the main contributions of the paper include: 1. **Universal Time - Compression Technique**: For the first time, a universal time - compression technique is proposed, which can transparently compress the duration of spike sequences on any given SNN and its spike encoding, thereby greatly reducing latency. 2. **Four Key Techniques**: - **Weighted - Representation Spike - Sequence Compression**: Use a weighted form to represent the compressed spike sequence in order to preserve the number and time characteristics of the original spikes. - **Input - Output Weighted (IOW) Spiking Neural Model**: Process the time - compressed spike sequence and generate weighted output spikes to preserve input information. - **Scaling of Time Constants**: Adjust the time constants of neurons, synapses, and learning dynamics to adapt to time compression. - **Flexible Compression - Ratio Support**: Use the time - averaging method to support flexible compression ratios, even if these ratios are not powers of 2. 3. **Low - Overhead Hardware Modifications**: Make low - overhead hardware modifications to existing SNN accelerators so that they can operate on a compressed time scale while preserving the number of spikes and time behavior in inference and training. 4. **Time - Compressed SNN Accelerator Architecture**: Propose a time - compressed SNN (TC - SNN) accelerator architecture and its programmable variant (PTC - SNN), which can achieve significant latency, energy - efficiency, and latency/energy/classification - accuracy trade - offs. By implementing multiple liquid - state - machine (LSM) spiking - neural accelerators on Xilinx Zynq - 7000 FPGA, the paper demonstrates the effectiveness of its proposed TC - SNN and PTC - SNN compression architectures. Experimental results show that these architectures can support a time - compression ratio of up to 16 times under different spike - encoding mechanisms, achieving significant improvements in throughput, energy consumption, hardware area, running time, energy, and classification - accuracy trade - offs respectively.