Probability Propagation on Factor Graphs

The probability distribution of random variables is propagated on the factor graph through the spiking neural network, which solves the problem of high computational complexity of probability propagation of random variables in the factor graph and achieves higher energy efficiency and scalability.

CN112384934BActive Publication Date: 2024-09-24INTERNATIONAL BUSINESS MACHINE CORPORATION
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN201980045616.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Priority Date
2018-09-06
Filing Date
2019-09-05
Publication Date
2024-09-24
Estimated Expiration
2039-09-05

AI Technical Summary

Technical Problem

In the existing technology, the propagation of the probability distribution of random variables on the factor graph has high computational complexity, resulting in high processing resource consumption and low efficiency, especially in applications involving a large number of random variables.

Method used

Spiking neural network (SNN) is used to implement probability propagation, encoding the probability distribution of random variables through spike signals, and propagating the signal in the neural network, thereby reducing computational complexity and energy consumption.

Benefits of technology

It significantly improves the energy efficiency and computational complexity of probability propagation of random variables, achieves scalability to a large number of random variables, and is more efficient than the traditional von Neumann computing architecture.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN112384934B_ABST
    Figure CN112384934B_ABST
Patent Text Reader

Abstract

A method and apparatus for implementing the propagation of a probability distribution of random variables on a factor graph is provided. The method includes providing a spiking neural network having variable nodes interconnected with factor nodes, corresponding to the factor graph. Each node includes a set of neurons configured to implement the computational function of the node. The method also includes: generating at least one spike signal for each of a set of random variables, wherein the probability of possible values ​​of the variable is encoded via the presence of a spike in the spike signal; and providing the spike signals of the set of random variables as input to the neural network at the corresponding variable nodes. The probability distribution is propagated via the presence of spikes in the signal propagated through the neural network.
Need to check novelty before this filing date? Find Prior Art

Description

Background Art

[0001] The present invention generally relates to probability propagation on factor graphs. In particular, methods for implementing the propagation of probability distributions of random variables on factor graphs, and apparatus and computer program products for performing such methods are provided.

[0002] Propagating probability distributions of random variables over factor graphs is a probabilistic computing technique used in many applications in science and technology. For example, the technique can be used for statistical inference in applications such as decoding of error correction codes in data transmission, analysis of data sets to derive insights from large amounts of data, such as from the Internet, and developing personalized health care plans for optimal combinations of competing therapies involving genetic factors in patients. The technique is applied to the probability distribution of a set of random variables whose values ​​represent possible outcomes of a physical process or other essentially random phenomenon according to the specific application in question. These probability distributions are propagated over the edges of a factor graph having multiple variable nodes interconnected via edges with multiple factor nodes. The structure of the factor graph and the specific computational functions associated with the nodes of the graph are determined by the underlying application. Referring below to the accompanying drawings Figure 1 and Figure 2 Briefly explain the probability propagation process.

[0003] Figure 1 A simple example of a factor graph is shown. The factor graph has variable nodes corresponding to a set of variables s, u, v, w, x, y, and z, and a function f that describes the factorization. A 、f B 、f C 、f D and f E The corresponding factor nodes are:

[0004] P(s,u,v,w,x,y,z)=f A (s,u,v)f B (v,w)f C (u,x)f D (u,y)f E (y,z)

[0005] The edges in the graph connect variable nodes to factor nodes according to the factors in which the variable appears. Suppose you want to compute:

[0006]

[0007] Where P(s|z=z′) represents the probability distribution of variable s when the observed value of variable z is z′. Two methods can be used. Direct calculation can be done by u n v n wn x n y To perform the summation (where n p represents the number of possible values ​​of variable p):

[0008]

[0009] Alternatively, the sums can be distributed over the product of the factorizations (n u n v +n w +n x +n y The sum of the items):

[0010]

[0011] The probability propagation procedure performs the second type of computation described above by treating the edges of the factor graph as message-passing channels. Messages representing probability distributions are computed at nodes and passed along edges to connected nodes. In general, the orientation of the graph and the manner in which messages are propagated depend on the specific computation to be performed, and messages are created in response to observations. The graph can be oriented by choosing one or more nodes as roots, and each non-root node that is connected to only one other node is designated as a leaf. In a first step, messages can be passed forward from leaves to roots, level by level, and then in a second step, backward from roots to leaves, level by level. During each of the forward and backward passes, two types of vector messages are passed: variable-to-function messages consisting of products of local marginals; and function-to-variable messages consisting of sums of distributions over nearby variables. In Figure 2 The variable nodes x and function nodes f in the part of the factor graph shown A The calculations for these two types of messages are as follows. From x to f A The variable-to-function message is given by:

[0012] μ x→A (x) = μ B→x (x)μ C→x (x)

[0013] And from f A The function-to-variable message to x is given by:

[0014] μ A→x (x) = ∑ y ∑ z f A (x,y,z)μ y→A (y)μ z→A (z).

[0015] During both passes, the observed variable v whose value is known is held constant at those values. Once both passes are complete, each node zi Combine the stored messages to obtain P(z i |v). Therefore, for Figure 2 The variable node x in:

[0016] P(x|v)=βμ A→x (x)μ B→x (x)μ C→x (x)

[0017] where β makes ∑ x P(x|v)=1.

[0018] As can be seen, the probability propagation operation is computationally complex, and the complexity increases significantly for applications involving a large number of random variables. Implementing probability propagation using a traditional (von Neumann) computer requires a large amount of processing resources and significant power consumption, and the efficiency decreases significantly as the number of variables increases. Summary of the invention

[0019] According to at least one embodiment of the present invention, there is provided a method for implementing the propagation of a probability distribution of a random variable on a factor graph. The method includes providing a spike neural network having variable nodes interconnected with factor nodes, corresponding to a factor graph. Each node includes a set of neurons configured to implement the computational function of the node. The method also includes: generating at least one spike signal for each of a set of random variables, wherein the probability of the possible value of the variable is encoded via a spike appearing in the spike signal; and providing the spike signal of the set of random variables as input to the neural network at the corresponding variable node. The probability distribution is propagated by the appearance of spikes in the signal propagating through the neural network.

[0020] Implementing probability propagation in this way using spiking neural networks provides significantly higher energy efficiency and lower implementation complexity than conventional von Neumann computing architectures, allowing scalability to large numbers of random variables.

[0021] The probability may be encoded in the spike signal via at least one of the rate of occurrence and the time of occurrence of the spikes in the spike signal. In the resulting signal propagated by the network node through the neural network, the probability distribution may similarly be represented by the spike rate and / or timing, and different representations may be used at different stages of the propagation. In a particularly simple and efficient embodiment, each spike signal is generated so that the probability is encoded via the rate of occurrence of the spikes in the spike signal, and the neurons of the node are configured so that the probability distribution is propagated via the rate of occurrence of the spikes in the signal propagated through the neural network.

[0022] For binary random variables (having only two possible values), a single spike signal can be generated for each variable in the set. This signal encodes the probability of one of the binary values ​​of the variable. However, multi-valued random variables (having three or more possible values) can be easily accommodated in a spiking neural network architecture. In this case, for each possible value of each random variable in the set, a spike signal can be generated that encodes the probability of that value of the variable.

[0023] At least another embodiment of the present invention provides a method for detecting error correction codewords in a signal sampled at a channel output by propagating a probability distribution of codeword symbols corresponding to each signal sample on a factor graph. The method includes providing a spiking neural network having variable nodes interconnected with factor nodes, corresponding to a binary factor graph defined by a decoding algorithm for an error correction code. Each node includes a set of neurons configured to implement the computational function of the node. The method also includes generating at least one spike signal for each signal sample corresponding to a symbol of the codeword, wherein the probability of a possible symbol value of the sample is encoded via a spike appearing in the spike signal, and providing the spike signal corresponding to the symbol of the codeword as an input to the neural network at a corresponding variable node. The probability distribution is propagated via the appearance of spikes in the signal propagated through the neural network, and after propagation, the variable nodes output estimated symbol values ​​of the codeword.

[0024] Other embodiments of the present invention provide an apparatus for implementing the above method, and a computer program product for causing a processing device to perform the propagation of probability distribution according to the above method.

[0025] In general, where features are described with reference to a method of implementing the invention, corresponding features may be provided in an apparatus or computer program product implementing the invention, and vice versa.

[0026] Embodiments of the invention will be described in more detail below by way of illustrative and non-limiting examples with reference to the accompanying drawings. BRIEF DESCRIPTION OF THE DRAWINGS

[0027] Figure 1 An example of a factor graph is shown;

[0028] Figure 2 shows messages passing in a portion of a factor graph;

[0029] Figure 3 Indicates the steps of implementing the method of the present invention for achieving the propagation of probability distribution on the factor graph;

[0030] Figure 4 A factor graph for error correction code decoding application is shown;

[0031] Figure 5is a schematic representation of an apparatus for implementing probability propagation in decoding applications;

[0032] Figure 6 Shows Figure 5 The structure of the spiking neural network in the device;

[0033] Figure 7 Instructions Figure 6 The configuration of neurons in factor nodes in one embodiment of a network;

[0034] Figure 8 Shows Figure 7 The operation of the neuron configuration

[0035] Fig. 9 Shows Figure 6 The configuration of neurons in the variable nodes of the network;

[0036] Fig.10 Shows Fig. 9 Operations on the neuronal configuration;

[0037] Fig.11 Shows Figure 5 Probability encoding in the input spike signal in the second embodiment of the apparatus;

[0038] Fig.12 shows the probability encoding in the spike signal input to the factor node in the second embodiment;

[0039] Fig.13 shows the probability encoding in the spike signal at the variable node after the first pass of probability propagation in the second embodiment;

[0040] Fig.14 Indicates the SNN structure in the second embodiment; and

[0041] Fig.15 The operation of the neuron in the factor node in the second embodiment is indicated. DETAILED DESCRIPTION

[0042] The present invention may be a system, method and / or computer program product. The computer program product may include a computer-readable storage medium (or multiple media) having computer-readable program instructions thereon, the computer-readable program instructions being used to cause a processor to perform various aspects of the present invention.

[0043] Computer readable storage medium can be a tangible device capable of retaining and storing instructions used by an instruction execution device. Computer readable storage medium can be, for example, but not limited to, an electronic storage device, a magnetic storage device, an optical storage device, an electromagnetic storage device, a semiconductor storage device, or any suitable combination of the foregoing. A non-exhaustive list of more specific examples of computer readable storage medium includes the following: a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), a static random access memory (SRAM), a portable compact disc read-only memory (CD-ROM), a digital versatile disk (DVD), a memory stick, a floppy disk, a mechanical encoding device such as a punch card or a raised structure in a groove with instructions recorded thereon, and any suitable combination of the foregoing. Computer readable storage medium as used herein should not be interpreted as a temporary signal itself, such as a radio wave or other freely propagating electromagnetic wave, an electromagnetic wave propagated by a waveguide or other transmission medium (e.g., a light pulse by an optical fiber cable), or an electrical signal transmitted by a wire.

[0044] The computer-readable program instructions described herein can be downloaded from a computer-readable storage medium to a corresponding computing / processing device, or downloaded to an external computer or external storage device via a network, such as the Internet, a local area network, a wide area network, and / or a wireless network. The network can include copper transmission cables, optical transmission fibers, wireless transmissions, routers, firewalls, switches, gateway computers, and / or edge servers. The network adapter card or network interface in each computing / processing device receives the computer-readable program instructions from the network and forwards the computer-readable program instructions to be stored in a computer-readable storage medium in the corresponding computing / processing device.

[0045] The computer-readable program instructions for performing the operation of the present invention can be assembly instructions, instruction set architecture (ISA) instructions, machine instructions, machine-dependent instructions, microcode, firmware instructions, state setting data, or source code or object code written in any combination of one or more programming languages, including object-oriented programming languages ​​(such as Smalltalk, C++, etc.) and conventional procedural programming languages, such as "C" programming language or similar programming languages. The computer-readable program instructions can be executed completely on the user's computer, partially on the user's computer, executed as an independent software package, partially on the user's computer and partially on a remote computer, or completely on a remote computer or server. In the latter case, the remote computer can be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or can be connected to an external computer (for example, using an Internet service provider through the Internet). In some embodiments, in order to perform various aspects of the present invention, an electronic circuit including, for example, a programmable logic circuit, a field programmable gate array (FPGA) or a programmable logic array (PLA) can execute a computer-readable program instruction by utilizing the state information of the computer-readable program instructions to personalize the electronic circuit.

[0046] Various aspects of the present invention are described herein with reference to the flow chart and / or block diagram of the method, device (system) and computer program product according to embodiments of the present invention. It will be understood that each frame in the flow chart and / or block diagram and the combination of frames in the flow chart and / or block diagram can be implemented by computer-readable program instructions.

[0047] These computer-readable program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device create a device for implementing the functions / actions specified in one or more boxes of the flowchart and / or block diagram. These computer-readable program instructions can also be stored in a computer-readable storage medium, which can guide the computer, programmable data processing device, and / or other equipment to work in a specific manner, so that the computer-readable storage medium having the instructions stored therein includes an article of manufacture, which includes instructions for implementing various aspects of the functions / actions specified in one or more boxes of the flowchart and / or block diagram.

[0048] Computer-readable program instructions may also be loaded onto a computer, other programmable data processing apparatus, or other device, so that a series of operational steps are performed on the computer, other programmable apparatus, or other device to produce a computer-implemented process, so that the instructions executed on the computer, other programmable apparatus, or other device implement the functions / actions specified in one or more boxes of the flowchart and / or block diagram.

[0049] The flow chart and block diagram in the accompanying drawings show the possible architecture, function and operation of the system, method and computer program product according to various embodiments of the present invention.In this regard, each frame in the flow chart or block diagram can represent the module, segment or part of instruction, which includes one or more executable instructions for realizing the specified logical function.In some alternative embodiments, the function mentioned in the frame may not occur in the order mentioned in the figure.For example, the two frames shown in succession can actually be performed substantially at the same time, or these frames can sometimes be performed in reverse order, depending on the function involved.It will also be noted that each frame of the block diagram and / or flow chart and the combination of the frames in the block diagram and / or flow chart can be realized by a dedicated hardware-based system that performs a specified function or action or performs a combination of special hardware and computer instructions.

[0050] Embodiments of the present invention use spiking neural networks (SNNs) to implement probabilistic computations. SNNs are neuromorphic processing architectures inspired by the biological architecture of the nervous system, in which information is processed by a complex network of neurons interconnected via synapses. Biological neurons can integrate the input signals they receive. The neuron "membrane potential", which represents the stored neuron state, is progressively modified by the arrival of the neuron input signal. When the membrane potential crosses a specific voltage threshold, the neuron will "excite", generate an output signal called an "action potential" or "spike", and then return to its initial state. These spikes are communicated to other neurons via synapses, which change their connection strength ("plasticity" or "synaptic weight") as a result of neuronal activity.

[0051] Computations in SNNs rely on full-spike or spike-free communication between spiking neuron networks. The basic components of SNNs include simulating the functions of neurons and synapses, where neurons are interconnected via synapses, and synapses relay spikes between neurons according to stored synaptic weights. Neuron / synapse functions can be implemented in hardware and / or software, where neurons simulate the "integrate and fire" function of biological neurons, and synapses simulate the plasticity of biological synapses. Various circuit implementations for neurons and synapses are known in the art, including circuits that utilize the memristive properties of nanodevices, such as resistive memory cells such as phase change memory (PCM) cells, for storing neuronal membrane potentials or synaptic weights. Such dense cross-bar arrays of memristive devices provide massively parallel and area-efficient and energy-efficient SNN implementations.

[0052] The simple neuron model is defined by a first-order differential equation:

[0053]

[0054] Where v represents the membrane potential, v∞ represents the resting potential, and τ represents the time constant. If the membrane potential reaches the threshold value v th , the neuron fires a spike and resets the membrane potential to v reset After the spike, the neuron is at a level equal to T refract The refractory period of the neuron is unresponsive to input. Neurons are connected via synapses as described above. After the presynaptic neuron fires a spike, the synaptic connection between the two neurons causes an instantaneous change in the membrane potential of the postsynaptic neuron equal to w. Therefore, the magnitude of the change in w reflects the synaptic weight.

[0055] The method of implementing the present invention uses the SNN architecture to implement the propagation of the probability distribution of random variables on the factor graph. The basic steps of this method are Figure 3 As shown in the flowchart of . As shown in step 1, the SNN is provided with variable nodes interconnected with factor nodes (also called function nodes), and the factor nodes correspond to the factor graph defined by the application in question. The SNN will contain a plurality of variable nodes corresponding to the corresponding random variables in the plurality of variables on which calculations are to be performed. The possible values ​​of these variables can represent the possible results of a physical process, such as the possible symbol values ​​corresponding to the samples of the encoded data transmission, or the possible gene expression data generated by the treatment of genetic diseases. As another example, the value of the variable can represent the correlation of the data set in a large data storage system. (Many other applications can be envisioned here, and the specific properties of random variables are orthogonal to the operating principles described herein). The variable nodes are interconnected with the factor nodes according to the edges of the factor graph. Each variable node and factor node in the SNN includes a set of (one or more) neurons, which are configured to implement the computational function of the node in the probability propagation operation. The configuration of the neurons that implement the variable node will depend on, for example, the number of edges connecting the node to the adjacent factor nodes in the graph. The configuration of the neurons that implement the factor node will depend on, for example, the number of edges to the adjacent variable nodes and the computational function associated with the factor node determined by the underlying application.

[0056] To initiate a propagation operation, at least one spike is generated for each random variable in a set of (one or more) random variables corresponding to a variable node of the graph. The set of variables for which the spike is generated may include, for example, observed variables (i.e., variables for which values ​​have been observed) and / or unobserved variables for which an "a priori" probability distribution is available. The generation of the spikes for the random variables is performed in Figure 3, is shown in step 2 of . In each spike signal, the probability of the possible values ​​of the corresponding variable is encoded by the spike that appears in the spike signal. Therefore, the number of spike signals generated for the variable depends on the number of possible values ​​of the variable. (Generally, each possible value here may represent the value of a discrete random variable taken from a finite alphabet (for discrete random variables), or a range of values, i.e., any value within a defined range (for continuous random variables)). In step 3, the spike signals of the random variables are provided as input to the SNN at the respective variable nodes corresponding to these random variables. In step 4, the probability distribution of the random variables is then propagated by the appearance of spikes in the signal propagating through the SNN. The propagation process may involve more than one propagation step and may be iterative, involving multiple propagation operations, each of which may include multiple propagation steps, such as the forward (leaf to root) and backward (root to leaf) propagation steps described above. During the propagation operation, the variable nodes compute the variable-to-function messages (product terms) of the message passing operation, and the factor nodes compute the function-to-variable messages (sums of products), wherein in each case the results of the computations are encoded in the occurrence of spikes in the signals output by the neurons implementing each node. The propagation results are provided by the computations performed at the SNN nodes, and as shown in step 5, the desired computational results can be obtained at one or more nodes after the propagation, specifically, the desired results of the operation can be obtained, for example, from the signals at one or more nodes via the node outputs, based on the specific computational results inferred from the propagation operation. For example, one or more variable nodes may be adapted to output spike signals encoding the propagation results at these nodes. Results may be obtained at one or more stages of an iterative process, wherein the computational results are progressively refined by successive passes of the propagation operation.

[0057] Thus, the probability distribution of a random variable is propagated by the presence of spikes in the signal propagating through the SNN to obtain a computational result at one or more nodes after the propagation. Such use of SNNs to evaluate probability propagation on factor graphs allows inherently complex operations to be performed in an efficient manner, thereby providing significantly higher energy efficiency and lower implementation complexity compared to conventional implementations based on von Neumann computing architectures. Thus, the SNN architecture for probability propagation provides scalability to a large number of random variables.

[0058] An exemplary embodiment in which an SNN architecture is used for probability propagation in the decoding of an error correction code will now be described in more detail. In the present application, the above method is used to detect error correction codewords in a signal sampled at a channel output. The signal transmitted through the channel is modulated with the symbol of the codeword generated by encoding the data using an error correction code (ECC). The signal is sampled at the channel output to obtain signal samples corresponding to the corresponding symbol of each ECC codeword. The SNN architecture is used to propagate the probability distribution of the codeword symbols corresponding to each signal sample on a binary factor graph defined by the decoding algorithm of the error correction code. In this example, the ECC code is a (7, 4) Hamming code, and the decoding algorithm is defined by the following parity check matrix H:

[0059]

[0060] The parity check equation for a codeword b with symbols b1, b2, ..., b7 is Hb = 0. For binary pairwise signaling over an AWGN (Additive White Gaussian Noise) channel, the symbol probability at the channel output is:

[0061] as well as

[0062] Where: x n is the codeword corresponding to b n (n=1 to 7) signal samples; is the sample x n Corresponds to b n =0 probability; is the sample x n Corresponds to b n =1; and σ is the standard deviation of the additive noise.

[0063] Figure 4 The bipartite factor graph corresponding to the parity check matrix H is shown. In this application, the random variables correspond to the codeword symbols. Therefore, the graph has seven variable nodes V1 to V7 corresponding to the symbols b1 to b7. Since these variables are binary, the probability distribution of each variable is completely determined by the probability or In this example, we use The initial symbol probabilities at the variable nodes V1 to V7 thus represent the probabilities that the symbols b1 to b7 corresponding to the samples x1 to x7, respectively, are bits with a value of 1. to The factor graph has three factor nodes, here the check nodes C1, C2 and C3 that implement the parity check operation of the decoding algorithm. The edges in the graph interconnect the variable nodes and the check nodes defined by the parity check matrix H.

[0064] To realize the probability distribution (here to ) of the transmission device in the high-level structure Figure 5 The device includes an SNN 10 and a spike signal generator 11. In the present application, the SNN 10 has a Figure 4 The factor graph of the variable nodes V1 to V7 interconnected with the check nodes C1 to C3. Each node includes a set of neurons, which will be further described below, which are configured to implement the computational function of the node. The spike signal generator 11 receives the signal samples x1 to x7 corresponding to the transmitted codeword and calculates the probability of these samples by the above equation to The spike generator then generates spikes, in this case one spike for each symbol b1 to b7, encoding the probability to These probabilities are encoded in the rate and / or timing of the spikes in the spike signal, as described further below. to The spike signal is provided as input to the SNN 10 at the variable nodes V1 to V7 respectively. The probability distribution is then propagated via the rate and / or timing of the spikes in the signal propagating through the SNN. The propagation operation is performed iteratively here, and the variable nodes are adapted to output the codeword after propagation at each iteration. to Represents the estimated symbol value of .

[0065] In general, the functionality of the various components of the propagation device may be provided by logic implemented in hardware or software or a combination thereof. Such logic may be described in the general context of computer system executable instructions, such as program modules, executed by a (general or special purpose) programming device. In general, program modules may include routines, programs, objects, components, logic, data structures, etc. that perform specific tasks or implement specific abstract data types. For example, in some embodiments, the neuron functionality in the SNN 10 may be implemented in software. However, hardware implementation is preferred and the SNN 10 may be constructed using commonly known circuit techniques to implement the described functionality.

[0066] Figure 6 A more detailed structure of the SNN 10 is shown. Each variable node V1 to V7 includes one or more neurons, represented by Π, as indicated. The number of Π-neurons that implement each variable node depends on the number of edges between that node and the check nodes. Each Π-neuron is suitable for implementing a majority rule function, as described below. Each check node C1 to C3 includes a neuron configured to implement an XOR function, represented by Π in the figure. Specifically, each check node includes four neural networks, each neural network implements the XOR operation, and there is a neural network for each of the four edges between the check node and the variable node. The connection between the check node C1 and its adjacent variable nodes V1, V2, V3 and V5 is represented by a solid line in the figure. The connection between the check node C2 and its adjacent variable nodes V1, V2, V4 and V6 is represented by a dotted line. The connection between the check node C3 and its adjacent variable nodes V1, V3, V4 and V7 is represented by a dashed line.

[0067] In operation, the probability is encoded to The spike signal of is provided to the Π-neurons of nodes V1 to V7 via the inputs indicated in bold in the figure. In this initial pass, there is no output from the check node to the variable node. Therefore, the Π-neuron sends the encoded to The spike signal is provided to the SNN at the variable node, which is sent to the check node. The spike signal is provided to the XOR network of the check node via the connection shown in the figure. Each XOR network applies the XOR function to its input spike signal and outputs the resulting spike signal to the variable node. Therefore, each XOR network of the check node calculates the previously described function to the variable message μ C→V (V), the function-to-variable message will be transmitted by the check node to one of its adjacent variable nodes. The XOR output signal is received by the Π-neuron at the variable node, as shown in the connection in the figure. Each Π-neuron also receives the encoded probability to (These spikes are fired by the spike generator 11 after a delay δt corresponding to the propagation time of the initial signal through the network back to the Π-neuron). In each variable node, a Π-neuron computes a variable-to-function message μ to be sent by the variable node back to one of its connected check nodes. V→C (V). These Π-neuron output signals initiate the second propagation operation. One Π-neuron in each variable node also receives all signals from the connected check nodes as well as the initial input spike signal. (For variable nodes V5 to V7, which are only connected to one check node, a single Π-neuron is sufficient. For other variable nodes, additional Π-neurons receive all check node output signals as well as the initial input signal.) The output signal of the Π-neuron in each variable node provides a sign estimate, that is, the codeword symbol corresponding to the variable node is or

[0068] The second pass of the propagation operation is performed as above based on the Π-neuron output signal after the first pass. The operation is performed iteratively, where the output symbol estimate to The propagation operation may be run for a predetermined number of iterations, or may continue until the symbol estimate reaches a desired degree of certainty, such as until the estimate satisfies a parity check equation, or is unchanged for a defined number of iterations.

[0069] exist Figure 6 In the first embodiment of the SNN, the spike signal generator 11 determines the probability of to The node neurons are also configured so that the probability is propagated throughout the SNN via the spike rate in the propagation signal. Figure 7 Indicates the configuration of neurons in the factor nodes C1 to C3 in this embodiment. The figure on the left indicates the neural network structure of each XOR block of the factor node, and the table on the right indicates the parameters of each neuron based on the previously described neuron model. (These and similar parameters below are determined in a known manner by training operations of the neural network). Each 3-input XOR block of the check node is composed of two identical 2-input XOR networks (one of which is shown in full in the figure) connected as shown. The first 2-input XOR network includes two input neurons N1 and N2, receiving two of the XOR inputs (here represented by y1 and y2), and connected to the output neuron N3. The output z1 of neuron N3 provides an input to the second XOR network, and the second input of the second XOR network is the third of the 3-input XOR input signals, represented here by y3. The output z2 is the output signal of the 3-input XOR network.

[0070] Figure 7 The network operation can be Figure 8 This shows Figure 7 The two input signals y of the two-input XOR network shown in i=1,2 The spike rate in the output signal z1 is encoded in Figure 1. In each case the spikes are indicated by vertical lines, with the two inputs yi represented by solid and dashed lines, respectively. In the upper left figure, both inputs have low spike rates, corresponding to a low probability that y1=0 and y2=0 Therefore, the output signal z1 has a low spike rate, i.e., z1=0, as indicated in the figure below. In the upper right figure, one input has a low spike rate, while the other input is a high spike rate, for example, y1=0 and y2=1. Therefore, the output signal z1 has a high spike rate, i.e., z1=1, as shown in the figure below. The remaining input combinations are shown in the lower left and lower right figures, with the left side corresponding to y1=1, y2=0, z1=1 and the right side corresponding to y1=1, y2=1, z1=0. Therefore, the 2-input XOR operation is implemented as required. The three-input XOR operation is also the same accordingly.

[0071] Fig. 9 The configuration of each Π-neuron in the variable nodes V1 to V7 in this embodiment is indicated. Figure 6 Each Π-neuron in has two to four inputs. Fig. 9 Three inputs y1 to y3 are shown in FIG, but the described operation is applicable to any number of inputs. If the threshold potential Vth of the Π-neuron N1 is exceeded, it fires a spike. This implements a majority rule function, whereby if more than half of the inputs are high frequency (i.e., high probability of sign equal to 1) inputs, a high frequency (i.e., high probability of sign equal to 1) output will be generated. If exactly half of the inputs are high frequency inputs, a high frequency output will be generated with probability 0.5. Fig.10 Indicates the rate encoding in the input and output signals as before, where the spikes in the three inputs here are indicated by solid, dotted and dashed lines respectively. It can be seen that if two or more inputs have high spike rates, the output z1 has a high spike rate corresponding to a high probability.

[0072] The above provides a simple but efficient implementation where the probabilities are encoded at the spike rate throughout the propagation operation. The Π-neuron receiving all inputs from the check node indicates the output sign estimate as if the output z1 has a high spike rate And the output symbol estimate indication is when z1 has a low spike rate

[0073] exist Figure 5 In a second embodiment of the device, the spike signal generator 11 determines the probability of the spikes in the spike signal to be generated by the rate and timing of the spikes in the spike signal. to Specifically, the probability that the channel output symbol is equal to 1 A random sequence of spikes encoded by a Bernoulli sequence as a sequence of N bins of duration T, where the spike is at time t=iT in the i-th bin τ i ,i∈{0,1,…,N-1} is excited with probability This is Fig.11In the example of N=8, it is illustrated as

[0074] As in the above embodiments, the variable node neurons are implemented by Π-neurons, each of which fires a spike when its threshold potential is exceeded. The check node neurons are implemented by a 3-input XOR network, but these nodes perform encoding operations via spike timing. In particular, in the input signal of the XOR network, binary information is encoded in the i-th interval via the timing of the firing spikes. Bit 1 is encoded by firing a spike at time t=(i+1)T-Δ, and bit 0 is encoded by firing a spike at time t=iT+Δ. This is in Fig.12 For the input probability The output neurons of the 3-input XOR network are in each interval τ in the time interval t s (Δ <t s <(T-Δ)) to suppress spikes in the XOR output signal that correspond to 0s. This suppression of "0 spikes" converts the spike coding back to the coding used at the Π-neuron of the variable node, which either fires a spike (to encode 1) or does not fire a spike (to encode 0). As before, these converted signals are combined with the input spike signals at the variable node. Fig.13 The variable node output signal encoding probability obtained after the first iteration is shown The peak indicates .

[0075] In this embodiment, the different spike coding mechanisms used at the variable nodes and check nodes can be provided by additional logic in the SNN, such as Fig.14 As shown. SNN 20 generally corresponds to Figure 6 However, spike conversion logic 21 converts the spike representation in the variable-to-check node signal to a spike representation used by the check node, as described above. Logic 21 may be implemented in any convenient manner herein, and appropriate implementations will be apparent to those skilled in the art. Conversion of the check node output back to the variable node spike representation may be performed here by spike suppression, as shown at 22. As described above, this may be accomplished simply by s This function is achieved by internally inhibiting the output neurons of each XOR network to suppress the 0 spikes in the check node output signal.

[0076] The 3-input XOR network for the check node of this embodiment can be implemented by cascading two 2-input XOR networks, the type of which is described in detail in Section 3.3 of SM Bohte's doctoral thesis "Spiking Neural Networks" (Leiden University, 2003, ISBN 90-6734-167-3). The 2-input XOR network consists of a network of delayed spiking neurons, with 16 available synaptic delays connecting two neurons. The network includes three input neurons (2 encoding neurons and 1 timing reference neuron), 5 hidden (i.e., middle layer) neurons (one of which is an inhibitory neuron that only generates negative postsynaptic potentials), and 1 output neuron. The spike from the presynaptic neuron generates 16 delayed spike response functions. The sum of all spike response functions from the presynaptic neuron generates the membrane potential in the postsynaptic neuron. This is described in the above literature. Figure 2 .1. In the case where only positive weights are allowed, 16×3×5+16×5×1=320 individual weights are adjusted in the training operation to learn the XOR function using the error back-propagation algorithm. The algorithm is described in detail in Section 3.2 of the document. In the resulting network, the input information and the result of the XOR operation are encoded in the timing of the input and output neuron pulses. For the above embodiment, "0" is associated with an early firing time, while "1" is associated with a late firing time. Fig.15 The table indicates the input / output relationship implemented by the XOR network for input / output spike times in milliseconds. In the input spike pattern, a "0" is associated with a spike time of 0 ms, while a "1" is associated with a time of 6 ms. In the output spike pattern, a "0" is associated with a spike time of 10 ms, while a "1" is associated with a time of 16 ms.

[0077] As illustrated in the above embodiments, the use of spike timing coding provides a powerful coding technique for probability propagation at the expense of some additional implementation complexity. It is always necessary to accurately characterize the spike occurrence times. For example, the delay δt through the variable nodes and the check nodes is accurately characterized so that at each iteration, the symbol probability to The firing of the spike train of occurs simultaneously with the firing of the XOR output neuron. Proper synchronization can be achieved by including timing reference neurons at the variable and check nodes, whereby the network operation is synchronized with the spike train fired by the timing reference neuron.

[0078] Although the operations are described above for binary random variables, the SNN architecture can be easily extended to accommodate multi-valued random variables. Multiple spike signals are then required to encode the probability distribution of each variable. Specifically, for each possible value of each random variable, a spike signal encoding the probability of that value of the variable will be generated by the spike signal generator 11. Multiple connections are then provided between the variable nodes and the check nodes to propagate these signals in the SNN, and multiple neural networks are provided at the nodes to accommodate calculations for multiple probabilities. However, the basic operating principles are the same, and the above functions can be extended in a straightforward manner to accommodate multi-valued variables in the SNN architecture.

[0079] In an exemplary implementation of a multi-valued random variable, a random method can be applied to probability coding. n A variable with 2 possible values ​​can be represented by a binary vector with n elements. Each random variable can be mapped to 2 n A parallel signal line connects the signal generator 11 to the SNN 10. n Each of the lines conveys the probability of a random variable assuming the corresponding value, where the probability P is encoded as the number of 1s (i.e., spikes) transmitted over an interval of duration L*T. The 1s are distributed over this interval as follows. The probability is given by 2 in L time slots n A binary random sequence is encoded with a total of L bits equal to 1. In each time slot, only one bit is equal to 1, with probability 1 / L. (Alternatively, 1s can be sent as events generated from a Poisson process at an average rate R proportional to probability P). The check node function can be composed of j (j ≥ 2)2 n value input random variable and a 2 m The variable node function can be implemented by k (k ≥ 2) 2 m The implementation is implemented by a majority vote of the number of 1s received for each value of the value input variable, where random selection is used to break ties. This implementation can be used, for example, when randomly decoding a multi-valued LDPC (Low Density Parity Check) code with symbols from a Galois field GF(q), where q=2 n =2 m .

[0080] Of course, many variations and modifications may be made to the described exemplary embodiments. For example, other techniques for encoding probabilities in spike sequences may be envisioned, and in other embodiments, other combinations of spike rate and / or time-based encodings may be employed at the variables and check nodes. Furthermore, while decoding applications are described in detail above, embodiments of the present invention may be employed in any application in which probability propagation of random variables is performed for statistical inference. Examples generally include image recognition, machine learning, data set analysis, treatment analysis of genetic diseases, speech recognition, and belief propagation applications.

[0081] The description of various embodiments of the present invention has been given for the purpose of illustration, but it is not intended to be exhaustive or limited to the disclosed embodiments. Many modifications and variations will be apparent to those of ordinary skill in the art without departing from the scope and spirit of the described embodiments. The terms used herein are selected to best explain the principles of the embodiments, practical applications, or technical improvements over existing technologies on the market, or to enable other persons of ordinary skill in the art to understand the embodiments disclosed herein.

Claims

1. A method for implementing the propagation of a probability distribution of a random variable on a factor graph, the method comprising: providing a spiking neural network corresponding to the factor graph, the spiking neural network having variable nodes interconnected with factor nodes, wherein each of the factor nodes and the variable nodes includes a set of neurons configured to implement a computational function of the node; generating at least one spike signal for each random variable in a set of random variables, wherein a probability of a possible value of the variable is encoded via the presence of a spike in the spike signal; as well as providing spike signals of the set of random variables as inputs to the neural network at corresponding variable nodes; The probability distribution is thus propagated via the occurrence of spikes in the signal propagating through the neural network.

2. The method of claim 1, comprising generating each of the spike signals such that the probability is encoded via at least one of an occurrence rate and an occurrence time of spikes in the spike signal.

3. The method of claim 2, wherein the neurons of the nodes are configured such that the probability distribution is propagated via at least one of a rate of occurrence and a time of occurrence of spikes in a signal propagating through the neural network.

4. The method of claim 3, comprising generating each of the spike signals such that the probability is encoded via the rate of occurrence of spikes in the spike signal, wherein the neurons of the nodes are configured such that the probability distribution is propagated via the rate of occurrence of spikes in the signal propagating through the neural network.

5. The method of claim 1, wherein the random variables are binary variables, the method comprising generating, for each random variable in the set, a single spike signal encoding the probability of a predetermined one of the binary values ​​of the variable.

6. The method of claim 1, wherein the random variables are multi-valued variables, the method comprising, for each possible value of each random variable in the set, generating a spike signal encoding the probability of the value of the variable.

7. A method for detecting an error correction codeword in a signal sampled at a channel output by propagating a probability distribution of codeword symbols corresponding to corresponding signal samples over a factor graph, the method comprising: providing a spiking neural network having variable nodes interconnected with factor nodes corresponding to a bipartite factor graph defined by a decoding algorithm for the error correction codeword, wherein each of the factor nodes and the variable nodes includes a set of neurons configured to implement a computational function of the node; generating at least one spike signal for each signal sample corresponding to a symbol of a codeword, wherein a probability of a possible symbol value of the sample is encoded via the presence of a spike in the spike signal; as well as providing a spike signal corresponding to a symbol of a codeword as an input to the neural network at a corresponding variable node; The probability distribution is thereby propagated via the presence of spikes in the signal propagating through the neural network, and after propagation the variable nodes output estimated symbol values ​​for the codewords.

8. The method of claim 7, comprising generating each of the spike signals such that the probability is encoded via at least one of an occurrence rate and an occurrence time of spikes in the spike signal.

9. The method according to claim 8, wherein: The neurons of the nodes are configured such that the probability distribution is propagated via at least one of a rate of occurrence and a time of occurrence of spikes in a signal propagating through the neural network.

10. The method of claim 9, comprising generating each of the spike signals such that the probability is encoded via the rate of occurrence of spikes in the spike signal, wherein the neurons of the nodes are configured such that the probability distribution is propagated via the rate of occurrence of spikes in the signal propagating through the neural network.

11. The method of claim 7, wherein the codeword symbol is a binary symbol, the method comprising generating a single spike signal for each signal sample, the single spike signal encoding the probability of a predetermined binary symbol value among the binary symbol values.

12. The method of claim 7, wherein the codeword symbol is a multi-valued symbol, the method comprising generating a spike signal for each possible symbol value of each signal sample, the spike signal encoding the probability of the symbol value of the sample.

13. A device for implementing the propagation of a probability distribution of a random variable on a factor graph, the device comprising: a spiking neural network having variable nodes interconnected with factor nodes, corresponding to the factor graph, wherein each of the factor nodes and the variable nodes includes a set of neurons configured to implement a computational function of the node; as well as a spike signal generator adapted to generate at least one spike signal for each random variable of a set of random variables, wherein the probability of a possible value of the variable is encoded via the presence of a spike in the spike signal, and adapted to provide the spike signals of the set of random variables as input to the neural network at the corresponding variable nodes; Wherein the probability distribution is propagated via the presence of spikes in a signal propagating through the neural network.

14. The apparatus of claim 13, wherein the spike signal generator is adapted to generate each of the spike signals such that the probability is encoded via at least one of an occurrence rate and an occurrence time of spikes in the spike signal.

15. The apparatus of claim 14, wherein the neurons of the nodes are configured such that the probability distribution is propagated via at least one of a rate of occurrence and a time of occurrence of spikes in a signal propagating through the neural network.

16. An apparatus as claimed in claim 15, wherein the spike signal generator is adapted to generate each of the spike signals so that the probability is encoded via the rate of occurrence of spikes in the spike signal, and wherein the neurons of the node are configured so that the probability distribution is propagated via the rate of occurrence of spikes in the signal propagated through the neural network.

17. The apparatus of claim 13, wherein the random variables are binary variables, and wherein the spike generator is adapted to generate, for each random variable in the set, a single spike encoding the probability of a predetermined one of the binary values ​​of the variable.

18. The apparatus of claim 13, wherein the random variables are multi-valued variables, and wherein the spike signal generator is adapted to generate, for each possible value of each random variable in the set, a spike signal encoding a probability of the value of the variable.

19. An apparatus for detecting an error correction codeword in a signal sampled at a channel output by propagating a probability distribution of codeword symbols corresponding to corresponding signal samples over a factor graph, the apparatus comprising: a spiking neural network having variable nodes interconnected with factor nodes corresponding to a bipartite factor graph defined by a decoding algorithm for said error correction codeword, wherein each of said factor nodes and said variable nodes comprises a set of neurons configured to implement a computational function of the node; as well as a spike signal generator adapted to generate at least one spike signal for each signal sample corresponding to a symbol of a codeword, wherein a probability of a possible symbol value of the sample is encoded via the presence of a spike in the spike signal; wherein the probability distribution is propagated via the presence of spikes in a signal propagating through the neural network, and after propagation the variable nodes are adapted to output estimated symbol values ​​of codewords.

20. The apparatus of claim 19, wherein each neuron of the variable node is adapted to implement a majority rule function.

21. The apparatus of claim 19, wherein each factor node comprises a neuron configured to implement an XOR function.

22. The apparatus of claim 19, wherein the spike signal generator is adapted to generate each of the spike signals such that the probability is encoded via at least one of an occurrence rate and an occurrence time of spikes in the spike signal.

23. The apparatus of claim 22, wherein the neurons of the nodes are configured such that the probability distribution is propagated via at least one of a rate of occurrence and a time of occurrence of spikes in a signal propagating through the neural network.

24. The apparatus of claim 23, wherein: The spike signal generator is adapted to generate each of the spike signals such that the probability is encoded via a rate of occurrence of spikes in the spike signal; and The neurons of the nodes are configured such that the probability distribution is propagated via the rate of occurrence of spikes in the signal propagating through the neural network.

25. A computer program product comprising a computer-readable storage medium having program instructions embodied therein, the program instructions being executable by a processing device to cause the processing device to perform propagation of a probability distribution of a random variable on a factor graph by: implementing a spiking neural network having variable nodes interconnected with factor nodes, corresponding to the factor graph, wherein each of the factor nodes and the variable nodes includes a set of neurons configured to implement a computational function of the node; generating at least one spike signal for each random variable in a set of random variables, wherein a probability of a possible value of the variable is encoded via the presence of a spike in the spike signal; as well as providing spike signals of the set of random variables as inputs to the neural network at corresponding variable nodes; The probability distribution is thus propagated via the occurrence of spikes in the signal propagating through the neural network.