Abstract
Traditional neural networks require enormous amounts of data to build their complex mappings during a slow training procedure that hinders their abilities for relearning and adapting to new data. Memory-augmented neural networks (MANNs) enhance neural networks with an explicit memory to overcome these issues. Access to this explicit memory, however, occurs via soft read and write operations involving every individual memory entry, resulting in a bottleneck when implemented using the conventional von Neumann computer architecture. To overcome this bottleneck, we propose a robust architecture that employs a computational memory unit as the explicit memory performing analog in-memory computation on high-dimensional (HD) vectors, while closely matching 32-bit software-equivalent accuracy. This is achieved by a content-based attention mechanism that represents unrelated items in the computational memory with uncorrelated HD vectors, whose real-valued components can be readily approximated by binary, or bipolar components. Experimental results demonstrate the efficacy of our approach on few-shot image classification tasks on the Omniglot dataset using more than 256,000 phase-change memory devices. Our approach effectively merges the richness of deep neural network representations with HD computing that paves the way for robust vector-symbolic manipulations applicable in reasoning, fusion, and compression.
Introduction
While deep learning has achieved remarkable success across various domains, standard neural networks remain "slow learners." They typically require thousands of examples and extensive gradient-based optimization to master new concepts. In contrast, biological systems exhibit "few-shot learning" capabilities, identifying new categories from just one or a few instances. Memory-Augmented Neural Networks (MANNs) address this gap by integrating an explicit external memory component, allowing the network to rapidly store and retrieve information about novel classes.
Despite their algorithmic promise, MANNs face significant implementation challenges on traditional hardware. The "soft-read" operations required for memory access involve every entry in the memory unit, leading to a massive data movement overhead known as the von Neumann bottleneck. While analog In-Memory Computing (IMC) using non-volatile memory (NVM) devices like Phase-Change Memory (PCM) can mitigate this by performing calculations in-place, these devices are inherently noisy. This research proposes a hardware-software codesign that leverages the mathematical properties of High-Dimensional (HD) computing to create a MANN that is both efficient and robust to hardware imperfections.
The HD-MANN Architecture
The proposed architecture integrates a deep learning controller with an HD-based memory unit. The controller, typically a Convolutional Neural Network (CNN), transforms input data into high-dimensional vectors.
The system relies on three core pillars:
- High-Dimensional Vector Space: By using vectors with hundreds or thousands of dimensions (e.g., 512), the system exploits the "blessing of dimensionality." In such spaces, randomly chosen vectors are almost certainly quasi-orthogonal. This property provides inherent noise resilience; even if a significant portion of a vector's components are corrupted by hardware noise, it remains closer to its original state than to any other stored vector.
- Softabs Attention Mechanism: Traditional MANNs use a Softmax function for memory addressing, which tends to push unrelated vectors toward being anti-correlated. The authors introduced the "Softabs" (soft absolute) function, which encourages the controller to map unrelated classes to uncorrelated (orthogonal) vectors. This aligns the neural network's learned representations with the natural geometry of HD space.
- Analog In-Memory Computing: The similarity search—the most computationally expensive part of memory retrieval—is performed directly on a PCM crossbar array. By representing memory keys as conductance values, the dot-product similarity can be calculated using Kirchhoff’s laws in a single step ($O(1)$ time complexity), drastically reducing energy consumption.
Experimental Results and Robustness
The architecture was evaluated using the Omniglot dataset, a standard benchmark for few-shot learning. Beyond standard 5-way and 20-way tasks, the researchers introduced a challenging 100-way 5-shot task to test the scalability of the HD memory.
The system demonstrated exceptional robustness. In the 100-way 5-shot task, the software implementation using bipolar representations achieved 94.08% accuracy. When deployed on a physical prototype chip with 256,000 noisy PCM devices, the accuracy remained high at 91.83%. This minimal performance degradation (2.7%) highlights the effectiveness of the HD computing approach in masking hardware-level stochasticity.
Furthermore, the energy efficiency gains were substantial. The search energy per bit for the PCM-based memory was measured at 25.9 fJ, representing a nearly 200-fold improvement over estimated digital CMOS implementations at the same technology node.
Conclusion
This work demonstrates that the combination of deep learning representations and high-dimensional computing provides a powerful framework for building robust, hardware-efficient MANNs. By tailoring the network's internal geometry to match the characteristics of analog memory hardware, the researchers have bypassed the von Neumann bottleneck without sacrificing accuracy. Future work will explore fully end-to-end analog systems and the application of HD representations to more complex reasoning and data fusion tasks.
Summary updated