DPQ-HD: Post-Training Compression for Ultra-Low Power Hyperdimensional Computing

Nilesh Prasad Pandey, Shriniwas Kulkarni, David Wang, Onat Güngör, Flavio Ponzina, Tajana Rosing

Hyperdimensional Computing (HDC) is an emerging "brain-inspired" AI paradigm that maps data into massive, high-dimensional vectors (typically 10,000+ dimensions). While HDC is inherently efficient and parallelizable, it faces a significant encoding bottleneck. Maintaining high accuracy often requires high-precision projection matrices and large models that exceed the limited SRAM of edge microcontrollers like the Arduino UNO.

Existing compression solutions typically rely on expensive retraining to recover accuracy. However, retraining is often infeasible in real-world IoT scenarios where labeled data is scarce or devices must learn on-the-fly. DPQ-HD addresses this by providing an end-to-end post-training compression framework that optimizes both the encoding process and the model itself without requiring retraining.

The DPQ-HD Framework

DPQ-HD utilizes a three-stage pipeline designed to minimize memory and energy demands while preserving accuracy:

  1. Decomposition (D): The massive random projection matrix used for encoding is replaced with two smaller, low-rank matrices ($P \approx P_1 \cdot P_2$). This significantly reduces the number of Multiply-Accumulate (MAC) operations and memory needed during the initial data-to-hypervector transformation.
  2. Pruning (P): The framework identifies and removes redundant dimensions across the entire HDC pipeline. Using a small "calibration set" of just 128 samples, it finds an optimal pruning ratio that balances model size and accuracy.
  3. Quantization (Q): High-precision weights are converted to low-bitwidth integers (e.g., 3-bit or 4-bit) using an MSE-based algorithm to minimize rounding noise.
The DPQ-HD pipeline: Decomposed Projection Matrix, Pruning, and Quantization.

Crucially, the authors provide a theoretical proof (Lemma 1) showing that applying pruning before quantization ensures that the total error remains bounded, justifying this specific pipeline order.

Adaptive Online Inference

To further enhance efficiency, DPQ-HD introduces an Adaptive Online Inference Strategy. Instead of processing all 10,000 dimensions for every prediction, the system evaluates similarity in "chunks." It employs an early exit mechanism that stops computation if the confidence margin between the top two classes is sufficiently high, reducing prediction runtime by up to 76.94%.

Experimental Results

The framework was evaluated on diverse benchmarks including image classification (MNIST, CIFAR-10), speech recognition (ISOLET), and graph classification (PROTEINS, DD). The system was implemented on an ATmega328P (Arduino UNO), utilizing bit-packing to handle hardware limitations.

Impact of decomposition rank and pruning ratio on accuracy across MNIST, DD, and Fashion-MNIST datasets.

Key performance metrics include:

  • Memory Efficiency: Achieved 20-100× total memory reduction. For graph classification (DD dataset), memory usage dropped significantly with minimal accuracy loss.
  • Speed & Power: On an Arduino UNO, DPQ-HD delivered a 56× speedup in inference time compared to baseline HDC.
  • Optimization Time: By avoiding retraining, DPQ-HD is up to 100× faster to optimize than state-of-the-art methods like MicroHD or QuantHD.

Conclusion

DPQ-HD demonstrates that a synergistic combination of decomposition, pruning, and quantization can match the performance of retraining-based methods. By solving the "heavy lifting" encoding bottleneck, it enables sophisticated HDC models to run efficiently on 8-bit microcontrollers, making it a highly practical solution for "deploy-and-forget" IoT devices.

Summary updated

BibTeX
@inproceedings{pandey2025dpq,
  author = {Nilesh Prasad Pandey and Shriniwas Kulkarni and David Wang and Onat Güngör and Flavio Ponzina and Tajana Rosing},
  title = {{DPQ-HD: Post-Training Compression for Ultra-Low Power Hyperdimensional Computing}},
  booktitle = {ACM Great Lakes Symposium on VLSI},
  year = {2025},
  doi = {10.1145/3716368.3735224},
}
Figure