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

LeHDC: Learning-Based Hyperdimensional Computing Classifier

Shijin Duan, Yejia Liu, Shaolei Ren, Xiaolin Xu · DOI

Abstract

Hyperdimensional Computing (HDC) is a promising paradigm for low-power, brain-inspired computing, particularly suited for edge devices and IoT applications. Despite its efficiency, HDC often suffers from a significant accuracy gap compared to traditional deep learning models due to its reliance on heuristic training methods. This paper introduces LeHDC, a novel framework that establishes a formal mathematical equivalence between binary HDC classifiers and single-layer Binary Neural Networks (BNNs). By leveraging this connection, LeHDC applies principled deep learning optimization techniques—such as Adam optimization, dropout, and cross-entropy loss—to HDC training. Experimental results across diverse benchmarks, including computer vision and sensor-based tasks, demonstrate that LeHDC improves classification accuracy by an average of 15.32% without incurring any additional hardware overhead during inference.

1. Introduction

Hyperdimensional Computing (HDC) operates on the principle of representing data using massive, high-dimensional vectors (typically $D \ge 10,000$). Its primary appeal lies in its hardware efficiency; by utilizing bitwise operations like XOR and Hamming distance calculations, HDC models can perform inference with significantly lower power consumption than standard neural networks.

However, the "performance gap" remains a major hurdle. Traditional HDC training relies on a simple "averaging" heuristic: a class hypervector is created by summing all hypervectors belonging to that class. While iterative retraining heuristics exist, they lack the theoretical rigor of gradient-based optimization. Consequently, HDC models often struggle with complex datasets where decision boundaries are not easily captured by simple accumulation.

2. The Equivalence Principle

The fundamental contribution of LeHDC is the proof that a binary HDC classifier is mathematically equivalent to a wide, single-layer Binary Neural Network (BNN). The authors demonstrate that calculating the Hamming distance between an encoded input and a class hypervector can be linearly transformed into a dot product operation—the core computation of a neural network layer.

This insight bridges the gap between the two fields, allowing HDC to move beyond heuristic "averaging" and adopt the robust optimization framework of modern deep learning.

3. The LeHDC Training Pipeline

LeHDC replaces traditional HDC training with a four-stage pipeline designed to maximize accuracy while preserving the efficiency of the final hardware deployment:

  1. Mapping: The HDC classifier is mapped into a single-layer BNN architecture.
  2. Principled Training: The model is trained using standard deep learning tools. This includes the use of Softmax and Cross-Entropy Loss for a well-defined objective function, the Adam Optimizer for adaptive gradient updates, and Dropout/Weight Decay to prevent overfitting in the high-dimensional space.
  3. Binarization: To maintain compatibility with HDC hardware, the model uses binary weights for the forward pass during training. High-precision "latent" weights are maintained in the background to accumulate small gradient updates.
  4. Deployment: Once training is complete, the BNN weights are converted back into binary class hypervectors. Because the mathematical operations remain identical to standard HDC, the resulting model can be deployed on existing HDC hardware with zero additional cost in terms of latency, power, or area.

4. Experimental Evaluation

The authors evaluated LeHDC across six diverse benchmarks spanning computer vision (MNIST, Fashion-MNIST, CIFAR-10), sensor data (UCIHAR, PAMAP), and speech recognition (ISOLET).

4.1 Accuracy Improvements

LeHDC consistently outperformed both baseline HDC and state-of-the-art retraining methods. On average, LeHDC achieved an accuracy boost of 15.32% over the baseline. The most notable improvement occurred on the CIFAR-10 dataset, where LeHDC reached 46.10% accuracy, a significant jump from the baseline's 29.55%.

4.2 Dimensionality and Scalability

One of the most practical findings is LeHDC's robustness to dimension reduction. The study found that a LeHDC model using only 2,000 dimensions could match the accuracy of a standard HDC model using 10,000 dimensions. This suggests that LeHDC can be used to either increase accuracy at a fixed hardware budget or significantly reduce hardware requirements while maintaining baseline performance.

5. Discussion and Conclusion

LeHDC reveals that HDC is not a fundamentally different species of algorithm, but rather a specific configuration of a single-layer Binary Neural Network. This realization allows HDC to benefit from decades of progress in neural network optimization. By treating HDC training as a gradient-based optimization problem, LeHDC effectively addresses the issues of overfitting and "blind" updates that have historically limited HDC's performance.

While LeHDC significantly closes the performance gap, it does not yet match the accuracy of deep, multi-layer Convolutional Neural Networks (CNNs) on complex image tasks. This is expected, as the current framework is limited to a single-layer classifier. Future research will explore learning the "encoding" process (the transformation of raw data into hypervectors) and the potential for multi-layer HDC structures to further enhance the capabilities of this efficient computing paradigm.

Summary updated

BibTeX
@inproceedings{duan2022lehdc,
  author = {Shijin Duan and Yejia Liu and Shaolei Ren and Xiaolin Xu},
  title = {{LeHDC: Learning-Based Hyperdimensional Computing Classifier}},
  booktitle = {DAC},
  year = {2022},
  doi = {10.1145/3489517.3530593},
}
Figure