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

In-memory hyperdimensional computing

Geethan Karunaratne, Manuel Le Gallo, Giovanni Cherubini, Luca Benini, Abbas Rahimi, Abu Sebastian

TL;DR

Researchers from IBM and ETH Zurich have developed a complete, end-to-end hardware system for Hyperdimensional Computing (HDC) using 760,000 phase-change memory (PCM) devices. By performing computations directly within memory, the system achieves near-software accuracy across complex classification tasks while being over six times more energy-efficient than traditional digital chips.

What Problem Does This Paper Address?

Traditional computers suffer from the "von Neumann bottleneck"—the constant, energy-hungry shuffling of data between a separate processor and memory. As we move toward AI on the "edge" (like sensors and wearables), we need architectures that are both ultra-low power and resilient to noise.

Hyperdimensional Computing (HDC) is a brain-inspired framework that represents information using massive, pseudo-random vectors (hypervectors) with thousands of dimensions. Because the information is distributed across the entire vector, HDC is incredibly robust; you can lose bits of data without losing the "meaning." This robustness makes it the perfect partner for In-Memory Computing (IMC), which uses the physical properties of nanoscale devices to calculate in place but often suffers from hardware imperfections and noise.

Methods

The authors implemented a full HDC pipeline—including encoding and associative memory search—using two planar memristive crossbar engines.

  • In-Memory Logic: Instead of moving data to a CPU to perform XOR or addition, they exploited the conductance of PCM devices to perform "read logic" and dot-product operations directly on the crossbar.
  • 2-Minterm Approximation: To make the complex $n$-gram encoding (used for sequences like text) hardware-friendly, they developed a simplified mathematical approximation. This reduced the number of required logic operations from an exponential amount to a fixed, manageable number.
  • Coarse-Grained Randomization: PCM devices have spatial variations in how well they conduct electricity. To prevent this "noise" from ruining the math, the researchers segmented the hypervectors and distributed them randomly across the hardware, ensuring that errors averaged out.
  • Hardware: They used a prototype PCM chip fabricated in 90 nm CMOS technology, utilizing 760,000 individual devices to perform analog in-memory computing.

Datasets

The system was evaluated on three prototypical machine learning benchmarks:

  1. Language Classification: Identifying 22 European languages from raw text (using the Wortschatz and Europarl corpora).
  2. News Classification: Categorizing Reuters news articles into 8 different genres.
  3. Hand Gesture Recognition: Identifying 5 distinct hand gestures using electromyography (EMG) signals from forearm muscles.

Key Insights and Ideas

  • Robustness is a Feature, Not a Bug: The most striking insight is that HDC's mathematical properties "shield" the application from the inherent randomness and defects of nanoscale hardware. You don't need perfect hardware to get perfect (or near-perfect) results.
  • The Power of Approximation: The "2-minterm" encoding shows that we don't need to implement exact software algorithms in hardware. A "good enough" hardware-friendly approximation can yield nearly identical accuracy while drastically reducing circuit complexity.
  • Memory is the Processor: By treating the Item Memory (IM) and Associative Memory (AM) as active computational substrates rather than passive storage, the researchers eliminated the most energy-expensive part of modern computing.

Key Results

  • Accuracy: The hardware implementation achieved accuracies very close to software baselines. For example, in language classification, the PCM chip reached ~95% accuracy, compared to ~96% in software.
  • Energy Efficiency: A system-level design synthesized in 65 nm CMOS showed a >6× reduction in end-to-end energy compared to a dedicated digital CMOS implementation.
  • Module Efficiency: The Associative Memory search module alone was 117× more energy-efficient than its digital counterpart.
  • Area Savings: The PCM-based architecture required 3.74× less silicon area than the all-CMOS version.

Limitations and Future Work

While the in-memory components are incredibly efficient, the peripheral CMOS circuits (like buffers and controllers) still account for a significant portion of the total energy consumption, especially in the encoder. The authors note that future work should focus on designing more energy-efficient peripheral modules to unlock the full potential of the PCM crossbars.

Additionally, while this paper focuses on classification, the authors suggest that in-memory HDC could be expanded to more advanced cognitive tasks, such as signal compression, fast data retrieval, and complex reasoning, potentially scaling PCM devices down to even smaller nanoscale dimensions for further gains.

Summary updated

BibTeX
@inproceedings{karunaratne2020memory,
  author = {Geethan Karunaratne and Manuel Le Gallo and Giovanni Cherubini and Luca Benini and Abbas Rahimi and Abu Sebastian},
  title = {{In-memory hyperdimensional computing}},
  booktitle = {Nature Electronics},
  year = {2020},
  doi = {10.1038/s41928-020-0410-3},
}
Figure