Skip to main content
QUICK REVIEW

[Paper Review] Hyperdimensional Computing vs. Neural Networks: Comparing Architecture and Learning Process

Dongning Ma, Xun Jiao|arXiv (Cornell University)|Jul 24, 2022
Ferroelectric and Negative Capacitance DevicesEngineering5 citations
TL;DR

This paper proposes a novel method to derive Hyperdimensional Computing (HDC) models from a pre-trained two-layer neural network, demonstrating that such derived HDC models achieve up to 21% higher accuracy than conventional HDC baselines and 5% higher than state-of-the-art learning-based HDC models on MNIST and CIFAR-10. The approach leverages the neural network's weights as HDC memory elements, bridging HDC and neural network architectures to enhance learning performance while preserving energy efficiency.

ABSTRACT

Hyperdimensional Computing (HDC) has obtained abundant attention as an emerging non von Neumann computing paradigm. Inspired by the way human brain functions, HDC leverages high dimensional patterns to perform learning tasks. Compared to neural networks, HDC has shown advantages such as energy efficiency and smaller model size, but sub-par learning capabilities in sophisticated applications. Recently, researchers have observed when combined with neural network components, HDC can achieve better performance than conventional HDC models. This motivates us to explore the deeper insights behind theoretical foundations of HDC, particularly the connection and differences with neural networks. In this paper, we make a comparative study between HDC and neural network to provide a different angle where HDC can be derived from an extremely compact neural network trained upfront. Experimental results show such neural network-derived HDC model can achieve up to 21% and 5% accuracy increase from conventional and learning-based HDC models respectively. This paper aims to provide more insights and shed lights on future directions for researches on this popular emerging learning scheme.

Motivation & Objective

  • To investigate the theoretical and practical connections between Hyperdimensional Computing (HDC) and neural networks.
  • To address the limited learning capability of conventional HDC models in complex tasks, such as image classification on CIFAR-10.
  • To explore whether HDC models can be derived from a pre-trained neural network to improve performance while maintaining energy efficiency and small model size.
  • To provide a new perspective on HDC by framing it as a compact neural network, enabling better optimization and scalability.

Proposed method

  • Train a two-layer fully connected neural network with input and classifier layers on MNIST and CIFAR-10 datasets.
  • Extract the input layer weights (10000×768) as the item memory in HDC, where each column represents a hypervector (HV).
  • Extract the classifier layer weights (10×10000) as the associative memory, where each row represents a class HV.
  • Transform the trained neural network into an HDC model by using the extracted weights as memory elements, preserving the same inference computation.
  • Use HV operations (addition, multiplication, permutation) for encoding and inference, with no backpropagation during HDC inference.
  • Train the neural network using standard backpropagation with gradient descent, then freeze and convert the weights into HDC memory structures.
Figure 1: Architectural Comparison between HDC and neural network
Figure 1: Architectural Comparison between HDC and neural network

Experimental results

Research questions

  • RQ1How do the architectural and learning process similarities between HDC and neural networks enable performance improvements in HDC?
  • RQ2Can a pre-trained neural network be used to generate a high-performing HDC model that outperforms conventional HDC baselines?
  • RQ3To what extent does deriving HDC from a compact neural network improve accuracy on complex datasets like CIFAR-10?
  • RQ4What is the trade-off between training cost and inference efficiency when transforming a neural network into an HDC model?

Key findings

  • The HDC model derived from a pre-trained two-layer neural network achieved 96.71% accuracy on MNIST, representing a 5.78% improvement over the baseline HDC-Base (90.93%) and a 2.03% improvement over the SOTA LeHDC model (94.74%).
  • On the more complex CIFAR-10 dataset, the derived HDC model reached 51.08% accuracy, a 20.8% improvement over the HDC-Base baseline (30.28%) and a 5.0% improvement over the LeHDC model (46.10%).
  • The derived HDC model maintains the same inference computation cost as the original HDC-Base, with all additional overhead concentrated in the initial neural network training phase.
  • The training of the underlying neural network was efficient, taking only 4 to 7 minutes to converge on the reported accuracy, even when trained from scratch.
  • The results confirm that the learning capability of HDC is fundamentally constrained by the architecture of the underlying neural network, explaining why shallow models struggle on complex tasks.
  • The study demonstrates that HDC can be viewed as a compact neural network with holographic representations, offering a new pathway to optimize HDC through neural network-inspired training.
Figure 2: Derive an HDC model from a trained neural network.
Figure 2: Derive an HDC model from a trained neural network.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.