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

TL;DR

This paper presents an object-oriented implementation of Kanerva's Sparse Distributed Memory (SDM) on the Connection Machine 2 (CM-2). The authors developed a flexible and extensible software library that allows for the simulation of various SDM architectures, enabling researchers to explore their properties and applications more effectively.

What Problem Does This Paper Address?

The paper addresses the challenge of effectively simulating and experimenting with Sparse Distributed Memory (SDM) models. SDMs are a type of connectionist memory model that offers advantages in handling uncertainty, vagueness, and associative recall, making them promising for applications in areas like natural language processing and inference. However, previous attempts to create SDM simulators were often limited by hardware constraints, lack of flexibility, and insufficient performance, hindering research into their full potential. The authors aimed to overcome these limitations by developing a robust and efficient SDM simulator on a powerful parallel computing platform, the Connection Machine 2.

Methods

The core of the paper is the implementation of Kanerva's SDM on the Connection Machine 2 (CM-2) using a plain object-oriented programming style in an extension of Common Lisp called *lisp. Key methodological aspects include:

  • Object-Oriented Design: A modular and adaptive software library was created using object-oriented principles. This allows for the easy integration and management of different SDM variants and the potential for building larger, hybrid memory systems.
  • Connection Machine 2 Architecture: The CM-2's parallel processing capabilities, particularly its SIMD (Single Instruction, Multiple Data) parallelism and distributed local storage, were leveraged to achieve efficient computation.
  • Generalized SDM Design: The authors formalized a "generalized design" that encompasses various SDM architectures (e.g., Kanerva's basic model, selected coordinate design, hyperplane design) by defining parameters for distance measures, coordinate selection, and activation probabilities. This allows for a uniform presentation and exploration of different SDM variants.
  • Data Type Optimization: Specific data types were chosen to optimize execution time and minimize memory waste on the CM-2.
  • Swapping Mechanism: To overcome hardware limitations on the size of simulated SDMs, a mechanism for swapping data between the CM-2's main and background memory was implemented.

Datasets

Not discussed in the paper. The paper focuses on the simulation of the SDM model itself and its performance, rather than training on specific datasets. The "data" being stored and retrieved are abstract patterns (e.g., icons like "caterpillar").

Key Insights and Ideas

  • Object-Oriented SDM Library: The development of a flexible, object-oriented library for SDM simulation is a significant contribution, making it easier for researchers to experiment with different SDM architectures and parameters.
  • Generalized SDM Framework: Formalizing a generalized SDM design allows for a unified approach to studying various SDM variants, facilitating comparisons and the discovery of new architectures.
  • CM-2 Suitability: The paper demonstrates that the CM-2's architecture is well-suited for SDM computations due to its parallel processing capabilities.
  • Abstraction Generation: The simulation examples show that SDMs can generate abstractions from noisy input, even when the original patterns are unknown to the system. This highlights their potential for learning and pattern recognition.
  • Compositionality of SDMs: The paper introduces the concept of compositional SDMs, where larger memory systems can be built by combining smaller, independent SDM units. This opens up possibilities for creating more complex and scalable memory models.

Key Results

  • Functional Simulator: The paper successfully implemented a functional SDM simulator on the CM-2, capable of handling various SDM designs.
  • Performance Gains: Runtime comparisons (Table 3) show significant speedups achieved by using compiled lisp code and efficient data types on the CM-2 compared to a lisp simulator on a Sparc station. For example, a 1024x8192 SDM achieved write/read times of 0.11s/0.24s with compilation, compared to 0.14s/1.01s without.
  • Abstraction Example: An experiment demonstrated that an SDM could learn to recognize an abstract pattern ("caterpillar") from noisy inputs, even without prior knowledge of the original pattern.
  • Sequence Discrimination: A 4-folded SDM was shown to be capable of discriminating between similar sequences, a task that proved difficult for a single, unfolded SDM.

Limitations and Future Work

  • Hardware Dependence: While the CM-2 provided a powerful platform, the simulator's performance is tied to its specific architecture. The authors note the inability to compare with the CM-5 due to lack of access.
  • Approximation of Probabilities: The paper mentions the use of approximations for the cumulative Binomial distribution and Gaussian distribution for calculating activation radii, suggesting that exact calculations might be computationally intensive.
  • Future Work:
    • Symbolic Structure Implementation: A major future direction is to use SDMs to represent and process data structures like sequences, sets, and temporal relations, enabling the implementation of devices like finite automata and constraint-based natural language processing.
  • Knowledge Encoding: Investigating how to encode world knowledge and handle the "variable binding" problem in neural models is identified as a key research area.
  • Hybrid SDMs: Further exploration of combining different SDM types into larger hybrid systems to leverage their diverse strengths.
  • Comparison with BAM: Further research is suggested to compare storage capacities of SDM and Binary Associative Memory (BAM) under sparse coding.

Summary updated

BibTeX
@inproceedings{1995kanerva,
  title = {{Kanerva's Sparse Distributed Memory: An Object-Oriented Implementation on the Connection Machine}},
  booktitle = {International Joint Conference on Artificial Intelligence},
  year = {1995},
}
Figure