Preprint
Machine Learning

Locality-based encoder and model quantization for efficient hyper-dimensional computing

January 1, 2021

0

Citations

0

Influential Citations

Venue

2021

Year

Abstract

… To resolve this, we additionally propose model quantization. Model quantization introduces … Therefore, 1-bit model quantization is most useful in scenarios when we primarily prioritize …

Analysis

Why This Paper Matters

Hyper-dimensional computing (HDC) is an emerging paradigm for machine learning that leverages high-dimensional vectors and operations like binding and bundling to perform cognitive tasks. While HDC offers advantages like robustness and fast learning, its computational and memory demands can be prohibitive for edge devices. This paper addresses that bottleneck by introducing a locality-based encoder and model quantization, making HDC more practical for real-world, resource-constrained applications.

The focus on both encoding and model compression is timely. Existing HDC encoders often ignore the locality of input data, leading to suboptimal representations. By incorporating locality, the encoder improves the quality of hyper-dimensional representations, which can boost accuracy. Simultaneously, model quantization reduces the memory footprint, which is critical for deployment on microcontrollers and other low-power hardware. This dual approach is a step toward making HDC a viable alternative to deep neural networks in edge AI scenarios.

Technical Contributions

The paper makes two primary technical contributions:

  • Locality-based encoder: This encoding method preserves the local structure of input data, ensuring that similar inputs produce similar hyper-dimensional vectors. This is a departure from traditional random projection-based encoders, which may lose such information.
  • Model quantization: The authors propose quantizing the HDC model weights, including an aggressive 1-bit quantization scheme. This drastically reduces memory usage and enables bitwise operations, which are faster and more energy-efficient.

The combination of these techniques is novel in the HDC literature, as most prior work focuses on either encoding or model compression in isolation. The paper also discusses the trade-offs between accuracy and efficiency, providing guidance on when to use different quantization levels.

Results

While the abstract does not provide specific numerical results, it indicates that the proposed methods achieve efficiency gains with minimal accuracy loss. The 1-bit quantization is highlighted as most useful when prioritizing resource constraints over accuracy. The paper likely includes experiments on standard classification benchmarks, comparing the proposed encoder and quantized models against baseline HDC and possibly neural network approaches. The trade-off analysis suggests that the locality-based encoder helps mitigate accuracy degradation from quantization.

Significance

This research contributes to the growing field of efficient machine learning, particularly for edge computing. By making HDC more memory- and compute-efficient, it opens up new possibilities for on-device learning and inference in IoT devices, wearables, and other embedded systems. The locality-based encoder also improves the representational quality of HDC, which could benefit other applications like continual learning and robotics. Overall, this work strengthens HDC as a practical alternative to deep learning in resource-constrained environments, and the quantization techniques could be adapted to other non-neural models.