Neural network device, processing method and program

The non-leakage integral-fire type spiking neuron model simplifies spiking neural networks by using step functions and firing timing-based information transmission, reducing power consumption and processing complexity while maintaining accuracy.

JP7553893B2Active Publication Date: 2024-09-19NEC CORP +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
JP2023066737
Authority / Receiving Office
JP · JP
Patent Type
Patents
Current Assignee / Owner
Priority Date
2019-03-20
Filing Date
2023-04-14
Publication Date
2024-09-19
Estimated Expiration
2040-03-18

AI Technical Summary

Technical Problem

Existing spiking neural networks face challenges in model complexity and high power consumption due to the inclusion of nonlinear functions and complex learning rules, which increase circuit area and power consumption.

Method used

A neural network device utilizing a non-leakage integral-fire type spiking neuron model with a postsynaptic current expressed as a step function, where each neuron fires at most once and transmits information based on firing timing, simplifying the model and reducing power consumption.

Benefits of technology

The simplified model achieves lower processing load, shorter processing time, and reduced power consumption, while maintaining high recognition accuracy, and can be implemented in both software and hardware with minimal circuit area.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 0007553893000068
    Figure 0007553893000068
  • Figure 0007553893000059
    Figure 0007553893000059
  • Figure 0007553893000060
    Figure 0007553893000060
Patent Text Reader

Abstract

To make a model of a neural network comparatively simple.SOLUTION: A neural network apparatus according to the present invention has a neuron model unit formed as a spiking neuron of integrate-and-fire model without leakage and a spiking neuron obtained by representing postsynaptic current by using a step function and representing an output of the neuron model unit itself at one fire timing in one processing of the neuron network, and a transmission processing unit for transmitting information between the neuron model units.SELECTED DRAWING: Figure 3
Need to check novelty before this filing date? Find Prior Art

Description

[Technical field]

[0001] The present invention relates to a neural network device, a processing method, and a program. [Background technology]

[0002] (On forward propagation spiking neural networks) One type of neural network is the forward propagation spiking neural network (SNN), which is a network formed by connecting spiking neuron models (also called spiking neurons or simply neurons). The feedforward propagation type is a network construction method in which information is transmitted in one direction from layer to layer. Each layer of a feedforward propagation type spiking neural network consists of one or more spiking neurons, and there are no connections between spiking neurons in the same layer.

[0003] Fig. 14 is a diagram showing an example of a hierarchical structure of a forward propagation spiking neural network. Fig. 14 shows an example of a forward propagation four-layer spiking neural network. However, the number of layers of the forward propagation spiking neural network is not limited to four layers, and may be two or more layers. As shown in Fig. 14, the forward propagation spiking neural network is configured in a hierarchical structure, receives data input, and outputs a calculation result. The calculation result output by the neural network is also called a predicted value or prediction. The first layer of a neural network (layer 1011 in the example of FIG. 14) is called the input layer, and the last layer (fourth layer (layer 1014) in the example of FIG. 14) is called the output layer. The layers between the input layer and the output layer (second layer (layer 1012) and third layer (layer 1013) in the example of FIG. 14) are called hidden layers.

[0004] Fig. 15 is a diagram showing a configuration example of a forward propagation spiking neural network. Fig. 15 shows an example in which each of the four layers (layers 1011 to 1014) in Fig. 14 has three spiking neurons (spiking neuron models) 1021. However, the number of spiking neurons included in the forward propagation spiking neural network is not limited to a specific number, and each layer may have one or more spiking neurons. Each layer may have the same number of spiking neurons, or each layer may have a different number of spiking neurons.

[0005] Spiking neuron 1021 mimics the signal integration and spike generation (firing) by the soma of a biological neuron. The transmission pathway 1022 simulates the transmission of signals by the axons and synapses of biological nerve cells. The transmission pathway 1022 is arranged connecting two spiking neurons 1021 in adjacent layers, and transmits spikes from the spiking neuron 1021 in the previous layer to the spiking neuron 1021 in the subsequent layer.

[0006] In the example of FIG. 15, transmission paths 1022 transmit spikes from each of the spiking neurons 1021 in layer 1011 to each of the spiking neurons 1021 in layer 1012, from each of the spiking neurons 1021 in layer 1012 to each of the spiking neurons 1021 in layer 1013, and from each of the spiking neurons 1021 in layer 1013 to each of the spiking neurons 1021 in layer 1014.

[0007] The spiking neuron model has a membrane potential as an internal state, and the membrane potential evolves over time according to a differential equation. A common spiking neuron model is the leaky integrate-and-fire neuron model, which evolves over time according to the differential equation shown in Equation (1).

[0008]

number

[0009] where v (n) i denotes the membrane potential in the i-th spiking neuron model in the n-th layer. leak is the coefficient of the constant that indicates the magnitude of leakage in the leaky integrate-and-fire model. I (n) i w denotes the postsynaptic current in the ith spiking neuron model in the nth layer. (n) ij is a coefficient indicating the strength of the connection from the jth spiking neuron model in the (n-1)th layer to the ith spiking neuron model in the nth layer, and is called the weight. t indicates the time. (n-1) j indicates the firing timing (firing time) of the j-th neuron in the (n-1)th layer. κ is a function that indicates the effect of a spike transmitted from the previous layer on the postsynaptic current.

[0010] The membrane potential is at threshold V th When the voltage exceeds the reset value V, the spiking neuron model generates a spike (fires), and the membrane potential then drops to the reset value V reset The generated spikes are then transmitted to the connected spiking neuron model in the subsequent layer.

[0011] FIG. 16 is a diagram showing an example of the time evolution of the membrane potential of a spiking neuron. The horizontal axis of the graph in FIG. 16 indicates time, and the vertical axis indicates the membrane potential. FIG. 16 shows an example of the time evolution of the membrane potential of the i-th spiking neuron in the n-th layer, where the membrane potential is v (n) i It is expressed as follows. As mentioned above, V th indicates the membrane potential threshold. V reset indicates the reset value of the membrane potential. (n-1) 1 indicates the firing timing of the first neuron in the n-1th layer. (n-1) 2 indicates the firing timing of the second neuron in the n-1th layer. (n-1)3 indicates the firing timing of the third neuron in the n-1th layer. time t (n-1) The first firing in 1 and time t (n-1) In the third firing in 3, both have membrane potential v (n) i is the threshold V th On the other hand, at time t (n-1) In the second firing at 2, the membrane potential v (n) i is the threshold V th and then immediately afterwards, the reset value V reset has declined to.

[0012] It is expected that spiking neural networks, when implemented as hardware using CMOS (Complementary MOS) etc., will consume less power than deep learning models. One of the reasons for this is that the human brain is a low-power computing medium equivalent to 20 watts (W), and spiking neural networks can mimic the activity of such a low-power brain.

[0013] To create hardware that consumes as much power as the brain, it is necessary to develop spiking neural network algorithms that mimic the computational principles of the brain. For example, it is known that image recognition can be performed using spiking neural networks, and various supervised and unsupervised learning algorithms have been developed.

[0014] (On the information transmission method in spiking neural networks) In the spiking neural network algorithm, there are several methods for transmitting information by spikes, and the frequency method and the time method are particularly commonly used. The frequency method conveys information based on how many times a particular neuron fires during a certain time interval, whereas the time method conveys information based on the timing of spikes.

[0015] FIG. 17 is a diagram showing examples of spikes in the frequency method and the time method. In the example of FIG. 17, in the frequency method, information "1", "3", and "5" are shown by the number of spikes corresponding to the information. On the other hand, in the time method, the number of spikes is one for each of the information "1", "3", and "5", and the information is shown by generating spikes at a timing corresponding to the information. In the example of FIG. 17, the neuron generates spikes at a later timing as the number of information increases.

[0016] As shown in Fig. 17, the time method can express information with a smaller number of spikes than the frequency method. Non-Patent Document 1 reports that in tasks such as image recognition, the time method can be executed with a spike number that is one-tenth or less of that of the frequency method. Since the power consumption of hardware increases with the number of spikes, a time-based algorithm can reduce power consumption.

[0017] (Prediction using forward propagation spiking neural networks) It has been reported that a variety of problems can be solved by using a forward propagation spiking neural network. For example, in a network configuration like that shown in Figure 14, image data can be input to the input layer and the spiking neural network can predict the answer. In the case of the time method, the predicted value can be output, for example, by the neuron in the output layer that fired (generated a spike) the earliest.

[0018] (On the learning of forward propagation spiking neural networks) A learning process is required for a spiking neural network to make correct predictions. For example, in the learning process for recognizing an image, image data and its corresponding label data are used.

[0019] In the learning process, the spiking neural network receives data input and outputs a predicted value. Then, the learning mechanism for training the spiking neural network calculates a prediction error, which is the difference between the predicted value output by the spiking neural network and the label data (correct answer). The learning mechanism trains the spiking neural network by minimizing the loss function L defined from the prediction error by optimizing the network weights in the spiking neural network.

[0020] (Minimizing the loss function) For example, the learning mechanism can minimize the loss function L by updating the weights as shown in equation (2).

[0021]

number

[0022] Here, Δw (n) ij is the weight w (n) ij It indicates the increase or decrease of Δw (n) ij If the value of is positive, the weight w (n) ij Increase Δw (n) ij If the value of is negative, the weight w (n) ij Reduces. η is a constant called the learning coefficient.

[0023] (About stochastic gradient descent) In stochastic gradient descent, weights are updated once using a portion of the training data. When weight updates are repeated multiple times using all of the training data, the repetition unit is called an epoch. In stochastic gradient descent, learning is generally converged after tens to hundreds of epochs. Updating weights using one piece of data (one input data and one label data) is called online learning, and updating using two or more pieces of data is called mini-batch learning.

[0024] (About output of prediction results) As mentioned above, it has been reported that a variety of problems can be solved by using a feedforward spiking neural network. For example, as mentioned above, image data can be input to the input layer and the network can predict the answer for that image.

[0025] FIG. 18 is a diagram showing an example of an output representation of the prediction result of a spiking neural network. For example, in the task of recognizing images of three numbers from 0 to 2, as shown in Figure 18, three neurons make up the output layer, each corresponding to a number from 0 to 2, and the number indicated by the neuron that fires the earliest among them becomes the prediction indicated by the network. Note that the operation of this network is time-based, since information is coded by the timing of neuron firing.

[0026] (Nonlinear functions and hardware implementation) The dedicated hardware for spiking neural networks is generally called neuromorphic hardware. There are two types of implementation of this hardware: analog circuit implementation and digital circuit implementation. In general, hardware is required to have small power consumption and circuit area, but on the other hand, implementing a complex neuron model or complex learning rules results in large power consumption and circuit area.

[0027] (On nonlinear functions) In neuron models, a form including a nonlinear function is often adopted because of its consistency with biological neurons.

[0028] (Data transfer) The power consumption of neuromorphic hardware is largely due to the movement of memory data such as weights. Therefore, power consumption can be reduced by using an algorithm that moves less data in the learning rule. To reduce data movement, it is necessary to reduce the number of moves and / or the distance the data is moved.

[0029] Fig. 19 is a diagram showing an example of data movement during prediction and learning. In Fig. 19, neurons are shown as triangles and weights are shown as circles. During prediction, data movement occurs as shown by the solid line. On the other hand, during learning, particularly when updating the weight w1, data movement occurs as shown by the dashed line.

[0030] (For leak-free models) In Non-Patent Document 2, the constant α leak It has been reported that the recognition accuracy can be improved by using a leakless integrate-and-fire model in which x is set to 0. In Non-Patent Document 2, the model shown in Equation (3) is used as the leakless integrate-and-fire model.

[0031]

number

[0032] Here, exp is the natural exponential function and τ is a constant. [Prior art documents] [Non-patent literature]

[0033] [Non-Patent Document 1] T. Liu and others, “MT-spike: A multilayer time-based spiking neuromorphic architecture with temporal error backpropagation”, Proceedings of the 36th International Conference on Computer-Aided Design, IEEE Press, 2017, p.450-457 [Non-Patent Document 2] H. Mostafa, “Supervised Learning Based on Temporal Coding in Spiking Neural Networks”, IEEE Transactions on Neural Networks and Learning Systems, No. 29, 2018, p. 3227-3235. [Non-Patent Document 3] SM Bohte and 2 others, “Error-backpropagation in temporally encoded networks of spiking neurons”, Neurocomputing, Vol. 48, 2002, pp. 17-37 Summary of the Invention [Problem to be solved by the invention]

[0034] It is preferable to keep the neural network model simple. For example, the leakage-free integral model shown in the above equation (3) in Non-Patent Document 2 includes a non-linear function (exp(-x / τ)), whereas it is preferable from the viewpoint of simplifying the model to be able to construct a model without this non-linear function.

[0035] An object of the present invention is to provide a neural network device, a processing method, and a program that can solve the above-mentioned problems. [Means for solving the problem]

[0036] According to a first aspect of the present invention, a neural network device includes a non-leaky integrate-and-fire spiking neuron and a post-synaptic current (PSC). I (m) i (t) However, the firing timing of the spiking neurons in the layer before that spiking neuron t (m-1) j A step function whose value changes at θ(tt (m-1) j ) of Weight w (m) ij by Weighted Sum Σ j w (m) ij θ(tt (m-1) j ) in I (m) i (t)=Σ j w (m) ij θ(tt (m-1) j )and The neuron model means is configured as a spiking neuron represented by a spiking neuron which fires at most once in one processing of the neural network and indicates the output of the neuron model means at the timing of the firing, and a transmission processing means which transmits information between the neuron model means.

[0037] According to a second aspect of the present invention, a processing method is provided for a non-leaky integrate-and-fire spiking neuron and a post-synaptic current I (m) i (t) is a step function whose value changes with the firing timing of the spiking neurons in the layer before that spiking neuron. θ(tt (m-1) j ) of Weight w (m)ij by Weighted Sum Σ j w (m) ij θ(tt (m-1) j ) in I (m) i (t)=Σ j w (m) ij θ(tt (m-1) j )and The method includes a step of executing an operation of a spiking neuron represented by the formula (1) which fires at most once in one processing of a neural network and indicates the output of the spiking neuron itself at the timing of the firing, and a step of transmitting information between the spiking neurons.

[0038] According to a third aspect of the present invention, a program is provided for instructing an ASIC to include a non-leaky integrate-and-fire spiking neuron and a post-synaptic current I (m) i (t) However, the firing timing of the spiking neurons in the layer before that spiking neuron t (m-1) j A step function whose value changes at θ(tt (m-1) j ) of Weight w (m) ij by Weighted Sum Σ j w (m) ij θ(tt (m-1) j ) in I (m) i (t)=Σ j w (m)ij θ(tt (m-1) j )and The program is for executing the steps of: executing the operation of a spiking neuron represented by the above-mentioned formula (1), which fires at most once in one processing of a neural network and indicates the output of the spiking neuron itself at the timing of the firing; and transmitting information between the spiking neurons. Effect of the Invention

[0039] According to the present invention, the neural network model can be made relatively simple. [Brief description of the drawings]

[0040] [Figure 1] FIG. 2 is a diagram showing an example of a hierarchical structure of a neural network device according to an embodiment. [Diagram 2] FIG. 1 is a diagram illustrating an example of the configuration of a neural network device according to an embodiment. [Diagram 3] FIG. 1 is a diagram illustrating an example of a schematic configuration of a neural network system according to an embodiment. [Figure 4] FIG. 13 is a diagram showing the relationship between spike timing and firing probability density according to the embodiment. [Diagram 5] 11A and 11B are diagrams illustrating changes in firing probability density when weights are changed according to the embodiment. [Figure 6] FIG. 13 is a diagram showing a change in firing probability density when spike timing is changed according to the embodiment. [Figure 7] FIG. 11 is a diagram illustrating an example of an update rule for weights of a network according to an embodiment. [Figure 8] FIG. 11 is a diagram showing an example of a simulation result of the neural network device according to the embodiment. [Figure 9] FIG. 13 is a diagram showing a state in which a membrane potential changes with a change in weight according to the embodiment. [Figure 10]FIG. 13 is a diagram showing a state in which a membrane potential changes with a change in firing timing according to an embodiment. [Figure 11] FIG. 1 is a diagram illustrating an example of the configuration of a neural network device according to an embodiment. [Figure 12] FIG. 1 is a schematic block diagram illustrating an example configuration of dedicated hardware in accordance with at least one embodiment. [Figure 13] FIG. 1 is a schematic block diagram illustrating an example configuration of a computer according to at least one embodiment. [Figure 14] FIG. 1 is a diagram illustrating an example of a hierarchical structure of a forward propagation type spiking neural network. [Figure 15] FIG. 1 is a diagram illustrating an example of the configuration of a forward propagation type spiking neural network. [Figure 16] FIG. 1 shows an example of the time evolution of the membrane potential of a spiking neuron. [Figure 17] 11A and 11B are diagrams illustrating examples of spikes in the frequency method and the time method, respectively. [Figure 18] FIG. 13 is a diagram showing an example of an output representation of a prediction result of a spiking neural network. [Figure 19] FIG. 13 is a diagram illustrating an example of data movement during prediction and learning. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS

[0041] The following describes embodiments of the present invention, but the following embodiments do not limit the scope of the invention. Furthermore, not all of the combinations of features described in the embodiments are necessarily essential to the solution of the invention.

[0042] (Structure of the Neural Network Device According to the Embodiment) FIG. 1 is a diagram showing an example of a hierarchical structure of a neural network device according to an embodiment. 1, the neural network device 100 is configured as a forward propagation four-layer spiking neural network (SNN). However, the number of layers of the neural network device 100 is not limited to the four layers shown in FIG. 1, and may be two or more layers.

[0043] A neural network device 100 shown in FIG. 1 functions as a forward propagation type spiking neural network, receiving data as input and outputting a calculation result (referred to as a predicted value or prediction). Of the layers of the neural network device 100, the first layer (layer 111) corresponds to the input layer. The last layer (fourth layer, layer 114) corresponds to the output layer. The layers between the input layer and the output layer (the second layer (layer 112) and the third layer (layer 113)) correspond to hidden layers.

[0044] Fig. 2 is a diagram showing a configuration example of the neural network device 100. Fig. 2 shows an example in which each of the four layers (layers 111 to 114) in Fig. 1 has three nodes (neuron model units 121). However, the number of neuron model units 121 included in the neural network device 100 is not limited to a specific number, and each layer may have two or more neuron model units 121. Each layer may have the same number of neuron model units 121, or each layer may have a different number of neuron model units 121.

[0045] The neuron model unit 121 is configured as a spiking neuron (spiking neuron model), and simulates signal integration and spike generation (firing) by the cell body. The transmission processing unit 122 simulates the transmission of signals by axons and synapses. The transmission processing unit 122 is arranged to connect two neuron model units 121 between any two layers, and transmits spikes from the neuron model unit 121 on the previous layer side to the neuron model unit 121 on the subsequent layer side.

[0046] In the example of Figure 2, the transmission processing unit 122 transmits spikes from each of the neuron model units 121 in layer 111 to each of the neuron model units 121 in layer 112, from each of the neuron model units 121 in layer 112 to each of the neuron model units 121 in layer 113, and from each of the neuron model units 121 in layer 113 to each of the neuron model units 121 in layer 114.

[0047] (Configuration of Neural Network System According to the Embodiment) The neural network system according to the embodiment has, for example, the configuration shown in FIG. 3 in order to execute the learning process. 3 is a diagram showing an example of a schematic configuration of a neural network system according to an embodiment. In the configuration shown in FIG. 3, a neural network system 1 includes a neural network device 100, a prediction error calculation unit 200, and a learning processing unit 300.

[0048] With this configuration, the neural network device 100 receives input data and outputs a predicted value. The prediction error calculation unit 200 calculates a prediction error, which is the difference between the predicted value output by the neural network device 100 and label data (correct answer), and outputs it to the learning processing unit 300. The learning processing unit 300 causes the neural network device 100 to learn by minimizing a loss function L defined from the prediction error by optimizing the network weights of the neural network device 100. The neural network device 100 and the learning processing unit 300 may be configured as separate devices, or may be configured as a single device.

[0049] (Neuron model according to the embodiment) A spiking neuron model (neuron model unit 121) according to the embodiment will be described. A non-leak spiking neuron model is used as the neuron model unit 121. This model is defined as in equation (4).

[0050]

number

[0051] where v (m) i indicates the membrane potential in the i-th neuron model portion 121 in the m-th layer. I (m) i indicates the postsynaptic current in the i-th neuron model unit 121 of the m-th layer. As described above, t indicates time. I (m) i (t) is the postsynaptic current I (m) i as a function of time t. w (m) ij is a coefficient (weight) indicating the strength of connection from the j-th neuron model unit 121 in the (m-1)-th layer to the i-th neuron model unit 121 in the m-th layer. (m-1) j indicates the firing timing of the j-th neuron model unit 121 in the (m-1)-th layer. θ indicates a step function.

[0052] The step function θ is expressed as shown in equation (5).

[0053]

number

[0054] The step function θ(t) is a function that has a constant value of θ(t) = 1 when t ≥ 0, and a constant value of θ(t) = 0 when t < 0. It can be calculated with simple processing compared to nonlinear functions such as exp(-x / τ).

[0055] As described above, the network of the neural network device 100 is configured as a forward propagation type multi-layer network. Also, each of the neuron model units 121 is assumed to fire at most once for one input to the neural network device 100. Moreover, the output of the neural network device 100 is represented by the firing timing of the output layer neuron model unit 121. For example, the output of the neural network device 100 may be represented using the representation method described with reference to FIG.

[0056] (Effects of the neuron model according to the embodiment) According to the neuron model unit 121, a relatively simple model expressed by a weighted linear sum of step functions as shown in formula (4) can be obtained. For example, the model shown in formula (4) can be evaluated as being simpler than the model shown in formula (3).

[0057] When the processing of the neuron model unit 121 is executed by software, the neuron model is a relatively simple model, so the processing load is relatively light, the processing time is relatively short, and the power consumption is relatively small. When the processing of the neuron model unit 121 is executed by hardware, the neuron model is a relatively simple model, so the processing load is relatively light, the processing time is relatively short, and the power consumption is relatively small, and the circuit area of ​​the hardware is relatively small. Moreover, the neuron model unit 121 has high recognition accuracy because it is a model that does not include leakage. Furthermore, the neuron model unit 121 consumes less power because it uses a time method than a frequency method.

[0058] (Output Layer Learning (1) according to the embodiment) Next, the learning algorithm in the neural network system 1 will be explained. (About SpikeProp) The derivative ∂L / ∂w in the weight update rule in the above equation (2) (n) ij The SpikeProp algorithm is known as a method for deriving L (see Non-Patent Document 3). For example, the loss function L is defined as shown in Equation (6) using the firing timing of neurons in the final layer.

[0059]

number

[0060] Here, t (N) i indicates the firing timing of the i-th neuron in the output layer. Note that the output layer is denoted by "N" as it is the Nth layer. t (t) i indicates the firing timing of the i-th teacher signal (the firing timing of the i-th neuron in the output layer in the teacher signal). In addition, here, we focus on the leak-free neuron model shown in equation (3). The derivative of the loss function with respect to the weights is expressed as equation (7) using the chain rule.

[0061]

number

[0062] The differentiation of the loss function with respect to the weight here is the differentiation of the loss function with respect to the weight. Here, the propagation error is defined as in equation (8).

[0063]

number

[0064] In the end, to derive the derivative, ∂t (n) i / ∂w (n) ij and ∂t (n+1) i / ∂t (n) j Using the SpikeProp method, we can calculate ∂t (n) i / ∂w (n) ij can be derived as shown in equation (9).

[0065]

number

[0066] Also, ∂t (n+1) i / ∂t (n) j can be derived as shown in equation (10).

[0067]

number

[0068] As shown in equations (9) and (10), the SpikeProp algorithm (n) i / ∂w (n) ij and ∂t (n+1) i / ∂t (n) j To calculate, we need to calculate the sum of the weights in the same layer. In contrast, in the neural network device 100, ∂t (n) i / ∂w (n) ij and ∂t (n+1) i / ∂t (n) j A simplified learning rule is used by approximating the following. The derivation of this learning rule will now be explained.

[0069] First, the firing timing of the i-th neuron (neuron model unit 121) in the n-th layer is expressed by the firing probability density R n i We assume that the timing of the observed firing of the nth layer is determined probabilistically by (t). As mentioned above, t indicates time. (n) i and the firing timing t of the neuron (neuron model unit 121) in the previous layer. (n-1) j From this, the firing probability density R (n) i Estimate the functional form of (t).

[0070] In this model, since each neuron (neuron model unit 121) fires once or less, the first firing timing is what holds information. Therefore, the time when the distribution of the first firing timing (first firing time) of the neuron obtained from the estimated firing function (function form of the firing probability density) reaches its maximum value is called the firing timing t (n) i Let us assume that. By assuming the above model, the weights w (n) ij The change in the functional form of the firing probability density when δR (n) i As shown in equation (11), the change in the firing probability density function gives the change in firing timing δt (n) i is obtained.

[0071]

number

[0072] Equation (11) is the weight w (n) ij The firing probability density R (n) i The change in (t) is calculated, and the firing probability density R (n) i The firing timing t of layer n is determined according to the change in (t). (n) i This relationship shows that the change in weight w (n) ij The change in the n-th layer firing timing t (n) i The change in can be calculated. From the relationship in equation (11), an approximation of the partial derivative can be obtained as in equation (12).

[0073]

number

[0074] (Example of output layer learning (1) according to the embodiment) Firing probability density R(n) i In a non-leakage spiking neuron model, (t) can be approximated by the slope (time derivative) of the membrane potential. This approximation is shown in Equation (13).

[0075]

number

[0076] Furthermore, we can define this function as a piecewise linear function R linear (t) and obtain equation (14).

[0077]

number

[0078] Here, α and t' are both constants, and as shown in FIG. <t (n-1) j The above conditions shall be satisfied. FIG. 4 is a diagram showing the relationship between spike timing and firing probability density. The top row of Fig. 4 shows t (n-1) j and (n) i The middle row shows the estimated firing probability density R of the i-th neuron in layer n. linear The lower row shows the estimated firing probability density R linear The figure shows the probability distribution of the timing of the first firing calculated from (t). The horizontal axis in the upper, middle, and lower parts of Fig. 4 indicates time. The vertical axis in the middle and lower parts indicates the firing probability density. The firing probability density is a piecewise linear function R linear The probability of the first firing timing when (t) is given can be calculated as follows: That is, if the probability of not firing even once by time t is set as x(t), this satisfies the differential equation of equation (15).

[0079]

number

[0080] Solving the differential equation (15) gives us equation (16).

[0081]

number

[0082] Therefore, the first spike firing probability density P f (t) can be calculated using equation (17).

[0083]

number

[0084] The first spike firing probability density P f It can be seen that (t) is non-negative and satisfies the definition of probability as shown in equation (18).

[0085]

number

[0086] First spike firing probability density P f (t) is the maximum value at time t * , P f (t) time derivative is 0(∂P f (t) / ∂t=0), this is shown in equation (19).

[0087]

number

[0088] At this time t * By imposing the condition that coincides with the output spike time, we obtain equation (20).

[0089]

number

[0090] Next, the firing probability density R of the neuron (neuron model unit 121) when the weight is changed n i The change in (t) is shown in equation (21).

[0091]

number

[0092] The firing probability density is a piecewise linear function R linear (t) and its change δR i (t) is expressed as equation (22).

[0093]

number

[0094] This change is shown in FIG. FIG. 5 is a diagram showing the change in firing probability when the weight is changed. Specifically, FIG. 5 shows the change in firing probability when the weight W (n) ij is δW (n) ij The firing probability density R linear The graph shows the change in (t). The horizontal axis of FIG. 5 indicates time, and the vertical axis indicates the firing probability density. Line L11 indicates the weight W (n) ij The line L12 shows the firing probability density before the weight W (n) ij The firing probability density after the change in When this firing function is given, the firing timing is t (n) i +δt (n) i It is expressed as t (n) i +δt (n) i The equation to be solved to obtain is shown as equation (23).

[0095]

number

[0096] Or, t (n) i +δt (n) i The equation to be solved to obtain is shown as equation (24).

[0097]

number

[0098] The solution to equation (24) is given by equation (25) with the initial condition x(0) = 1.

[0099]

number

[0100] A in equation (25) is expressed as equation (26).

[0101]

number

[0102] At this time, the first spike firing probability density P f (t) is the maximum value at time t * is expressed as equation (27).

[0103]

number

[0104] Weight is δw (n) ij The change in the estimated output spike time when the input changes is shown in equation (28).

[0105]

number

[0106] Equation (29) can be obtained as an approximation of the partial derivative.

[0107]

number

[0108] Next, ∂t (n) i / ∂t (n-1) j Perform an approximation of. As mentioned above, as shown in equation (30), the firing probability density R changes, and δt (n-1) j and (n) i The partial differential is approximated by deriving the relationship:

[0109]

number

[0110] FIG. 6 shows the change in firing probability density when the spike timing is changed. Specifically, FIG. 6 shows the firing time t (n-1) j is δt (n-1) j When only the value of θ changes, the firing probability density R linear This shows how (t) changes. The horizontal axis of FIG. 6 indicates time, and the vertical axis indicates the firing probability density. Line L21 indicates the firing probability density R linear (t), and line L21 represents the firing probability density R linear (t) + δR linear (t) is shown.

[0111] A piecewise linear function R that linearly approximates the firing probability density linear(t) is the average of spikes from all neurons (neuron model unit 121) in the n-1th layer to the i-th neuron (neuron model unit 121) in the nth layer, and can be transformed into equation (31).

[0112]

number

[0113] The first term in the brackets in equation (31) (w (n) ij θ(tt (n-1) j ) / (t (n-1) j The second term (Σ j’≠j w (n) ij’ θ(tt (n-1) j’ ) / (t (n-1) j -t')) is due to the contribution of the firings of neurons other than the j-th neuron in the n-1th layer. The firing probability density R linear (t) Change in δR linear (t) is R linear It can be considered as the change δα in the slope α of (t). The value in the parentheses in equation (31) indicates the slope α, and the firing time t (n-1) j is δt (n-1) j When the j-th neuron in the (n-1)th layer is activated, the only part that changes is the first term, which is due to the contribution of the firing of the j-th neuron in the (n-1)th layer. In other words, the slope changes as shown in equation (32).

[0114]

number

[0115] Furthermore, equation (33) can be obtained from equation (19).

[0116]

number

[0117] This gives the partial differential ∂t (n) i / ∂t (n-1) j can be approximated as shown in equation (34).

[0118]

number

[0119] Here, the constant τ is expressed as in equation (35).

[0120]

number

[0121] Using τ, equation (36) is obtained.

[0122]

number

[0123] (Specific examples of learning rules) From the above, an approximate learning rule for the weights of any layer in the neural network device 100 can be derived. Below, as specific examples, the learning rule for the Nth layer and the learning rule for the N-1th layer will be described. The learning rule for the output layer is given by equation (37).

[0124]

number

[0125] Here, η (n) is expressed as equation (38).

[0126]

number

[0127] η (n) 0 indicates the learning rate. Here, the learning rate η (n) The learning rate η (n) In equation (38), the slope α of the firing probability density is treated as a constant. The learning processing unit 300 calculates the weights w (N) ij As mentioned above, the output layer is trained by updating the weights w (N) ij indicates the strength of connection between the j-th neuron model unit 121 in the (N-1)-th layer and the i-th neuron model unit 121 in the N-th layer. Since this is the output layer, n=N in equation (37). A specific example of the learning rule (weight update rule) for the hidden layer is shown in equation (39).

[0128]

number

[0129] In addition, η (n-1) For this, we used equation (40).

[0130]

number

[0131] The learning processing unit 300 calculates weights w for the input to the neuron model unit 121 in the n-th layer (which is assumed to be a hidden layer here) based on equation (39). (n) ij As mentioned above, the hidden layer is trained by updating the weights w (n) ij indicates the strength of connection between the j-th neuron model unit 121 in the (n-1)-th layer and the i-th neuron model unit 121 in the n-th layer.

[0132] Fig. 7 is a diagram showing an example of update rules for network weights. Fig. 7 shows the update rules according to the embodiment in a table format for each of the Nth layer and the N-1th layer in comparison with an example in the case of SpikeProp. In the example of Fig. 7, the algorithm according to the embodiment is shown with a simpler formula than SpikeProp for both the output layer and the hidden layer. In this respect, by using the algorithm according to the embodiment, the network weight update process (i.e., neural network learning process) can be made relatively simpler than in the case of SpikeProp. When the algorithm according to the embodiment is executed by software, the updating process of the network weights is relatively simple, so the processing load is relatively light, the processing time is relatively short, and the power consumption is relatively small. When the algorithm according to the embodiment is executed by hardware, the updating process of the network weights is relatively simple, so the processing load is relatively light, the processing time is relatively short, and the power consumption is relatively small, and the circuit area of ​​the hardware is relatively small.

[0133] (Simulation example) A simulation example of the neural network device 100 according to the embodiment is shown. The MNIST dataset, which is a handwritten character dataset, was used to perform learning using the model according to the embodiment (see formula (4)) and the learning algorithm according to the embodiment (see FIG. 7). The MNIST dataset is provided with 60,000 784-dimensional vectors, which are 28x28 pixel images, and correct scalar values ​​for training, and 10,000 similar 784-dimensional vectors for testing. In the simulations, the neural network weights are updated using the training data and the performance is evaluated using the test data, but the weights are not updated using the test data.

[0134] The network used in the simulation has three layers, with the first layer consisting of 169 input spiking neurons, and the second and third layers consisting of 500 and 10 spiking neurons, respectively (see equation (4)). The input spiking neurons preprocess the 28x28 pixel image data of the input data by convolution, reducing it to 13x13 = 169 pixels. This reduces the amount of data and enables efficient simulation. We also performed online learning, updating the weights for each image. We also performed a simulation using the SpikeProp algorithm shown in Figure 7 to compare the performance.

[0135] Fig. 8 is a diagram showing the simulation results. Line L31 shows the simulation results when the SpipeProp algorithm is used. Line L32 shows the results when the above-mentioned approximation algorithm is used (simulation results of the neural network device 100). The horizontal axis of Fig. 8 shows the number of epochs, and the vertical axis shows the classification error rate during testing. Referring to FIG. 8, it can be seen that as the number of epochs increases, the classification error rate decreases in both the SpikeProp algorithm and the approximation algorithm.

[0136] The classification error rate was 3.8% for the SpikeProp algorithm and 4.9% for the approximation algorithm. As shown above, the classification error rate is almost unchanged even when the approximation algorithm is used.

[0137] (Learning of Output Layer According to the Embodiment (2)) Another learning algorithm in the neural network system 1 will now be described. The derivative of the loss function with respect to the weight is given by equation (41).

[0138]

number

[0139] The two terms on the right hand side of equation (41) (∂t (l) i / ∂w (l) ij and ∂t (l+1) s / ∂t (l) i ) is linearly approximated using the time evolution equation of the membrane potential, and a simple learning rule is derived. As mentioned above, w (l) ij indicates the strength (weight) of the connection from the jth neuron in the l-1th layer to the ith neuron in the lth layer. (l) i indicates the firing timing of the i-th neuron in the l-th layer. The partial differential ∂t (l) i / ∂w (l) ij " and "∂t (l+1) s / ∂t (l) i These can be calculated using the SpikeProp method as shown in equation (42).

[0140]

number

[0141] However, in both equations (42), the sum of the denominators on the right-hand side (Σ s ), the sum is taken only when the neurons in the front layer connected to the target weight fire earlier than the neurons in the back layer. By approximating this denominator as a mean field, it is possible to greatly reduce the number of parameters required for learning.

[0142] First, ∂t (l) i / ∂w (l) ij This article explains: FIG. 9 is a diagram showing how the membrane potential changes with the change in weight. (l) ij But, w (l) ij +ΔW, at time t (l) i Membrane potential v (l) i But, V th From V th This shows how the voltage changes from -V to +ΔV. In FIG. 9, the horizontal axis indicates time, and the vertical axis indicates membrane potential. Line L41 is a line with weight w (l) ij The following shows an example of the time evolution of the membrane potential when the weight w (l) ij This shows an example of the time evolution of the membrane potential when the weight w (l) ij The linear approximation of the time evolution of the membrane potential when changes in t i ^(l) It becomes. The aforementioned membrane potential displacement ΔV can be derived as shown in FIG. 9 by equation (43).

[0143]

number

[0144] Then, the time τ when the first firing is transmitted to the j-th neuron in the l layer (l) j and the firing threshold V th By using and, the membrane potential v *(l) i It is possible to linearly approximate the time evolution of (t) with respect to time. As a result of this approximation, the equation for the time evolution of the membrane potential can be derived as shown in equation (44).

[0145]

number

[0146] Under this approximation, the firing timing t*(l) i can be derived by solving equation (45).

[0147]

number

[0148] The derived equation is shown in equation (46).

[0149]

number

[0150] This means that ∂t (l) i / ∂w (l) ij For (t *(l) i -t (l) i ) / ΔW, an approximation is possible by taking the limit ΔW → 0, and an approximation formula for the partial derivative can be derived as shown in equation (47).

[0151]

number

[0152] Next, ∂t (l+1) j / ∂t (l) k An approximate formula is derived. FIG. 10 is a diagram showing how the membrane potential changes with changes in firing timing. (l) k From (l) k +ΔT, time t (l+1) j Membrane potential v (l+1) j V th From V th This shows how the voltage changes from -V to +ΔV. The horizontal axis of FIG. 10 indicates time, and the vertical axis indicates membrane potential. Line L51 shows an example of the time evolution of the membrane potential. Line L52 shows the time evolution of the membrane potential after the change. Line L53 shows an example of an approximation of the time evolution of the membrane potential. According to line L53, the approximate solution of the firing time is the time t i ^(l+1) It becomes. The displacement of the membrane potential, ΔV, is expressed as -w (l+1) jk Then, as before, the time when the firing was first transmitted to the j-th neuron in the l+1 layer is τ (l+1) j and the firing threshold V th By using and, the membrane potential v *(l+1) j It is possible to approximate the time evolution of (t) linearly with respect to time. The equation for this average approximation can be derived as shown in Eq. (48).

[0153]

number

[0154] Under this approximation, the firing timing t *(l+1) j can be derived by solving equation (49).

[0155]

number

[0156] Firing timing t *(l+1) j is derived as shown in equation (50).

[0157]

number

[0158] This means that ∂t (l+1) j / ∂t (l) k is (t *(l+1) j-t (l+1) j ) / ΔT, it is possible to approximate it by taking the limit as ΔT → 0, and we can derive an approximation equation for the partial derivative as shown in equation (51).

[0159]

number

[0160] Therefore, ∂t (l) i / ∂w (l) ij is approximated as shown in equation (52).

[0161]

number

[0162] Also, ∂t (l+1) j / ∂t (l) k is approximated as shown in equation (53).

[0163]

number

[0164] The derived ∂t (l) i / ∂w (l) ij Approximation of (Eq. (52)) and ∂t (l+1) j / ∂t (l) k By using the approximation equation (equation (53)), it is possible to derive a learning rule that greatly reduces the need to refer to information from other neuron models. The learning processing unit 300 applies the approximations shown in the formulas (52) and (53) during learning based on the above-mentioned formula (41), for example. Learning based on formula (41) is applicable to both learning of the output layer and learning of the hidden layer. The learning processing unit 300 may perform learning of either the output layer or the hidden layer, or may perform learning of both, in learning in which the approximations shown in the formulas (52) and (53) are applied to formula (41).

[0165] As described above, the neuron model unit 121 is configured as a non-leakage integrate-and-fire spiking neuron whose postsynaptic current is expressed by a step function, and fires at most once in one processing of the neural network, and indicates the output of the neuron model unit 121 itself at the firing timing. The transmission processing unit 122 transmits information between the neuron model units 121.

[0166] Here, one processing of the neural network is a process in which the neural network outputs output data for one set of input data. For example, when the neural network performs pattern matching, one matching process corresponds to one processing of the neural network. According to the neural network device 100, it is possible to eliminate leakage from the neuron model unit 121 and, under the condition that all of the neuron model units 121 fire once or less, the neuron model unit 121 can be made into a relatively simple model using a step function.

[0167] When the processing of the neuron model unit 121 is executed by software, the neuron model is a relatively simple model, so the processing load is relatively light, the processing time is relatively short, and the power consumption is relatively small. When the processing of the neuron model unit 121 is executed by hardware, the neuron model is a relatively simple model, so the processing load is relatively light, the processing time is relatively short, and the power consumption is relatively small, and the circuit area of ​​the hardware is relatively small. Moreover, according to the neuron model unit 121, since the model does not include leakage, the neuron has no time constant and does not depend on the time constant of the input data, so that the recognition accuracy is high. Furthermore, the neuron model unit 121 consumes less power because it uses a time method than a frequency method.

[0168] In addition, the learning processing unit 300 causes at least one of the output layer and the hidden layer of the neural network device 100 to learn using a learning rule that applies at least one of an approximation of the derivative by the weight of the firing time, which is obtained using a linear approximation of the time evolution of the membrane potential, and an approximation of the derivative of the firing time by the firing time. As a result, in the neural network system 1, learning of at least one of the output layer and the hidden layer can be performed by a relatively simple process using approximation. When the learning algorithm by the learning processing unit 300 is executed by software, the learning process is relatively simple, so the processing load is relatively light, the processing time is relatively short, and the power consumption is relatively small. Also, when the learning algorithm by the learning processing unit 300 is executed by hardware, the learning process is relatively simple, so the processing load is relatively light, the processing time is relatively short, and the power consumption is relatively small, and the circuit area of ​​the hardware is relatively small. The differentiation of the firing time by the weight means the differentiation of the firing time by the weight. The differentiation of the firing time by the firing time means the differentiation of the firing time of a certain neuron model unit 121 by the firing time of another neuron model unit 121.

[0169] Furthermore, the learning processing unit 300 causes the output layer of the neural network device to learn using a learning rule indicated by the gradient of the firing probability density. As a result, in the neural network system 1, a change in firing time can be obtained based on a change in firing probability density, and in this respect, a change in firing time can be obtained relatively easily.

[0170] Next, the configuration of an embodiment of the present invention will be described with reference to FIG. 11 is a diagram showing an example of the configuration of a neural network device according to an embodiment. A neural network device 10 shown in FIG. In this configuration, the neuron model unit 11 is configured as a non-leakage integrate-and-fire spiking neuron whose postsynaptic current is expressed by a step function, and fires at most once in one processing of the neural network, and indicates the output of the neuron model unit 11 at the firing timing. The transmission processing unit 12 transmits information between the neuron model units 11.

[0171] According to the neural network device 10, it is possible to eliminate leakage from the neuron model unit 11 and make the neuron model unit 11 a relatively simple model using a step function under the condition that all neuron model units 11 fire once or less.

[0172] When the processing of the neuron model unit 11 is performed by software, the neuron model is a relatively simple model, so the processing load is relatively light, the processing time is relatively short, and the power consumption is relatively small. When the processing of the neuron model unit 11 is performed by hardware, the neuron model is a relatively simple model, so the processing load is relatively light, the processing time is relatively short, and the power consumption is relatively small, and the circuit area of ​​the hardware is relatively small. Furthermore, the neuron model unit 11 is a model that does not include leakage, and therefore the neuron does not have a time constant, and is not dependent on the time constant of the input data, resulting in high recognition accuracy. Furthermore, the neuron model unit 11 consumes less power because it uses a time method than a frequency method.

[0173] All or a part of the neural network system 1, or all or a part of the neural network device 10, may be implemented in dedicated hardware. 12 is a schematic block diagram showing an example of a configuration of dedicated hardware according to at least one embodiment. In the configuration shown in FIG. 12, dedicated hardware 500 includes a CPU 510, a main memory device 520, an auxiliary memory device 530, and an interface 540.

[0174] When the above-mentioned neural network system 1 is implemented in dedicated hardware 500, the operation of each of the above-mentioned processing units (neural network device 100, neuron model unit 121, transmission processing unit 122, prediction error calculation unit 200, and learning processing unit 300) is stored in the dedicated hardware 500 in the form of a program or circuit.

[0175] All or a part of the neural network system 1, or all or a part of the neural network device 10 may be implemented in an ASIC (application specific integrated circuit). Fig. 13 is a schematic block diagram showing an example of the configuration of a computer according to at least one embodiment. In the configuration shown in Fig. 13, an ASIC 600 includes a processing unit 610, a storage device 620, and an interface 630. The processing unit 610 and the storage device 620 may be integrated (i.e., may be configured as an integrated unit).

[0176] An ASIC in which all or part of the neural network system 1 or all or part of the neural network device 10 is implemented executes its calculations using electronic circuits such as CMOS. Each electronic circuit may independently implement a neuron in a layer, or may implement multiple neurons in a layer. Similarly, each circuit that operates on neurons may be used only for the calculation of a certain layer, or may be used for the calculation of multiple layers.

[0177] When all or a part of the neural network device 10 is implemented in an ASIC, the ASIC is not limited to a specific one. For example, all or a part of the neural network device 10 may be implemented in an ASIC that does not have a CPU. In addition, the storage devices used to implement the neural network device 10 may be distributed on a chip.

[0178] Note that a program for realizing all or part of the functions of the neural network system 1 may be recorded on a computer-readable recording medium, and the program recorded on the recording medium may be read into a computer system and executed to process each part. Note that the term "computer system" here includes the OS (Operating System) and hardware such as peripheral devices. Furthermore, the term "computer-readable recording medium" refers to portable media such as flexible disks, optical magnetic disks, ROMs (Read Only Memory), and CD-ROMs (Compact Disc Read Only Memory), as well as storage devices such as hard disks built into computer systems. The above-mentioned program may be one for implementing part of the above-mentioned functions, or may be one that can implement the above-mentioned functions in combination with a program already recorded in the computer system.

[0179] Although an embodiment of the present invention has been described in detail above with reference to the drawings, the specific configuration is not limited to this embodiment, and designs that do not deviate from the gist of the present invention are also included.

[0180] This application claims priority based on Japanese Patent Application No. 2019-052880, filed on March 20, 2019, the disclosure of which is incorporated herein in its entirety. [Industrial Applicability]

[0181] The present invention may be applied to a neural network device, a neural network system, a processing method, and a recording medium. [Explanation of symbols]

[0182] 1. Neural network system 10, 100 Neural network device 11, 121 Neuron model unit (neuron model means) 12, 122 Transmission processing unit (transmission processing means) 111 1st layer 112 2nd layer 113 3rd layer 114 4th layer 200 Prediction error calculation unit (prediction error calculation means) 300 Learning processing unit (learning processing means)

Claims

1. a neuron model means configured as a non-leakage integrate-and-fire spiking neuron, and a spiking neuron whose postsynaptic current I(m)i(t) is expressed as I(m)i(t)=Σjw(m)ijθ(t-t(m-1)j) where the post-synaptic current I(m)i(t) is a weighted sum Σjw(m)ijθ(t-t(m-1)j) of a step function θ(t-t(m-1)j) whose value changes at the firing timing t(m-1)j of a spiking neuron in a layer preceding said spiking neuron, said neuron model means firing at most once in one processing of the neural network and indicating an output of said neuron model means itself at the firing timing; A communication processing means for transmitting information between the neuron model means; A neural network device comprising:

2. a step of executing an operation of a spiking neuron which is a non-leakage integrate-and-fire spiking neuron and whose post-synaptic current I(m)i(t) is expressed as I(m)i(t)=Σjw(m)ijθ(t-t(m-1)j) where the post-synaptic current I(m)i(t) is a weighted sum Σjw(m)ijθ(t-t(m-1)j) of a step function θ(t-t(m-1)j) whose value changes at the firing timing t(m-1)j of a spiking neuron in a layer preceding the spiking neuron, and which fires at most once in one processing of a neural network and indicates the output of the spiking neuron itself at the firing timing; transmitting information between the spiking neurons; A processing method comprising:

3. For ASICs, a step of executing an operation of a spiking neuron which is a non-leakage integrate-and-fire spiking neuron and whose post-synaptic current I(m)i(t) is expressed as I(m)i(t)=Σjw(m)ijθ(t-t(m-1)j) where the post-synaptic current I(m)i(t) is a weighted sum Σjw(m)ijθ(t-t(m-1)j) of a step function θ(t-t(m-1)j) whose value changes at the firing timing t(m-1)j of a spiking neuron in a layer preceding the spiking neuron, and which fires at most once in one processing of a neural network and indicates the output of the spiking neuron itself at the firing timing; transmitting information between the spiking neurons; A program for executing the above.