[Paper Review] A Brain-Inspired Low-Dimensional Computing Classifier for Inference on Tiny Devices
This paper proposes a brain-inspired low-dimensional computing (LDC) classifier that replaces traditional hyperdimensional computing (HDC) with a principled, differentiable training approach using an equivalent neural network, achieving significantly higher inference accuracy while reducing model size, latency, and energy consumption by orders of magnitude—demonstrated with 6.48 KB model size, 3.99 μs latency, and 64 nJ energy on MNIST, outperforming SOTA HDC models.
By mimicking brain-like cognition and exploiting parallelism, hyperdimensional computing (HDC) classifiers have been emerging as a lightweight framework to achieve efficient on-device inference. Nonetheless, they have two fundamental drawbacks, heuristic training process and ultra-high dimension, which result in sub-optimal inference accuracy and large model sizes beyond the capability of tiny devices with stringent resource constraints. In this paper, we address these fundamental drawbacks and propose a low-dimensional computing (LDC) alternative. Specifically, by mapping our LDC classifier into an equivalent neural network, we optimize our model using a principled training approach. Most importantly, we can improve the inference accuracy while successfully reducing the ultra-high dimension of existing HDC models by orders of magnitude (e.g., 8000 vs. 4/64). We run experiments to evaluate our LDC classifier by considering different datasets for inference on tiny devices, and also implement different models on an FPGA platform for acceleration. The results highlight that our LDC classifier offers an overwhelming advantage over the existing brain-inspired HDC models and is particularly suitable for inference on tiny devices.
Motivation & Objective
- Address the fundamental limitations of hyperdimensional computing (HDC) in tiny device inference: ultra-high dimensionality and heuristic training.
- Overcome sub-optimal inference accuracy and prohibitive model sizes in existing HDC models for resource-constrained edge devices.
- Develop a low-dimensional computing (LDC) framework that maintains brain-inspired cognition while enabling efficient hardware deployment.
- Enable end-to-end, differentiable training of LDC models using a neural network mapping, replacing heuristic hypervector averaging.
- Achieve superior performance in accuracy, model size, latency, and energy efficiency compared to state-of-the-art HDC models.
Proposed method
- Map the LDC classifier’s inference process into an equivalent neural network architecture composed of a non-binary followed by a binary neural network (BNN).
- Optimize the model weights through a differentiable, loss-function-guided training process, enabling principled learning instead of heuristic averaging.
- Extract optimized low-dimensional vectors (e.g., 4/64 bits) from the trained network to represent features and classes, replacing high-dimensional hypervectors (e.g., 8000+ bits).
- Use normalized Hamming distance as the similarity metric for classification, equivalent to cosine similarity on bipolar vectors.
- Implement the LDC model on FPGA for hardware acceleration under strict resource constraints.
- Apply majority voting across multiple LDC classifiers to enhance robustness without significantly increasing model size.
Experimental results
Research questions
- RQ1Can a low-dimensional, differentiable alternative to HDC be designed that maintains brain-inspired cognition while improving inference accuracy?
- RQ2How does principled, loss-based training of low-dimensional vectors compare to heuristic hypervector averaging in HDC models?
- RQ3To what extent can model size, inference latency, and energy consumption be reduced in HDC-like models through dimensionality reduction and optimized training?
- RQ4Can the LDC classifier achieve higher accuracy than SOTA HDC models while operating efficiently on tiny devices with limited memory and compute?
- RQ5How does the LDC framework perform across diverse datasets (e.g., MNIST, cardiotocography) under real hardware constraints?
Key findings
- The LDC classifier achieves 92.72% accuracy on MNIST, significantly outperforming the SOTA HDC model (87.38%).
- The LDC model has a compact size of only 6.48 KB on MNIST, reducing model size by over 100x compared to SOTA HDC models.
- Inference latency is reduced to 3.99 microseconds and energy consumption to 64 nanojoules on MNIST, both over 100x lower than SOTA HDC models.
- For cardiotocography, the LDC classifier achieves 90.50% accuracy with a model size of 0.32 KB, latency of 0.14 μs, and energy of 0.945 nJ.
- The LDC framework enables hardware acceleration on FPGA with minimal resource usage, demonstrating strong suitability for tiny IoT devices.
- The use of a differentiable training process leads to better feature and class vector representations than heuristic methods, improving robustness and accuracy.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.