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

SHEARer: Highly-Efficient Hyperdimensional Computing by Software-Hardware Enabled Multifold Approximation

Behnam Khaleghi, Sahand Salamat, Anthony Thomas, Fatemeh Asgarinejad, Yeseong Kim, Tajana Rosing

Executive Summary

SHEARer is a hardware-software co-design framework that dramatically accelerates Hyperdimensional Computing (HD) by introducing "prudent approximations" directly into the data encoding process. By leveraging the inherent error resiliency of HD, the authors achieved up to a 104,904× throughput boost and 56,044× energy savings compared to edge devices like the Raspberry Pi, with only a marginal (~1%) drop in classification accuracy.

Introduction: The Encoding Bottleneck

Hyperdimensional Computing (HD) represents a paradigm shift in machine learning, drawing inspiration from the brain's ability to process information using massive, high-dimensional vectors. While HD offers inherent robustness and massive parallelism, its practical deployment on edge devices is often hindered by the computational cost of encoding.

Encoding is the critical first step where low-dimensional sensor data—such as audio signals or image pixels—is mapped into a high-dimensional space (typically 10,000+ dimensions). In many real-world scenarios, this encoding phase can consume up to 10 times more resources than the actual training or inference tasks. Traditional hardware accelerators attempt to perform these operations with full precision before quantizing the results, leading to significant waste in power and silicon area.

The standard HD encoding workflow involves mapping values and indices to high-dimensional vectors, followed by binding and bundling operations.

The SHEARer Framework: Prudent Approximations

To address this bottleneck, the authors introduce SHEARer, a framework that leverages "prudent approximations." By exploiting the inherent error resiliency of HD—where flipping a small percentage of bits often has negligible impact on classification—SHEARer aggressively optimizes the hardware footprint of the encoding process.

The framework employs three primary approximation techniques to streamline the "popcount" (bit-counting) operations at the heart of HD encoding:

  1. Local Majority (MAJ): Instead of a full summation of feature bits, SHEARer uses FPGA Look-Up Tables (LUTs) to perform a majority vote. By passing only the majority bit to subsequent stages, the size of the adder tree is reduced by up to 6×.
  2. Input Overfeeding: To maximize resource utilization, SHEARer "overfeeds" LUTs with more inputs than their standard design capacity. This results in a quantized sum that requires 40% fewer resources while maintaining sufficient information for the HD model.
  3. Truncated Nodes: The architecture aggressively discards Least Significant Bits (LSBs) during intermediate stages of the adder tree. Given the redundancy of hypervectors, these fine-grained details are often unnecessary for accurate classification.
SHEARer utilizes various hardware-level approximations, including majority gates (MAJ) and truncated adder nodes, to reduce logic utilization.

Hardware-Software Co-Design

The efficiency of SHEARer stems from its integrated approach. On the hardware side, the design is BRAM-oriented. Rather than relying on logic-heavy multiplexers, it utilizes on-chip memory (BRAM) to store level hypervectors. Furthermore, it generates position hypervectors on the fly using a "seed" vector and rotations, significantly reducing memory overhead.

Crucially, these hardware shortcuts are supported by a Software Layer. The authors developed a Python-based framework that emulates these specific hardware approximations during the training phase. This ensures that the HD model "learns" to operate effectively within the constraints of the approximated hardware, preserving high accuracy despite the mathematical simplifications.

Evaluation and Key Results

SHEARer was evaluated against diverse benchmarks, including voice recognition (ISOLET), activity recognition (UCI HAR), face detection (Caltech-256), and digit recognition (MNIST). The results demonstrate a transformative leap in efficiency:

  • Performance: SHEARer achieved a staggering 104,904× throughput boost compared to a Raspberry Pi 3 and remained 15.7× faster than a high-end NVIDIA GTX 1080 Ti GPU.
  • Efficiency: Energy savings reached up to 56,044× over edge devices and 301× over the GPU.
  • Resource Savings: The "MAJ-2" (two-stage majority) technique reduced required FPGA logic by 82.8%.
  • Accuracy: Despite these aggressive approximations, the average accuracy drop across all datasets was limited to approximately 1.0%.

Conclusion

SHEARer proves that in the context of Hyperdimensional Computing, approximation is a powerful feature rather than a limitation. By co-optimizing hardware logic with software training, SHEARer enables high-performance HD computing on resource-constrained edge devices, paving the way for more efficient brain-inspired AI applications.

Summary updated

BibTeX
@inproceedings{khaleghi2020shearer,
  author = {Behnam Khaleghi and Sahand Salamat and Anthony Thomas and Fatemeh Asgarinejad and Yeseong Kim and Tajana Rosing},
  title = {{SHEARer: Highly-Efficient Hyperdimensional Computing by Software-Hardware Enabled Multifold Approximation}},
  booktitle = {ISLPED},
  year = {2020},
  url = {https://openreview.net/forum?id=ugscuSRKlxT},
}
Figure