NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Energy Efficient In-memory Hyperdimensional Encoding for Spatio-temporal Signal Processing

Geethan Karunaratne, Manuel Le Gallo, Michael Hersche, Giovanni Cherubini, Luca Benini, Abu Sebastian, Abbas Rahimi · DOI

TL;DR

This paper introduces an energy-efficient in-memory computing architecture for processing spatio-temporal (ST) signals using Hyperdimensional Computing (HDC). By leveraging memristive crossbar arrays for computation, they achieve significant gains in energy efficiency, throughput, and area reduction compared to traditional digital hardware, while maintaining near-baseline classification accuracy for tasks like hand gesture recognition.

What Problem Does This Paper Address?

Modern AI, particularly deep learning, relies on increasingly complex models that demand substantial energy for training and inference. This poses a challenge for edge devices and applications where power consumption is critical. Hyperdimensional Computing (HDC) offers a brain-inspired, lightweight alternative for various cognitive tasks, but its core operations—manipulating and comparing large bit patterns—are not well-suited for conventional von Neumann architectures, leading to inefficiencies. Spatio-temporal (ST) signals, such as those from EMG and EEG sensors, are particularly challenging due to their multi-channel, time-varying nature. This paper addresses the need for an energy-efficient hardware solution for ST signal processing within the HDC framework, specifically targeting applications at the edge.

Methods

The authors propose a novel in-memory HDC encoder architecture tailored for ST signals. The key innovation lies in performing computations directly within a memristive crossbar array, minimizing data movement between memory and processing units.

Here's a breakdown of their approach:

  • In-Memory Hyperdimensional Encoding: Instead of traditional digital processing, the ST data is encoded directly within the crossbar array. This involves pre-computing "channel-bound hypervectors" and storing them in the memristive array.
  • Adapted ST HDC Algorithm: They modify the conventional ST HDC algorithm by performing temporal encoding on each channel before spatial bundling. This "unrolling" of temporal encoding allows for immediate processing within the in-memory architecture.
  • Memristive Crossbar Arrays: These arrays are central to the architecture, enabling parallel XOR operations and comparisons directly in memory. This significantly reduces the energy and time overhead associated with data transfer.
  • Peripheral Circuits: The architecture includes essential peripheral circuits like a circular buffer for data storage, a binder for temporal encoding, and a bundler for spatial aggregation, all designed to be compact and energy-efficient.

Datasets

The proposed architecture was evaluated using the EMG hand gesture recognition dataset described in [13]. This dataset involves EMG signals acquired from four electrodes on the forearm of five subjects performing five different gestures. The data is sampled at 500 Hz. The authors used 25% of the data for training and tested on approximately 800 queries per subject.

Key Insights and Ideas

  • In-Memory Computing is a Game-Changer for HDC: The paper strongly demonstrates that performing HDC operations directly in memory, especially for ST signals, can yield dramatic improvements in energy efficiency and performance.
  • Temporal Encoding First, Then Spatial: Reordering the encoding steps (temporal before spatial) is crucial for enabling efficient in-memory processing of ST signals. This allows for immediate computation on each channel's data before combining them.
  • Memristors are Well-Suited for HDC: The inherent parallelism and low power consumption of memristive crossbar arrays align perfectly with the bit-wise operations central to HDC.
  • Flexibility in Parameter Selection: The proposed architecture allows for selecting different parameter combinations (N-gram size and quantization levels) for each channel, offering greater flexibility in adapting to specific signal dynamics.

Key Results

The in-memory ST HDC encoder demonstrated significant improvements over conventional digital hardware:

  • Energy Efficiency: Achieved at least 1.80x higher energy efficiency compared to a dedicated digital CMOS ST encoder. This gain increased to a maximum of 8.83x with larger N-gram sizes and quantization levels. Compared to a low-power general-purpose computing platform (PULP-HD), the gain was 284x.
  • Throughput: Achieved a throughput of 31.5M N-grams/s, which is 9.74x higher than a dedicated digital CMOS ST encoder.
  • Area Reduction: Showed a 3.36x area reduction compared to the digital CMOS ST encoder, with gains reaching up to 6.97x.
  • Classification Accuracy: The in-memory encoder achieved a peak classification accuracy of 98.9%, which is only 0.04% lower than the baseline HDC framework. This slight drop is attributed to the statistical model used for PCM simulation, which captures non-ideal effects.

Limitations and Future Work

  • PCM Statistical Model: The accuracy results are based on simulations using a statistical model of Phase-Change Memory (PCM). While this model captures non-ideal effects, real-world hardware performance might vary. The authors note that as quantization levels increase, the accuracy drop compared to software increases due to amplified PCM variations.
  • Subarray Splitting: While the architecture can be split into subarrays to mitigate PCM variations, this is a potential area for further optimization and hardware realization.
  • Future Work: The authors suggest that their architecture is a significant step towards realizing energy-efficient HDC for ST signal processing at the edge. Future work could involve further optimization of the peripheral circuits, exploring different non-volatile memory technologies, and testing on a wider range of ST signal processing applications.

Summary updated

BibTeX
@article{karunaratne2021energy,
  author = {Geethan Karunaratne and Manuel Le Gallo and Michael Hersche and Giovanni Cherubini and Luca Benini and Abu Sebastian and Abbas Rahimi},
  title = {{Energy Efficient In-memory Hyperdimensional Encoding for Spatio-temporal Signal Processing}},
  journal = {IEEE Trans. Circuits Syst. II Express Briefs},
  year = {2021},
  doi = {10.1109/tcsii.2021.3068126},
}
Figure