This 1988 paper by Nathan H. Brown, Jr. explores how to efficiently simulate neural networks on the Connection Machine (CM), a landmark massively parallel SIMD (Single Instruction, Multiple Data) supercomputer. By comparing two distinct data-parallel strategies, the author demonstrates how specialized hardware architectures can transform the temporal bottleneck of serial computing into a spatial advantage.
The Bottleneck of Serial Computing
In the late 1980s, simulating neural networks on conventional serial computers was a slow, iterative process. Serial machines handle array indexing "temporally"—referencing memory locations one after another. As network size increases, this creates a massive computational bottleneck.
The author seeks to leverage the data parallelism of the Connection Machine to perform these operations "spatially." The core challenge lies in structuring the network's data (neurons and synapses) across thousands of individual processors to minimize communication overhead and maximize parallel throughput.
Two Mapping Strategies
The author implements the simulations using *Lisp (a parallel extension of Lisp) and compares two distinct architectural mappings onto the CM's 16-dimensional hypercube: the Edge List approach and the Composite approach.
1. The Edge List Approach
In the Edge List approach, each CM processor represents a single "abstract synapse" (an edge in the graph). Weights are stored directly in the processor memory, while activations are stored on a host machine and broadcast to the network.
While straightforward to implement, this method has a significant catch: activation updates remain essentially serial. The system must process one unit at a time to sum incoming signals, resulting in an O(n²) time complexity for updates.
2. The Composite Approach
The Composite approach utilizes a more complex mapping where processors are assigned to represent units, incoming links, or outgoing links.
The "secret sauce" of this method is its use of parallel segmented scans—a technique for performing associative operations, like addition, across subsets of processors. This allows the hardware to treat groups of processors as independent segments, enabling the simultaneous calculation of weighted sums across the entire network. By doing so, it effectively mimics MIMD (Multiple Instruction, Multiple Data) behavior on SIMD hardware.
Evaluation and Key Results
Rather than using modern standard datasets like MNIST, the paper evaluates these approaches using a Hopfield spin-glass model. The benchmark task involved storing and retrieving two hand-picked exemplar patterns, tested against five variations (including patterns with removed centers, removed rows/columns, and random noise). The models were scaled from 64 to 361 units to observe how performance scales with "virtualization" (the ratio of simulated neurons to physical processors).
The results heavily favored the Composite approach:
- Complexity Gains: The Composite approach achieves O(1) time complexity for activation updates. The time taken is independent of the number of interconnects, provided physical processors are not exhausted.
- Raw Speed: Thanks to parallel segmented scans, the Composite approach demonstrated an order-of-magnitude performance lead over the Edge List approach in terms of interconnects updated per second.
- Virtualization Trade-offs: The CM allows for "virtual processors," enabling the simulation of more neurons than physical hardware permits. However, the author identified a "performance turnaround point" (around 2x virtualization for the Composite approach) where the overhead of managing virtual processors begins to degrade the parallel advantage.
Limitations and Future Directions
Despite the massive parallel advantages, the system still faced bottlenecks. Serial transfers of parameters between the host computer (e.g., a Symbolics or VAX machine) and the CM incurred significant overhead. Furthermore, the complexity of the models was strictly limited by the memory and stack space available to each virtual processor.
Looking forward, the author pointed toward the then-upcoming CM-2, which promised a dedicated *Lisp compiler, larger processor memory (64K), and dedicated floating-point hardware to further accelerate simulations. Additionally, transitioning from interpreted *Lisp to PARIS (the CM's low-level parallel instruction set) was suggested as a way to gain better register control and extract even higher performance from the machine.
Summary updated