NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

MEMHD: Memory-Efficient Multi-Centroid Hyperdimensional Computing for Fully-Utilized In-Memory Computing Architectures

Do Yeong Kang, Yeong Hwan Oh, Chanwook Hwang, Jinhee Kim, Kang Eun Jeon, Jong Hwan Ko

Abstract

Hyperdimensional Computing (HDC) is an emerging paradigm for robust and energy-efficient AI, yet its implementation on In-Memory Computing (IMC) hardware is often hindered by a mismatch between high-dimensional hypervectors and fixed-size hardware crossbars. This paper introduces MEMHD, a framework that replaces the traditional single, massive hypervector per class with multiple smaller "centroids" tailored to the physical dimensions of IMC arrays. By optimizing hardware utilization, MEMHD achieves up to 13.69% higher accuracy and an 80x reduction in computation cycles compared to conventional mapping methods.

Introduction

Hyperdimensional Computing (HDC) mimics the brain's neural representations by using high-dimensional vectors (hypervectors), typically exceeding 10,000 dimensions, to represent data. While HDC is inherently robust and efficient, deploying it on In-Memory Computing (IMC) hardware—such as SRAM or RRAM crossbar arrays—presents a significant challenge.

IMC hardware is designed to perform computations directly within memory to eliminate the von Neumann bottleneck. However, these arrays have fixed dimensions (e.g., 128x128 or 256x256). Mapping a 10,000-dimension hypervector onto a 128-row array requires extensive partitioning, leading to low hardware utilization and high latency. MEMHD addresses this "square peg, round hole" problem by redesigning the HDC architecture to be hardware-native.

The MEMHD Framework

Multi-Centroid Associative Memory (AM)

Rather than representing a class (e.g., "Digit 5") with a single 10,000-dimension vector, MEMHD utilizes multiple smaller vectors, or "centroids." For instance, a class might be represented by sixteen 512-dimension vectors. This approach ensures that the vector dimensions align perfectly with the rows of the IMC array, while the multiple centroids fill the columns. This configuration allows the hardware to perform similarity checks in parallel, maximizing utilization.

Dynamic Cluster Allocation and Initialization

To ensure these centroids accurately represent the data distribution, MEMHD employs K-means clustering for initialization. Recognizing that some classes are more difficult to distinguish than others, the framework uses a "validation and allocation" phase. By analyzing a confusion matrix during training, MEMHD dynamically allocates more centroids to "hard" classes that are frequently misclassified, ensuring optimal use of the available memory.

Quantization-Aware Iterative Learning

To maintain a low memory footprint, MEMHD utilizes 1-bit (binarized) hypervectors. To mitigate the loss of precision inherent in quantization, the authors implemented a specialized iterative learning process. This training regime accounts for binarization errors, allowing the model to maintain high accuracy even with extremely low-bitwidth representations.

Experimental Results

MEMHD was evaluated against state-of-the-art binary HDC models, including SearcHD and QuantHD, using the MNIST, Fashion-MNIST (FMNIST), and ISOLET datasets.

  • Accuracy: MEMHD achieved an average accuracy improvement of 13.69% over baselines when constrained to the same memory budget.
  • Hardware Efficiency: When mapped to 128x128 IMC arrays, MEMHD reduced computation cycles by 80x and the number of required arrays by 71x. This enables "one-shot inference," where a classification search is completed in a single clock cycle.
  • Memory and Energy: The framework required 13.25x less memory to reach the same accuracy as existing models and proved to be 4x more energy-efficient than LeHDC, a leading binary HDC model.

Discussion and Future Work

MEMHD demonstrates that increasing the quantity of representative vectors is often more hardware-efficient than increasing the dimensionality of a single vector. However, some challenges remain. The "Encoding Module," which transforms raw input into hypervectors, remains a resource-heavy component that was not the primary focus of this optimization. Additionally, while MEMHD performs exceptionally on standard benchmarks like MNIST and ISOLET, further research is required to determine how well the multi-centroid approach scales to high-way classification tasks such as ImageNet.

Finally, because the benefits of MEMHD are tied to specific IMC array sizes, the framework requires re-tuning when transitioning between different hardware architectures. Future iterations may look toward more automated hardware-software co-design tools to streamline this adaptation.

Summary updated

BibTeX
@inproceedings{kang2025memhd,
  author = {Do Yeong Kang and Yeong Hwan Oh and Chanwook Hwang and Jinhee Kim and Kang Eun Jeon and Jong Hwan Ko},
  title = {{MEMHD: Memory-Efficient Multi-Centroid Hyperdimensional Computing for Fully-Utilized In-Memory Computing Architectures}},
  booktitle = {DATE},
  year = {2025},
  url = {https://openreview.net/forum?id=Z9nmXDNKM8},
}
Figure