Towards Efficient Hyperdimensional Computing Using Photonics

Farbin Fayza, Cansu Demirkiran, Hanning Chen, Che-Kai Liu, Avi Mohan, Hamza Errahmouni Barkam, Sanggeon Yun, Mohsen Imani, David Zhang, Darius Bunandar, Ajay Joshi · OpenReview

TL;DR

This paper introduces PhotoHDC, the first electro-photonic accelerator specifically designed for Hyperdimensional Computing (HDC). By leveraging the strengths of photonics (linear operations, low precision) and HDC (simplicity, noise robustness), PhotoHDC achieves significant improvements in energy efficiency and speed compared to existing electro-photonic DNN accelerators and compute-in-memory solutions for HDC tasks.

What Problem Does This Paper Address?

Machine learning, particularly Deep Neural Networks (DNNs), demands immense computational power. While photonics offers a promising alternative to traditional CMOS for accelerating these tasks due to its high throughput and energy efficiency, DNNs present challenges. Specifically, DNNs rely on non-linear operations that are difficult to implement efficiently in photonics, and they often require high precision, which is also problematic for photonic hardware.

Hyperdimensional Computing (HDC) is an emerging, brain-inspired ML paradigm that offers a compelling alternative. HDC excels at simple linear operations, requires only low-precision operands, and is inherently robust to hardware noise. This makes HDC a natural fit for photonic hardware. However, existing photonic accelerators are primarily designed for DNNs and are not optimally suited for the unique demands of HDC, leading to inefficiencies. This paper aims to bridge this gap by proposing a dedicated photonic accelerator for HDC.

Methods

The core innovation is PhotoHDC, an electro-photonic accelerator architecture tailored for HDC. Its microarchitecture is built around Mach-Zehnder Modulators (MZMs) and Photodiodes (PDs) to perform the fundamental multiply-accumulate (MAC) operations required for HDC.

Key aspects of the PhotoHDC design include:

  • MZM-PD MAC Units: These form the computational backbone, enabling efficient linear operations. MZMs modulate optical signals, and PDs detect the resulting photocurrent, which is proportional to the product of the optical power and applied voltage, effectively performing multiplication.
  • Support for Multiple Encoding Schemes: PhotoHDC is designed to handle three popular HDC encoding schemes: traditional, record-based, and graph encoding, offering flexibility for various HDC applications.
  • Optimized Dataflows: Novel dataflows are proposed for both training and inference, specifically designed to leverage the photonic hardware for efficient bundling and similarity measurement operations, minimizing analog-to-digital conversions.
  • Minimizing Digital Components: The design prioritizes analog computation in the photonic domain, reducing reliance on power-hungry digital modules for core HDC operations.
  • DAC Sharing for Area Efficiency: To address the area overhead of digital-to-analog converters (DACs), PhotoHDC implements DAC sharing, trading a small latency increase for significant area reduction, particularly beneficial for training.

Datasets

The paper evaluates PhotoHDC using a variety of datasets commonly employed in HDC research:

  • For traditional and record-based encoding:
    • ISOLET
    • UCIHAR
    • FACE
    • PAMAP
    • PECAN
  • For graph encoding:
    • DD
    • ENZYMES
    • PROTEINS

Key Insights and Ideas

  • Photonics and HDC are a Natural Fit: The paper strongly argues that HDC's reliance on linear operations and tolerance for low precision make it an ideal candidate for photonic acceleration, overcoming the limitations of photonics for complex DNNs.
  • Dedicated Architecture is Crucial: Simply mapping HDC onto DNN accelerators is inefficient. A specialized architecture like PhotoHDC is necessary to fully exploit the advantages of photonics for HDC.
  • MZM-PD Units are Efficient for HDC Operations: The core MZM-PD MAC unit provides a low-cost, high-speed mechanism for the linear algebra central to HDC.
  • Encoding Scheme Matters for Photonic Implementation: Different HDC encoding schemes have varying computational demands. PhotoHDC's flexibility in supporting multiple schemes and its optimized dataflows are key to its performance.
  • Low Precision is a Major Advantage: The inherent low-precision requirements of HDC (e.g., 4-bit) significantly reduce the power consumption of optical components like lasers and data converters, a key differentiator from DNN accelerators.
  • DAC Sharing is a Viable Trade-off: The ability to share DACs significantly reduces the chip area without a prohibitive impact on performance, especially for traditional encoding.

Key Results

PhotoHDC demonstrates substantial performance improvements across various metrics:

  • Energy-Delay Product (EDP):
    • vs. SOTA Electro-Photonic DNN Accelerators: Achieves 2-5 orders of magnitude lower EDP for HDC training and inference.
  • vs. CiM-based Accelerators: Achieves 4 orders of magnitude lower EDP for both training and inference.
  • Area Efficiency: Achieves 1 order of magnitude better area efficiency compared to SOTA electro-photonic DNN accelerators.
  • Speedup: Achieves 3 orders of magnitude speedup over CiM-based accelerators for both training and inference.
  • Power Consumption: The paper highlights that MZM tuning is the dominant power source in PhotoHDC for traditional encoding, while SRAM access dominates for record-based encoding. This is attributed to the low precision requirements of HDC.
  • Robustness: The short optical path in PhotoHDC minimizes error accumulation and allows for easy calibration, contributing to system robustness.

Limitations and Future Work

  • DAC Area Overhead: While DAC sharing mitigates the issue, DACs still represent a significant portion of the chip area, especially for inference where more ADCs are also required.
  • Record-based Encoding Power Consumption: Record-based encoding is noted as being power-hungry due to frequent SRAM accesses, requiring higher power budgets for comparable performance.
  • Integration Technology: The paper discusses 3D integration but notes that monolithic or 2.5D integration could also be used, implying that the core architectural benefits are transferable.
  • Future Work: The paper suggests that with advancements in laser technology and photonic devices, using photonics on edge devices for HDC could become feasible in the near future. The authors also mention that HDC is becoming more popular in data centers and cloud systems, making hardware like PhotoHDC increasingly relevant.

Summary updated

BibTeX
@misc{fayza2023towards,
  author = {Farbin Fayza and Cansu Demirkiran and Hanning Chen and Che-Kai Liu and Avi Mohan and Hamza Errahmouni Barkam and Sanggeon Yun and Mohsen Imani and David Zhang and Darius Bunandar and Ajay Joshi},
  title = {{Towards Efficient Hyperdimensional Computing Using Photonics}},
  year = {2023},
  eprint = {2311.17801},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2311.17801},
}
Figure