Organizations: Tampere University, Tampere, Finland · Tampere Institute for Advanced Study, Tampere University, Finland · Intel Corporation, Santa Clara, CA, United States
Overparameterized machine learning (ML) methods such as neural networks may be prohibitively resource intensive for devices with limited computational capabilities. Hyperdimensional computing (HDC) is an emerging resource efficient and low-complexity ML method that allows hardware efficient implementations of (re-)training and inference procedures. In this paper, we propose a maximum-margin HDC classifier, which significantly outperforms baseline HDC methods on several benchmark datasets. Our method leverages a formal relation between HDC and support vector machines (SVMs) that we established for the first time. Our findings may inspire novel HDC methods with potentially more hardware-oriented implementations compared to SVMs, thus enabling more efficient learning solutions for various intelligent resource-constrained applications.
Figures & tables
Notation
Description
N
Number of data points
d
Dimensionality of data points
X∈Rd×N
Set of d -dimensional data points
y∈RN
Vector of corresponding labels, yj∈{−1,+1}
xj∈Rd
Individual i -th data point
yj
Label of individual i -th data point
TABLE I: Notations and descriptions used in this work
Fig. 1: Comparison of performance of maximum-margin HDC (blue), linear C -SVM (orange), OnlineHD (green), perceptron-based HDC (red), and other algorithms.
Hyperparameter
Dataset
MNIST
FASHION
UCI HAR
All methods
HD representation size, D
5000
Batch size
1000
Maximum-margin HDC
Learning rate, α
1⋅10−5
TABLE II: Parameters of considered HDC and SVM methods.
Classifier
Enc. type
Format
Accuracy
MNIST
FASHION
UCI HAR
HDC methods
Binary MM-HDC (OvO)
NL
FP32
0.979
0.885
0.948
OnlineHD
NL
FP32
0.966
0.859
0.934
Perceptron-based HDC
NL
FP32
0.966
0.858
0.933
FedHDC [ 12 , 13 ]
NL
BP/FP32
0.968
-
0.945
TABLE III: Classification performance comparison of MM-HDC with the baselines in terms of mean accuracy scores at the last epoch.
Fig. 2: Performance comparison of maximum-margin HDC (blue), linear C -SVM (orange), OnlineHD (green), and perceptron-based HDC (red) for MNIST dataset and different sizes of hypervectors D .
Hyperdimensional computing (HDC) is an approach from the cognitive science literature for solving information processing tasks using data represented as high-dimensional random vectors. The technique has a rigorous mathematical backing, and is easy to implement in energy-efficient and highly parallel hardware like FPGAs and "processing-in-memory" architectures. The effectiveness of HDC in machine learning largely depends on how raw data is mapped to high-dimensional space. In this work, we propose NysHD, a new method for constructing this mapping that is based on the Nyström method from the literature on kernel approximation. Our approach provides a simple recipe to turn any user-defined positive-semidefinite similarity function into an equivalent mapping in HDC. There is a vast literature on the design of such functions for learning problems. Our approach provides a mechanism to import them into the HDC setting, expanding the types of problems that can be tackled using HDC. Empirical evaluation against existing HDC encoding methods shows that NysHD can achieve, on average, 11% and 17% better classification accuracy on graph and string datasets respectively.
Quanling Zhao, Anthony Hitchcock Thomas, Ari Brin +2
Department of Computer Science and Engineering, UC San Diego
Hyperdimensional computing (HDC) is attractive for efficient and robust learning, but conventional inference still encodes every query independently, repeatedly paying the cost of high-dimensional projection. We introduce SupHDC, a new inference paradigm that processes multiple queries through a shared encoding computation. SupHDC assigns lightweight random slot keys, superposes the keyed queries before encoding, and uses slot-specific classifiers to recover their individual predictions. A random-feature kernel view explains why exact recovery of each hypervector is unnecessary: inference only needs to preserve the class evidence that determines the prediction. Across ten datasets, SupHDC achieves 1.39x analytical speedup with no average accuracy loss, and up to 2.08x speedup with only a 2.67 percentage-point mean accuracy loss. On a Raspberry Pi~5, it delivers 2.01x measured wall-clock speedup with a 2.26 percentage-point loss in mean prediction accuracy. SupHDC shows that high-dimensional redundancy can be used not only for robustness, but also as capacity for shared inference.
As Moore's law reaches its physical and economic limits, domain-specific approaches are increasingly employed to accelerate machine learning workloads. Hyperdimensional Computing (HDC) represents one such emerging paradigm, offering an alternative to conventional deep learning techniques. Rooted in cognitive models of computation, HDC is designed bottom-up with hardware efficiency as a first-class objective. HDC workloads map naturally to heterogeneous hardware platforms, including CPUs, GPUs, and FPGAs, as well as emerging in-memory computing technologies such as Resistive RAM (ReRAM) and Phase-Change Memory (PCM). HDC algorithms are intrinsically tolerant to noise and approximation, enabling substantial performance gains with minimal accuracy loss. In this work, we introduce ApproxHDC, a framework for automated identification and application of domain-specific approximations in HDC workloads. ApproxHDC extends the HPVM-HDC compiler infrastructure to enable retargetable compilation across diverse hardware backends, including CPUs, GPUs, and simulated ReRAM and PCM-based accelerators. The space of possible approximations is exponentially large; ApproxHDC employs efficient search and analysis to navigate it and identify high-impact configurations spanning both software and hardware levels.
Xavier Routh, Abdul Rafae Noor, Akash Kothari +4
University of Illinois Urbana-Champaign Urbana, IL, USA · University of California San Diego La Jolla, CA, USA