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

A Brain-Inspired Low-Dimensional Computing Classifier for Inference on Tiny Devices

Shijin Duan, Xiaolin Xu, Shaolei RenarXiv 2022 · DOI

Introduction

As artificial intelligence moves toward the "Extreme Edge"—encompassing tiny IoT sensors, wearables, and medical implants—the computational demands of standard Deep Neural Networks (DNNs) become prohibitive. These devices often lack the memory and power required for intensive floating-point operations. Hyperdimensional Computing (HDC) has emerged as a brain-inspired alternative, representing data as massive vectors (hypervectors) of thousands of bits. While HDC is hardware-friendly due to its reliance on simple bit-wise operations like XOR and bundling, it suffers from two primary bottlenecks: the "hyper" problem (excessive memory footprint) and heuristic training (lower accuracy compared to optimized neural networks).

This paper introduces Low-Dimensional Computing (LDC), a streamlined evolution of HDC that addresses these limitations. By mapping the HDC process to an equivalent neural network architecture and employing principled training, LDC achieves higher accuracy than state-of-the-art models while reducing vector dimensions by orders of magnitude (e.g., from 8,000 bits down to just 64).

Methodology: Bridging HDC and Neural Networks

The core innovation of LDC is the mapping of the traditional HDC pipeline into an equivalent Binarized Neural Network (BNN) architecture. This allows for the use of standard gradient-based optimization (e.g., backpropagation) to learn optimal vectors rather than relying on random assignment.

Overview of the HDC/LDC workflow, illustrating the transition from principled training to binary inference.

The LDC Architecture

The LDC architecture consists of three primary components designed to mimic and optimize the HDC workflow:

  1. Value Mapping (ValueBox): A small, non-binary neural network component that learns to map input features into specific value vectors. Unlike traditional HDC, which uses fixed or randomly generated vectors, the ValueBox optimizes these representations during training.
  2. Feature Layer: This component acts as a structurally sparse BNN layer. It binds the learned values to specific features, effectively replacing the traditional HDC Hadamard product with a more efficient, learned representation.
  3. Class Layer: The final layer serves as the "associative memory." It compares the generated query vector to learned class centroids to produce a classification label.
The LDC architecture components: Value Mapping, Feature Layer, and Class Layer.

Workflow and Deployment

The LDC process follows a three-step workflow:

  • Principled Training: The model is initially trained offline as a neural network using the Adam optimizer and CrossEntropy loss.
  • Vector Extraction: Once optimized, the weights are extracted as low-dimensional binary vectors.
  • Binary Inference: For deployment on resource-constrained devices, the model discards the neural network's floating-point math and reverts to purely bit-wise operations (XOR and popcount). This maintains the hardware efficiency of HDC while benefiting from the reduced dimensionality.

Experimental Results

The authors evaluated LDC across five diverse datasets: MNIST, Fashion-MNIST, UCIHAR (human activity recognition), ISOLET (speech recognition), and CTG (medical heart rate analysis).

When implemented on an FPGA (Zynq UltraScale+), LDC demonstrated dramatic improvements over state-of-the-art (SOTA) HDC models. For instance, on the MNIST dataset:

  • Accuracy: LDC achieved 92.72%, significantly higher than the 87.38% achieved by SOTA HDC.
  • Efficiency: The model size was reduced from 1050 KB to just 6.48 KB.
  • Performance: Inference latency dropped from 499 microseconds to 3.99 microseconds, and energy consumption per inference was reduced by over 500x (64 nJ vs 36,926 nJ).

Discussion and Conclusion

LDC demonstrates that "quality over quantity" is a viable strategy for brain-inspired computing. By optimizing vectors through training, LDC achieves better class separation with 125x fewer bits than traditional HDC. Furthermore, the research bridges the gap between HDC and mainstream deep learning, treating HDC as a hardware-efficient subset of Binarized Neural Networks.

Despite these gains, challenges remain. The current training process requires offline GPU resources, which may limit "on-line" learning capabilities. Additionally, further research is needed to determine how LDC scales to higher-resolution data or more complex natural language tasks. Nonetheless, LDC represents a significant step forward in enabling sophisticated AI on the tiniest of devices.

Summary updated

BibTeX
@misc{duan2022brain,
  author = {Shijin Duan and Xiaolin Xu and Shaolei Ren},
  title = {{A Brain-Inspired Low-Dimensional Computing Classifier for Inference on Tiny Devices}},
  year = {2022},
  eprint = {2203.04894},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2203.04894},
}
Figure