Abstract
Hyperdimensional Computing (HDC) offers a low-power alternative to traditional machine learning, but it faces a significant "memory wall" when processing high-cardinality data. This paper introduces streaming encoding algorithms based on hashing techniques, such as Bloom filters, which eliminate the need for massive lookup tables. These algorithms enable HDC to scale to datasets with hundreds of millions of features while achieving substantial speedups on FPGA and In-Memory hardware.
Introduction
Hyperdimensional Computing (HDC) is an emerging paradigm that represents data as high-dimensional, low-precision vectors, typically thousands of dimensions wide. While HDC is highly efficient for hardware implementation, its primary scalability bottleneck lies in the encoding function. Traditionally, representing categorical data requires an "item-memory" or codebook—a massive table storing a unique random vector for every possible symbol. For datasets with hundreds of millions of unique symbols, this leads to a memory explosion that renders HDC impractical for large-scale applications. This research aims to transition HDC from small-scale tasks to massive datasets by generating encodings on-the-fly without the need for a stored codebook.
Methodology: Streaming Encoding
The authors propose hash-based encoding techniques inspired by streaming algorithms to replace traditional codebooks:
- Categorical Encoding (Bloom Filter Approach): Instead of looking up a vector in a table, the system uses $k$ independent hash functions to map a symbol directly to $k$ indices in a $d$-dimensional binary vector. This is essentially a Bloom filter used as an HDC encoding.
- Numeric Encoding (Sparse Projections): For continuous data, the Sparse Johnson-Lindenstrauss Transform (SJLT) is employed. This uses hashing to create a sparse, low-precision embedding matrix that preserves distances between points without materializing the full matrix.
- Theoretical Framework: The paper defines a "$\Delta(d)$-Dot-Product Preserving Encoding" and formally proves that if an encoding preserves dot products within a certain error bound, it also preserves the linear separability of the data, ensuring that simple classifiers remain effective in hyperdimensional space.
Hardware-Algorithm Co-design
To accelerate these hashing operations, the researchers developed custom architectures for both FPGAs (using Xilinx HLS) and Processing-in-Memory (PIM) using ReRAM crossbars. A key challenge in parallel hardware is random memory writes from hashing; the authors addressed this by partitioning hypervectors, allowing for high-throughput, parallel encoding. This co-design approach ensures that the computational efficiency of hashing is fully realized in hardware.
Evaluation and Results
The approach was evaluated on the Criteo click-through-rate (CTR) prediction dataset, a gold standard for high-cardinality categorical data. The full dataset contains 4.3 billion observations and 190 million unique symbols, totaling 1 TB.
- Scalability: Unlike traditional codebook-based HDC, which fails on the Criteo dataset due to memory constraints, the hash-based approach maintained constant performance regardless of symbol count. Memory requirements for the alphabet scale logarithmically rather than linearly.
- Accuracy: The models achieved a median AUC of ~0.77. While slightly lower than state-of-the-art Deep Learning models, the HDC models required only ~20,000 trainable parameters.
- Efficiency: The FPGA implementation was 155x faster and ~500x more energy-efficient than a high-end CPU. The PIM architecture achieved a 1177x speedup for the encoding step.
Insights and Future Work
A significant finding is that sparse hash-based encodings act as a form of regularization, reducing overfitting because only a tiny fraction of model parameters are updated for any given training example.
Future research will focus on implementing the learning step (gradient updates) within PIM architectures, which is currently limited by data movement requirements. Additionally, the authors aim to address data imbalance in massive datasets and explore hybrid sparsity methods to further optimize memory and computation.
Summary updated