Manuscript Offprint
arXiv:2608.25481Synthesis of Hopfield Neural Network: Novel Results
Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.
ABSTRACT
Using the logical basis of synthesizing Hopfield Neural Network with desired corners of hypercube as stable states (proposed in [1]), it is proved that more corners of hypercube can be programmed as stable states (whether the number of neurons is even or odd). The research paper presents a new perspective to the so called “Programming Problem” of Hopfield Neural Network.
1. Introduction:
In an effort to realize some of the functions performed by biological neural networks, Artificial Neural Networks (ANNs) were proposed. The theory of ANNs led to the practically useful networks of neurons such as the Single Layer Perceptron (SLP), Multi-Layer Perceptron (MLP) etc. Hopfield, in an effort to model biological memories proposed the so called Hopfield Neural Network (HNN) which acts as an associative memory (HAM) [2]. Thus Hopfield Associative Memory (HAM) was subjected to extensive research efforts and several interesting results were discovered.
One of the most important problems related to HAM was the so called “Synthesis Problem”. This problem deals with synthesizing a HNN with certain states as the “desired memory states”. Hopfield proposed a solution this problem which remained as a promising solution for a long time. The author understood the logical basis of Hopfield’s synthesis procedure and provided novel solution to the problem. On careful examination of the method presented in [3], the author arrived at interesting new results reported in this research paper.
This research paper is organized as follows. In Section 2, related research literature is reviewed. In Section 3, new results related to synthesis of Hopfield Neural Network with stable states is proposed.
• Serial Mode: State of only one neuron is updated at any time i.e.
• Fully Parallel Mode:
, is the threshold vector.
- Other Parallel Modes: State updation takes place at more than one node, but strictly less than ‘N’ nodes.
In the state space of such a dynamical system, there are special states, called STABLE STATES. A stable state is one such that
The dynamics of such a nonlinear dynamical system is captured by the following convergence Theorem.
• Convergence Theorem:
(i) The Hopfield Neural Network, starting in any initial condition always reached a stable state in the serial mode of operation if all the diagonal elements of are all nonnegative.
(ii) Also, in the fully parallel mode of operation, Hopfield Neural Network reaches a stable state or a cycle of length almost 2.
Thus, the Hopfield Neural Network acts as an associative memory.
Hopfield’s original work, formulated the problem of synthesizing an associative memory with desired stable states. He also provided a solution, using outer product of desired stable states (that are corners of Unit Symmetric Hypercube) to arrive at the synaptic weight matrix of Hopfield Associative Memory i.e.
which constitutes the desired stable states.
Using Hopfield’s synthesis procedure, Bruck et.al reasoned that such Hopfield Neural Network will have exponentially many “Spurious Stable States”. Also, in [4], the author derived interesting results related to the stable states of a Hopfield Neural Network. The author’s approach to the Hopfield Neural Network synthesis problem was based on linear algebraic structure of stable states of HAM. We realized that this approach is very promising. The author presented a formulation of “Optimal Synthesis” of HAM in [4]. This research paper complements the results derived in [4].
3. Linear Spaces Spanned by Eigenvectors: Stable States: Domains of Attraction:
The notion of “programmability” of certain corners of hypercube as “desired” stable states started with the so called “outer product synthesis” procedure of Hopfield. Understanding the logical basis of the Hopfield’s procedure, a generalization was proposed in [1].
- It was proved in [1] that the corners of hypercube that are eigenvectors of the synaptic weight matrix corresponding to positive eigenvalues are stable states and the eigenvectors corresponding to negative eigenvalues are “anti-stable states” [5].
Even in the research papers [1], [4], it was not realized that it is possible to program MORE corners of hypercube as “desired stable states”. In this section, using linear algebraic arguments, we investigate such a possibility.
We realize that the synaptic weight matrix, W of HNN is symmetric. Hence, various linear algebraic results can be invoked to derive new results related to the performance of HAM.
-
From linear algebra of symmetric matrix, the null space of W and the linear space spanned by the eigenvectors associated with non-zero eigenvalues (always real numbers) are “orthogonal”.
-
We now specifically focus on the null space of W and investigate the nature of stable states reached (in the serial mode of operation of HAM) with the initial condition being a vector in the null space of W.
Lemma 1: Let be any corner of unit symmetric hypercube which lies in the null space of W and which is utilized as the initial condition of HAM running in the serial mode of operation. The stable state reached (by the HNN) is always a specific vector for any such .
Proof: By the condition on , we have that , where is a vector of “all ones” (by consistent definition of signum function operating on the zero vector).
By the convergence Theorem of Hopfield Neural Network, for all the vector lying in the null space of W, in the serial mode of operation, same corner of hypercube which is a stable state is reached Q.E.D
Note: Every vector in the null space of W is in the Domain of Attraction (DOA) of the stable state . Further with , a corner of hypercube as the initial condition of HAM, a corner of hypercube lying in the null space of W is transited, the HAM converges to the stable state .
The following Lemma deals with the corners of hypercube which are NOT in the null space spanned by eigenvectors corresponding to a repeated eigenvalue. We assume that the threshold vector is Zero vector i.e. .
Lemma 2: Corners of unit symmetric hypercube which are in the linear space spanned by eigenvectors corresponding to a repeated eigenvalue, are stable states, if the repeated eigenvalue is positive and are anti-stable states if the repeated eigenvalue is negative.
Proof: Let be eigenvectors corresponding to a positive valued eigenvalue, of algebraic multiplicity ‘r’. Let the vector lie in the linear space spanned by , and is a corner of unit symmetric hypercube i.e.
Also, let
Since, the linear space spanned by is orthogonal to the linear space spanned by the eigenvectors corresponding to the other eigenvalues, we have that
Hence if and
Hence the claim of the Lemma follows.
Corollary: It readily follows that the corner of hypercube is not orthogonal to the eigenvectors even if they are corners of unit hypercube. But is orthogonal to the corners of hypercube which are in the linear space of eigenvectors corresponding to other repeated eigenvalues. In this sense, vectors like are constrained as PROGRAMMED STABLE STATES.
Note: The above lemma does not make any assumption on being a Hadamard basis (as considered in the research paper [4]) or even being corners of the unit symmetric hypercube. This is a significant fact since, we proved in [4] that if N is odd, almost one eigenvector can be a corner of unit symmetric hypercube.
Significance of Above Lemma: Hopfield's synthesis procedure
i.e. is based on the corners of unit symmetric hypercube being eigenvectors of corresponding to the repeated eigenvalue ‘N-s’ (of algebraic multiplicity ‘s’, a positive integer less than N). In [4], the author inferred that there is freedom in choice of eigenvalues in the proposed GENERALIZED SYNTHESIS approach. It was not clear how that freedom can be capitalized. More interestingly, the above lemma enables programming corners of hypercube which are not eigenvectors of as the stable states. Specifically, such corners of the unit symmetric hypercube lie in the linear space spanned by eigenvectors corresponding to repeated eigenvalues. In view of this innovative idea, repeated eigenvalues (of algebraic multiplicity larger than one) can be grouped into different sets and correspond to orthogonal eigenvectors. As specified earlier, this approach of programming desired stable states can be utilized even when N is odd.
- As mentioned earlier, we assume that the threshold vector is a zero vector (realizing well that by constraining eigenvalues, the results can be generalized to
the more general case where the threshold vector is a non-zero vector. This generalization is very similar to that in [4] and is avoided for notational convenience and brevity).
Note: In view of Lemma 2, the stable states lying in the linear spaces spanned by eigenvectors corresponding to different repeated eigenvalues are orthogonal (as desired by the original Hopfield's synthesis).
Now, we focus on the results related to “Domains of Attraction (DoA)” associated with the stable states.
By definition of stable state, we have that
Sign implies Sign .
Hence the Domains of attraction of stable states are symmetrically located.
- In view of Lemma 2, certain domains of attraction can be divided into distinct sets based on “programmed/desired” stable states using eigenvectors associated with repeated eigenvalues. Specifically, we realize that if an initial condition based HAM (associated with a HAM running in serial mode) transits through a corner of hypercube which is in the Domain of Attraction (DoA) of a programmed stable state, , the succeeding states (corners of hypercube) are all in that DoA.
Note: Let be singular. In view of Lemma 1, Lemma 2, the corners of unit hypercube that lie in the linear space spanned by eigenvectors corresponding to zero eigenvalue (i.e. corners of unit hypercube in the null space of W) are all in the DoA of (as specified in Lemma 1).
REFERENCES
[1] G. Rama Murthy and Moncef Gabbouj, "On the Design of Hopfield Neural Networks: Synthesis of Hopfield Type Associative Memories," International Joint Conference on Neural Networks (IJCNN), 2015
[2] J. J. Hopfield, "Neural Networks and Physical Systems with emergent computational abilities," Proceedings of National Academy of Sciences, USA, vol. 79, 1982, pp. 2554-2558
[3] G. Rama Murthy, Vamshi, Devaki and Divya, "Synthesis/Programming of Hopfield Associative Memory," Proceedings of International Conference on Machine Learning and Data Science (ICMLDS 2019), December 2019 (ACM Digital Library)
[4] G. Rama Murthy, “Toward Optimal synthesis of Discrete Time Hopfield Neural Network,” IEEE Transactions on Neural Networks and Learning Systems, pp 1-6, March 2022
[5] G. Rama Murthy and B. Nischal," Hopfield-Amari Neural Network : Minimization of Quadratic forms," The 6th International Conference on Soft Computing and Intelligent Systems, Kobe Convention Center (Kobe Portopia Hotel) November 20-24, 2012, Kobe, Japan.
The quick brown fox jumps over the lazy dog.