Robust Reasoning and Learning with Brain-Inspired Representations under Hardware-Induced Nonlinearities

William Youngwoo Chung, Hamza Errahmouni Barkam, Tamoghno Das, Mohsen Imani

TL;DR

This paper introduces a hardware-aware optimization framework for Hyperdimensional Computing (HDC) that makes brain-inspired AI models robust to the nonlinearities and noise inherent in emerging Compute-in-Memory (CIM) hardware. By jointly optimizing the encoding of data and the similarity search process, the framework significantly improves accuracy and preserves the interpretability of HDC, enabling efficient and reliable AI on next-generation hardware.

What Problem Does This Paper Address?

Traditional machine learning, especially deep learning, relies on precise arithmetic and assumes reliable hardware. However, as semiconductor devices shrink, they become more variable and prone to noise and nonlinearities. Emerging Compute-in-Memory (CIM) architectures, which aim to reduce data movement bottlenecks and improve energy efficiency, exacerbate these issues. While Hyperdimensional Computing (HDC) is known for its inherent robustness to noise, existing HDC methods often assume ideal hardware. This paper addresses the critical challenge of making HDC models, particularly those used for graph-based reasoning and classification, perform reliably on CIM hardware that introduces significant nonlinear distortions and variability. Without this, the promise of energy-efficient, brain-inspired AI on edge devices remains unfulfilled.

Methods

The core contribution is a hardware-aware optimization framework that tackles hardware-induced nonlinearities by jointly optimizing the encoding and similarity search modules of HDC. Instead of treating these as separate steps with ideal assumptions, the framework treats them as a unified, learnable system.

  1. Hardware-Aware Similarity Function ($Shw$): The framework models the actual similarity computation performed by CIM hardware, accounting for nonlinear effects like quantization, saturation, and device noise. This is represented by a function $\Psi(f(v_i), f(v_j))$, where $f$ models hardware distortion and $\Psi$ is the hardware's similarity operation.
  2. Joint Optimization Objective: A loss function ($L_{sim}$) is defined to minimize the difference between the hardware-computed similarities and a target similarity matrix ($S^*$) that encodes desired relationships. This is combined with a task-specific loss ($L_{task}$) and a regularization term ($R(\theta)$) into a joint objective function.
  3. End-to-End Training: The encoding parameters ($\theta$) are trained such that the hypervectors produced, when processed by the hardware's nonlinear functions ($f$ and $\Psi$), yield similarities that match the target relationships. This ensures that the learned representations are robust to hardware imperfections.
  4. Regularization: A regularization term is used to encourage well-behaved hypervectors, preventing extreme values and maintaining approximate orthogonality, which is crucial for HDC's performance.

This approach differs from prior work by not relying on pre-encoded, ideal hypervectors but by actively learning representations that are resilient to specific hardware nonlinearities.

Datasets

The paper evaluates its framework on several standard datasets:

  • ISOLET: Used for HDC classification (speech recognition).
  • FMNIST (Fashion-MNIST): Used for HDC classification (image recognition).
  • Cora: A citation network dataset used for graph-based reasoning and node classification.
  • Synthetic Dataset: Used for kernel approximation studies, generated by perturbing initial data points.

No new benchmarks were introduced; instead, the focus was on evaluating existing HDC models (QuantHD, GrapHD, RelHD) under simulated hardware nonlinearities.

Key Insights and Ideas

  • Hardware Nonlinearities are a Major Bottleneck: The paper strongly demonstrates that even robust methods like HDC suffer significant performance degradation when subjected to the nonlinearities and noise present in emerging CIM hardware.
  • Joint Optimization is Crucial: Optimizing encoding and similarity search together is key. Treating them separately, even with hardware-aware similarity, is insufficient. The framework learns representations that are "tuned" to the specific hardware's quirks.
  • Preserving Interpretability: A significant finding is that the proposed optimization not only restores accuracy but also preserves the symbolic reasoning and interpretability that are hallmarks of HDC, especially for graph-based tasks.
  • Generalizability: The framework is designed to be adaptable to various CIM hardware by modeling their specific nonlinearities, suggesting broad applicability.

Key Results

  • HDC Classification: Applied to QuantHD, the framework achieved 84% accuracy on ISOLET and 73% on FMNIST under severe hardware-induced nonlinearities (Tanh function), a significant improvement over naive QuantHD which achieved only 37% and 36% respectively under the same conditions.
  • Graph Reconstruction (GrapHD): The optimization successfully enabled GrapHD to reconstruct graph structures under nonlinearity, whereas the naive approach failed to classify edges properly. Figure 6 shows the optimized GrapHD maintains a similar similarity distribution to normal GrapHD, unlike the naive approach which collapses to a narrow distribution.
  • Graph Reasoning (RelHD): On the Cora dataset, the optimized RelHD showed only a 6% quality loss compared to normal RelHD, while a naive implementation suffered a 65% quality loss under hardware nonlinearity. This highlights the framework's effectiveness for complex reasoning tasks.
  • Kernel Approximation: The optimized HDC kernel closely approximated the desired Radial Basis Function (RBF) kernel, outperforming naive hardware-aware approaches in maintaining dissimilarity for farther data points.

Limitations and Future Work

  • Hardware Modeling: The framework's effectiveness relies on accurately modeling the hardware's nonlinearities. If these models are inaccurate, performance might be suboptimal.
  • Computational Cost: While the goal is efficient AI, the joint optimization process itself might introduce training overhead.
  • Future Work: The authors suggest extending the approach to more complex reasoning tasks and further optimizing computational efficiency for large-scale applications. They also aim to explore more complex reasoning tasks and further optimize computational efficiency for large-scale applications.

Summary updated

Abstract

Traditional machine learning depends on high-precision arithmetic and near-ideal hardware assumptions, which is increasingly challenged by variability in aggressively scaled semiconductor devices. Compute-in-memory (CIM) architectures alleviate data-movement bottlenecks and improve energy efficiency yet introduce nonlinear distortions and reliability concerns. We address these issues with a hardware-aware optimization framework based on Hyperdimensional Computing (HDC), systematically compensating for non-ideal similarity computations in CIM. Our approach formulates encoding as an optimization problem, minimizing the Frobenius norm between an ideal kernel and its hardware-constrained counterpart, and employs a joint optimization strategy for end-to-end calibration of hypervector representations. Experimental results demonstrate that our method when applied to QuantHD achieves 84\% accuracy under severe hardware-induced perturbations, a 48\% increase over naive QuantHD under the same conditions. Additionally, our optimization is vital for graph-based HDC reliant on precise variable-binding for interpretable reasoning. Our framework preserves the accuracy of RelHD on the Cora dataset, achieving a 5.4$\times$ accuracy improvement over naive RelHD under nonlinear environments. By preserving HDC's robustness and symbolic properties, our solution enables scalable, energy-efficient intelligent systems capable of classification and reasoning on emerging CIM hardware.
BibTeX
@inproceedings{chung2025robust,
  author = {William Youngwoo Chung and Hamza Errahmouni Barkam and Tamoghno Das and Mohsen Imani},
  title = {{Robust Reasoning and Learning with Brain-Inspired Representations under Hardware-Induced Nonlinearities}},
  booktitle = {ACM Great Lakes Symposium on VLSI},
  year = {2025},
  doi = {10.1145/3716368.3735241},
}
Figure