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

Learning from Hypervectors: A Survey on Hypervector Encoding

Sercan Aygun, Mehran Shoushtari Moghadam, M. Hassan Najafi, Mohsen ImaniarXiv 2023

Abstract

Hyperdimensional computing (HDC) is an emerging computing paradigm that imitates the brain's structure to offer a powerful and efficient processing and learning model. In HDC, the data are encoded with long vectors, called hypervectors, typically with a length of 1K to 10K. The literature provides several encoding techniques to generate orthogonal or correlated hypervectors, depending on the intended application. The existing surveys in the literature often focus on the overall aspects of HDC systems, including system inputs, primary computations, and final outputs. However, this study takes a more specific approach. It zeroes in on the HDC system input and the generation of hypervectors, directly influencing the hypervector encoding process. This survey brings together various methods for hypervector generation from different studies and explores the limitations, challenges, and potential benefits they entail. Through a comprehensive exploration of this survey, readers will acquire a profound understanding of various encoding types in HDC and gain insights into the intricate process of hypervector generation for diverse applications.

Introduction

Hyperdimensional Computing (HDC) is a brain-inspired paradigm that processes data using massive vectors (typically 1,000 to 10,000 bits long). While the community has spent years optimizing the "middle" of the pipeline—the arithmetic operations and classification—the "beginning" (how we turn raw data into these vectors) has often been treated as a black box.

Most researchers simply use pseudo-random numbers to initialize their vectors. However, the quality of this initial mapping directly dictates the system's ultimate accuracy and robustness. This survey addresses the gap in comprehensive guidance on how different encoding styles and sources of randomness impact performance across diverse applications like robotics, genomics, and medical diagnostics.

The HDC Encoding Landscape

The paper provides a taxonomic breakdown of the HDC encoding landscape, focusing on how raw data or features are mapped into the hyperdimensional space.

The HDC process: from raw data encoding to associative memory and similarity checking.
  • Structural Mapping: Data is transformed into sparse, dense, binary, or bipolar hypervectors.
  • Encoding Strategies: Standard techniques include Record-based encoding (summing position and level vectors) and N-gram encoding (using permutations to capture sequences).
  • Inter-computing Synergy: The relationship between HDC and Stochastic Computing (SC) suggests that hardware-efficient bit-stream generation techniques from SC can be leveraged to create better hypervectors. Both represent data as long, unweighted bitstreams, making them extremely resistant to hardware bit-flips.

Novel Perspectives: Low Discrepancy (LD) Sequences

A key contribution of this work is the introduction of Low Discrepancy (LD) sequences (e.g., Sobol, Halton, and Van der Corput) as a superior alternative to standard pseudo-randomness. These sequences cover the vector space more uniformly, ensuring better orthogonality between unrelated data points.

Visualizing the uniformity of Low Discrepancy sequences compared to standard random distributions.

While pseudo-randomness works for massive vectors ($D=10,000$), it fails as vector size shrinks. Using LD sequences like Sobol allows HDC to maintain high accuracy even at much lower dimensions (e.g., $D=256$), which is vital for resource-constrained edge sensors. Furthermore, the Van der Corput (VDC) sequence is significantly easier to implement in hardware using simple counters compared to Sobol or Halton sequences.

Key Results

  • Accuracy Boost: In language classification tasks at low dimensions ($D=256$), LD-based encoding achieved a 79.03% accuracy compared to only 69.24% for standard pseudo-random encoding.
  • Hardware Savings: The VDC sequence generator demonstrated a 3.5x to 9.58x improvement in area and power efficiency compared to more complex Sobol and Halton generators.
  • SOTA Comparison: On the CIFAR-10 dataset, integrating HDC with a pre-trained VGG11 model reached 90.97% accuracy, proving that HDC can compete with deep learning when the encoding is handled correctly.

Limitations and Future Work

Despite these advancements, several challenges remain. Most current methods rely on pre-allocated "seed" vectors; generating these on-the-fly for real-time, online learning remains a significant hardware challenge. Additionally, there is a need for more rigorous, automated ways to measure the quality of orthogonality after complex transformations. Finally, while HDC has proven effective for text and 1D signals, high-efficiency encoding for video data remains an open research frontier.

Summary updated

BibTeX
@misc{aygun2023learning,
  author = {Sercan Aygun and Mehran Shoushtari Moghadam and M. Hassan Najafi and Mohsen Imani},
  title = {{Learning from Hypervectors: A Survey on Hypervector Encoding}},
  year = {2023},
  eprint = {2308.00685},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2308.00685},
}
Figure