LogHD: Robust Compression of Hyperdimensional Classifiers via Logarithmic Class-Axis Reduction

Sanggeon Yun, Hyunwoo Oh, Ryozo Masukawa, Pietro Mercati, Nathaniel D. Bastian, Mohsen Imani

TL;DR

LogHD introduces a novel "class-axis" compression for Hyperdimensional Computing (HDC) that reduces memory requirements logarithmically relative to the number of classes. By keeping the vector dimensionality high while storing fewer "bundle" vectors, it achieves up to 498× energy efficiency over CPUs and maintains accuracy at 3× higher hardware noise levels compared to traditional compression methods.

What Problem Does This Paper Address?

Hyperdimensional Computing (HDC) is a brain-inspired AI framework that represents data using massive vectors (often $D=10,000$ dimensions). It is beloved for being lightweight and incredibly robust to hardware errors. However, the standard design requires storing one "prototype" vector for every single class. If you have 1,000 classes, you need 1,000 massive vectors—a memory footprint of $O(CD)$.

To save space, previous researchers tried "feature-axis" compression: making the vectors shorter or sparser. The problem? HDC’s robustness comes directly from its high dimensionality ($D$). When you shrink $D$, you lose the "blessing of dimensionality," making the system vulnerable to bit-flips and noise in low-power hardware like analog or near-memory accelerators. The authors ask: Can we compress the model without shrinking the dimensionality of the vectors?

Methods

The authors propose LogHD, which shifts the focus from shrinking the vectors to shrinking the number of vectors stored.

  1. Logarithmic Bundling: Instead of $C$ prototypes for $C$ classes, LogHD stores only $n \approx \log_k C$ "bundle" hypervectors. For example, if you have 26 classes, you might only need 3 bundles.
  2. Codebook Assignment: Each class is assigned a unique $k$-ary code. This code determines how much that class's information contributes to each of the $n$ bundles during training.
  3. Activation Profiling: During inference, a query vector is compared against the $n$ bundles to produce an "activation vector." The system then looks for the class whose pre-calculated "profile" most closely matches this activation vector in a lower-dimensional space.
  4. Iterative Refinement: To fix the "cross-talk" (interference) caused by mixing multiple classes into the same bundles, the authors use a light-weight, perceptron-style update to nudge the bundles toward ideal targets.
  5. Hybrid Approach: LogHD can be combined with existing sparsification (like SparseHD) to provide a tunable trade-off between extreme memory savings and maximum robustness.

Datasets

The researchers evaluated LogHD on four standard UCI machine learning benchmarks:

  • ISOLET: Voice recognition (26 classes).
  • UCIHAR: Mobile-based human activity recognition (12 classes).
  • PAMAP2: IMU-based physical activity monitoring (5 classes).
  • PAGE: Page layout block classification (5 classes).

Key Insights and Ideas

  • Preserving the "Blessing of Dimensionality": By keeping $D$ large (e.g., 10,000), LogHD ensures that random bit-flips in memory are "averaged out," maintaining the inherent error tolerance of HDC.
  • Class-Axis vs. Feature-Axis: The paper demonstrates that it is much more efficient to store a few high-dimensional vectors than many low-dimensional ones. High-D vectors are "orthogonality-rich," allowing them to pack more information with less interference.
  • Hardware-Algorithm Co-design: LogHD is specifically designed for emerging hardware (like ASIC and in-memory computing) where memory access is the primary bottleneck. Reducing the number of vectors directly reduces the number of expensive memory fetches and comparisons.

Key Results

  • Robustness: At the same memory budget, LogHD sustains target accuracy at 2.5–3.0× higher bit-flip rates than feature-axis compression (SparseHD).
  • Efficiency (ASIC): A custom ASIC implementation of LogHD achieved:
  • 498× higher energy efficiency and 62.6× speedup over an AMD Ryzen 9 CPU.
  • 4.06× better energy efficiency and 2.19× faster inference than the state-of-the-art SparseHD ASIC.
  • Memory Scaling: For a 26-class problem, LogHD required 8.7× fewer stored prototypes than the standard approach without altering the encoding process.

Limitations and Future Work

The authors acknowledge a few areas for further exploration:

  • Theoretical Bounds: The paper lacks a formal mathematical analysis of how class-axis reduction interacts with vector capacity as the number of classes ($C$) grows very large (e.g., thousands of classes).
  • Complex Fault Models: While they tested random bit-flips, they haven't yet explored more complex hardware non-idealities like "stuck-at" faults or specific analog noise patterns found in RRAM-based devices.
  • Scaling to Large-Scale Vision: The current evaluation focuses on relatively small-to-medium datasets; testing on massive-scale classification remains a future goal.

Summary updated

BibTeX
@inproceedings{yun2026loghd,
  author = {Sanggeon Yun and Hyunwoo Oh and Ryozo Masukawa and Pietro Mercati and Nathaniel D. Bastian and Mohsen Imani},
  title = {{LogHD: Robust Compression of Hyperdimensional Classifiers via Logarithmic Class-Axis Reduction}},
  booktitle = {DATE},
  year = {2026},
  doi = {10.23919/date69613.2026.11539277},
}
Figure