應用於低耗能脈衝神經網絡之稀疏分散式記憶體設計
Sparse Distributed Memory Using Constant-Weight Code for Low Power Spiking Neural Network
摘要
長期記憶(LTM)通常被認為是人類大腦中用於永久儲存訊息的重要機制。這個概念推動了許多關注聯想記憶模型(associative memory)的研究,比如過去的稀疏分散式記憶(Sparse Distributed Memory, SDM),以及近年來在類腦運算領域中被頻繁關注的脈衝神經網絡(Spiking Neural Network, SNN)。儘管SNN以事件驅動的處理過程對硬體上的效能有所助益,但其網絡架構中大量的記憶體使用以及重複性的神經元操作使得整體運算過程的耗能難以被減少。
在本計畫中,我們提出了一種 SDM-SNN 架構,結合了SDM的分散式記憶機制,和SNN獨有的生物性學習方法,實現無監督的訓練和推理過程,整體系統包含了SDM的完整機制優化、M-of-N碼設計、神經網絡的學習方法輕量化,及整體硬體架構設計。我們的目標是展示SDM和SNN的互補性,用 SDM 特有的分散式記憶機制讓 SNN 能夠顯著地降低能耗與運算時間,同時保持可接受的準確度損失。為了優化SDM的使用效率,我們設計並測試了一種 M-of-N 編碼的生成方法,在固定的輸入長度下可以有效地減少 SNN 網絡中需執行計算的神經元數量,從而減少計算時間與耗能。為了盡量減少大量權重所帶來的耗時與耗能影響,我們參考了脈衝時序依賴可塑性(STDP, Spike-timing-dependent plasticity) 的類腦學習方法,在類似的非監督式學習精神上將此規則做簡化,並得出二位元的無監督學習規則。此設計在UMC 90nm製程、時脈100MHz的速度下完成了邏輯閘層次的模擬,在MNIST數據集實驗中,其準確率為87.4%,和其他現有的非監督式學習神經網絡加速器相近,在相近的神經元數量下,能將 SNN 的大量耗能降至其他現有成果[15,16,17]的十分之一甚至百分之一,最後能耗為4.5-nJ/classification 以及7.5 pJ/SOP。
在本計畫中,我們提出了一種 SDM-SNN 架構,結合了SDM的分散式記憶機制,和SNN獨有的生物性學習方法,實現無監督的訓練和推理過程,整體系統包含了SDM的完整機制優化、M-of-N碼設計、神經網絡的學習方法輕量化,及整體硬體架構設計。我們的目標是展示SDM和SNN的互補性,用 SDM 特有的分散式記憶機制讓 SNN 能夠顯著地降低能耗與運算時間,同時保持可接受的準確度損失。為了優化SDM的使用效率,我們設計並測試了一種 M-of-N 編碼的生成方法,在固定的輸入長度下可以有效地減少 SNN 網絡中需執行計算的神經元數量,從而減少計算時間與耗能。為了盡量減少大量權重所帶來的耗時與耗能影響,我們參考了脈衝時序依賴可塑性(STDP, Spike-timing-dependent plasticity) 的類腦學習方法,在類似的非監督式學習精神上將此規則做簡化,並得出二位元的無監督學習規則。此設計在UMC 90nm製程、時脈100MHz的速度下完成了邏輯閘層次的模擬,在MNIST數據集實驗中,其準確率為87.4%,和其他現有的非監督式學習神經網絡加速器相近,在相近的神經元數量下,能將 SNN 的大量耗能降至其他現有成果[15,16,17]的十分之一甚至百分之一,最後能耗為4.5-nJ/classification 以及7.5 pJ/SOP。
Long-term memory (LTM) is generally regarded as a critical mechanism in the human brain for the unlimited and permanent storage of information. This concept has spurred much research into associative memory models, such as Sparse Distributed Memory (SDM)[1] and the Spiking Neural Network (SNN). The latter has received extensive attention in the field of neuromorphic computing in recent years due to the spike information processing mechanism and spatial-temporal dynamics. SNN is also generally considered a promising computation model because of its event-driven nature. However, despite the development of various brain-inspired cognitive models, the extensive memory usage and repetitive internal neuronal operations of SNN bring difficulty to the optimization of hardware implementation.
In this thesis, we propose an SDM-SNN architecture that combines the distributed memory mechanism of SDM with the biologically inspired learning method of SNN to complete unsupervised training and inference processes. The overall system includes optimization of SDM, M-of-N code design, simplification of neural network learning methods, reduction of memory requirement, and the ultimate hardware architecture design.
Our objective is to demonstrate the complementarity of SDM and SNN to reduce energy consumption and computational time of SNN significantly while maintaining acceptable accuracy loss on the neural network. To optimize the memory usage efficiency of SDM, we designed the M-of-N code construction method with thorough verification under a handwritten digit recognition dataset. For fixed-length input patterns, the optimized M-of-N SDM effectively reduces the number of neuron operations, thereby reducing both computation time and energy consumption. Furthermore, to alleviate the storage burden of weights, we present an unsupervised 2-bit learning rule motivated by the biologically inspired Spike-timing-dependent plasticity (STDP).
Our proposed architecture is synthesized by UMC 90nm CMOS technology and operates at 100 MHz. In experiments with the MNIST dataset, the power consumption is about 25 uW. The resulting accuracy is 87.4%, which is acceptable compared to the baseline [15,16,17]. With a similar scale of neural network (i.e. number of neurons), SDM-SNN can reduce significant amounts of energy consumption of SNNs compared to the existing unsupervised learning SNN accelerators. The final energy consumption of the inference process and synaptic operation are 4.5-nJ/classification and 7.5 pJ/SOP respectively.
In this thesis, we propose an SDM-SNN architecture that combines the distributed memory mechanism of SDM with the biologically inspired learning method of SNN to complete unsupervised training and inference processes. The overall system includes optimization of SDM, M-of-N code design, simplification of neural network learning methods, reduction of memory requirement, and the ultimate hardware architecture design.
Our objective is to demonstrate the complementarity of SDM and SNN to reduce energy consumption and computational time of SNN significantly while maintaining acceptable accuracy loss on the neural network. To optimize the memory usage efficiency of SDM, we designed the M-of-N code construction method with thorough verification under a handwritten digit recognition dataset. For fixed-length input patterns, the optimized M-of-N SDM effectively reduces the number of neuron operations, thereby reducing both computation time and energy consumption. Furthermore, to alleviate the storage burden of weights, we present an unsupervised 2-bit learning rule motivated by the biologically inspired Spike-timing-dependent plasticity (STDP).
Our proposed architecture is synthesized by UMC 90nm CMOS technology and operates at 100 MHz. In experiments with the MNIST dataset, the power consumption is about 25 uW. The resulting accuracy is 87.4%, which is acceptable compared to the baseline [15,16,17]. With a similar scale of neural network (i.e. number of neurons), SDM-SNN can reduce significant amounts of energy consumption of SNNs compared to the existing unsupervised learning SNN accelerators. The final energy consumption of the inference process and synaptic operation are 4.5-nJ/classification and 7.5 pJ/SOP respectively.