All models

Correlation Matrix Memory

Kohonen's 1972 associative memory: one weight matrix of Hebbian correlations, recalled by a product and a threshold.

Historical · 5 operations Checked

100%

Showing the top corner; full diagram not loaded yetShowing a small copy; full diagram not loaded yetLarge diagram, not loaded yet

Open SVG

Loading diagram (7 KB)

Open in a new tab

Click or tap a spot to read it up close. Scroll or drag inside the diagram to move through it. Zoom with + and − or Ctrl and scroll. Press 0 for the whole graph. Swipe inside the diagram to move through it. Use + and − to zoom.

At a glance

Parameters
9
Operations
5
Framework
PyTorch
Recurrent
No
Published
1972, IEEE Transactions on Computers
Cited by
1,002 (as of 4 October 2026)
Authors
Teuvo Kohonen
Checked
Passed: the trace was replayed operation by operation and matched the model's own output for this input.

Files

The diagram is a drawing of a TorchLens trace of the source code. It contains no code or weights.

Details
Stable ID
m14345
Graph hash
7a295ee8a5d2af01eaf41276d009a4015287e921b20e2e05d136a6ea1dcfb226
Skeleton hash
6d4a2fa4bd5276ae2111caeb618d47c996d2db08514c99ae8571ea1e39f86a38
Architecture hash
16a40b24466039ab05768d04e11792e892655d69ab5c55ef64539e56796a93f9
Diagram SHA-256
5b2b5ae763b186d67fb117c82811e77ea7e19873583162fb197b0f02e9fcbc1b
TorchLens version
2.36.0
Renderer
graphviz 2.43.0+pyvips 3.2.0+libvips 8.18.7+render-opts@06c1f0d3
Check
Forward pass replayed in PyTorch

What it is

The correlation matrix memory (CMM) is a heteroassociative memory, although it can also be used in an autoassociative fashion. It is a single layer network with the input and output neurons fully connected, so the whole model is a matrix of weights with size equal to the length of the input vector times the length of the output vector. CMMs are neural associative memories able to store a large number of associations between binary patterns, and to store and recall them at great speed. They tolerate noise on the input and can react appropriately to previously unseen inputs that resemble known ones.

The weight matrix stores the correlations between the stored input and output pairs. Hebbian learning is the common choice because it needs only local updates each time a new association is learnt, which makes learning extremely quick. With binary 0 and 1 vectors at input and output, the weight linking each pair of nodes that are both 1 is increased by 1. Recall multiplies the input vector by the weight matrix to produce an activity pattern on the output neurons, which is not binary, so a thresholding function is needed to produce a binary output. Because storage is distributed, recalled activity mixes the wanted data with crosstalk from other stored pairs, whose size depends on the similarity between the input and the other stored inputs. Willshaw et al. suggested a binary-weight variant of the network.

The traced member uses fixed weight coding, where each data vector has a fixed number of elements set to 1. That coding permits L-max thresholding, setting the l largest values in the output vector to 1, where l is the fixed weight of the output vectors. Palm showed the optimal input and output code weights to be log2 n and log n, where n is the length of the code. Being single layer networks, CMMs cannot solve linearly inseparable problems such as XOR. The saved text is a thesis review of associative memories, which cites Kohonen's paper in IEEE Transactions on Computers as the source of the model.

Key idea. A one-layer associative memory whose weight matrix is a Hebbian sum of input-output correlations, recalled by a single matrix product followed by a threshold.

  • Correlation Matrix Memory
  • CMM
  • correlation matrix memories
  • linear associator
  • Kohonen
  • Kohonen 1972
  • heteroassociative memory
  • associative memory
  • Hebbian learning
  • binary CMM
  • Willshaw
  • L-max thresholding
  • fixed weight coding

AI-written summary, based on the paper and checked automatically against it; not reviewed by a person. Corrections welcome.

Cite the paper

@article{Kohonen_1972, title={Correlation Matrix Memories}, volume={C-21}, ISSN={0018-9340}, url={http://dx.doi.org/10.1109/TC.1972.5008975}, DOI={10.1109/tc.1972.5008975}, number={4}, journal={IEEE Transactions on Computers}, publisher={Institute of Electrical and Electronics Engineers (IEEE)}, author={Kohonen, Teuvo}, year={1972}, month=Apr, pages={353–359} }