Associative memory device

The Potts Hamiltonian-based neural network configuration enhances storage capacity in associative memory devices by eliminating spurious attractors, significantly improving correct associations and addressing the limitations of Hopfield networks.

WO2024218836A1PCT designated stage expired Publication Date: 2024-10-24NIPPON TELEGRAPH & TELEPHONE CORP
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
PCT/JP2023/015379
Authority / Receiving Office
WO · WO
Patent Type
Applications
Current Assignee / Owner
Filing Date
2023-04-17
Publication Date
2024-10-24

AI Technical Summary

Technical Problem

Conventional associative memory devices based on Hopfield neural networks suffer from low storage capacity due to the presence of spurious attractors, leading to incorrect associations and limited memory capacity, which is not effectively improved by existing techniques.

Method used

The implementation of a neural network configuration based on the Potts Hamiltonian, which minimizes the Potts Hamiltonian to enhance storage capacity, avoiding spurious attractors and improving the correct answer rate significantly.

Benefits of technology

This approach significantly expands storage capacity by eliminating spurious attractors, resulting in a substantial increase in correct associations, with the capacity improved from approximately 0.12N to 2N, representing a 100 million-fold improvement for 100 bits of stored information.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure JP2023015379_24102024_PF_FP_ABST
    Figure JP2023015379_24102024_PF_FP_ABST
Patent Text Reader

Abstract

This novel associative memory device models, by a mathematical expression, a neural network that is described with Potts-type interactions, and operates on the basis of a novel model of neural network. An associative memory device 100 comprises: an N-bit multilayer neuron 101 (xi, where i=1, ..., N), an N×M-bit memory holding unit 102, and an interaction computation unit 103. The N-bit multilayer neuron 101 means the time evolution of an N-bit neuron 111. It is also possible to reduce the calculation load in the whole process of associative memory by combining arithmetic processing of associative memory based on a Hopfield-type neural network of the prior art with a computation for minimizing a Potts Hamiltonian.
Need to check novelty before this filing date? Find Prior Art

Description

Associative Memory Device

[0001] The present invention relates to content addressable memory devices, and more particularly to content addressable memory devices based on neural networks.

[0002] Humans can recall the face of an acquaintance based on their name, and can also visualize the overall features of an acquaintance's face when they are wearing a mask. When humans see an object, they can recall the entire object even if part of it is hidden, or recall other objects related to the object. This is one of the intellectual processes in the human brain called association. This associative processing can be thought of as an associative memory system that recalls the most relevant data from stored data in response to input data. Neural networks are networks that build by connecting basic building blocks called neurons using mathematical models, and can be used to model associative memory. As an example suitable for application to associative memory, it is known that simple modeling can be achieved using a Hopfield neural network, etc.

[0003] FIG. 9 is a diagram illustrating a Hopfield neural network. (a) of FIG. 9 conceptually illustrates the configuration of a Hopfield neural network. In a neural network 50, a neuron 51 is connected to all other neurons, making it a fully interconnected network. This network maps the spin of particles in physics to the state of neurons and the interactions between spins to the connections of neurons, and uses a definitional equation in physics to simulate a human neural network and realize associative memory processing. Associative memory using a Hopfield neural network is known to be described as a minimization problem of the Ijn Hamiltonian, as will be described later (Non-Patent Document 1).

[0004] Patent No. 625507 specification

[0005] JJ Hopfield, Proceedings of National Academy of Sciences of the United States of America Vol79, No.8, pp 2554-2558, (1982)HK Sulehria and Y. Zhang, Information Technology Journal Vol7 No.4 pp 684-688 (2008)Krotov, D. & Hopfield, J. Dense associative memory for pattern recognition. 325 Neural Information Processing Systems 29, 1172-1180 (2016) Ramsauer, H. et al. Hopfield networks is all you need. Arxiv:2008.02217D. Ventura and T. Martinez, Proceeding of the International Joint Conference on Neural Networks, 4-9May, IEEE, Alaska, USA, pp 509-513T. Inagaki, Y. Haribara, etal, "A coherent ising machine for 2000-node optimization problems," Science 354, 603-606 (2016)

[0006] However, conventional associative memories using Hopfield neural networks have the problem of recalling false patterns (spurious memories), resulting in a limited storage capacity. As will be described later, in a Hopfield neural network, the connections between neurons are determined so that the energy function for a given solution becomes a local minimum. In reality, as shown in Figure 9(b), the value of the energy function for the spin state contains many extreme values ​​corresponding to false solutions, i.e., spurious attractors 53a and 53b, around the local minimum 52.

[0007] As the number of spurious attractors increases, the probability of making incorrect associations increases, resulting in a decrease in memory capacity. In conventional associative memories, the memory capacity is limited to a very small value of about 0.12N, where N is the number of neurons (Non-Patent Document 1). Various methods have been proposed to improve the capacity, but even with these improvements, it has only increased to about 5N at most (Non-Patent Document 2). In the latest research, the Hopfield network has been improved to increase the capacity by 2 N / 2 A method has been proposed to expand the capacity to 2 by using expensive quantum mechanics and quantum computation (Non-Patent Document 3, Non-Patent Document 4). N Although a method for increasing the sensitivity to a certain degree has been proposed, it is difficult to actually realize this with current technology (Non-Patent Document 5).

[0008] The present invention has been made in view of the above problems, and its object is to provide a configuration for a content addressable memory device that greatly expands the storage capacity.

[0009] One embodiment of the present invention is to use the Potts Hamiltonian H potts and a memory holding unit that stores in advance information ξ used for association, and potts The associative memory device is configured to output, as an associative result, stored information that is closest to input information x, based on the result of a feedback calculation that minimizes

[0010] Another embodiment of the present invention is a method for learning a scalar by using an input / output unit having access to information ξ configured as a training input and a Potts Hamiltonian H potts and a calculation unit that performs a feedback calculation to minimize the value of x, and is configured to output, as an associative result, information from the information ξ that is closest to the information x input to the input / output unit based on the result of the feedback calculation.

[0011] The present invention provides a content addressable memory architecture that significantly increases storage capacity.

[0012] FIG. 1 is a conceptual diagram of a neural network corresponding to the associative memory device of the present disclosure. FIG. 2 is a diagram showing more specific functions and configuration of the associative memory device of the present disclosure. FIG. 3 is a diagram showing an algorithm for performing association in the associative memory device of the present disclosure. FIG. 4 is a graph showing a comparison of a numerical calculation example of the accuracy rate of associative memory with the prior art. FIG. 4 is a diagram showing the configuration of an associative memory device of embodiment 2. FIG. 5 is a diagram showing an algorithm for performing association in the associative memory device of embodiment 2. FIG. 6 is a diagram of an example configuration of an associative memory device including a physically coherent Ising machine. FIG. 7 is a diagram showing the configuration of an associative memory device of embodiment 3. FIG. 8 is a diagram for explaining a Hopfield-type neural network.

[0013] The associative memory device of the present disclosure is based on a new neural network configuration that minimizes the Potts Hamiltonian, and can be easily realized by a general-purpose computer or the like. N / 2 With significant improvements, N At first glance, this may seem like a minor change, but even if the number of bits N of stored information is 100, this represents an improvement of about 100 million times in capacity, and if the number of bits N is even larger, the improvement will be astronomical.

[0014] In the following, we first discuss in more detail the problems of the prior art associative memory device using a Hopfield neural network that minimizes the Ijin Hamiltonian, and then explain the configuration of the associative memory device of the present disclosure and the underlying concept of the neural network.

[0015] The Hopfield-type associative memory of the prior art is described as a minimization problem of the Ising Hamiltonian H, which will be explained below. The Ising model is originally a model of a lattice model that statistically analyzes the interactions between spins arranged at each site of a lattice point of a magnetic material. This Ising model has been applied to modeling neural networks, and is used not only for associative memories but also for solving combinatorial optimization problems, for example.

[0016] The Ising Hamiltonian H in equation (1) represents the energy of the Ising model system. The coupling constant J ijis given by the following equation, and σ i is the ith (i=1...N) Ising spin. Ising spin is a binary spin that takes one of the values ​​±1.

[0017] The ith (i=1 . . . N) bit information ξ of the stored information shown in definition (3) included in equation (2) is expressed as ±1.

[0018] In an associative memory device, "associating" means outputting a recalled result in response to an input corresponding to input data. As shown in Figure 9(a), a Hopfield neural network 50 based on the Ising model is represented as neurons 51 interconnected by lines corresponding to coupling coefficient constants. A state corresponding to the input data is given to the neural network 50 as its initial state, and the final equilibrium state in which the Ising Hamiltonian H is minimized corresponds to the recalled result.

[0019] The minimum energy state of the Ising Hamiltonian H in equation (1) may take on a state different from the stored information ξ as the number M of stored information increases. This is the spurious attractor shown in Figure 9(b). In an associative memory device, as convergence to the spurious attractor increases, the probability of making incorrect associations increases, resulting in a reduction in memory capacity. As mentioned above, the memory capacity (the number M of storable information) has been limited to a very small value.

[0020] The associative memory device of the present disclosure is based on the configuration of a neural network described by Potts-type interactions, rather than the Hopfield-type neural network of the prior art. Hereinafter, an embodiment of the associative memory device of the present disclosure will be described in detail with reference to the drawings.

[0021] [Embodiment 1] Figure 1 is a conceptual diagram illustrating an abstract representation of the content addressable memory of the present disclosure using a corresponding neural network. As described below, the content addressable memory 100 of the present disclosure is physically implemented by a general computer equipped with a memory, a central processing unit (CPU), and the like. A neural network described by Potts-type interactions is modeled using mathematical equations, and the content addressable memory operates based on this novel model of the neural network. The content addressable memory 100 of Figure 1 is represented abstractly for comparison with the Hopfield-type neural network of Figure 9(a), and the more specific operation of the neural network is represented by a series of mathematical equations, which will be described below.

[0022] Referring to FIG. 1, the associative memory device 100 includes an N-bit multi-layer neuron 101 (x i : i = 1, ..., N), an N x M-bit memory holding unit 102, and an interaction calculation unit 103. The N-bit multilayer neuron 101 represents the time evolution of an N-bit neuron 111, as will be described later. The time-evolving neuron configuration in FIG. 1 is in contrast to the interconnected configuration of the Hopfield neural network shown in FIG. 9(a). Each element of the memory holding unit 102 corresponds to the ith (i = 1 ... N) bit of information ξ of the mth (m = 1 ... M) stored information defined in equation (3), and represents the memory holding bit 112.

[0023] The interaction calculation unit 103 represents the interaction between the memory storage bits 112 and the neurons 111, and is described by complex mathematical expressions, which will be described later. The associative memory device 100 in Figure 1 visualizes a neural network described by Potts-type interactions and the functions of the mathematical expressions that define it. Next, we will formulate the neural network described by Potts-type interactions, on which the associative memory device 100 of the present disclosure is based.

[0024] In the following, we will consider the Potts Hamiltonian H that is minimized in the neural network on which the associative memory device 100 shown in FIG. Potts , cost function F and related definitions. The Potts Hamiltonian H Pottsis expressed by the following equation:

[0025] The value in Σ in equation (4) is the Kronecker delta function, which is 1 only when the two vectors x and y in the parentheses are equal, as shown in definition (5), and is 0 in other cases. m is an N-dimensional vector representation of the stored information ξ. Potts can be written as follows using each component of the vector:

[0026] Here, consider the cost function F as follows:

[0027] In equation (8), β is a hyperparameter having a large value, and when β→∞, the cost function F has the following proportional relationship:

[0028] As is clear from equation (9), minimizing the cost function F requires minimizing the Potts Hamiltonian H defined in equation (4). Potts In other words, minimizing the cost function F is equivalent to minimizing the Potts Hamiltonian H Potts and the Potts Hamiltonian H Potts Minimizing ∑ ∑ ∑ i ...

[0029] Here, for the cost function F shown in equation (8), the spin σ (=±1) is expressed as a variable x that takes a real number between -1 and 1 as follows: i This replacement is a measure for the convenience of numerical calculation, and the continuous variable x i By considering this, the number x gradually increases over time. i This is to change the way things are perceived and allow for better "association."

[0030] For equation (10), the cost function F is further rewritten as follows: This rewriting is a device for convergence in the minimization process for the cost function F, which will be described later. iThis is necessary to replace it with

[0031] In the rewritten formula (11), the replaced x i Again, σ i Then, x i x i →σ i σ i = 1, it can be seen that equation (11) coincides with the original equation (8) that defines the cost function F, excluding the constant term in parentheses.

[0032] As is clear from the above examination of equations (8) to (11), by taking β to the limit of infinity in the cost function F of equation (10), the Potts Hamiltonian H Potts In practice, for the sake of convenience in numerical calculation, β is limited to a certain large finite value (β>1), and the Potts Hamiltonian H Potts β can be set to 5, for example. This minimization is done by k This can be achieved by updating the

[0033] x in formula (12) k The update equation above describes the time evolution of a neuron. In equation (12), α is a hyperparameter, and is set to an appropriate small value (0 < α < 1). The differential term in the second term on the right-hand side of equation (12) is expressed by the following equation. α can be set to 0.5, for example.

[0034] Using the above equations (8) to (13), the Potts Hamiltonian H Potts The process of minimizing the above corresponds to the interaction calculation unit 103 in the conceptual diagram of the associative memory device 100 shown in FIG.

[0035] In formula (13), x kis the input information 104 to the multi-layer neuron 101 in the conceptual diagram of the associative memory device 100 in FIG. 1, and is a real number ranging from -1 to 1. In reality, it is N-bit input data, and association is performed on the input information 104. Since FIG. 1 is an abstract model, four circles representing neurons are shown, representing an example where N=4. In equation (13), ξ with subscripts m and k is information stored in the memory holding unit 102, and is the k-th (k=1...N) bit information of the m-th (m=1...M) stored information, as in definition (6) above.

[0036] The interaction calculation unit 103 performs minimization processing given by equations (10) and (11) using the memory holding unit 102 and the input information 104. Specifically, by performing updates in equations (12) and (13), x (with →) is updated a certain number of times, and then x new (with →) is output as the final output 105. Through this series of processes, the stored ξ that is closest to the initial input x (with →) is obtained. μ Next, a more specific possible configuration and algorithm of the content addressable memory device 100 of the present disclosure will be described.

[0037] 2 is a diagram showing more specific functions and configuration of the content addressable memory device of the present disclosure. (a) of FIG. 2 shows the content addressable memory device 100 represented by functional blocks, which corresponds to the abstract configuration diagram represented as a neural network in FIG. 1. The reference numerals of the blocks in (a) of FIG. 2 correspond to those in FIG. 1. In (a) of FIG. 2, neuron 101 represents the multi-layer neuron described in conjunction with FIG. 1, and the Potts Hamiltonian H defined by equation (4) Potts The novel neural network expressed based on the above is shown as a single functional block.

[0038] Therefore, the associative memory device of the present disclosure can be implemented using the Potts Hamiltonian H potts and a memory holding unit 102 for storing in advance information ξ used for association. pottsThe system can be implemented as configured to output, as an association result, stored information 105 that is closest to the input information x 102 based on the result of a feedback calculation that minimizes

[0039] FIG. 2B shows a specific configuration for implementing the content addressable memory device 100, which is implemented by arithmetic processing by a computer 100-1. The computer 100-1 includes a CPU 120 and memory 121, and also has an interface (I / O) unit 123 for inputting and outputting information to and from the outside. The memory 122 can be a variety of storage devices capable of temporary or semi-permanent storage, and may include multiple memories of different types. When the CPU 120 operates, an arithmetic program 122 that implements associative storage using an algorithm described below is loaded into the memory 122. The program 122 may be stored in memory within the computer, or may be provided from outside the computer 100-1. It may also be provided to the computer 100-1 via a network. Furthermore, the information stored in the memory retention unit 102 in FIGS. 1 and 2A may be held in a storage means external to the computer 121, separate from the memory of the computer 121.

[0040] The neuron 101 and the interaction calculation unit 103 in the functional block of Fig. 2(a) correspond to the calculation processing based on the program 122 in the CPU 120 of Fig. 2(b), and the memory holding unit 102 corresponds to the physical memory 121 of Fig. 2(b). As long as the processing of the algorithm described below can be performed, the configuration is not limited to the computer 100-1 described above, and some of the calculation processing can be performed by dedicated hardware, or can be performed by distributed processing using multiple computers.

[0041] 3 is a diagram illustrating an algorithm for implementing association in the content addressable memory device of the present disclosure. Flowchart 300 illustrates the Potts Hamiltonian H PottsThis represents the processing shown in equations (4) to (13) of a neural network based on the above formula. Below, the algorithm will be explained with reference to the associative memory device 100 in FIG. 2(a) and the above formulas. Flow 300 begins with step S301 of initial input to the associative memory device 100 and ends with step S305 of outputting the associative result x. By going through all the steps of flow 300, the associative result 105 is output for the input data 104, and associative processing is performed in the associative memory device 100.

[0042] In S302, the device 100 receives data x i is input, which corresponds to the time-evolving neuron 101 in Fig. 1 being set to its initial state. In other words, the four neurons lined up vertically on the left side of Fig. 1 can be seen as the initial state.

[0043] Steps S303 and S304 are repeated in a loop until the convergence condition is met. For the sake of simplicity, it is assumed that the input data has not converged in the initial state. Using equations (12) and (13), x k is calculated and updated. k To (x new ) Therefore, convergence is determined again in S303.

[0044] In S303, dF / dx in equation (13) k When the value of x becomes 0, it is determined that the convergence has occurred. If the determination result is No (false), x is again set in S304. k is updated. Note that there are various ways to determine convergence.

[0045] If the result of the determination is Yes (true), in S305, the latest X k is output as the association result.

[0046] In the above-described calculation algorithm of flow 300, steps S303 and S304 are repeated to obtain x according to equation (12). k The updating of the Potts Hamiltonian H corresponds to the time evolution of the neuron 111 in the conceptual diagram of the associative memory 100 in FIG. 1. The repeated operations of S303 and S304 arepotts A feedback calculation is performed to minimize

[0047] In the above explanation, it has been described that the initial input data 104 has not converged at the step S302. However, if the input data is very similar to the association result, it may converge immediately without updating in step S304.

[0048] As described above, the content addressable memory device 100 of the present disclosure uses the Potts Hamiltonian H Potts The cost function expressed by the interaction operation between the neural network modeled based on the above and the memory bits in the memory holding unit is minimized. The minimization of this cost function is performed by repeated operations described as the time evolution of neurons, and association is performed. This is a relatively complex operation compared to the operation of minimizing the Ignis Hamiltonian H, which is expressed only by the coupling constants in the Hopfield neural network of the prior art, which is modeled with fully interconnected neurons.

[0049] The algorithm shown in Fig. 3 can be implemented by a normal computer 100-1 as shown in Fig. 2(b) if a CPU with a certain level of computing power is used. A configuration for reducing the computing power of the CPU will be described later as embodiment 2.

[0050] The Potts Hamiltonian H Potts Numerical calculations have shown that a neural network-based associative memory device 100 modeled on the basis of (1) does not produce spurious attractors.

[0051] 4 is a graph showing an example of numerical calculation of the accuracy rate of associative memory, comparing the prior art with the associative memory device of the present disclosure. The horizontal axis of the graph shows the value of M / N, where M is the number of stored information and N is the number of bits of information, and the horizontal axis shows the accuracy rate. The accuracy rate was determined as being correct when one of the stored items was associated with a randomly given input. The parameters used in the numerical calculation were α = 0.5 and β = 10. It was confirmed that all convergence was sufficient within 100 updates.

[0052] The ▽ (inverted triangle) plot shows the case of a conventional associative memory device using a Hopfield-type neural network that minimizes the Idgin Hamiltonian. It can be seen that the accuracy rate drops when M / N is around 0.12. This drop in accuracy rate is due to spurious attractors, as already mentioned in FIG. 9(b). On the other hand, the ● (circle) plot shows the accuracy rate for the associative memory device 100 of the present disclosure, which is based on a neural network configuration described by Potts-type interactions. Regardless of the value of M / N, there is no drop in accuracy rate at all.

[0053] As is clear from the comparison in Figure 4, the accuracy rate does not decrease at all in the associative memory, suggesting that spurious attractors do not occur when using a neural network configuration based on the Potts Hamiltonian shown in Figure 1. The energy function for the spin state of the Potts Hamiltonian has a simple structure in which all points where the Kronecker δ is 1 have a minimum value of energy, and all other points are 0. On the other hand, the energy function for the spin state of the Ising Hamiltonian has local minima at various locations and various values, as shown in Figure 9(b), and spurious attractors appear.

[0054] Setting a cost function that minimizes the Potts Hamiltonian, as shown in equation (8), has not been attempted up until now. Furthermore, as discussed in equations (8) to (11), by limiting β to infinity in the cost function F in equation (10), we devised an operation to reproduce the Potts Hamiltonian, and were able to describe the time evolution of neurons with practical calculations.

[0055] [Embodiment 2] In the associative memory device of embodiment 1, the computation of interaction with stored information using equations (11) to (13) to minimize the Potts Hamiltonian requires greater computational power than the computation of the coupling constant, such as equation (2) in the prior art. If the CPU's computational power is insufficient, the associative processing may take longer than in the prior art using a Hopfield neural network. This embodiment discloses a configuration that combines the computational processing of an associative memory based on a Hopfield neural network in the prior art with the computation to minimize the Potts Hamiltonian, thereby reducing the computational load in the overall process of the associative memory.

[0056] 5 is a diagram showing the functional blocks and configuration of the associative memory device of embodiment 2. The associative memory device 200 includes a neural network 210 and a weight update unit 220. The neural network 210 may be, for example, a Hopfield-type neural network that performs association by minimizing the Izin Hamiltonian H. In other words, it corresponds to a content addressable memory device of the prior art. As will be described later, the neural network 210 forms a first calculation loop that minimizes the Izin Hamiltonian H.

[0057] The weight update unit 210 updates the Potts Hamiltonian H Potts The weight update unit 210 is implemented in the same manner as the calculation in the algorithm of the content addressable memory device of the first embodiment, which minimizes the cost function by using the Potts Hamiltonian H Potts A second computational loop is constructed to minimize

[0058] Although the details of the algorithm will be described later, the weighting unit 202 and the calculation unit 203 of the neural network 210, and the calculation unit 222 of the weight updating unit 210 are all calculations that can be performed by a single CPU. Therefore, the associative memory device 200 of the embodiment of FIG. 5 can also be implemented by the computer 100-1 shown in FIG. 2(b). Also, a neural network in which the calculations of the weighting unit 202 and the calculation unit 203 of the neural network 210 are implemented using elements that can perform specific calculations at high speed, such as an FPGA, can also be used. In this case, the calculation unit 222 of the weight updating unit 210 can also be implemented by a CPU. Also, the neural network 210 may be implemented by a calculation device that uses optical pulses, as will be described later.

[0059] The input 104, output 105, and learning input 106 of the associative memory device 200 of embodiment 2 are the same as those of embodiment 1. Input information 104 to the input / output unit 211 is a real number ranging from -1 to 1, and is actually N-bit input data, and association is performed on the input information 104. By going through all the steps of flow 400 in Fig. 6, which will be described later, an associative result 105 is output for the input data 104, and associative processing is performed in the associative memory device 200.

[0060] Fig. 6 is a diagram showing an algorithm for performing association in the content addressable memory device of embodiment 2. A flowchart 400 shows the processing performed by the content addressable memory device 200 of Fig. 5. The calculation algorithm of the content addressable memory device 200 will be described below with reference to the flowchart 400.

[0061] First, in S402, the initial input information x to the input / output unit 211 i For the initial input, for the sake of simplicity, the convergence determination step of S403 is bypassed, and the determination of S403 will be described later.

[0062] Next, in S404, the weighting unit 212 calculates the input x i Weight J ij and B iWeighting is performed by multiplying by y i Ask for.

[0063] In equation (14), i and j are i=1, ..., N, j=1, ..., N, and the input x i In addition, x0 in equation (14) is a special input that is always 1, and its weight B i is also a kind of special weight term called the magnetic field term. i is the coupling coefficient (interaction) J ij It is the sum of the Σ term and the magnetic field term, and y in equation (14) i is of the form Ising Hamiltonian H Ising That is, y weighted by equation (14) i means that it is represented by a Hopfield-type neural network according to equations (1) and (2).

[0064] Furthermore, in S405, the weighted input y i is further replaced by the activation function in the calculation unit 213 as follows:

[0065] Equation (15) is the current x i New x i This means that S405 is performing "association" in the Hop-Filled neural network 210. Equation (15) may be replaced with a different activation function, and a different neural network other than the Hop-Filled type may be used. The updated x i Then, step S403 is carried out again.

[0066] In S403, the updated x i The convergence test is performed on the updated x new But before the update x old When it no longer changes, that is, when |x new -x old If the convergence determination result is No (false), y iCalculation of x in S404 i is repeatedly updated (first calculation loop). If the convergence determination result is Yes (true), the process proceeds to S406, where processing is performed by the calculation unit 222 of the weight update unit 220. Therefore, the above-mentioned steps S402 to S405 are processing in the neural network 210 as shown in FIG. 6, and can be called the first calculation loop processing.

[0067] In S406, the last updated x for which the convergence test was performed in S403 is i is output to the calculation unit 222 of the weight update unit 220 as a temporary associative output (provisional x output).

[0068] Next, in S407, the updated x i The calculation unit 222 calculates the weight J based on the information ξ stored in the memory holding unit 221. ij and B i The stored information ξ is expressed as M N-dimensional vectors, as in definition (6).

[0069] where i and j are i=1, ...,N, j=1, ...,N, and the input x i Similarly, l is the index of the bit of the input x i is the index of the bit of , but does not include i and j. Ising Hamiltonian H Ising can be rewritten as follows:

[0070] In equation (18), σ i x i Substituting this, we obtain the following equation:

[0071] From equation (19), the Ising Hamiltonian H Isingis equal to the Potts Hamiltonian expressed by equation (7) except for a constant multiple. Therefore, the weighted Ising Hamiltonian H expressed by equation (14) with weights updated by equations (16) and (17) is Ising is equal to the Potts Hamiltonian.

[0072] Subsequently, in S408, the calculation unit 222 calculates the weight J updated in S407. ij and B i But before the update ij and B i The convergence of the weights is determined by checking whether they are no longer different from the previous equation.

[0073] If the result of the convergence determination is No (false), the process returns to S406 of the neural network 210, and y is set again in S404. i Calculation of x in S404 i If the convergence determination result is Yes (true), the process proceeds to S406 of the weight update unit 220, and the last x used in the process of the weight update unit 220 is updated. i is output as the final output in S409 as the final result 105. Therefore, the above steps S407 to S408 are the processing in the weight update unit 220 as shown in FIG. 6, and can be called the second calculation loop processing.

[0074] The weight J in S407 described above ij and B i The update of x in S403 and the convergence determination in S408 are i 5 again, the associative memory device 200 alternates between processing in the neural network 210 and processing in the weight update unit 220, associating the closest stored data ξ with the initial input information 104 and outputting it as the result 105.

[0075] As shown in equation (19), the weight J in the weight update unit 220 ijand B i The update of the weight J is a calculation process based on the Potts Hamiltonian. ij and B i The update of x is calculated by the neural network 210. i and the information ξ stored in the memory holding unit 221. In this respect, it should be noted that the associative memory device 200 of the second embodiment operates in the same way as the interaction calculation 103 in the conceptual diagram shown in FIG. 1. The difference from the associative memory device 100 of the first embodiment shown in FIG. 1 is that the N-bit multi-layer neuron 101 is replaced by a Hopfield neural network as shown in FIG. 5. The neural network 210 in the associative memory device 200 is used because part of the calculation processing of the association process is performed using the Ising Hamiltonian H Ising This is to replace it with the processing of

[0076] The present invention also has an aspect as a method implemented in an associative memory device, which sequentially performs the steps of the flowcharts 300 and 400 in FIGS. potts Consider an associative memory device that includes a calculation unit that performs a feedback calculation to minimize ξ and a memory holding unit that stores information ξ to be used for association in advance. A method for implementing the associative memory is as follows: i and receiving the Potts Hamiltonian H Potts , determining convergence whether the cost function has been minimized, and, once minimization has been achieved, outputting the association result.

[0077] Compared to the flow 300 in FIG. 3, which includes one loop, the flow 500 in FIG. 6 uses the Ising Hamiltonian H Ising Based on x i and the Potts Hamiltonian H Potts Weight J based on ij and B iIf the flow 500 in FIG. 6 is arranged in a straight line from the start (S401) to the end (S409) in time, the steps corresponding to the first calculation loop and the steps corresponding to the second calculation loop will appear alternately. The total number of steps is likely to be greater than that of the flow 300, but the number of steps corresponding to the Ising Hamiltonian H Ising The computational load of steps S403 to S405 of the process is light because it does not include an interaction calculation with the information ξ stored in memory holding unit 221. Therefore, the computational load required to obtain the associated output can be lighter than that of associative memory device 100 of embodiment 1. Even if associative memory device 200 is implemented on a computer with low computational power, association can be performed in a shorter time.

[0078] Therefore, the content addressable memory device of the present disclosure includes an input / output unit 221 that accepts input information x, and corresponds to a Hopfield neural network, and an Ising Hamiltonian H Ising (S405), and determines whether the first cost function is minimized based on the value of dF / dx (S403), and outputs a temporary association result (S406). The first calculation loop unit 210 is configured to sequentially update the input information x by a first cost function based on Potts A weight J representing a weighting for the input information x is calculated by a second cost function based on ij and B i (S407), and it is determined whether the second cost function is minimized (S408). If it is determined that the second cost function is not minimized, the updated weight J ij and B i and a second calculation loop unit configured to provide the updated weight J to the first calculation loop unit, ij and B iand when the second cost function is minimized in the second operation loop section, the input / output unit is configured to output the latest temporary association result as the association result 105.

[0079] As described above, the weight unit 202 and the calculation unit 203 of the neural network 210 of the associative memory 200 in Figure 5, and the calculation unit 222 of the weight update unit 210, can all be implemented by a single CPU. Since the memory holding unit 221 can be a general-purpose memory, the associative memory 200 can be implemented by a general-purpose computer. By executing a program for the calculation processing of the algorithm shown in Figure 6 on a computer, an associative memory can be realized. The neural network 210 is a Hopfield-type neural network of the prior art, and is equivalent to the minimization problem of an Ising model, so it can be implemented in a form other than a configuration consisting only of a computer.

[0080] For example, the neural network 210 can be implemented by a computing device known as a coherent Ising machine. The configuration of the coherent Ising machine is not limited in any way. As an example of a computing device for a coherent Ising machine, a device that injects a pump light pulse into a phase-sensitive amplifier in a ring resonator made of optical fiber and associates the phase of the pulse with the spin of the Ising model can be used (Non-Patent Document 6). The coherent Ising machine may include a dedicated FPGA, GPU, or a combination of these for calculating the coupling coefficients.

[0081] FIG. 7 illustrates an example of the configuration of an associative memory device including a physical coherent Ising machine. The associative memory device 500 is a computational device for an Ising model, and includes an optical element section 501 including a ring-shaped optical fiber and other components, and a computer section 502 that performs computational processing and controls the optical elements. The optical element section 501 includes an optical fiber 1 and a ring resonator configured with a phase-sensitive amplifier (PSA) 2. The optical element section 501 also includes an external pulse generating light source 5 that generates a pulse train, an optical pulse measuring unit 3 that may be a homodyne detector that detects the phase state of the pulse, and a computing unit 4 that calculates the interaction to be applied to the optical pulse. The calculation of updating the coupling coefficients in the Ising model is performed by a coupling coefficient setting unit 7 and a calculation result storage unit 6. The computing unit 4, coupling coefficient setting unit 7, and calculation result storage unit 6 can be implemented by a computer's CPU and memory.

[0082] Although a specific description of the operation of the associative memory device 500 will be omitted here, an Ising model calculation device can be realized by physical hardware including the optical circuit elements described above, and the neural network 210 of embodiment 2 can be replaced with an Ising model calculation device. Note that the CPU and memory implementing the coupling coefficient setting unit 7 and calculation result holding unit 6 can also perform the processing of the calculation unit 222 and memory holding unit 221 of the weight update unit 210 of the associative memory device 200 in Fig. 5. Therefore, the associative memory device 200 in Fig. 5 can be implemented with the same configuration as the physical coherent Ising machine in Fig. 7.

[0083] In this way, the neural network 210 of the second embodiment can be implemented using various physical configurations that are capable of performing calculations based on the Ising model of the Hopfield neural network of the prior art.

[0084] [Embodiment 3] The associative memory device 100 of embodiment 1 and the associative memory device 200 of embodiment 2 described above both include a memory storage unit 102, 221 in which stored information ξ is held. Specifically, the memory storage unit 102, 221 may be a storage device such as a computer memory or a hard disk drive. The stored information ξ is information that is input to the memory storage unit as a learning input and held therein, and is information ξ configured as a learning input. In both cases, it is sufficient that the calculation unit (CPU) can access the stored information ξ so that an interaction calculation between the input information x and the stored information ξ in the algorithms shown in Figures 3 and 5 is possible.

[0085] Figure 8 is a diagram showing the functional blocks and configuration of the content addressable memory device of embodiment 3. The content addressable memory device 600 is obtained by omitting the memory retention unit 102 from the content addressable memory device 100 of embodiment 1 shown in Figure 2(a). Also shown is an input / output unit 107 as an interface for exchanging information with the outside of the device.

[0086] The memory holding unit 102 having the stored information ξ is provided in a device 610 separate from the associative memory device 600. The associative memory device 600 is connected to the memory holding unit 102 of the separate device 610 via a communication path 601 by an input / output unit 106. Therefore, the associative memory device 600 is configured to be able to access the stored information ξ prepared in the memory holding unit 102 of the separate device 610.

[0087] The communication path 601 may be wired or wireless, and there are no limitations on the type of communication interface or protocol. Therefore, the other device 610 may be a separate computer, or may have any function, such as a server, storage device, or other electronic device, as long as it is separate from the computer that implements the associative storage device 600. It may also be a device located in another location via a network. For example, the associative storage device 600 may be implemented on a first server computer, and association may be performed in cooperation with a second server computer at a remote location that has the memory retention unit 102.

[0088] In the configuration of the third embodiment, the learning input 106-1 may be input to another device 610, or the learning input 106-2 may be input to the associative memory device 600 and stored in the memory holding unit 102 via a communication path 601. In all of the first to third embodiments, the input information 104 to the associative memory device and the associated result output 105 are input or output via a speaker / microphone, a keypad, a display / touchpad, etc. The input information 104 and the associated result output 105 may also be input or output from yet another input / output device via another communication path not shown.

[0089] In FIG. 8, the memory holding unit 102 in another device 610 is controlled by the content addressable memory 600 to store the Potts Hamiltonian H Potts The Potts Hamiltonian H potts In other words, the function of the interaction calculation unit 103 shown in FIG. 1 is implemented. Based on the result of the feedback calculation, the associative memory device 600 outputs, as the association result 105, the information closest to the information x input to the input / output unit 107 among the stored information ξ.

[0090] Although the associative memory device 600 does not hold stored information ξ, it should be noted that when the associative memory device 600 is implemented by a computer, a physical memory, for example, the memory 121 in FIG. 2B, is naturally provided to execute the arithmetic program. The associative memory device 200 of the second embodiment can also be configured in such a way that the memory holding unit 221 is located in a separate device, just like in FIG. 8. The Potts Hamiltonian H in FIGS. 3 and 5 potts There is no change in the feedback calculation algorithm that minimizes

[0091] As explained in detail above, by performing the calculation to minimize the Potts Hamiltonian of equation (4) instead of the Ising Hamiltonian based on the Hopfield neural network of the prior art, it is possible to significantly increase the storage capacity of the content addressable memory. The calculation to minimize the Potts Hamiltonian can be implemented by arithmetic processing on a general computer. By partially incorporating the configuration and processing corresponding to the Hopfield neural network of the prior art, it is also possible to create an associative memory with a reduced calculation load.

[0092] The present invention can be used in devices that implement associative memory using computers or other devices.

Claims

1. Potts Hamiltonian H potts a calculation unit that executes a feedback calculation to minimize the Potts Hamiltonian H potts The associative memory device is configured to output, as an associative result, stored information that is closest to input information x, based on the result of a feedback calculation that minimizes 2. The associative memory device according to claim 1, wherein the calculation unit corresponds to an N-bit multi-layer neuron, and is configured to calculate the value of a cost function F expressed by the Potts Hamiltonian that defines the interaction between the input information x and the information ξ stored in the memory storage unit, sequentially update the value of the cost function F, determine whether the cost function F has been minimized based on the value of dF / dx, and output the associative result when the minimization is achieved.

3. An input / output unit that accepts the input information x, and corresponds to a Hopfield type neural network and calculates an Ising Hamiltonian H Ising a first calculation loop unit configured to sequentially update the input information x by a first cost function based on the formula: Potts A weight J representing a weighting for the input information x is calculated based on the second cost function based on ij and B i and determining whether the second cost function is minimized. If it is determined that the second cost function is not minimized, the updated weights J ij and B i and a second calculation loop unit configured to provide the updated weight J to the first calculation loop unit and operating as the calculation unit, ij and B i 2. The associative memory device according to claim 1, further configured to execute a new loop operation for minimizing the first cost function using a new loop operation time constant (Tc) of 1:1, and wherein, when the second cost function is minimized in the second operation loop section, the input / output section is configured to output the latest temporary associative result as the associative result.

4. The Potts Hamiltonian H Potts where δ is the Kronecker delta function, 4. The content addressable memory device according to claim 1, wherein the content addressable memory device is represented by the formula:

5. The associative memory device according to claim 3, wherein the first calculation loop unit is implemented by a physical Ising machine, which is either a coherent Ising machine, an FPGA, a GPU or a combination of these, or an Ising model calculation device that operates using optical elements including a ring resonator through which an optical pulse train circulates.

6. An associative memory device according to any one of claims 1 to 3, wherein the calculation unit is constituted by a central control unit (CPU), the memory holding unit is constituted by a memory, and the minimization process is implemented in a computer by a software program.

7. An input / output unit that can access information ξ configured as a learning input, and the Potts Hamiltonian H potts and a calculation unit that executes a feedback calculation to minimize the information x input to the input / output unit, and is configured to output, as an associative result, information that is closest to the information x input to the input / output unit among the information ξ based on a result of the feedback calculation.

8. The associative memory device according to claim 7, wherein the calculation unit corresponds to an N-bit multi-layer neuron, and is configured to calculate a value of a cost function F expressed by a Potts Hamiltonian that defines the interaction between the input information x and the information ξ, sequentially update the value of the cost function F, determine whether the cost function F has been minimized based on the value of dF / dx, and output the associative result when the minimization is achieved.

9. It supports Hopfield neural networks and uses the Ising Hamiltonian H Ising a first calculation loop unit configured to sequentially update the input information x by a first cost function based on, determine whether the first cost function is minimized by a value of dF / dx, and output a temporary association result; and Potts The weight J for the input information x is calculated by the second cost function based on ij and B i and determining whether the second cost function is minimized. If it is determined that the second cost function is not minimized, the updated weights J ij and B i and a second calculation loop unit configured to provide the updated weight J to the first calculation loop unit and operating as the calculation unit, ij and B i 8. The associative memory device according to claim 7, further configured to execute a new loop operation for minimizing the first cost function using:

Citation Information

Patent Citations

  • Problem solving method

    JP1997146908A

  • Associative memory device and software thereof

    JP2006285489A