Algorithm-Hardware Co-Design for Efficient Brain-Inspired Hyperdimensional Learning on Edge (Extended Abstract)

Yang Ni, Yeseong Kim, Tajana Rosing, Mohsen Imani

Abstract

Hyperdimensional Computing (HDC) is a brain-inspired paradigm that uses high-dimensional vectors to represent data, offering robustness and training efficiency suitable for edge devices. However, the absence of standardized hardware support often limits its real-world application. This paper proposes an algorithm-hardware co-design framework to deploy HDC on off-the-shelf Google Edge TPUs. By re-interpreting HDC as a "hyper-wide" neural network and utilizing bootstrap aggregating (bagging), the framework achieves significant performance gains. Evaluation across five benchmarks shows up to 19.4× faster training and 8.9× faster inference compared to standard embedded processors.

Introduction

Deep Neural Networks (DNNs) are often too resource-intensive for battery-powered Internet of Things (IoT) devices. These edge devices require real-time learning capabilities under strict memory and power constraints. Hyperdimensional Computing (HDC) serves as a promising alternative, utilizing massive vectors (10,000+ dimensions) to represent information. While HDC is naturally robust to noise, its implementation has historically relied on expensive, custom-designed ASICs or FPGAs. This work addresses the gap by mapping HDC onto widely available DNN accelerators like the Google Edge TPU.

Methodology

The proposed framework employs a co-design approach to map HDC operations onto the Google Edge TPU, a commercially available DNN accelerator.

  1. HDC as a Neural Network: Core HDC operations—encoding data into hypervectors and performing associative searches—are mapped to large-scale Multiply-Accumulate (MAC) operations within a three-layer "hyper-wide" neural network in TensorFlow. This allows HDC to run seamlessly on the Edge TPU.
  2. Training with Bagging: Since the Edge TPU is optimized for inference rather than weight updates, training is performed on the host CPU. To optimize this, the authors use Bootstrap Aggregating (Bagging). Instead of training one massive model, they train multiple smaller "sub-models" on subsets of the data, significantly reducing the computational load on the host CPU.
  3. Single-Pass Inference: To maintain efficiency, sub-model weights are stacked into a single inference model. This provides the accuracy benefits of an ensemble with the speed of a single model, avoiding the overhead of loading multiple models onto the TPU.
Figure 1: Overview of the proposed HDC framework, illustrating the encoding, training via bagging, and single-model inference stages.

Experimental Evaluation

The framework was evaluated using five benchmarks: FACE (face recognition), ISOLET (speech recognition), UCIHAR (activity recognition), MNIST (digit recognition), and PAMAP2 (physical activity monitoring).

Compared to a Raspberry Pi 3, the framework demonstrated a 19.4× speedup in training and an 8.9× speedup in inference. Notably, the MNIST dataset achieved a 9.37× encoding speedup. The bagging approach also maintained or improved accuracy; in cases like ISOLET and PAMAP2, the ensemble model outperformed a single, fully-trained model.

Figure 4: Training runtime breakdown across different datasets, comparing CPU, standard TPU mapping, and the proposed TPU with bagging (TPU_B).

Discussion and Conclusion

The core insight of this research is that custom hardware is unnecessary if HDC can be represented as a standard neural network, leveraging massive industry investment in DNN accelerators. Bagging serves as a critical dimensionality reduction tool, making the training load on the host CPU manageable.

However, limitations remain. The host CPU is still a potential bottleneck for weight updates because the Edge TPU lacks support for the element-wise operations required for training. Additionally, performance gains are less dramatic for datasets with few features, such as PAMAP2, where the TPU's parallel processing capabilities are not fully saturated. Future work may explore other edge accelerators or hybrid training methods to further offload mathematical tasks from the host processor.

Summary updated

BibTeX
@inproceedings{ni2023algorithm,
  author = {Yang Ni and Yeseong Kim and Tajana Rosing and Mohsen Imani},
  title = {{Algorithm-Hardware Co-Design for Efficient Brain-Inspired Hyperdimensional Learning on Edge (Extended Abstract)}},
  booktitle = {International Joint Conference on Artificial Intelligence},
  year = {2023},
  doi = {10.24963/ijcai.2023/723},
}
Figure