[Paper Review] A Massively Parallel Associative Memory Based on Sparse Neural Networks
This paper proposes a GPU-accelerated implementation of the Gripon-Berrou neural network associative memory using a hybrid retrieval rule that combines sum-of-sum and sum-of-max strategies. The method achieves an 880-fold speedup over CPU-based implementations while maintaining the high retrieval accuracy of the sum-of-max rule, enabling scalable, high-performance associative memory for machine learning workloads.
Associative memories store content in such a way that the content can be later retrieved by presenting the memory with a small portion of the content, rather than presenting the memory with an address as in more traditional memories. Associative memories are used as building blocks for algorithms within database engines, anomaly detection systems, compression algorithms, and face recognition systems. A classical example of an associative memory is the Hopfield neural network. Recently, Gripon and Berrou have introduced an alternative construction which builds on ideas from the theory of error correcting codes and which greatly outperforms the Hopfield network in capacity, diversity, and efficiency. In this paper we implement a variation of the Gripon-Berrou associative memory on a general purpose graphical processing unit (GPU). The work of Gripon and Berrou proposes two retrieval rules, sum-of-sum and sum-of-max. The sum-of-sum rule uses only matrix-vector multiplication and is easily implemented on the GPU. The sum-of-max rule is much less straightforward to implement because it involves non-linear operations. However, the sum-of-max rule gives significantly better retrieval error rates. We propose a hybrid rule tailored for implementation on a GPU which achieves a 880-fold speedup without sacrificing any accuracy.
Motivation & Objective
- Address the performance bottleneck of associative memory systems in large-scale machine learning applications.
- Overcome the computational inefficiency of the sum-of-max retrieval rule, which offers high accuracy but is hard to parallelize on GPUs.
- Develop a hybrid retrieval strategy that retains the accuracy of sum-of-max while achieving the speed of sum-of-sum.
- Enable practical deployment of high-capacity associative memories in real-time systems such as databases, anomaly detection, and face recognition.
- Demonstrate that sparse neural networks based on LDPC-like coding are highly resilient to noise and errors, making them suitable for robust memory systems.
Proposed method
- Implement the Gripon-Berrou associative memory on a GPU using CUDA for high-performance computing.
- Adapt the sum-of-sum rule via matrix-vector multiplication, which is natively parallelizable on GPUs.
- Design a hybrid retrieval rule that leverages the speed of sum-of-sum for initial computation and the accuracy of sum-of-max for final decision-making.
- Introduce a joint decoding scheme that dynamically balances speed and accuracy by minimizing redundant computations.
- Use a sparse neural network architecture inspired by low-density parity-check (LDPC) codes to ensure high resilience to noise and errors.
- Apply iterative message-passing algorithms with convergence guarantees to ensure stable retrieval performance.
Experimental results
Research questions
- RQ1Can the sum-of-max retrieval rule be efficiently implemented on a GPU without sacrificing accuracy?
- RQ2How can the computational overhead of non-linear operations in sum-of-max be mitigated while preserving retrieval performance?
- RQ3What hybrid strategy can combine the speed of sum-of-sum with the accuracy of sum-of-max to achieve optimal performance?
- RQ4How does the proposed GPU-optimized associative memory scale with increasing memory capacity and message complexity?
- RQ5To what extent does the performance degrade when handling correlated messages, and how can the architecture be adapted?
Key findings
- The hybrid retrieval rule achieves an 880-fold speedup over CPU-based sum-of-max implementation without any loss in retrieval accuracy.
- The sum-of-sum rule exhibits network oscillation and fails to converge reliably, especially under high error rates or dense memory loads.
- The sum-of-max rule converges reliably and achieves near-perfect retrieval rates (up to 100%) when the number of stored messages is relatively small (e.g., 50,000 messages).
- In scenarios with high erasure rates (e.g., 6 out of 8 clusters erased), sum-of-sum shows significantly lower retrieval rates than sum-of-max or the joint scheme.
- The joint decoding scheme successfully combines the speed of sum-of-sum and the accuracy of sum-of-max, maintaining high retrieval performance across all tested configurations.
- The sparse neural network architecture based on LDPC-like coding demonstrates strong resilience to noise and errors, making it suitable for real-world applications with corrupted inputs.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.