Metasurface-generated large and arbitrary analog convolution kernels for accelerated machine vision

Ruiqi Liang, Shuai Wang, Yiying Dong, Liu Li, Ying Kuang, Bohan Zhang, Yuanmu YangarXiv 2024 · DOI

Abstract

Convolutional Neural Networks (CNNs) are the backbone of modern machine vision but are notoriously power-hungry due to the millions of multiplications required for sliding-window convolutions. This paper presents an Analog Convolutional Optoelectronic Hybrid Neural Network (ACNN) that utilizes a phase-only metasurface to perform large-scale, arbitrarily shaped analog convolutions in the optical domain. By offloading the most computationally expensive operations to light, the system achieves a 97% reduction in digital operations (FLOPs) while maintaining high classification accuracy on standard vision datasets.

Introduction

In standard digital CNNs, moving a kernel across an image creates a significant computational bottleneck, especially as image resolution and network depth increase. Optical computing offers a near-instantaneous, zero-power alternative for convolution. However, previous optical approaches often struggled with small receptive fields and complex training requirements. This research introduces a metasurface-based approach that leverages large receptive fields and a novel frequency-domain training method to overcome these limitations, enabling efficient edge-device machine vision.

Methodology

The ACNN architecture integrates a compact crystalline silicon metasurface with a slim digital backend to handle non-linear operations.

Metasurface and PSF Engineering

Instead of bulky lenses, the system uses a phase-only metasurface to modulate light. This device creates specific Point Spread Functions (PSFs) that act as convolution kernels. Unlike digital hardware, where large kernels (e.g., 31x31) are computationally expensive, optical kernels of any size cost the same amount of time and energy, allowing for richer feature extraction in a single pass.

Frequency Domain Training and the Subtraction Trick

To simplify optimization, the network is trained in the spatial frequency domain rather than the spatial domain. This allows for the creation of kernels with arbitrary shapes without the divergence issues common in holographic reconstruction. Furthermore, because light intensity is always positive, the researchers implemented a "subtraction trick": they used spatial multiplexing to generate two sets of kernels—one positive and one negative—and subtracted them in the digital backend to achieve arbitrary analog weights.

Comparison of digital convolution (a) with optical convolution using finite (b) and arbitrary analog (c) kernels. The subtraction method for negative weights is highlighted in (c).

Key Results

The ACNN was evaluated on benchmark datasets including MNIST, Fashion-MNIST, and CIFAR-10.

  • Accuracy: The experimental setup achieved 98.59% accuracy on MNIST. Simulations for more complex tasks reached 92.63% for Fashion-MNIST and 68.67% for CIFAR-10.
  • Efficiency: Compared to a purely digital network with 9x9 kernels, the ACNN achieved a 97% reduction in FLOPs. Even against standard 3x3 kernels, the reduction was a substantial 78%.
  • Robustness: The system proved resilient to noise, maintaining 96.58% accuracy on MNIST even when image data was quantized down to just 2 bits.

Discussion and Future Work

While the current metasurface kernels are static and fixed upon fabrication, the ACNN demonstrates a significant leap in hybrid computing efficiency. Future work may involve integrating reconfigurable materials like liquid crystals to allow for on-the-fly kernel updates. Additionally, developing purely optical non-linear activation functions could further reduce the reliance on digital electronics, moving closer to fully light-based machine vision.

Summary updated

BibTeX
@misc{liang2024metasurface,
  author = {Ruiqi Liang and Shuai Wang and Yiying Dong and Liu Li and Ying Kuang and Bohan Zhang and Yuanmu Yang},
  title = {{Metasurface-generated large and arbitrary analog convolution kernels for accelerated machine vision}},
  year = {2024},
  eprint = {2409.18614},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2409.18614},
}
Figure