Kanerva's Sparse Distributed Memory: An Object-Oriented Implementation on the Connection Machine

Andreas Turk, Günther Görz

Introduction

Sparse Distributed Memory (SDM), proposed by Pentti Kanerva, is a mathematical model of human long-term memory that mimics the structure of the cerebellar cortex. It is particularly adept at associative recall—retrieving information from partial or noisy cues—and forming abstractions from data. However, the computational demands of SDM, which involves high-dimensional spaces and millions of storage registers, often exceed the capabilities of standard workstations. This paper details a high-performance, object-oriented implementation of SDM on the Connection Machine 2 (CM-2), a massively parallel SIMD supercomputer.

The SDM Architecture and Generalized Design

The core challenge in implementing SDM lies in its scale. A typical model might operate in 1,000+ dimensions, requiring the calculation of distances between an input address and millions of "hard locations." To address this, the authors developed a "generalized design" that unifies various SDM variants (such as hyperplane or selected coordinate designs) into a single framework where architectures are defined by specific parameter settings.

Figure 1: Block diagram of the Sparse Distributed Memory (SDM) architecture, illustrating the flow from address-register to output-register through the contents-matrix.

As shown in Figure 1, the architecture consists of several key modules:

  • Address-Register and Module: Processes the input address to select active locations.
  • Contents-Matrix: The primary storage area where data is accumulated.
  • Summation and Output Registers: Aggregate the selected data to produce the final retrieved bit-string.

Implementation Strategy on the CM-2

The authors utilized *lisp, a parallel extension of Common Lisp, to build a modular library. Because standard object-oriented systems like CLOS were not yet optimized for the CM-2's parallel architecture, the team used "closures" to simulate objects. This allowed multiple SDM instances to coexist and interact without interference.

To overcome physical RAM limitations, a memory swapping system was implemented, enabling the simulation of models larger than the machine's primary memory. Furthermore, the implementation included "folded" SDM architectures, which utilize multiple layers to handle temporal sequences, allowing the system to distinguish between events with similar histories.

Experimental Results: Abstraction and Noise Reduction

The system was tested using custom synthetic datasets, including bitmapped "iconic patterns" such as the "caterpillar" and "pine" icons.

Figure 2: An example of an iconic bitmapped pattern used to test the SDM's ability to perform associative recall and data "cleaning."

A key insight from these experiments is that abstraction emerges as a side effect of the SDM's storage mechanism. When the system is presented with multiple noisy versions of an icon (e.g., 20% random noise), the retrieved result is often a clean, idealized version of the original pattern. This demonstrates that the memory does not merely store snapshots but constructs a prototype of the data it encounters.

In terms of performance, the compiled *lisp code on the CM-2 achieved significant speedups, performing address-write-read cycles for medium-sized memories (8,192 locations) in a fraction of a second—up to five times faster than non-compiled versions.

Conclusion and Future Work

The CM-2’s SIMD architecture proved to be an ideal match for the parallel matrix operations required by SDM. While the implementation is specific to the CM-2, the principles of parallelizing high-dimensional associative memory remain highly relevant. Future work aims to bridge the gap between connectionist and symbolic AI by using SDM to implement complex structures like finite automata or chart parsers for natural language processing.

Summary updated

BibTeX
@inproceedings{turk1995kanerva,
  author = {Andreas Turk and Günther Görz},
  title = {{Kanerva's Sparse Distributed Memory: An Object-Oriented Implementation on the Connection Machine}},
  booktitle = {International Joint Conference on Artificial Intelligence},
  year = {1995},
}
Figure