A neuron resetting method for spiking neural networks

By calculating the comparison between the membrane potential and the threshold in the spiking neural network, and using the modulation factor η to adjust the membrane potential, the fixed interval reset of spiking neurons is achieved, which solves the impact of the spiking neural network reset method on network performance and ensures the accuracy of spiking. Normality and stability of performance.

CN114936629BActive Publication Date: 2024-09-06BEIJING BOYA RUISHI TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202210637800.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-06-02
Publication Date
2024-09-06
Estimated Expiration
2042-06-02

AI Technical Summary

Technical Problem

Existing spiking neural network reset methods will lead to a decrease in the spiking rate or over-activation problems, affecting network performance.

Method used

By calculating the comparison between the membrane potential and the preset threshold, and using the modulation factor η to adjust the membrane potential, the fixed interval reset of the spiking neurons is achieved, avoiding the loss of membrane potential in hard reset and overactivation in soft reset.

Benefits of technology

It effectively avoids the membrane potential loss of hard reset and the over-activation problem of soft reset, ensures the normal firing of spiking neurons, and reduces network performance loss.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114936629B
    Figure CN114936629B
Patent Text Reader

Abstract

The present invention proposes a neuron resetting method for a pulse neural network, which sets a certain interval for the membrane potential and adopts a reset method within the fixed interval, which effectively avoids the membrane potential loss caused by hard reset and alleviates the over-activation problem caused by soft reset, ensures the normal release of neuron pulses in SNN, and reduces the performance loss caused by conversion.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention belongs to the field of visual neural networks, in particular to a neuron resetting method of a pulse neural network. Background Art

[0002] Converting artificial neural networks (ANN) to self-spiking neural networks (SNN) is a method to achieve the optimal performance of SNN. Although the accuracy of the converted SNN is very close to that of the original ANN, the existing conversion methods using hard reset and soft reset methods cannot achieve the equivalence of the converted SNN with the original ANN. The converted SNN will have performance loss, which mainly depends on the pulse firing rate of the network. The hard reset method will cause a large loss of membrane potential of the spiking neuron, resulting in a decrease in the pulse firing rate of the SNN, which in turn affects the performance of the network. The soft reset mechanism effectively avoids the membrane potential loss of the hard reset method, but the soft reset mechanism has the problem of over-activation of neurons. Soft reset will cause the SNN pulse firing rate to be too high and affect the network performance. Summary of the invention

[0003] The technical problem to be solved by the present invention is that the existing reset method will affect the network performance.

[0004] The invention provides a neuron resetting method for a pulse neural network.

[0005] A neuron resetting method for a spiking neural network, comprising:

[0006] S1, calculate the membrane potential at time t based on the membrane potential of the spiking neural network at time t-1 and the external pulse information input at time t, where t is greater than or equal to 1;

[0007] S2 compares the membrane potential at time t calculated by S1 with the preset threshold and resets the membrane potential:

[0008]

[0009] And the membrane potential after reset is adjusted according to the modulation factor η:

[0010]

[0011] Among them, V m '(t) represents the membrane potential of the neuron after reset, V m (t) is the membrane potential at time t, V thr is the preset threshold, η is the modulation factor, η≥0, S(t) is the external pulse information input at time t, and S(t)=1 indicates that the neuron has a pulse at time t.

[0012] Preferably, the spiking neural network is an integral firing model without membrane potential leakage and refractory period.

[0013] Preferably, the calculation formula of the external pulse information input at time t is:

[0014]

[0015] Among them, W j,i represents the weight of the connection between the current layer neuron i and the upper layer neuron j, S j Represents the pulse sequence information of the neuron. If the neuron has a pulse at time t, then S j (t)=1, otherwise, S j (t)=0.

[0016] Preferably, the calculation formula of the membrane potential at time t calculated in S1 is:

[0017]

[0018] Among them, V m (t-1) represents the membrane potential of the neuron at time t-1. When t=1, V m (t-1) is the initial potential.

[0019] Compared with the prior art, the present invention has the following advantages and effects:

[0020] The present invention adopts a fixed-interval reset method, which not only effectively avoids the membrane potential loss caused by hard reset but also alleviates the over-activation problem caused by soft reset, ensures the normal pulse emission of neurons in SNN, and reduces the performance loss caused by conversion. BRIEF DESCRIPTION OF THE DRAWINGS

[0021] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative labor.

[0022] Figure 1 It is a flow chart of the present invention.

[0023] Figure 2 It is a flow chart of the pulse neuron membrane potential calculation of the present invention.

[0024] Figure 3 It is a flow chart of comparing neuron membrane potential with threshold value of the present invention. DETAILED DESCRIPTION

[0025] In order to make the purpose, technical solution and advantages of the present invention more clearly understood, the present invention is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present invention and are not used to limit the present invention.

[0026] Example 1: Figure 1-3 As shown, a neuron resetting method of a pulse neural network includes:

[0027] A. Calculation of the membrane potential of spiking neurons, used to calculate the membrane potential of spiking neurons:

[0028] A1. Select the spiking neuron model: Select the integrate-and-fire (IF) neuron as the spiking neuron model of the SNN. This model has no membrane potential leakage and refractory period. The membrane potential V of the IF neuron model at time t is m (t) is calculated by the following equation.

[0029] V m (t) = V m (t-1)+a m (t)

[0030] Where: V m (t-1) represents the membrane potential of the neuron at time t-1; a m (t) represents the input of the neuron at time t.

[0031] A2. Calculate the input of the pulse neuron: Calculate the external pulse information input of the IF neuron at the current moment. The membrane potential of the neuron at time t is the sum of the membrane potential of the neuron at time t-1 and the pulse input received by the neuron at time t. The input of the IF neuron model at time t is m (t) is calculated by the following equation.

[0032]

[0033] Where: W j,i represents the weight of the connection between the current layer neuron i and the upper layer neuron j; S j Represents the pulse sequence information of neuron j (if the neuron has a pulse at time t, then S j (t)=1, otherwise, S j (t)=0).

[0034] A3. Membrane potential calculation: Calculate the membrane potential of the IF neuron at the current moment. The membrane potential V of the IF neuron model at time t m (t) is calculated by the following equation.

[0035]

[0036] The current membrane potential of a neuron is equal to the sum of the membrane potential of the neuron at the previous moment and the input received by the neuron at the current moment.

[0037] B. Compare the neuron membrane potential with the threshold value, and compare the membrane potential of the pulse neuron with the threshold value to determine the size relationship between the two:

[0038] B1. Threshold setting of pulse neurons: The pulse emission of pulse neurons is closely related to the threshold of neurons. The threshold V of neurons can be reasonably set according to the conversion method of the network. thr .

[0039] B2. Determine the relationship between the threshold and the membrane potential: Determine the relationship between the membrane potential and the threshold by comparing the current membrane potential with the threshold.

[0040] The membrane potential V of the neuron at time t m (t) exceeds the neuron threshold V thr When the neuron fires a pulse, the neuron resets and the corresponding neuron membrane potential is reset.

[0041] C. Reset the spiking neuron. According to the relationship between the membrane potential of the spiking neuron and the threshold, perform the corresponding reset operation:

[0042] Calculate the neuron membrane potential V at the current moment m (t), the calculated membrane potential is compared with the neuron threshold, and the neuron membrane potential reset method is selected according to the size relationship between the membrane potential and the threshold. The neuron membrane potential reset is completed by the following equation:

[0043]

[0044] And the membrane potential after reset is adjusted according to the modulation factor η:

[0045]

[0046] Where: V m '(t) represents the membrane potential of the neuron after reset, V m (t) is the membrane potential at time t, V thr is the preset threshold, η is the modulation factor, η≥0, S(t) is the external pulse information input at time t, and S(t)=1 indicates that the neuron has a pulse at time t. Selecting a larger η can reduce the pulse output rate of neurons that are easily activated, and it has little effect on the pulse output rate of neurons that are difficult to activate; while a smaller η can increase the pulse output rate of neurons that are difficult to activate, and it has little effect on the pulse output rate of neurons that are easy to activate. The addition of the modulation factor η can flexibly adjust the pulse output rate of neurons, avoiding the problems caused by changing the size of the neuron threshold.

[0047] The specific reset process is as follows:

[0048] C1. Determine whether the neuron membrane potential at the current moment is less than the threshold: If V m (t) <V thr That is, the neuron membrane potential is less than the threshold at the current moment, and the neuron membrane potential is reset in C2. m (t) <V thr Not true, that is, the neuron membrane potential at the current moment is not less than the threshold, and the neuron membrane potential is reset in C3;

[0049] C2. The current neuron membrane potential is less than the threshold: V m (t) <V thr , the neuron membrane potential remains unchanged, V m '(t)=V m (t), V m '(t) represents the neuron membrane potential after reset.

[0050] C3.V m (t)≥V thr , the neuron membrane potential is reset, V m (t)-η*V thr , and S(t)=1. According to the modulation factor η, the reset neuron membrane potential V m ′(t) is divided into three cases: C4, C5, and C6.

[0051] C4, modulation factor η>1 will lead to V m '(t) is less than 0, if V m '(t)<0, in order to avoid the loss of membrane potential, we set V m '(t) is reset to 0.

[0052] C5, if 0≤V m '(t) <V thr , then V m '(t) remains unchanged.

[0053] C6, if V m '(t)≥V thr In order to avoid the problem of over-activation of neurons at time t+1, V m '(t) Reset to 0.99V thr The membrane potential was reset to 0.99 V. thr This effectively reduces the membrane potential loss caused by hard reset. When the neuron does not receive any input at time t+1, the neuron membrane potential V m (t+1)=0.99V thr<V thr , the neuron will not fire.

[0054] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principle of the present invention should be included in the protection scope of the present invention.

Claims

1. A neuron resetting method for a spiking neural network, wherein the spiking neural network is an integral emission model without membrane potential leakage and refractory period, characterized in that: include: S1, calculating the membrane potential at time t according to the membrane potential of the spiking neural network at time t-1 and the external pulse information input at time t, where t is greater than or equal to 1, wherein the calculation formula of the membrane potential at time t is: Among them, V m (t-1) represents the membrane potential of the neuron at time t-1. When t=1, V m (t-1) is the initial potential; Represents the external pulse information input at time t, W j,i represents the weight of the connection between the current layer neuron i and the upper layer neuron j, S j Represents the pulse sequence information of the neuron. If the neuron has a pulse at time t, then S j (t)=1, otherwise, S j (t) = 0; S2 compares the membrane potential at time t calculated by S1 with the preset threshold and resets the membrane potential: And the membrane potential after reset is adjusted according to the modulation factor η: Among them, V m (t) represents the membrane potential of the neuron after reset, V m (t) is the membrane potential at time t, V thr is the preset threshold, η is the modulation factor, η≥0, S(t) is the external pulse information input at time t, and S(t)=1 indicates that the neuron has a pulse at time t.