Deep pulse neural network model and deep snn on-chip real-time learning processor

By employing a deep spiking neural network model that supports on-chip real-time DFA-Errortrigger learning and a deep SNN on-chip real-time learning processor in edge computing scenarios, and utilizing direct feedback alignment theory and error triggering mechanism, the problems of high hardware resource cost, high power consumption, and low recognition accuracy in existing technologies are solved, thus realizing the high-performance edge computing requirements.

CN116562344BActive Publication Date: 2026-11-20CHONGQING UNIV
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202310616007.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-05-29
Publication Date
2026-11-20
Estimated Expiration
2043-05-29

AI Technical Summary

Technical Problem

In edge computing scenarios, existing technologies for neuromorphic processors suffer from high hardware resource costs, high power consumption, and low recognition accuracy. Furthermore, existing algorithms lack sufficient learning capabilities, making it difficult to meet the demands for real-time performance and high efficiency.

Method used

It employs a deep spiking neural network model that supports on-chip real-time DFA-Errortrigger learning and a deep SNN on-chip real-time learning processor. Utilizing the direct feedback alignment theoretical framework and error triggering mechanism, it achieves high recognition accuracy and fast learning through heterogeneous dual-core parallel array and pipelined circuit design.

Benefits of technology

It achieves high recognition accuracy and fast learning in edge computing scenarios, reduces hardware resource costs and power consumption, improves throughput performance, and has good scalability and flexible configuration capabilities.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116562344B_ABST
    Figure CN116562344B_ABST
Patent Text Reader

Abstract

The application discloses a deep pulse neural network model and a deep SNN on-chip real-time learning processor, which comprises an input layer, L-1 hidden layers and an output layer, and each layer is fully connected with a previous layer through synaptic weights; a training method of the synaptic weights is to directly project an output layer error vector to each hidden layer through a fixed random feedback matrix; during processing of a pulse sequence of a training sample, whenever an IF neuron of the output layer j at a time step t fires a pulse but its label does not match a training sample label, a negative error immediately triggers synaptic weight update of neurons of each layer; after all pulses of the training sample are processed, each IF neuron of the output layer which has never fired but its label matches the input sample label has a positive error, triggering synaptic weight update of neurons of each layer; hardware is based on event-driven, adopts a parallel array and a pipeline circuit design of a heterogeneous dual-core, and has high recognition accuracy and realizes fast on-chip learning.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to artificial intelligence and brain-like intelligent chips, specifically to a deep spiking neural network model that supports on-chip real-time DFA-Errortrigger learning and a deep SNN on-chip real-time learning processor. Background Technology

[0002] With the rapid development of artificial intelligence technology, intelligent edge systems are facing higher demands in terms of cost, processing speed, and energy efficiency. However, current mainstream Artificial Neural Network (ANN) models require a large number of neurons to participate in synchronous intensive computation, and even with dedicated acceleration chips, their real-time processing speed and energy efficiency remain significant bottlenecks. In contrast, the human brain consumes only about 20W of power during complex calculations such as learning and cognition, demonstrating high energy efficiency. In recent years, research interest in biomimetic spiking neural network models and neuromorphic systems has been increasing. Spiking Neural Network (SNN) processors utilize spatiotemporally sparse binary pulse sequences to transmit and process perceptual data, making them highly suitable for low-cost, high-speed, and high-energy-efficiency intelligent edge systems.

[0003] Existing large-scale general-purpose neuromorphic processors can be assembled into large chip arrays to simulate millions of neurons and millions to billions of synapses. These chips primarily serve neuroscience research and data center computing, but their high area cost and power consumption make them unsuitable for edge intelligence systems. To adapt to current multi-purpose edge computing, some small-scale application-specific integrated circuit (ASIC) systems have been proposed. These systems can only configure a limited number of neurons and synapses and have poor flexibility in configuring neuron models, network topologies, and on-chip learning. Furthermore, these small chips exhibit low on-chip recognition accuracy in image recognition tasks. Another branch of edge neuromorphic hardware research utilizes field-programmable gate array (FPGA) devices to rapidly explore and validate different neuron models, various on-chip learning algorithms, and feasible hardware architectures. However, many of these processors have low on-chip recognition accuracy (close to or below 90%). The reason for this is that they employ the unsupervised Spike-Timing-Dependent Synaptic Plasticity (STDP) algorithm, which is highly advantageous for hardware implementation but has relatively low learning capabilities. Recently, Professor Shi Cong's team at Chongqing University integrated three neuromorphic SNN algorithms and implemented a single-layer SNN processor with 256 neurons on a Zynq-7045 FPGA. This processor achieved a recognition accuracy of 95.1% on the MNIST dataset and a processing speed of 1350 frames per second. However, its fully connected synaptic weights require 1024 (number of input nodes) × 256 (number of neurons) × 16-bit (synaptic weight bit precision) = 512KB of on-chip storage resources, and consume approximately 1W of power. This is unfavorable for deployment in edge computing scenarios with high hardware resource costs and power consumption requirements.

[0004] To achieve an overall improvement in hardware resource cost, data throughput, processing latency, and on-chip learning accuracy in edge neuromorphic system design, this invention proposes a deep spiking neural network model that supports on-chip real-time DFA-Errortrigger learning and a deep SNN on-chip real-time learning processor. Summary of the Invention

[0005] This invention proposes a deep spiking neural network model and a deep SNN on-chip real-time learning processor that support on-chip real-time DFA-Errortrigger learning, which can achieve high recognition accuracy and realize fast on-chip learning.

[0006] To achieve the above objectives, the technical solution adopted by the present invention is as follows:

[0007] In a first aspect, the deep spiking neural network model described in this invention includes an input layer, L-1 hidden layers and an output layer, each layer is composed of multiple IF neurons, and each layer is fully connected to the previous layer through synaptic weights W(l).

[0008] The training method for synaptic weights W(l) is to directly project the output layer error vector e(L) onto each hidden layer through a fixed random feedback matrix B(l), where 1≤l≤L-1.

[0009] During the processing of the pulse sequence of the training samples, whenever the IF neuron j in the output layer emits a pulse at time step t but its label does not match the label of the training sample, the error polarity p(L,j) of neuron j in the L of the output layer is -1, which immediately triggers the update of the synaptic weights W(l) of each layer of neurons.

[0010] After processing all the pulses of the training samples, each IF neuron in the output layer that never fired but whose label matches the label of the input sample will have a positive error, i.e., p(L,j)=+1, which triggers the synaptic weight W(l) of the IF neurons in each layer to be updated.

[0011] Optionally, the input pulse coding method is: rate coding based on Poisson distribution.

[0012] Optionally, the pulse decoding method is as follows: count the total number of pulses emitted by each class containing all IF neurons, and take the class with the largest total number of pulses as the classification result of the input sample; if there are two or more classes with the same total number of pulses, the classification result is judged as unknown.

[0013] Secondly, the deep SNN on-chip real-time learning processor of the present invention includes an array of M1 heterogeneous multi-core cores and an error management unit; the arrays are connected in sequence, and the last array is connected to the error management unit.

[0014] Each array performs parallel computation, and each array is driven by a pulse event, processing the pulse event in the form of AER; where AER includes the source address of the pulse event;

[0015] The array includes M2 parallel neural computation cores, an input AER FIFO, and an arbitrator that sequentially sends the AER outputs of each neural computation core. The input AER FIFO is connected to each neural computation core, and the arbitrator is connected to each neural computation core. When an AER is output by one array, it is placed in the input FIFO of the next array. When the next array finishes processing an AER, it retrieves the AER from the input AER FIFO of its current array.

[0016] The deep SNN on-chip real-time learning processor integrates the real-time DFA-Errortrigger learning algorithm model as described in this invention.

[0017] Optionally, the neural computation kernel includes a local controller, an IF neuron module, a learning engine module, an output AERFIFO, a membrane potential memory, and a synaptic weight memory; the local controller is connected to the IF neuron module, the learning engine module, the output AERFIFO, the membrane potential memory, and the synaptic weight memory respectively; the IF neuron module is connected to the learning engine module, the output AERFIFO, the membrane potential memory, and the synaptic weight memory respectively; and the synaptic weight memory is also connected to the learning engine module.

[0018] Optionally, the IF neuron module employs a two-stage pipeline. In the first-stage pipeline, when there is an input pulse AER from the previous layer, the membrane potential of all IF neurons is updated serially. The second-stage pipeline is used to determine whether to emit an output pulse AER.

[0019] Optionally, the learning engine module employs a two-stage pipeline, where the error p from the IF neuron j of the error management unit... j The learning engine module is triggered to serially update the synaptic weights W(l) of the IF neuron, but the learning engine module is not started during inference.

[0020] The beneficial effects of this invention are:

[0021] (1) This invention proposes a deep spiking neural network model that supports on-chip real-time DFA-Errortrigger learning. Based on the Direct Feedback Alignment (DFA) theoretical framework, it utilizes the error triggering mechanism to achieve high recognition accuracy while being conducive to the implementation of intelligent edge systems with high real-time requirements.

[0022] (2) The hardware architecture of the present invention is based on event-driven and adopts a heterogeneous dual-core parallel array and pipeline circuit design, which can significantly improve throughput performance.

[0023] (3) The hardware architecture proposed in this invention has good scalability: the hardware architecture can be flexibly configured through parameter configuration to meet the needs of different application scenarios. Attached Figure Description

[0024] Figure 1 This is the deep spiking neural network model in this embodiment.

[0025] Figure 2 This describes the hardware architecture of the on-chip real-time learning processor for the deep SNN in this embodiment.

[0026] Figure 3This is a circuit diagram of the IF neuron module in this embodiment.

[0027] Figure 4 This is a circuit diagram of the learning engine module in this embodiment. Detailed Implementation

[0028] like Figure 1 As shown in this embodiment, a deep spiking neural network model is presented. This deep spiking neural network model supports on-chip real-time DFA-Errortrigger learning. Based on the Direct Feedback Alignment (DFA) theoretical framework, and utilizing the error triggering mechanism, it can achieve high recognition accuracy, which is beneficial for implementation in intelligent edge systems with high real-time requirements. The designed hardware is event-driven, employing a heterogeneous dual-core parallel array and pipelined circuit design, which can significantly improve throughput performance.

[0029] 1. Design of a deep spiking neural network model:

[0030] The recently emerging direct feedback alignment framework projects the output layer error of a neural network independently to each hidden layer using a fixed random feedback matrix, replacing the layer-by-layer error propagation in standard error backpropagation (BP). This significantly reduces computational complexity and latency. The errortrigger learning rule updates weights based on the number of input pulses accumulated on synapses; it is simple to operate and easy to implement in hardware.

[0031] In this embodiment, a deep spiking neural network model is designed based on the DFA theoretical framework and combined with the Errortrigger learning rule. Each layer in this deep spiking neural network model consists of multiple IF neurons, and each layer is fully connected to the previous layer through the synaptic weight matrix W(l).

[0032] 2. Design of on-chip learning rules:

[0033] Under the DFA mechanism, to train the synaptic weights W(l), the output layer error vector e(L) can be directly projected onto each hidden layer (1≤l≤L-1) through a fixed random feedback matrix B(l). For the IF neuron k in hidden layer l, its generalized error polarity p is defined as:

[0034]

[0035] in B(l)(k,j)Let p(L,j) be the element in matrix B(l) (the elements in B(l) are randomly determined for each hidden layer, and for the output layer B(L) it is equal to the unit matrix I), and p(L,j) be the error polarity of IF neuron j in output layer L. p(L,j) is trivalued (i.e., it can be +1 / 0 / -1). During the processing of the pulse sequence of the training samples, whenever the output layer IF neuron j emits a pulse at time step t but its label does not match the training sample label, p(L,j) = -1, immediately triggering the update of the synaptic weights W(l) of the IF neurons in each layer, as follows:

[0036] Δw uv (t)=ηC u (t)p v (t) (2)

[0037] Where: η is the learning rate, C u (t) represents the number of pulses accumulated on the synapses connecting the r-th layer IF neuron v to the previous layer IF neuron u up to the current time step t, where 1 ≤ r ≤ R, R is the number of layers in the deep spiking neural network model, and p v (t) represents the error of the r-th layer IF neuron v. In addition, after processing all the pulses of the training samples, each output layer IF neuron that has never fired but whose label matches the label of the input sample will have a positive error, p(L,j)=+1, which triggers the synaptic weight W(l) of each layer IF neuron to be updated, also in the form of formula (2).

[0038] 3. Input pulse encoding and output pulse decoding methods:

[0039] Input pulse coding: Rate coding based on Poisson distribution.

[0040] Output pulse decoding: The total number of pulses emitted by all IF neurons in each class is counted, and the class with the highest total number of pulses is used as the classification result for the input sample. If two or more classes have the same total number of pulses, the classification result is determined as unknown.

[0041] 4. Software positioning to evaluate the recognition accuracy of the proposed deep spiking neural network model on the classic MNIST dataset:

[0042] Using the C# programming language and Visual Studio, the software code was fixed-point scalarized to facilitate hardware and software data comparison in subsequent experiments. When the deep spiking neural network model is 784-500-500-500-200 (i.e., the input layer consists of 784 IF neurons, each hidden layer consists of 500 IF neurons, and the output layer consists of 200 IF neurons), its recognition accuracy on the MNIST dataset is 96%.

[0043] In this embodiment, as Figure 2 As shown, a deep SNN on-chip real-time learning processor is an on-device digital neuromorphic brain-like processor that supports on-chip real-time DFA-Errortrigger learning.

[0044] 1. Overall Hardware Architecture Design

[0045] like Figure 2 As shown, this embodiment includes an array of M1 heterogeneous multi-core processors and an error management unit; the arrays are connected sequentially, with the last array connected to the error management unit. Each array performs parallel computation, and each array is event-driven, processing its pulse events in the form of Address-Event Representation (AER). The AER includes the source address of the pulse event.

[0046] like Figure 2 As shown, the array includes M2 parallel neural computation kernels, an input AER FIFO, and an arbitrator that sequentially sends the AER outputs of each neural computation kernel. The input AER FIFO is connected to each neural computation kernel, and the arbitrator is connected to each neural computation kernel. When an AER output from one array is placed in the input FIFO of the next array, and when the next array finishes processing an AER, it retrieves the AER from the input AER FIFO of its current array, the deep SNN on-chip real-time learning processor integrates the real-time DFA-Errortrigger learning algorithm model as described in this embodiment.

[0047] In this embodiment, each neural computation kernel serially executes the related operations of up to m = 128 IF neurons. Each neural computation kernel includes a local controller, an IF neuron module that executes formula (1), a learning engine module that executes formula (2), an output AER FIFO, a membrane potential memory, and a synaptic weight memory. The local controller is connected to the IF neuron module, the learning engine module, the output AER FIFO, the membrane potential memory, and the synaptic weight memory, respectively. The IF neuron module is connected to the learning engine module, the output AER FIFO, the membrane potential memory, and the synaptic weight memory, respectively. The synaptic weight memory is also connected to the learning engine module. The proposed architecture is scalable and flexibly configurable to meet the needs of different applications in balancing processing speed, recognition accuracy, and resource costs.

[0048] 2. Circuit Design of Key Computing Modules

[0049] Each computing module is designed and optimized using pipelined circuitry to ensure a high processing frame rate. Once a pulse event arrives, they can complete the corresponding neural synaptic operation at a rate of up to one neuron per clock cycle. In the pipelined circuitry of each computing module, one stage corresponds to one clock cycle.

[0050] like Figure 3 As shown in this embodiment, the circuit structure of the IF neuron module employs a two-stage pipeline for computation. In the first stage pipeline, when an input pulse AER from the previous layer arrives, the membrane potentials of all IF neurons are updated serially. The second stage pipeline determines whether to emit an output pulse AER.

[0051] like Figure 4 As shown, in this embodiment, the learning engine module's circuitry employs a two-stage pipeline for computation. The error p from neuron j in the error management unit... j The learning engine module is triggered to serially update the synaptic weights of the IF neuron. In this embodiment, 16-bit is used to calculate the precise weight change Δw in formula (2). ij However, the weight w is stored in 8-bit form. ij To save storage space. Δw ij Add to w ij Previously, it was randomly rounded. Utilizing the characteristics of the complementary expression of 2, Δw is... ij The lowest 8 bits are used as the probability P∈[0,1-2]. -8 The unsigned fraction P ≈ [0,1] is rounded and compared with another unsigned 8-bit random fraction R generated by a linear feedback shift register (LFSR). If P > R, the rounding is Δw. ij The lowest 8 bits are selected; otherwise, they are discarded. The learning engine module is not activated during inference.

[0052] In this embodiment, IF neurons refer to neurons in each layer of the network that use the Integrate & Fire (IF) neuron model. An IF neuron block is a circuit module that updates the neuron membrane potential and determines whether the neuron fires a pulse (firing a pulse if the neuron membrane potential exceeds a threshold).

Claims

1. A deep SNN on-chip real-time learning processor, characterized in that: It includes an array of M1 heterogeneous multi-core cores and an error management unit; the arrays are connected in sequence, and the last array is connected to the error management unit; Each array performs parallel computation, and each array is driven by a pulse event, processing the pulse event in the form of AER; where AER includes the source address of the pulse event; The array comprises M2 parallel neural computation kernels, an input AER FIFO, and an arbitrator that sequentially sends the AER outputs of each neural computation kernel. The input AER FIFO is connected to each neural computation kernel, and the arbitrator is connected to each neural computation kernel. An AER output from one array is placed in the input FIFO of the next array. When the next array finishes processing an AER, it retrieves the AER from the input AER FIFO of its current array. Each neural computation kernel comprises a local controller, an IF neuron module, a learning engine module, an output AER FIFO, a membrane potential memory, and a synaptic weight memory. The local controller is connected to the IF neuron module, the learning engine module, the output AER FIFO, the membrane potential memory, and the synaptic weight memory. The IF neuron module is connected to the learning engine module, the output AER FIFO, the membrane potential memory, and the synaptic weight memory. The synaptic weight memory is also connected to the learning engine module. The deep SNN on-chip real-time learning processor integrates a deep spiking neural network model, which includes an input layer, L−1 hidden layers, and an output layer. Each layer consists of multiple IF neurons, and each layer is fully connected to the previous layer through synaptic weights W(l). The model device is executed based on an event-driven approach, adapting to the real-time processing requirements of neuromorphic intelligent chips. Wherein, L is a positive integer. The training method for synaptic weights W(l) is to directly project the output layer error vector e(L) onto each hidden layer through a fixed random feedback matrix B(l), where 1≤l≤L−1; For an IF neuron k in hidden layer l, its generalized error polarity p is defined as: (1) Where B(l)(k, j) are the elements in matrix B(l). For each hidden layer, the elements in B(l) are randomly determined. For the output layer B(L), it is equal to the unit matrix I, and p(L, j) is the error polarity of IF neuron j in the output layer L. During the processing of the pulse sequence of the training samples, whenever the IF neuron j in the output layer emits a pulse at time step t but its label does not match the label of the training sample, the error polarity p(L, j) of neuron j in the output layer L is -1, which immediately triggers the update of the synaptic weights W(l) of each layer of neurons. After processing all the pulses of the training samples, each IF neuron in the output layer that never fired but whose label matches the label of the input sample will have a positive error, i.e., p(L, j) = +1, which triggers the synaptic weight W(l) of the IF neurons in each layer to be updated. Specifically, the synaptic weight W(l) is updated as follows: (2) in: Here, η represents the updated synaptic weights, η is the learning rate, and Cu(t) is the number of accumulated pulses on the synapses connecting the r-th layer IF neuron v to the previous layer IF neuron u up to the current time step t, where 1 ≤ r ≤ R, and R is the number of layers in the deep spiking neural network model. Let v be the error of the IF neuron in the r-th layer.

2. The deep SNN on-chip real-time learning processor according to claim 1, characterized in that: The IF neuron module employs a two-stage pipeline. In the first-stage pipeline, when there is an input pulse AER from the previous layer, the membrane potential of all IF neurons is updated serially. The second-stage pipeline is used to determine whether to emit an output pulse AER.

3. The deep SNN on-chip real-time learning processor according to claim 1, characterized in that: The learning engine module employs a two-stage pipeline, with the error from the IF neuron j in the error management unit... The learning engine module is triggered to serially update the synaptic weights W(l) of the IF neuron, but the learning engine module is not started during inference.

4. The deep SNN on-chip real-time learning processor according to claim 1, characterized in that: The input pulse coding method is: rate coding based on Poisson distribution.

5. The deep SNN on-chip real-time learning processor according to claim 1, characterized in that: The output pulse decoding method is as follows: count the total number of emitted pulses of all IF neurons in each class, and take the class with the most pulses as the classification result of the input sample; if there are two or more classes with the same number of pulses, the classification result is judged as unknown.

Citation Information

Patent Citations

  • Data processing method and device, computer device and storage medium

    CN110796231A

  • Full-digital pulse neural network hardware system and method based on STDP rule

    CN113408714A