Submitted:
13 December 2024
Posted:
16 December 2024
Read the latest preprint version here
Abstract
This paper describes a new auto-associative network called a Unit Memory network. It is so-called because unit nodes in a network store binary input as integer values, representing binary words. The word size is critical and specific to the dataset and it also provides a first level of cohesion over the word values. A second cohesion network then links the unit network nodes, through layers of decreasing dimension, until the top layer contains only 1 node for any pattern. Thus, a pattern can be found using a search and compare technique through the two networks. The unit memory is compared to a Hopfield network and a Sparse Distributed Memory (SDM). It is shown that the memory requirements are not unreasonable and that it has a much larger capacity than a discrete Hopfield network, for example. It can also store dense or sparse data and can deal with maybe 30% noise. This is demonstrated with test results for 3 benchmark datasets. Apart from unit size, the rest of the configuration is automatic, and its simplistic design could make it attractive for some applications.
Keywords:
1. Introduction
2. Related Work
3. The Unit Memory Network
3.1. Network Construction
3.2. Network Use
3.3. Train Algorithm
3.3.1. Unit Network
- Create a unit network, where each node stores integer values relating to an indicated number x of base binary values.
-
For each input pattern, split it up into words of the indicated unit size x. Note that the unit size is important and will separate out the values (and features) differently.
- o
- Convert a list of base words, representing a unit, from binary to decimal.
- o
- Store the number, only once in a list, for the unit at the corresponding position.
3.3.2. Cohesion Network
-
Link and add all decimal numbers for the current pattern to the cohesion network.o Create a layer of base compound keys by combining 2 adjacent unit node values.
- o
Then to reduce the dimensions, take the second compound value of the first node and the first compound value of the second node and create a new compound value and node in a new layer from it.- o
Repeat until there is only 1 node in the top layer. -
This creates a path which if followed, will lead to the input pattern at the end.
- o
- The paths are not unique however and because some information has been lost, there can be several instances at each node. But the numbers will be much smaller than for a flat list.
- o
- Thus, when there are several choices, a count of the most matching values can be used to select the best one.
- The process is described in Figure 1.
3.4. Test Algorithm
3.4.1. Unit network
- Split the test input pattern into unit sizes and create the corresponding integer numbers.
-
Compare each number directly with the corresponding unit node value list.
- o
- If the value list contains the number, then keep the value for that position.
- o
- If the value list does not contain the number, then add a ‘null’ value for the position.
- This produces a list of integer or null values that represent the test pattern in the trained network.
3.4.2. Cohesion Network
- Create a cohesion network for the test pattern values only.
-
Traverse the trained cohesion network using these values.
- o
- If there is a null value at a branch, then any combination that includes the null value can be selected.
- o
- While there will be multiple options, the final branch(s) will have a much smaller subset of all patterns that the network was trained with.
- Retrieve all the selected base patterns and convert them back into binary patterns.
- Use a Hamming distance similarity count to select the pattern that is closest to the test input pattern.
- The finally selected pattern can thus have different values to the input pattern and thus remove noise from it.
4. Testing
4.1. Test Strategy
4.2. Test Results
| Dataset | Dimensions | Unit Size |
|---|---|---|
| Chars74 | 32 x 32 | 12 |
| Semeion | 16 x 16 | 16 |
| Silhouettes | 64 x 64 | 4 |
| Dataset | Row Accuracy for Noise % | Category Accuracy for Noise % | ||||||
|---|---|---|---|---|---|---|---|---|
| 0% | 10% | 20% | 30% | 0% | 10% | 20% | 30% | |
| Chars74 | 100 | 98.7 | 91 | 75.9 | 100 | 98.9 | 91.5 | 76.1 |
| Semeion | 100 | 96.2 | 90.2 | 85.1 | 99.7 | 95.8 | 90 | 84.9 |
| Silhouettes | 100 | 98.4 | 95.3 | 87.4 | 100 | 98.5 | 94.9 | 87.2 |
5. Conclusions
References
- Alonso, N. and Krichmar, J.L. A sparse quantized hopfield network for online-continual memory. Nature Communications 2024, 15, 3722. [Google Scholar] [CrossRef] [PubMed]
- Bouaguel, W. and Ben NCir, C.E., 2022. Distributed Evolutionary Feature Selection for Big Data Processing. Vietnam Journal of Computer Science, pp.1-20.
- Buscema, M. (1998). MetaNet: The Theory of Independent Judges, in Substance Use & Misuse, Vol. 33, No. 2, pp. 439 - 461.
- Burns, T.E. and Fukao, T. (2023). Simplical Hopfield Networks. burnsSimplicalHopfield23.pdf.
- Hopfield, J.J. Neural networks and physical systems with emergent collective computational abilities. Proc. Nat. Acad. Sci. 1982, 79, 2554–2558. [Google Scholar] [CrossRef] [PubMed]
- Hu, J.Y-C., Yang, D., Wu, D., Xu, C., Chen, B-Y. and Liu, H. (2023). On Sparse Modern Hopfield Model, 37th Conference on Neural Information Processing Systems (NeurIPS 2023).
- Kanerva, P. (1992). Sparse Distributed Memory and Related Models, NASA Technoical Report, Or, In M.H. Hassoun, ed., Associative Neural Memories: Theory and Implementation, pp. 50 - 76. New York: Oxford University Press, 1993.
- Krotov, D. and Hopfield, J. Dense Associative Memory Is Robust to Adversarial Inputs. Neural Computation 2018, 30, 3151–3167. [Google Scholar] [CrossRef] [PubMed]
- Marlin, B., Swersky, K., Chen, B. and Freitas, N., (2010). Inductive principles for restricted Boltzmann machine learning. In Proceedings of the thirteenth international conference on artificial intelligence and statistics, JMLR Workshop and Conference Proceedings, pp. 509 - 516.
- Mendes, M., Coimbra, A.P. and Crisostomo, M. (2009). Assessing a Sparse Distributed Memory Using Different Encoding Methods, Proceedings of the World Congress on Engineering 2009 Vol I, WCE 2009, July 1 - 3, 2009, London, U.K.
- Snaider, J. and Franklin, S. (2012). Integer sparse distributed memory, In Twenty-fifth international flairs conference.
- The Chars74K dataset, http://www.ee.surrey.ac.uk/CVSSP/demos/chars74k/. (last accessed 10/12/24).
- UCI Machine Learning Repository. http://archive.ics.uci.edu/ml/. (last accessed 10/12/24).

Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content. |
© 2024 by the authors. Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license (http://creativecommons.org/licenses/by/4.0/).