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 · DOI

TL;DR

This paper introduces MEMHD, a novel framework that makes Hyperdimensional Computing (HDC) more efficient for In-Memory Computing (IMC) architectures. By using a multi-centroid approach and smart initialization, MEMHD significantly reduces memory requirements and computation cycles, achieving higher accuracy with less hardware.

What Problem Does This Paper Address?

Hyperdimensional Computing (HDC) is a powerful paradigm that represents data as very high-dimensional vectors (hypervectors) for robust pattern recognition. However, fitting these massive vectors into the smaller dimensions of In-Memory Computing (IMC) arrays, which are designed for efficient computation directly within memory, is a major challenge. This mismatch leads to wasted memory space and inefficient processing. Existing methods that try to fit HDC into IMC by partitioning hypervectors don't reduce the overall computation needed. This paper aims to bridge this gap by creating an HDC system that is inherently compatible with IMC's structure, maximizing its utilization and efficiency.

Methods

MEMHD tackles the HDC-IMC mismatch with several key innovations:

  • Multi-Centroid Associative Memory (AM): Instead of a single vector per class, MEMHD uses multiple "centroid" vectors for each class. This allows for a more nuanced representation of class features and better utilization of IMC array columns.
  • Clustering-Based Initialization: To effectively set up these multiple centroids, MEMHD employs a K-means clustering approach on the sample hypervectors for each class. This ensures initial centroids are well-distributed, leading to more stable and accurate training compared to random initialization.
  • Quantization-Aware Iterative Learning: To optimize for binary IMC hardware, MEMHD first quantizes the multi-centroid AM to binary values. It then refines this binary AM through an iterative learning process that specifically accounts for the effects of quantization, ensuring accuracy is maintained.
  • Projection Encoding and Dot Similarity: For encoding input data and performing associative search, MEMHD uses projection encoding and dot similarity. These operations are well-suited for the Matrix-Vector Multiplication (MVM) capabilities of IMC arrays, enabling efficient in-memory inference.

Datasets

The paper evaluates MEMHD on three standard benchmark datasets:

  • MNIST (handwritten digits)
  • Fashion-MNIST (clothing images)
  • ISOLET (spoken letters)

Key Insights and Ideas

  • Dimensionality Mismatch is Key: The core problem isn't just fitting large vectors, but the fundamental mismatch between HDC's high dimensionality and IMC's array structure. MEMHD's solution directly addresses this by tailoring the HDC representation to the IMC dimensions.
  • Multi-Centroid is Crucial for IMC: Using multiple centroids per class is not just about better representation; it's about mapping more effectively onto the columns of an IMC array, leading to full utilization.
  • Initialization Matters for Multi-Centroid: Unlike single-vector HDC where initialization is less critical, the success of multi-centroid models hinges on good initial centroid placement. Clustering provides this crucial foundation.
  • Quantization-Awareness is Non-Negotiable: Directly quantizing a complex model like a multi-centroid AM can degrade performance. MEMHD's iterative learning specifically addresses this, making the binary model robust.

Key Results

MEMHD demonstrates significant improvements over existing binary HDC models and IMC mapping techniques:

  • Accuracy & Memory Efficiency: Achieves up to 13.69% higher accuracy with the same memory usage, or 13.25x more memory efficiency at the same accuracy level.
  • Computational Efficiency: Reduces computation cycles by up to 80x and array usage by up to 71x compared to baseline IMC mapping methods when mapped to 128x128 IMC arrays.
  • Full IMC Utilization: MEMHD achieves full utilization of IMC arrays, a key goal for efficient in-memory computing.
  • One-Shot Inference: Enables one-shot (or few-shot) associative search, meaning inference can be performed very quickly, often in a single cycle.
  • Clustering Benefits: Clustering-based initialization provides 8.69% to 19.95% higher initial accuracies and faster convergence compared to random sampling.

Limitations and Future Work

  • Hyperparameter Tuning: The paper notes that the optimal structure (dimensions and columns) and the initial cluster ratio (R) can vary by dataset, suggesting that careful tuning is still required for optimal performance.
  • Dataset Specificity: While MEMHD shows strong results, the optimal configuration for datasets like ISOLET (with fewer samples per class) differs from MNIST/FMNIST, indicating the need for adaptive strategies.
  • Future Work: The authors suggest that this work paves the way for more efficient HDC implementations in resource-constrained environments. Further exploration into adaptive hyperparameter tuning and broader application across different IMC technologies could be future directions.

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