Real-time deep learning method, system and processor based on spiking neural network
By adopting a real-time deep learning method based on spiking neural networks on neuromorphic chips, using Tempotron learning rules and DirectFeedbackAlignment theory, weight updates are simplified, fast and energy-efficient deep spiking neural network learning is achieved, and power consumption in traditional technologies is solved. It solves high- and complex problems and improves the image recognition rate and target recognition capabilities.
Patent Information
- Application Number
- CN202111428759.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-11-28
- Publication Date
- 2024-10-29
- Estimated Expiration
- 2041-11-28
AI Technical Summary
Traditional artificial neural network models have high power consumption and slow processing speed in areas such as face recognition and speech recognition. Existing neuromorphic chips cannot meet system energy consumption, cost, volume and real-time requirements. At the same time, deep pulse neural network learning rules are complex. Difficult to run in real time on resource-constrained hardware.
Adopt a real-time deep learning method based on impulse neural network, use a random backpropagation matrix to map the output layer error to a hidden layer error, update the weights through Tempotron learning rules and gradient descent, combine with the DirectFeedbackAlignment theory to simplify the weight update, and design the computing core-computing chip double The layer-based isomorphic multi-core parallel processing mechanism avoids on-chip network mechanisms and achieves efficient parallel computing.
It realizes fast and simple deep impulse neural network learning on neuromorphic chips, improves image recognition rate, reduces power consumption, is suitable for edge application scenarios, supports larger-scale deep convolutional impulse neural networks, and improves the goal recognition rate.
Smart Images

Figure CN114065922B_ABST
Abstract
Description
Technical Field
[0001] The present invention belongs to the field of microprocessor technology, and specifically relates to a real-time deep learning method, system and processor based on a pulse neural network. Background Art
[0002] In recent years, artificial intelligence and deep learning have been widely used in fields such as face recognition, speech recognition, industrial product detection, target tracking, and vehicle autonomous driving. However, since the traditional artificial neural network (ANN) model requires all neurons to participate in synchronous intensive computing, the implementation based on general-purpose CPUs and GPUs has the problems of high power consumption and slow processing speed. Even with the use of dedicated acceleration chips, the energy efficiency indicators are still not ideal. In contrast, the human cerebral cortex has about 86 billion neurons, but uses sparse electrical pulses in time and space to encode, transmit and process sensory input information, with very little computation, and only consumes about 20W of power to complete advanced cognitive processes such as real-time learning and reasoning recognition, with high energy efficiency. Neuromorphic chips have become a research hotspot in recent years by simulating the working mechanism of the human brain and running spiking neural networks (SNN) to improve the energy efficiency of intelligent systems. Among them, SpiNNaker, TrueNorth and Loihi are more representative, but these chips mainly serve large-scale simulation computing platforms, with large network scale and chip area, which are difficult to meet application scenarios with strict restrictions on system energy consumption, cost, volume and real-time performance; In order to solve this problem, many smaller neuromorphic chips have been proposed in the prior art, such as ODIN, MorphIC, SPOON, etc., but these chips only support simple shallow pulse neural network on-chip learning, and the image recognition rate is low. Although algorithm researchers have proposed many deep pulse neural network learning rules, the operations involved are often very complex, irregular and time-consuming, and it is difficult to transplant them to hardware circuits with limited resources for real-time operation. Summary of the invention
[0003] One of the purposes of the present invention is to provide a real-time deep learning method based on a pulse neural network. The method is simple and fast, and is a deep pulse neural network learning algorithm that is easy to implement on a neuromorphic chip, so that the neuromorphic network chip can meet the high energy efficiency and real-time requirements of edge application scenarios while ensuring the image recognition rate.
[0004] Real-time deep learning methods based on spiking neural networks, including,
[0005] In the training of the spiking neural network, the error vector of the output layer is mapped to the error vector of each hidden layer using the random backpropagation matrix corresponding to the weight matrix of each hidden layer;
[0006] The error vector is defined based on the Tempotron learning rule;
[0007] Each hidden layer in the output layer set uses its own error vector to update the weight matrix based on the gradient descent principle.
[0008] Furthermore, for a neuron in a hidden layer or output layer, the update amount of the weight of the i-th synapse is:
[0009]
[0010]
[0011] Where λ is the learning rate, t i represents the time when the presynaptic pulse arrives at synapse i, t max The membrane potential reaches its maximum value V in the time window of the learning sample display max The moment, τ m is the time decay constant,
[0012] p is the local back propagation error polarity of the neuron. For the kth neuron in the lth layer, we have:
[0013]
[0014] Among them, p(L) is the error vector of the output layer L, which is B l is the random backpropagation matrix of the lth layer. For the output layer, B L Specified as the identity matrix I.
[0015] Furthermore, it also includes, during the pulse sequence input display process of the learning sample, accumulating and calculating Q i (t) and store;
[0016] Call directly when updating weights The final calculation result.
[0017] The present invention also discloses a real-time deep learning system based on a pulse neural network, comprising a plurality of parallel neural computing cores, each core comprising a plurality of parallel neural computing slices,
[0018] The computing slice is used to run a number of spiking neurons and to update the weight of each synapse using the aforementioned method.
[0019] Furthermore, each neural computing core corresponds to a layer in the fully connected network and is responsible for the calculation and state storage of the neurons in that layer. The neural computing cores are connected layer by layer.
[0020] Furthermore, the error management module is responsible for managing the output error of the network and loading the output error into the register of each neural computing core in sequence.
[0021] Furthermore, the neural computing core also includes a trace memory and a trace update unit.
[0022] The trace memory is used to store Q i (t) value;
[0023] The trace update unit is used to read Q when the presynaptic pulse arrives at the neuron i (t) value, and update Q according to the above method i (t) value, and then write it back to the Trace memory.
[0024] Furthermore, the neural computing chip also includes a trace backup register and a learning update unit;
[0025] The trace backup register is used to store the information of each synapse that the neural computing slice is responsible for. value;
[0026] The learning update unit is used to read a synapse from the Trace backup memory. The value is multiplied by the learning rate and the local backpropagation error polarity of the corresponding neuron to obtain the weight change Δw, and then the synaptic weight w ij Add to Δw to get the updated weight w ij ', and then update the weight of the synapse.
[0027] The present invention also discloses a real-time deep learning processor based on a pulse neural network, in which the aforementioned system is integrated.
[0028] Furthermore, the I / O interface of the processor includes N-bit input pulse information, N-bit output pulse information, 2-bit input three-value error polarity and 2-bit output three-value error polarity.
[0029] The beneficial effects of the present invention are:
[0030] (1) The present invention generalizes the single-layer Tempotron learning mechanism to a multi-layer network based on the Direct Feedback Alignment (DFA) theory. Compared with the existing deep SNN algorithm, the algorithm proposed by the present invention greatly simplifies the weight update calculation. When the present invention is used for reverse learning, each neuron and even each synapse can be updated in parallel, which is more suitable for efficient implementation on neuromorphic chips, especially parallel computing. At the same time, a higher recognition rate can be achieved in image classification.
[0031] (2) The system and processor architecture of the present invention adopts a computing core-computing chip dual-layer homogeneous multi-core parallel processing mechanism, making full use of the regularity of the deep pulse fully connected network structure, especially the characteristics of forward layer-by-layer connection. Each neural computing core represents a layer of the fully connected network and is connected layer by layer. When the deep pulse fully connected network is run on the chip, each layer is mapped to a computing core. This mapping avoids the limitations on chip performance and neural network scale caused by the introduction of the network on chip (NoC) mechanism. Considering the regularity of the synaptic connection of the fully connected layer, only a small number of parameters are needed to configure the registers to indicate the number of neurons in the fully connected layer and other information, and the connection relationship of all neurons can be inferred. It is not necessary to store the connection relationship of any pair of neurons like Crossbar, resulting in a large waste of storage resources.
[0032] (3) The processor proposed in the present invention can achieve seamless interface expansion through point-to-point electrical connections between a small number of I / O ports, without the need to introduce complex network-on-chip (NoC) mechanisms or additional control and transit circuits. It can be easily expanded to build homogeneous multi-chip arrays to support larger-scale deep convolutional spike neural networks, thereby coping with more complex real-world scenario tasks and achieving higher target recognition rates. BRIEF DESCRIPTION OF THE DRAWINGS
[0033] Figure 1 Schematic diagram of the computational model of LIF neurons driven by pulse events in an embodiment of the present invention.
[0034] Figure 2 It is a schematic logic block diagram based on DeepTempo learning rules in an embodiment of the present invention.
[0035] Figure 3 Schematic diagram of the trace-based deep convolution Tempotron learning process in an embodiment of the present invention.
[0036] Figure 4 Schematic diagram of the architecture of a neuromorphic chip in an embodiment of the present invention.
[0037] Figure 5 for Figure 4 Schematic logic block diagram of the membrane potential updating unit in .
[0038] Figure 6 for Figure 4 Schematic logic block diagram of the learning update unit in .
[0039] Figure 7 The figure is a flow chart of implementing the adaptive pipeline parallel operation of each neural computing core in an embodiment of the present invention. DETAILED DESCRIPTION
[0040] In the neural network model of this embodiment, both the hidden layer and the output layer are "Leaky Integrate & Fire" (LIF) neurons. The computational model of LIF neurons driven by pulse events is as follows: Figure 1 As shown, the calculation rules are as follows:
[0041]
[0042] Where V(t) is the neuron membrane potential, t i is the time when the input pulse arrives at synapse i, t prev is the time when the last input pulse arrives at any synapse, τ m is the time constant. i is the weight value of synapse i. When V(t) reaches the preset threshold V th When the neuron emits an output pulse (ignition), the membrane potential is reset to zero, and then continues to receive input pulses. When the digital circuit is implemented, the time t needs to be discretized to t = 1, 2, ..., and the pulse amplitude is also normalized to 1, so the increment of the neuron membrane potential is w i .
[0043] The classic supervised single-layer spike network Tempotron learning rule can be used to train LIF neurons to correctly fire or not fire in response to input spike patterns belonging to different class labels. Each neuron is uniquely assigned a class label. For an input training pattern, the neuron error is defined as:
[0044] e=p(V th -V max ), (2)
[0045] Where p is a three-valued error polarity: if the neuron does not respond (fires a pulse) to input belonging to its category, then p = 1; if the neuron incorrectly responds to input of another category, then p = -1; otherwise p = 0. th is the neuron membrane potential threshold, V max is the maximum value of the membrane potential V(t) in the input time window. According to the error gradient descent rule, each synaptic weight w of the neuron i Will be updated as follows:
[0046]
[0047] Where λ is the learning rate, t i represents the time when the presynaptic pulse arrives at synapse i, t max The membrane potential reaches its maximum value V in the time window of the learning sample display max The moment, τ m is the time decay constant.
[0048] In this embodiment, the direct backpropagation alignment (DFA) theory is used to expand the single-layer Tempotron learning rule to multiple layers, so that it can realize the rapid learning of deep pulse neural network. In this embodiment, it is named DeepTempo learning rule. Figure 1 The implementation of the DeepTempo learning rule on a fully connected spiking neural network consisting of L layers of LIF neurons is shown. The input layer (l = 1) is only responsible for passing the output pulse to the hidden layer and is not responsible for any calculation; the other layers are connected through the forward synaptic weight matrix W l ,l=2,3……L; and maintain a fully connected relationship with its subsequent layers.
[0049] According to the DFA mechanism, the output error vector e(L) can be obtained through a fixed random backpropagation matrix B l Directly project to each hidden layer (2≤l≤L-1). For a neuron k in a hidden layer l, its error is:
[0050] e(l,k)=∑ j B l (k,j)e(L,j), (4)
[0051] Among them B l (k,j) is the matrix B l The elements in the equation are: e(L, j) represents the error of neuron j in the output layer L. By applying the gradient descent rule and expressing e(L, j) in the form of formula (2), the synaptic weight w of the hidden layer neuron can be obtained: i The update rule is:
[0052]
[0053] where p(L,j) is the error polarity of neuron j in the output layer, V max (l,k) is the V of the k-th neuron in layer l, defined by formula (2) max In formula (5), due to is highly nonlinearly dependent on the activity of all neurons on the path from neuron (l,k) to neuron (L,j), so in order to simplify and facilitate hardware implementation, we approximate it as a constant and incorporate its influence into the learning rate λ and the random backpropagation matrix B l Therefore, we can further deduce
[0054]
[0055] For the output layer, we can specify its backpropagation matrix B(l) as the identity matrix B L=I, so that the weight update rules of neurons in all layers can be unified into the form of formula (6). Furthermore, we can extend the definition of error polarity p in the output layer to the projection backpropagation error polarity in all layers:
[0056] p(l,k)=∑ j B l (k,j)p(L,j,l=2,3,…,L (7)
[0057] Substituting formula (7) into formula (6) and omitting the layer and neuron terms (k, l), we finally obtain a unified synaptic weight update rule for both hidden and output layers:
[0058]
[0059] This is formally identical to the classic single-layer Tempotron learning rule (Equation (3)), except that p here denotes the local backpropagation error polarity of each neuron.
[0060] DFA theory helps to achieve spatial locality in the learning process because each neuron learns based on the local information in formula (8), which saves memory access overhead and can achieve large-scale hardware parallelism with extremely low latency.
[0061] To avoid directly calculating formula (8), all synaptic input pulses of all neurons in the network occur at time t i The large-scale storage resource consumption required, this embodiment proposes an optimization technology based on pulse trace to alleviate this problem. For synapse i in a specific neuron, the summation term in formula (8) can be expressed as:
[0062]
[0063] In this embodiment, Q i (t) is called the pulse trace of synapse i. We only need to trace this trace function along the time axis and back up its pulse trace at t max The value at the moment can be used to update the synaptic weight in formula (8) without having to save all t i The value of. This embodiment is called the trace-based deep convolution Tempotron learning process. From formula (9) and Figure 3 It can be seen that the pulse train input from synapse i causes Q i The change of the (t) curve is similar to the shape of the neuron membrane potential V(t), that is, it jumps when there is a pulse input, and decays exponentially at other times. Therefore, Figure 3 As shown, Q i(t) can be updated by pulse event (S1S2 in the figure), which greatly reduces the amount of calculation.
[0064] Therefore, the complete trace-based deep convolutional Tempotron learning process in this embodiment is as follows: Whenever a neuron receives an input pulse, its membrane potential V(t) is updated according to formula (1) and checked to see if it is greater than the previous V max , if the conditions are met, replace V with the current V(t) max , using the factor exp(-Δt i / τ m )(Δt i is the time since the last update) to scale Q i (t), and the updated Q i (t)Backup to respective Q i (t max ) variable, and finally increase Qi(t) triggered by the input pulse by 1. If the membrane potential V(t) is not greater than the previous V max , then only the Q of the synapse that receives the pulse is increased i (t). After the pulse train input of the learning sample is displayed, λpQ i (t max ) is the synaptic weight update amount in formula (8). Because in the deep spike convolutional network, each layer of neurons is connected to a synapse of multiple or even all neurons in the next layer, these synapses can share the corresponding trace value, further saving memory resources.
[0065] This embodiment also discloses a real-time deep learning system based on a spiking neural network. In this embodiment, the system is integrated into a neuromorphic chip to form a real-time deep learning processor based on a spiking neural network. The architecture is as follows: Figure 3 As shown, it contains multiple parallel neural computing cores, each core contains multiple parallel neural computing slices, and each computing slice is responsible for running a number of pulse neurons in a time-sharing multiplexing computing resource manner, including an on-chip learning process for updating synaptic weights.
[0066] Each neural computing core corresponds to a layer in the fully connected network, which is responsible for neuron calculation, state storage, etc. The neural computing cores are connected layer by layer, and the number of neural computing cores M can be configured through parameters. In this architecture, M=4.
[0067] The error management module is responsible for managing the output error of the network. In training mode, when the feedforward calculation process of an image is completed, the error is calculated based on the pulse emission of the output layer neurons. If the corresponding category of neurons does not emit pulses, the error is 1; if the non-corresponding category of neurons emits pulses, the error is -1; otherwise, the error is 0. After that, if a load error signal is received, the output error is loaded into the registers of each layer of the network in serial mode.
[0068] Each neural computing core contains N neural computing slices, each of which is responsible for the relevant calculations and state storage of K neurons in a time-sharing multiplexing manner. N and K can be configured through parameters. In this architecture, N = 4, K = 64 (that is, each layer has 256 neurons).
[0069] The trace update unit is used to read the current trace value from the trace memory in sequence according to formula (9) at the arrival of each time step, and then write it back to the trace memory after updating.
[0070] Because when the neuron membrane potential reaches V max When conditions permit, the Trace value needs to be backed up to the Trace memory, and each neural computing chip calculates in parallel, so multiple neural computing chips may need to access the Trace memory at the same time. Trace access arbitration is used to allow the corresponding neural computing chips to access the Trace memory in the order of the neural computing chip numbers, and send a wait signal to the neural computing chips that have not been allowed.
[0071] Trace memory is responsible for storing the value of Trace. Since the value of Trace can be shared by post-synaptic neurons, it is placed in the neural computing core so that each neural computing slice can access it together.
[0072] The neural computing chip includes a membrane potential update unit. The membrane potential update unit works as follows: Figure 4 As shown in Figure 2, the membrane potential of each neuron is updated by time-division multiplexing. The updating process is divided into an attenuation process and an integration process. During the attenuation process, the membrane potential of each neuron is first read from the neuron state memory, attenuated, and then written back to the neuron state memory. The attenuation process is the membrane potential value minus its right shift (r τ +4) bits later. τ In this design, the parameter register can be configured as 0-7. The purpose of this design is to save the area of the selector circuit. During the integration process, according to whether each presynaptic synapse has a pulse, it is selected whether to add the corresponding weight of the presynaptic synapse to the accumulation register. After traversing all synapses, the updated membrane potential value V is output. m (t).
[0073] The Vmax management unit is used to read out the membrane potential V and current V of each neuron from the neuron state memory in turn by time-division multiplexing. max , compare the two sizes, and then update the updated V max Write to the neuron state memory. At the same time, if the read V is greater than V max , a read Trace memory command is issued. If access is allowed, the corresponding Trace value is read and written into the Trace backup memory; if access is not allowed and a wait signal is received, the circuit is kept in a wait state.
[0074] The pulse transmitting unit is used to read out the membrane potential V of each neuron from the neuron state memory in turn by time-division multiplexing, and compare it with the set threshold potential V th By contrast, if it is greater than the threshold potential, a pulse is emitted to the inter-layer FIFO.
[0075] The learning update unit works like Figure 6 This module reads out the backup tracebt of each synapse that the neural computing chip is responsible for from the trace backup memory in turn by time-division multiplexing. ij (i.e., the Q i (t max ) value), and compare it with the error e of the neuron j (i.e. the local back propagation error polarity of the neuron) and then right shifted by 2*r lmd +6 bits (equivalent to multiplying the learning rate, r lmd In this design, the parameter register can be configured as 0-3. The purpose of this design is to save the area of the selector circuit) and then obtain the weight change Δw, and then read the synaptic weight w from the synaptic weight memory. ij , w ij Add to Δw to get the updated weight w ij ', and then write it back to the synaptic weight memory.
[0076] A synaptic weight memory, which stores the weights of the synapses that the neural computing slice is responsible for.
[0077] Neuron state memory. This memory stores the membrane potential V and the maximum membrane potential V of the neuron that the neural computing chip is responsible for. max and a random projection matrix.
[0078] Trace backup memory: This memory stores the backup Trace values of the synapses that the neural computing slice is responsible for.
[0079] In this embodiment, the chip architecture adopts a computing core-computing chip dual-layer homogeneous multi-core parallel processing mechanism, making full use of the regularity of the deep pulse fully connected network structure, especially the characteristics of forward layer-by-layer connection. Each neural computing core represents a layer of the fully connected network and is connected layer by layer. Each core is equipped with a small FIFO for caching the pulse information input by other cores, that is, the neuron sequence number that emits the pulse. When running a deep pulse fully connected network on the chip, each layer is mapped to a computing core, such as Figure 4 As shown in the lower left corner. This mapping avoids the limitations on chip performance and neural network scale caused by the introduction of the NoC mechanism. Considering the regularity of synaptic connections in the fully connected layer, only a small number of parameters are needed to configure the registers and indicate the number of neurons in the fully connected layer. The connection relationship of all neurons can be inferred, without having to store the connection relationship of any pair of neurons like Crossbar, which results in a large waste of storage resources.
[0080] This embodiment implements a reconfigurable adaptive pipeline parallel-array parallel processing mechanism. During the forward recognition of the neural network, each neural computing core is an adaptive pipeline parallel based on time step advancement. Whether each core starts the pipeline stage for the next time step depends on whether the time step operation currently processed by the neural core corresponding to the previous and next layers of the neural network with data dependency is completed. Figure 7 As shown in the figure, in event-driven computing, if all computing cores have few input pulses in the time step they are currently processing, they can quickly complete related calculations and jointly promote the pipeline to enter the next stage in advance without waiting for a fixed pipeline time, which greatly improves the chip's working efficiency. During reverse learning, the connection relationship between each computing core is reconstructed into array parallelism, so that based on the aforementioned deep convolution Tempotron learning rules, the synaptic weights of each layer of neurons can be updated in high-speed parallelism.
[0081] This embodiment optimizes the chip architecture data path and I / O interface design, so that it can be easily expanded to build a homogeneous multi-chip array through point-to-point electrical connections between a small number of I / O ports, without introducing complex NoC mechanisms or additional control and transfer circuits, to support larger-scale deep pulse neural networks, thereby coping with more complex real-world scenario tasks and achieving higher target recognition rates. The main I / O interface designs related to the "seamless expansion" of the chip are as follows: N-bit input pulse information, N-bit output pulse information, 2-bit input three-value error polarity (from the pulse neural network output layer in other chips), 2-bit output three-value error polarity (from the pulse neural network output layer included in this chip). If only a single chip is used, the input and output three-value error polarity I / O ports can be directly connected outside the chip. Therefore, the chip interface supports seamless expansion and builds a multi-chip system.
[0082] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or replace some or all of the technical features therein with equivalents. However, these modifications or replacements do not cause the essence of the corresponding technical solutions to deviate from the scope of the technical solutions of the embodiments of the present invention.
Claims
1. A real-time deep learning system based on a spiking neural network, characterized in that: It includes multiple parallel neural computing cores, each of which contains multiple parallel neural computing slices, which are used to run a number of pulse neurons. Each neural computing core corresponds to a layer in a fully connected network and is responsible for the calculation and state storage of neurons in this layer. The neural computing cores are connected layer by layer. The neural computing slice updates the weights of each synapse according to the following method: In the training of the spiking neural network, the error vector of the output layer is mapped to the error vector of each hidden layer using the random backpropagation matrix corresponding to the weight matrix of each hidden layer; The error vector is defined based on the Tempotron learning rule; Each hidden layer in the output layer set updates the weight matrix based on the gradient descent principle using its own error vector; For a neuron in a hidden layer or output layer, the update amount of the weight of the i-th synapse is: Where λ is the learning rate, i represents the time when the presynaptic pulse arrives at synapse i, and t max The membrane potential reaches its maximum value V in the time window of the learning sample display max The moment, τ m is the time decay constant, p is the local back propagation error polarity of the neuron. For the k-th neuron in the ,th layer, we have: Among them, p(L) is the error vector of the output layer L, Bl is the random backpropagation matrix of the ,th layer, and for the output layer, B L Specify the identity matrix I; During the pulse train input presentation of the learning sample, the cumulative calculation Q i (t) and store; Call directly when updating weights The final calculation result of The system adopts a computing core-computing slice dual-layer homogeneous multi-core parallel processing mechanism. Each core is equipped with a small FIFO to cache the pulse information input by other cores, that is, the sequence number of the neuron that emits the pulse. When running a deep spike fully connected network on the chip, each layer is mapped to a computing core, and also includes parameter configuration registers to indicate the number of neurons in the fully connected layer, and then infer the connection relationship of all neurons; It also adopts a reconfigurable adaptive pipeline parallel-array parallel processing mechanism. During forward recognition of the neural network, each neural computing core is adaptively pipelined based on time step advancement. Whether each core starts the pipeline stage for the next time step depends on whether the time step operation currently processed by the neural cores corresponding to the front and rear layers of the neural network with data dependency is completed. During reverse learning, the connection relationship between each computing core is reconstructed into array parallel, and the update of the synaptic weights of neurons in each layer is completed in parallel.
2. The system according to claim 1, characterized in that It also includes an error management module, which is responsible for managing the output error of the network and loading the output error into the registers of each neural computing core in sequence.
3. The system according to claim 1, characterized in that The neural computing core also includes a trace memory and a trace update unit. The trace memory is used to store Q i (t) value; The trace update unit is used to read Q when the presynaptic pulse arrives at the neuron i (t) value, and update Q according to the calculation method described in claim 1 i (t) value, and then write it back to the Trace memory.
4. The system according to claim 3, characterized in that The neural computing chip also includes a trace backup register and a learning update unit; The trace backup register is used to store the information of each synapse that the neural computing slice is responsible for. value; The learning update unit is used to read a synapse from the Trace backup memory. The value is multiplied by the learning rate and the local backpropagation error polarity of the corresponding neuron to obtain the weight change Δw, and then the synaptic weight w ij Add to Δw to get the updated weight w ij ', and then update the weight of the synapse.
5. A real-time deep learning processor based on a spiking neural network, characterized in that: The processor integrates the system as claimed in any one of claims 1-4.
6. The processor according to claim 5, characterized in that The I / O interface of the processor includes N-bit input pulse information, N-bit output pulse information, 2-bit input three-value error polarity and 2-bit output three-value error polarity.
