Biological credible neuron calculation circuit and calculation method

By introducing synaptic integration, leakage integration and threshold comparison modules into neuron computing circuits, the contradiction between biological confidence and computational complexity is solved, and rich neuron dynamic behaviors and efficient brain-like applications are achieved.

WO2024216855A1PCT designated stage expired Publication Date: 2024-10-24PEKING UNIV
View PDF 5 Cites 0 Cited by

Patent Information

Application Number
PCT/CN2023/121917
Authority / Receiving Office
WO · WO
Patent Type
Applications
Current Assignee / Owner
Priority Date
2023-04-17
Filing Date
2023-09-27
Publication Date
2024-10-24

AI Technical Summary

Technical Problem

Existing neuron circuits are difficult to compromise between biological confidence and computational complexity, resulting in high energy consumption, difficulty in expansion, and limited functionality, which limits the application and promotion of brain-inspired platforms.

Method used

Design a biologically credible neuron computing circuit, including a synaptic integration module, a leakage integration module, a threshold comparison and a pulse firing module, and generate pulse signals through weighted summation, leakage operations and threshold comparison to achieve richer neuron dynamics. learning behavior.

Benefits of technology

It achieves a better balance between biological confidence and computational complexity at a smaller hardware cost, supports the largest-scale enhanced LIF neuron integration and synapse integration, and is suitable for more complex and diverse neuromorphic brain-inspired applications.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN2023121917_24102024_PF_FP_ABST
    Figure CN2023121917_24102024_PF_FP_ABST
Patent Text Reader

Abstract

Provided in the present application are a biological credible neuron calculation circuit and a calculation method. The circuit carries out an operation on a membrane level and a neural network pulse signal at the previous moment by means of a synaptic integration module, a leakage integration module, and a threshold comparison and pulse firing module, so as to acquire a membrane level at the current moment, and generate a pulse signal according to the membrane level at the current moment. Compared with a conventional digital-analog hybrid design which excessively pursues accurate neuromorphic behaviors, and a conventional digital design which excessively pursues extremely low calculation complexity, the biological credible neuron calculation circuit in the present application makes a better compromise between biological confidence and calculation complexity, such that richer neuron dynamics behaviors can be realized at a relatively low hardware cost, the maximum-scale enhancement of LIF neuron integration and synaptic integration is realized, and more complex and more diverse neuromorphic brain-like applications can be deployed.
Need to check novelty before this filing date? Find Prior Art

Description

A biologically credible neuron computing circuit and computing method

[0001] CROSS-REFERENCE TO RELATED APPLICATIONS

[0002] This application claims priority to Chinese patent application No. 202310408120.4, filed on April 17, 2023, entitled “A biologically credible neural computing circuit and computing method,” which is incorporated herein by reference in its entirety. Technical Field

[0003] The present application relates to the field of microprocessor technology, and in particular to a biologically credible neuron computing circuit and computing method. Background Art

[0004] Neuromorphic brain-inspired platforms are ultimately designed to handle neuromorphic computing. Given the current development trend of brain-inspired computing, neuromorphic applications place demands on neuromorphic hardware in terms of both model adaptability and computational efficiency. Regarding model adaptability, a wide range of application scenarios requires neuromorphic processors to serve as a more versatile computing platform. Regarding computational efficiency, internal processing cores require careful consideration of the complexity of computational models and the adoption of more hardware-friendly design methodologies to achieve the desired computational functionality with minimal hardware computation and storage overhead.

[0005] Existing neuronal circuit designs fail to strike a good balance between biological plausibility and computational complexity. Analog circuits overly pursue precise neuromorphic behavior, resulting in high energy consumption and difficulty in achieving large-scale scalability, making them difficult to adopt for diverse applications. Digital circuits, on the other hand, overly pursue minimal computational complexity and employ the overly functional LIF neuron model, limiting the range of brain-like behaviors and function operators that neurons can implement. This, in turn, hinders the widespread application of brain-inspired platforms in various scenarios.

[0006] Summary of the Invention

[0007] The present application provides a biologically credible neuron computing circuit and computing method to address the drawback of the existing technology of imbalance between biological credibility and computational complexity.

[0008] The present application provides a biologically credible neuron computing circuit, comprising a synaptic integration module, a leakage integration module, a threshold comparison and pulse emission module connected in sequence;

[0009] The synaptic integration module is used to calculate the membrane level at the current moment according to the membrane level at the previous moment and the input neural network pulse signal, and send the membrane level at the current moment to the leakage integration module;

[0010] The leakage integration module is used to perform a leakage operation on the membrane level at the current moment, and send the membrane level after the leakage operation to the threshold comparison and pulse emission module;

[0011] The threshold comparison and pulse emission module is used to compare the preset pulse emission threshold with the membrane level after the leakage operation, and generate a pulse signal according to the threshold judgment result.

[0012] According to a biologically credible neuronal computing circuit provided by the present application, the synaptic integration module includes a neural network synaptic unit;

[0013] The neural network synapse unit is used to obtain a neural network synapse weight value according to a neural network pulse signal, and store the neural network synapse weight value in the synapse integration module;

[0014] The synaptic integration module is used to perform weighted summation on the neural network pulse signal according to pre-stored neural network synaptic weight values.

[0015] According to a biologically credible neuron computing circuit provided by the present application, the synaptic integration module further includes a random number generation unit;

[0016] The random number generating unit is used to randomly filter the neural network pulse signal to obtain a subset of the neural network pulse signal;

[0017] The synaptic integration module is used to perform weighted summation on a subset of the neural network pulse signals according to pre-stored neural network synaptic weight values.

[0018] According to a biologically credible neuron computing circuit provided by the present application, a leakage operation is performed on the membrane level at the current moment, including:

[0019] Perform forward leakage on the membrane level at the current moment;

[0020] or

[0021] Reverse leakage of the membrane level at the current moment;

[0022] or

[0023] Randomly leak the membrane level at the current moment.

[0024] According to a biologically credible neuron computing circuit provided by the present application, the leakage integration module is further used to receive the membrane level after the threshold comparison and pulse emission module performs threshold comparison and perform leakage operation.

[0025] According to a biologically credible neuron computing circuit provided by the present application, the pulse emission threshold includes a positive threshold, and a preset pulse emission threshold is compared with the membrane level after the leakage operation, and a pulse signal is generated according to the threshold judgment result, including:

[0026] When the membrane level after the leakage operation is higher than or equal to the positive threshold, a pulse signal and a level reset signal are generated.

[0027] According to a biologically credible neuron computing circuit provided by the present application, the pulse emission threshold includes a negative threshold, and a preset pulse emission threshold is compared with the membrane level after the leakage operation, and a pulse signal is generated according to the threshold judgment result, including:

[0028] When the membrane level after the leakage operation is lower than the negative threshold, only a level reset signal is generated.

[0029] According to a biologically credible neuron computing circuit provided by the present application, the threshold comparison and pulse emission module includes a membrane level resetting unit;

[0030] The film level resetting unit is used to receive the level resetting signal and reset the film level at a current moment to a preset level according to the level resetting signal.

[0031] The present application also provides a calculation method for a spiking neural network, comprising:

[0032] Calculate the membrane level at the previous moment and the neural network pulse signal to obtain the membrane level at the current moment;

[0033] Generates a pulse signal according to the current membrane level.

[0034] According to a calculation method for a spiking neural network provided by the present application, generating a pulse signal according to the membrane level at the current moment includes:

[0035] If the membrane level at the current moment is higher than or equal to the positive threshold, a pulse signal is output.

[0036] The present application also provides an electronic device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the program, a calculation method for a pulse neural network as described above is implemented.

[0037] The present application also provides a non-transitory computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements any of the above-described calculation methods for a pulse neural network.

[0038] The present application provides a biologically credible neuron computing circuit and computing method. The circuit calculates the membrane level and neural network pulse signal at the previous moment through a synaptic integration module, a leakage integration module, a threshold comparison and a pulse emission module, obtains the membrane level at the current moment, and generates a pulse signal based on the membrane level at the current moment. Compared with the traditional digital-analog hybrid design that overly pursues precise neuromorphic behavior, and the traditional digital design that overly pursues extremely low computational complexity, the biologically credible neuron computing circuit of the present application makes a better compromise between biological credibility and computational complexity. It can achieve richer neuron dynamics behavior at a lower hardware cost, and realizes the largest-scale enhanced LIF neuron integration and synaptic integration, enabling the deployment of more complex and diverse neuromorphic brain-like applications. BRIEF DESCRIPTION OF THE DRAWINGS

[0039] In order to more clearly illustrate the technical solutions in the present application or the prior art, a brief introduction will be given below to the drawings required for use in the embodiments or the description of the prior art. Obviously, the drawings described below are some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without any creative work.

[0040] FIG1 is a schematic diagram of a module of a biologically credible neuron computing circuit provided by the present application;

[0041] FIG2 is a schematic diagram of a synaptic integration module of a biologically credible neuronal computing circuit provided by the present application;

[0042] FIG3 is a schematic diagram of a leakage integration module of a biologically credible neuron computing circuit provided by the present application;

[0043] FIG4 is a schematic diagram of a leakage reversal mode of a leakage integration module provided by the present application;

[0044] FIG5 is a schematic diagram of a threshold comparison and pulse emission module of a biologically credible neuron computing circuit provided by the present application;

[0045] FIG6 is a flowchart of a neuron computing circuit provided by the present application;

[0046] FIG7 is a module schematic diagram of a neuromorphic processing core provided by the present application;

[0047] FIG8 is a schematic diagram of neuronal behavior of basal firing provided by the present application;

[0048] FIG9 is a schematic diagram of neuronal behavior of phase firing provided by the present application;

[0049] FIG10 is a schematic diagram of neuronal behavior of inhibitory basal firing provided by the present application;

[0050] FIG11 is a schematic diagram of neuronal behavior of basic bursting provided by the present application;

[0051] FIG12 is a schematic diagram of the topological structure of the logic function provided by the present application;

[0052] FIG13 is a schematic diagram of the topological structure of the logic function provided by the present application;

[0053] FIG14 is a schematic diagram of the topological structure of the logical function NOT provided by the present application;

[0054] FIG15 is a schematic diagram of the topological structure of the logic function XOR provided by the present application;

[0055] FIG16 is a schematic diagram of the topological structure of the arithmetic function plus provided by the present application;

[0056] FIG17 is a schematic diagram of the topological structure of the maximum value of the arithmetic function provided by this application;

[0057] FIG18 is a schematic diagram of the topological structure of the arithmetic function division provided by the present application;

[0058] FIG19 is a schematic diagram of the topological structure of the square of the arithmetic function provided by the present application;

[0059] FIG20 is a flow chart of a calculation method for a spiking neural network provided by the present application;

[0060] FIG21 is a schematic structural diagram of the electronic device provided in this application. DETAILED DESCRIPTION

[0061] To make the objectives, technical solutions, and advantages of this application more clear, the technical solutions of this application will be clearly and completely described below in conjunction with the accompanying drawings. Obviously, the embodiments described are only part of the embodiments of this application, not all of them. Based on the embodiments of this application, all other embodiments obtained by ordinary technicians in this field without making any creative efforts are within the scope of protection of this application.

[0062] Spiking Neural Networks (SNNs), originating from brain science, are hailed as a new generation of neural networks. Aiming to bridge the gap between current neuroscience and machine learning, SNNs utilize models that best resemble biological neuronal mechanisms for computation. Their rich spatiotemporal neural dynamics, diverse encoding mechanisms, and event-driven nature have garnered widespread attention from researchers.

[0063] In an SNN, a neuron typically consists of an input synapse, an activation function, an integrator, and an output synapse. Input synapses receive input signals from other neurons, which are transmitted through synapses, either chemical or electrochemical. The activation function determines whether the neuron's output is activated or inhibited. In an SNN, the activation function is typically a threshold function or a sigmoid function. The integrator accumulates the input signal and determines whether the neuron fires a spike. The integrator is typically a capacitor or an integrator. The output synapse transmits spikes to other neurons. Together, these components form a neuron in an SNN.

[0064] Existing neuronal circuit designs fail to strike a good balance between biological plausibility and computational complexity. Analog circuits overly pursue precise neuromorphic behavior, resulting in high energy consumption and difficulty in achieving large-scale scalability, making them difficult to adopt for diverse applications. Digital circuits, on the other hand, overly pursue minimal computational complexity and employ the overly functional LIF neuron model, limiting the range of brain-like behaviors and function operators that neurons can implement. This, in turn, hinders the widespread application of brain-inspired platforms in various scenarios.

[0065] In order to solve the problems existing in the prior art, referring to FIG1 , the present application proposes a biologically credible neuron computing circuit, comprising a synaptic integration module 110 , a leakage integration module 120 , and a threshold comparison and pulse emission module 130 connected in sequence.

[0066] The synaptic integration module 110 is used to calculate the membrane level at the current moment according to the membrane level at the previous moment and the input neural network pulse signal, and send the membrane level at the current moment to the leakage integration module;

[0067] The leakage integration module 120 is used to perform a leakage operation on the membrane level at the current moment and send the membrane level after the leakage operation to the threshold comparison and pulse emission module;

[0068] The threshold comparison and pulse issuing module 130 is used to compare a preset pulse issuing threshold with the membrane level after the leakage operation, and generate a pulse signal according to the threshold judgment result.

[0069] The neuron computing circuit is an important part of the neuron circuit, which is used to process and calculate the pulse signals.

[0070] The synaptic integration module 110 is used to calculate the membrane level at the current moment based on the membrane level at the previous moment and the input neural network pulse signal, and send the membrane level at the current moment to the leakage integration module. This module can be implemented by setting an adder and an integrator. The adder is the core part of the synaptic integration module 110, which is used to add multiple input pulse signals received by the neuron calculation circuit to obtain the total input current value of the neuron. Generally, the adder can weight the input current through a current distributor to achieve weight adjustment of different input signals. The integrator is used to integrate the total input current of the neuron calculation circuit to obtain the membrane level value of the neuron. In the neuron circuit, the capacitor element is usually used to simulate the membrane capacitance of the neuron, and the integrator is used to integrate the input current to calculate the change in the neuron membrane level.

[0071] Assume that the membrane level of the neuron at time t is V j (t), is the membrane level V at time t-1 j (t-1) and the weighted sum of the network input pulse. If N represents the total number of synapses to be integrated, x i (t) represents the impulse signal on the i-th axon at time t, w i,j represents the synaptic connection weight between the i-th axon and the j-th dendrite, As the enable signal of random integration mode, is a pseudo-random number, sgn(·) is a sign function, then the synaptic integration process can be expressed as follows:

[0072] The leakage integration module 120 can realize random or deterministic forward leakage and reverse leakage, and can realize the membrane level convergence or divergence to zero.

[0073] Leakage integration can be performed before or after the threshold comparison, which is controlled by a configurable parameter bit. is the control signal for the leakage inversion mode, is the enable signal of random leakage mode, and the leakage amplitude is λ j , is a pseudo-random number, F(·) is a comparison function, and the leakage integration process can be expressed as follows:

[0074] Threshold comparison and pulse emission module 130, a pulse emission unit, is used to detect whether the neuron membrane level exceeds a threshold and generate an output pulse when the threshold is exceeded. Typically, the pulse emission unit can use a comparator to compare the neuron membrane level with the threshold to determine whether a pulse output should occur. Furthermore, the emission unit can also reset the membrane level using a reset switch or subtractor to simulate the level change after a neuron pulse output.

[0075] set up is the positive threshold, is the negative threshold, is the random threshold, V rst,j is the reset level, where is a pseudo-random number, Mask j is the window of random number mask, y j (t) is the pulse generated at time t, δ(·) is the impulse function, γ j is the reset mode control parameter, κ j Selecting parameters for the negative threshold mode, the threshold comparison and pulse emission reset process of the neuron can be expressed as follows:

[0076] 1) if

[0077] 2) else if

[0078] 3) else V j (t) = V j (t),y j (t) = 0

[0079] It is understandable that when the pulse emission membrane level is reset, the activity of one cycle of the neuron is completed, and it waits for the next moment to arrive, and it repeats itself again, completing the above process of synaptic integration, leakage integration, threshold comparison and pulse emission reset. From the above expression, compared with the original LIF model, this application has made improvements in four aspects: First, a random process is added, which allows random accumulation and leakage in the synaptic integration and leakage integration stages, and the threshold can also fluctuate randomly within a certain range. Second, through leakage reversal, a divergent or convergent leakage mode is achieved, and leakage operations before or after threshold comparison can also be achieved. Third, there are multiple options for resetting the membrane level after pulse emission. It can be reset to a fixed value, the threshold can be subtracted, or it can not be reset. Fourth, a negative threshold is defined, which can be used as a floor threshold to prevent the membrane level from being too low, and the membrane level can also be adjusted through the reset mode corresponding to the positive threshold.

[0080] The present application provides a biologically credible neuron computing circuit and computing method. The circuit calculates the membrane level and neural network pulse signal at the previous moment through a synaptic integration module, a leakage integration module, a threshold comparison and a pulse emission module, obtains the membrane level at the current moment, and generates a pulse signal based on the membrane level at the current moment. Compared with the traditional digital-analog hybrid design that overly pursues precise neuromorphic behavior, and the traditional digital design that overly pursues extremely low computational complexity, the biologically credible neuron computing circuit of the present application makes a better compromise between biological credibility and computational complexity. It can achieve richer neuron dynamics behavior at a lower hardware cost, and realizes the largest-scale enhanced LIF neuron integration and synaptic integration, enabling the deployment of more complex and diverse neuromorphic brain-like applications.

[0081] As a further optional embodiment, the synaptic integration module includes a neural network synaptic unit;

[0082] The neural network synapse unit is used to obtain a neural network synapse weight value according to a neural network pulse signal, and store the neural network synapse weight value in the synapse integration module;

[0083] The synaptic integration module is used to perform weighted summation on the neural network pulse signal according to pre-stored neural network synaptic weight values.

[0084] Referring to Figure 2, the synaptic integration module performs a dot product operation based on the input pulse and the corresponding synaptic weight. The circuit implementation only requires a simple AND gate. Each time 64 1-bit pulse data x are integrated through the dendrites, i (t) will be divided into 8 groups of 8-bit data, and then combined with the synaptic weight w which is also divided into 8 groups i,j Perform eight-way parallel synaptic operations. The eight 1-bit results output by the AND gate are first partially accumulated to obtain Input 0 to 7, which are then integrated and processed by the neuron.

[0085] As a further optional embodiment, the synaptic integration module further includes a random number generation unit;

[0086] The random number generating unit is used to randomly filter the neural network pulse signal to obtain a subset of the neural network pulse signal;

[0087] The synaptic integration module is used to perform weighted summation on a subset of the neural network pulse signals according to pre-stored neural network synaptic weight values.

[0088] 2, in this embodiment, random integration enables Different inputs will be filtered out depending on whether the operation is in deterministic mode or random mode: in deterministic mode, Input0~7 will be directly fed in; in random mode, a pseudo-random number generator will be used. The 8 groups of pulse parts will be randomly filtered out, thus producing a random accumulation effect. The filtered input will then pass through the adder tree of the three-stage pipeline to obtain the sum of the 64 pulse inputs, which will then be combined with the membrane level V at the previous moment. j (t-1) Complete iterative accumulation and complete the accumulation operation. During this process, if higher-precision 2 / 4 / 8-bit weights are used, the circuit will use shift addition to replace the more expensive multiplier, completing the synaptic integration operation in 2 / 4 / 8 steps.

[0089] As a further optional embodiment, performing a leakage operation on the membrane level at the current moment includes:

[0090] Perform forward leakage on the membrane level at the current moment;

[0091] or

[0092] Reverse leakage of the membrane level at the current moment;

[0093] or

[0094] Randomly leak the membrane level at the current moment.

[0095] 3, in this embodiment, the leakage integration module can perform some complex leakage operations on the accumulated membrane level during the leakage integration phase, including using a deterministic or random leakage integration mode, a leakage reversal mode, and a leakage mode before or after comparison. Control the leakage integration mode to determine whether to perform determined leakage integration or random leakage integration. For determined leakage integration, directly accumulate the leakage value λ j For random leakage integration, a pseudo-random number generator can be used The probability of generating +1, -1 or 0 leakage. For leakage inversion mode, when leakage inversion is enabled As shown in Figure 4, the leakage integration module can be based on the current membrane level V j The positive and negative properties of (t) adjust the direction of leakage, and the membrane level after leakage can be converged toward the 0 level or diverged away from the 0 level.

[0096] As a further optional embodiment, the leakage integration module is further configured to receive the membrane level after the threshold comparison and pulse emission module performs threshold comparison and perform leakage operation.

[0097] In this embodiment, the leakage operation can be performed after the threshold comparison or before the threshold comparison. In this embodiment, the calculation method of the leakage integration module is enriched, thereby expanding the functions of the neuron calculation circuit.

[0098] As a further optional embodiment, the pulse emission threshold includes a positive threshold, and the preset pulse emission threshold is compared with the membrane level after the leakage operation, and a pulse signal is generated according to the threshold judgment result, including:

[0099] When the membrane level after the leakage operation is higher than or equal to the positive threshold, a pulse signal and a level reset signal are generated.

[0100] As a further optional embodiment, the pulse emission threshold includes a negative threshold, and the preset pulse emission threshold is compared with the membrane level after the leakage operation, and a pulse signal is generated according to the threshold judgment result, including:

[0101] When the membrane level after the leakage operation is lower than the negative threshold, only a level reset signal is generated.

[0102] 5, in this embodiment, the pulse emission unit is used to detect whether the neuron membrane level has reached a threshold value, and to generate an output pulse when the threshold value is reached. Specifically, when the threshold value is compared, the positive threshold value is determined. Negative threshold And the random swing part The random swing part can use a pseudo-random number generator and a variable width mask Mask j By adding random numbers to the positive and negative thresholds, a random threshold within a custom range can be achieved. The positive threshold is related to the pulse emission. If the membrane level V j (t) exceeds the positive threshold, the neuron will fire a pulse and reset the membrane level. In addition, when the negative threshold mode is selected κ j When enabled, the negative threshold can also act as a floor threshold, ensuring that the membrane level does not fall below this predefined value.

[0103] It is understandable that a random swing portion may be added to the positive threshold and the negative threshold to achieve a random threshold within a custom range.

[0104] As a further optional embodiment, the threshold comparison and pulse emission module includes a membrane level resetting unit;

[0105] The film level resetting unit is used to receive the level resetting signal and reset the film level at a current moment to a preset level according to the level resetting signal.

[0106] In this embodiment, after the threshold comparison and pulse emission module reaches the positive threshold, a pulse will be emitted and the membrane level will be reset. The membrane level reset unit can reset the membrane level at the current moment to a preset level according to the level reset signal. Specifically, three modes are defined for membrane level reset. The signal γ is selected according to the reset mode. j, the following operations can be performed on the neuron membrane level: 1) reset to a specified value, 2) subtract a threshold, 3) remain unchanged.

[0107] It can be understood that although the negative threshold does not involve pulse emission, the membrane level can also be reset according to the above three modes after falling below the negative threshold.

[0108] The application scenarios of the neuron computing circuit of this application are described below.

[0109] Referring to Figure 6, taking eight neurons performing LIF neuron calculation as an example, the neurons first cycle through synaptic integration until all synapses have completed weight accumulation with the pulse. The eight neurons accumulate membrane levels of 2, 4, 8, 4, 3, 2, -8, and 6, respectively. The neurons then leak -1, -1, -1, -2, -2, 0, 1, and 0, respectively, before comparison, and the membrane levels become 1, 3, 7, 2, 1, 2, -7, and 6. Since the threshold is set to 3, three neurons have membrane levels greater than or equal to 3 and will emit pulses, resetting their membrane levels to 0. The other five neurons do not emit pulses, and their membrane levels remain unchanged. Therefore, the final membrane levels of the eight neurons are 1, 0, 0, 2, 1, 2, -7, and 0, among which neurons j = 1, 2, and 7 will emit pulses.

[0110] The neuron computing circuit in this application can be used as the core computing module in the neuromorphic processing core. Referring to Figure 7, each processing core is mainly composed of an input pulse scheduler module, a synaptic crossbar array module, a neuron module, an interface routing module, and a system control module.

[0111] The input scheduling module serves as a buffer for pulse inputs, storing them based on the time and space information tagged in the input data packets. At designated times, these pulses are fed into the synaptic array, a virtual connection implemented by reconfigurable logic that connects the data inputs to specific neurons. The pulses pass through the lateral axons of the synaptic array, performing bitwise AND operations at the synaptic points. These pulses are then sent to the longitudinal outputs, called dendrites, to be fed into the enhanced LIF neuron module for computation. Following the aforementioned computational steps of the neuron circuit, the emitted pulses are sent to the interface routing module, which, using address event representation, packages the pulses or data generated by the neurons into standard data packets, enabling data exchange with the outside world. These packets, then sent locally, are then parsed by the input scheduling module. This completes the data flow, forming a closed loop. The neuron circuit continuously integrates input pulses and generates output pulses, realizing its rich neural dynamics.

[0112] Based on the enhanced LIF neuron dynamics model proposed in this application, a richer range of neuron behavior simulations can be achieved, such as basic firing, phase firing, basic burst firing, mixed mode, frequency modulation firing, type 1 excitation, type 2 excitation, delayed firing, subthreshold oscillation, frequency matching firing, integrated firing, rebound firing, rebound burst firing, threshold regulation, bistability, depolarization potential, short response, inhibitory basic firing, inhibitory basic burst firing. Izhikevich neuron behavior as a whole is the different pulse firing performances exhibited by a single neuron under different external stimuli. Using the enhanced LIF neuron circuit proposed in this application, 1 to 3 neurons can be connected in a specific topological manner and reasonable dynamic parameters can be set to achieve these 20 behaviors. This shows that the design proposed in this application has the ability to simulate basic brain-like behaviors, which is an important difference from the basic LIF neuron model.

[0113] Refer to Table 1, which lists some representative behavior configuration topologies and dynamic parameters.

[0114] Referring to Figure 8, in the basic distribution, the weight w=1, the positive threshold Reset level V rst =0, then the neuron will reach the positive threshold every time it receives three pulse inputs, emit a pulse and reset the membrane level to 0, thus forming a uniform pulse with a period interval of 3.

[0115] Referring to Figure 9, in the phase release, set weight w = 1, leakage λ = 1, positive threshold Reset level V rst = -10, and turn on leakage inversion (leakage is +1 when the membrane level is positive, leakage is -1 when the membrane level is negative, and no leakage when the membrane level is 0) and set the floor membrane level When the first input arrives, the membrane level reaches 2 after synaptic and leakage integration, a pulse will be emitted and reset to -10. After that, because the synaptic integration +1 and the leakage integration -1 cancel each other out, the membrane level always remains at -10, and no more pulses will be emitted.

[0116] Referring to Figure 10, in the inhibitory base emission, set weight w = -10, leakage λ = -1, positive threshold Negative threshold Reset level V rst = -30, and turn on leakage inversion, turn off floor threshold mode. When the inhibitory pulse does not arrive, the leakage inversion with leakage λ < 0 will cause the membrane level to converge towards 0 (Figure 4), so no pulse will be emitted. When the inhibitory pulse arrives continuously, the neuron membrane level can accumulate to below the negative threshold At this time, the neuron membrane level will be reset to -V rst =30, at the next moment, after synaptic and leakage integration, the membrane level still reaches 19, so the pulse can be fired above the positive threshold.

[0117] Referring to Figure 11, in the basic bursting, two neurons are used, the weight of the 0th neuron is w=1,-100, the leakage λ=1, and the positive threshold Floor threshold Reset level V rst = 18, and turn on leakage inversion; the first neuron weight w = 1, no leakage, positive threshold Floor threshold Reset level V rst = 0. After neuron 0 receives 10 pulses and 10 leaks, its membrane level reaches 20, exceeding the positive threshold and firing a pulse, resetting its membrane level to 18. The next moment, after synaptic integration and leaks, the membrane level reaches 20, again exceeding the positive threshold and firing a pulse, resetting its membrane level to 18. This cycle repeats itself at the next moment. The pulses fired by neuron 0 are transmitted to neuron 1, increasing its membrane level by 1 each time. Therefore, after neuron 0 fires six times, neuron 1's membrane level reaches 6, exceeding the positive threshold and firing a pulse, resetting its level to 0. This pulse is then transmitted back to neuron 0. Consequently, neuron 0's membrane level decreases by 100, falling below the floor threshold and resetting its membrane level to 0. Neuron 0 then needs to receive another 10 pulses and 10 leaks before it can resume bursting. The result is that neuron 0 fires six pulses in close succession every 10 cycles.

[0118] Table 1

[0119] The neuron circuits of this application can also be used to implement logic and arithmetic functions with more practical functions. In logic functions, a single neuron can implement OR, AND, NOT, NOR, NAND, and buffer functions, while three neurons can implement XOR and XOR functions. In arithmetic functions, a single neuron can implement addition, subtraction, multiplication, Nth power, logarithm, fixed coefficient multiplication and division, and other functions. Two neurons can implement division, square, maximum, minimum, and other operations, while three neurons can implement absolute value and square root operations.

[0120] Refer to Table 3, which lists the configuration topologies and kinetic parameters of some representative logic functions.

[0121] Referring to FIG12 , in the logic “AND”, let weight w=1, leakage λ=-1, positive threshold Floor threshold Reset level V rst =0, then only when X and Y have input pulses at the same time, the membrane level can reach 1, emit a pulse, and reset the membrane level to 0; when there is only one input pulse for X and Y, the membrane level is 0, and when there is no input pulse, the membrane level is -1. In both cases, no pulse is emitted, and the membrane level will be assigned to the floor threshold 0 after comparison.

[0122] Referring to Figure 13, in the logical "OR", set weight w = 1, no leakage, positive threshold Floor threshold Reset level V rst =0, then when there is at least one input pulse for X and Y, the membrane level can reach 1, a pulse is emitted, and the membrane level is reset to 0; when there is no pulse input for X and Y, the membrane level is 0 and no pulse is emitted.

[0123] Referring to FIG14 , in the logical NOT, let weight w = -1, leakage λ = 1, and positive threshold Floor threshold Reset level V rst =0, then when there is an input pulse, the weight and leakage integration cancel each other out, the membrane level remains at 0, and no pulse is emitted; when there is no input pulse, the membrane level reaches 1 after leakage integration, a pulse is emitted, and the membrane level is reset to 0.

[0124] Referring to Figure 15, in the logical "XOR", three neurons are required, the weight of the 0th neuron is w = -1, 1, no leakage, positive threshold Floor threshold Reset level V rst =0; the first neuron has the opposite weight, w=1,-1, and the other parameters are the same; the second neuron has weight w=1, and the other parameters are the same. When both X and Y have input pulses, the accumulated membrane levels of neurons 0 and 1 are both 0, and no pulses are emitted. Since the second neuron has no pulse input, it will not emit a pulse either. When X has an input pulse but Y does not, the membrane level of neuron 0 is -1, and no pulse is emitted. The membrane level is assigned to the floor threshold of 0. The membrane level of neuron 1 is 1, and it emits a pulse. The membrane level is reset to 0. At this time, the second neuron receives the input of neuron 1, and the membrane level reaches the positive threshold of 1, and it emits a pulse. Similarly, when X has no input pulse but Y has, neuron 0 emits a pulse, while neuron 1 does not, which eventually causes neuron 2 to emit a pulse. When neither X nor Y has a pulse input, the membrane levels of neurons 0 and 1 are both 0, and no pulse is emitted. Neuron 2 will also not emit a pulse.

[0125] Table 2

[0126] Refer to Table 3, which lists the configuration topologies and dynamic parameters of some representative arithmetic functions.

[0127] Referring to Figure 16, in the function "add", set weight w = 1, no leakage, positive threshold Floor threshold The reset mode is that each time an output pulse is emitted, the membrane level is reduced by the threshold. Therefore, when neurons X and Y receive a certain number of input pulses, the membrane level will accumulate to a corresponding level, and eventually the same number of output pulses will be emitted, which is called addition.

[0128] Refer to Figure 17. In the function "maximum", two neurons are used. The weight of the 0th neuron is w = 1, -1, no leakage, and a positive threshold. Floor threshold The reset mode is that each time an output pulse is emitted, the membrane level is subtracted from the threshold. The weight of the first neuron w = 1, no leakage, positive threshold Floor threshold In reset mode, the membrane level decrements the threshold value for each output pulse emitted. When the number of input pulses (X) exceeds the number of input pulses (Y), the membrane level of neuron 0 is positive, reaching the threshold and emitting (XY) output pulses. These (XY) pulses and the number of pulses (Y) are accumulated in neuron 1, ultimately causing neuron 1 to generate X output pulses. When the number of input pulses (X) is less than the number of input pulses (Y), the membrane level of neuron 0 is negative, and no pulses are generated. Neuron 1 then accumulates the number of input pulses (Y), ultimately generating Y output pulses.

[0129] Referring to Figure 18, in the function "divide", two neurons are used, the weight of the 0th neuron w = 1, the leakage λ = -1, and the positive threshold Floor threshold Reset level V rst = 0. The first neuron weight w = 1, -1, no leakage, positive threshold Floor threshold No level reset is performed. This structure includes a feedback structure from neuron 1 to neuron 0. If the output pulse of neuron 1 is Spike, then the output pulse of neuron 0 is Y*Spike (the aforementioned AND gate function). The membrane level of neuron 1 is then XY*Spike. As long as X>Y*Spike, neuron 1 will continue to emit pulses. Only when X=Y*Spike, when the membrane level of neuron 1 drops to 0, will it stop emitting pulses. At this point, Spike=X / Y, that is, the number of output pulses is the division of the input pulses.

[0130] Referring to Figure 19, in the function "square", two neurons are used, the weight of the 0th neuron is w=1, there is no leakage, and the threshold is positive. There is a 10-bit random accumulation threshold, floor threshold No level reset is performed. The first neuron weight w = 1, leakage λ = -1, positive threshold Floor threshold Reset level V rst = 0. The 0th neuron contains a random number window Mask = 1023, and its random threshold is between 1 and 1024. Since the level is not reset, each input pulse can increase its level by 1. Assuming that X pulses are input, the number of pulses expected to be emitted by neuron 0 is It is approximately the square relationship of X. Neuron 1 plays a modulatory role to prevent neuron 0 from still emitting pulses when there is no input pulse.

[0131] Table 3

[0132] The following describes the calculation method for the pulse neural network provided by the present application. Referring to Figure 20, the calculation method for the pulse neural network described below is based on the biologically credible neuron computing circuit described above.

[0133] Step 2010: Calculate the membrane level at the previous moment and the input neural network pulse signal to obtain the membrane level at the current moment;

[0134] Step 2020: Generate a pulse signal according to the membrane level at the current moment.

[0135] FIG21 illustrates a schematic diagram of the physical structure of an electronic device. As shown in FIG21 , the electronic device may include: a processor 2110, a communications interface 2120, a memory 2130, and a communication bus 2140. The processor 2110, the communications interface 2120, and the memory 2130 communicate with each other via the communication bus 2140. The processor 2110 may call logic instructions in the memory 2130 to execute a calculation method for a spiking neural network, which includes:

[0136] Calculate the membrane level at the previous moment and the input neural network pulse signal to obtain the membrane level at the current moment;

[0137] Generates a pulse signal according to the current membrane level.

[0138] In addition, the logic instructions in the above-mentioned memory 2130 can be implemented in the form of a software functional unit and can be stored in a computer-readable storage medium when sold or used as an independent product. Based on this understanding, the technical solution of the present application is essentially or the part that contributes to the prior art or the part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a number of instructions for enabling a computer device (which can be a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the method described in each embodiment of the present application. The aforementioned storage medium includes: various media that can store program codes, such as a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk.

[0139] On the other hand, the present application also provides a computer program product, which includes a computer program. The computer program can be stored on a non-transitory computer-readable storage medium. When the computer program is executed by a processor, the computer can perform the calculation method for the spiking neural network provided by the above methods, which includes:

[0140] Calculate the membrane level at the previous moment and the input neural network pulse signal to obtain the membrane level at the current moment;

[0141] Generates a pulse signal according to the current membrane level.

[0142] In another aspect, the present application further provides a non-transitory computer-readable storage medium having a computer program stored thereon. When the computer program is executed by a processor, the computer program is implemented to perform the calculation method for the spiking neural network provided by the above methods, the method comprising:

[0143] Calculate the membrane level at the previous moment and the input neural network pulse signal to obtain the membrane level at the current moment;

[0144] Generates a pulse signal according to the current membrane level.

[0145] The device embodiments described above are merely illustrative. The units described as separate components may or may not be physically separate, and the components shown as units may or may not be physical units, i.e., they may be located in one location or distributed across multiple network units. Some or all of the modules may be selected based on actual needs to achieve the objectives of the present embodiment. Persons of ordinary skill in the art will be able to understand and implement the present invention without inventive effort.

[0146] Through the description of the above embodiments, those skilled in the art can clearly understand that each embodiment can be implemented by means of software plus a necessary general hardware platform, or of course, by hardware. Based on this understanding, the essence of the above technical solution or the part that contributes to the existing technology can be embodied in the form of a software product. The computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, a magnetic disk, an optical disk, etc., and includes a number of instructions for enabling a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods described in each embodiment or certain parts of the embodiments.

[0147] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit them. Although the present application 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 make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present application.

Claims

1. A biologically credible neuron computing circuit, comprising a synaptic integration module, a leakage integration module, a threshold comparison and a pulse emission module connected in sequence; The synaptic integration module is used to calculate the membrane level at the current moment according to the membrane level at the previous moment and the input neural network pulse signal, and send the membrane level at the current moment to the leakage integration module; The leakage integration module is used to perform a leakage operation on the membrane level at the current moment, and send the membrane level after the leakage operation to the threshold comparison and pulse emission module; The threshold comparison and pulse emission module is used to compare the preset pulse emission threshold with the membrane level after the leakage operation, and generate a pulse signal according to the threshold judgment result.

2. The biologically authentic neural computing circuit according to claim 1, wherein: The synaptic integration module includes neural network synaptic units; The neural network synapse unit is used to obtain a neural network synapse weight value according to a neural network pulse signal, and store the neural network synapse weight value in the synapse integration module; The synaptic integration module is used to perform weighted summation on the neural network pulse signal according to the pre-stored neural network synaptic weight value.

3. The biologically authentic neural computing circuit according to claim 2, wherein: The synaptic integration module also includes a random number generation unit; The random number generating unit is used to randomly filter the neural network pulse signal to obtain a subset of the neural network pulse signal; The synaptic integration module is used to perform weighted summation on a subset of the neural network pulse signals according to pre-stored neural network synaptic weight values.

4. The biologically authentic neural computing circuit according to claim 1, wherein: Perform leakage operations on the current membrane level, including: Forward leakage of the membrane level at the current moment; or Reverse leakage of the membrane level at the current moment; or Randomly leak the membrane level at the current moment.

5. The biologically authentic neural computing circuit according to claim 1, wherein: The leakage integration module is also used to receive the membrane level after the threshold comparison and pulse emission module performs threshold comparison and perform leakage operation.

6. The biologically authentic neural computing circuit according to claim 1, wherein: The pulse emission threshold includes a positive threshold, and the preset pulse emission threshold is compared with the membrane level after the leakage operation, and a pulse signal is generated according to the threshold judgment result, including: When the membrane level after the leakage operation is higher than or equal to the positive threshold, a pulse signal and a level reset signal are generated.

7. The biologically authentic neural computing circuit according to claim 6, wherein: The pulse emission threshold includes a negative threshold, and the preset pulse emission threshold is compared with the membrane level after the leakage operation, and a pulse signal is generated according to the threshold judgment result, including: When the membrane level after the leakage operation is lower than the negative threshold, only a level reset signal is generated.

8. The biologically authentic neural computing circuit according to claim 7, wherein: The threshold comparison and pulse issuing module includes a membrane level resetting unit; The film level resetting unit is used to receive the level resetting signal, and reset the film level at the current moment to a preset level according to the level resetting signal.

9. A computational method for a spiking neural network, comprising: Calculate the membrane level at the previous moment and the input neural network pulse signal to obtain the membrane level at the current moment; Generates a pulse signal according to the membrane level at the current moment.

10. The computing method for a spiking neural network according to claim 9, wherein: The step of generating a pulse signal according to the membrane level at the current moment comprises: If the membrane level at the current moment is higher than or equal to the positive threshold, a pulse signal is output.

Citation Information

Patent Citations

  • Neuron membrane potential updating method, cranial nerve-like component and processing core

    CN113240102A

  • Multi-input neuron circuit for spiking neural network

    CN114528984A

  • Neuron unit circuit, spiking neural network and intelligent Internet of Things chip

    CN114897143A

  • Hardware implementation method for reducing neuron calculation times of spiking neural network

    CN115545178A

  • Biological credible neuron calculation circuit and calculation method

    CN116663622A