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

Misaligned orientations of 4f optical neural network for image classification accuracy on various datasets

Yanbing Liu, Wei Li, Kun Cheng, Xun Liu, Wei YangarXiv 2022 · DOI

Abstract

Optical Neural Networks (ONNs) present a promising alternative to traditional electronic hardware, offering high-speed computation with minimal energy consumption. However, the practical deployment of 4f-ONN architectures is hindered by their extreme sensitivity to physical component misalignment. This paper investigates the relationship between positional offsets and classification accuracy across different datasets. Our findings reveal that sensitivity is not merely a function of distance but is deeply tied to the directional semantics of the input data. We demonstrate that MNIST digits are particularly vulnerable to vertical shifts, while Quickdraw16 sketches are more sensitive to horizontal ones, providing a foundation for developing more robust, misalignment-aware optical computing systems.

Introduction

As deep learning models continue to grow in complexity, the energy demands of conventional von Neumann architectures have become a significant bottleneck. Optical Neural Networks (ONNs) leverage the properties of light to perform massive parallel computations at the speed of light. The 4f optical system is a cornerstone of this field, utilizing lenses to perform Fourier transforms that enable high-speed image convolutions.

Despite their potential, 4f systems are highly sensitive to the precise positioning of optical elements. Even sub-millimeter misalignments during installation or operation can distort the light field, leading to a significant drop in model performance. This study quantifies the impact of such "positional slop" and explores how different types of visual data respond to being off-center within the optical path.

Methodology

The researchers employed a hybrid approach, combining digital simulation with physical validation. The core of their method involves the Light Field Modulation Matrix (LFMM), which acts as the learned weights of the neural network.

  1. End-to-End Training: The LFMM (a phase map) was first optimized in a digital environment using standard machine learning techniques.
  2. Physical Implementation: The trained model was then deployed on a physical 4f setup. As shown in Figure 1, the system uses a laser source, a Digital Micromirror Device (DMD) for image input, and a Spatial Light Modulator (SLM) at the Fourier plane to apply the learned LFMM.
  3. Misalignment Testing: To evaluate robustness, the team intentionally introduced positional offsets to the SLM, ranging from 0 to 30 pixels (approximately 700 microns) in four cardinal directions.
Schematic of the 4f optical neural network setup, featuring a laser source, DMD for input, and SLM for weight modulation.

Impact of Misalignment on Classification

The study utilized three datasets: a simple shape-based Toy Dataset, the MNIST handwritten digit benchmark, and the Quickdraw16 sketch dataset. The results highlighted a critical phenomenon: directional sensitivity is data-dependent.

Directional Semantics and Frequency Domain

The most significant finding was that the direction of misalignment matters differently depending on the dataset. MNIST digits were found to be highly sensitive to vertical offsets. In contrast, the Quickdraw16 dataset showed greater sensitivity to horizontal shifts.

This behavior is explained through Fourier optics. In the frequency spectrum, the "semantic information" that defines a character or sketch is distributed along specific axes. For MNIST, critical features are concentrated along the vertical axis; thus, a vertical shift of the filter distorts these high-frequency components more severely.

Visualizing Distortions

Misalignment manifests as specific visual artifacts in the output. As illustrated in Figure 2, when the SLM is smaller than the input spectrum, the resulting images tend to "scatter outward." Conversely, a larger SLM causes the output to "converge inward." Positional shifts (up, down, left, right) result in asymmetric distortions that directly correlate with the observed drops in classification accuracy.

Visualization of misalignment effects: (a-c) show the impact of SLM size mismatch on image reconstruction, while (d-f) demonstrate the distortions caused by directional shifts.

Key Results and Discussion

The experimental data showed a sharp decline in accuracy as offsets increased. For Quickdraw16, a 700-micron offset reduced accuracy to near-random levels (~10%). The researchers identified a "safe zone" of approximately 200 microns, within which performance remains relatively stable.

Crucially, the physical experiments closely mirrored the numerical simulations, proving that their digital estimation method is a reliable proxy for real-world optical hardware performance.

Conclusion and Future Work

This research underscores the importance of precision in optical computing and reveals that alignment tolerances must be tailored to the specific dataset being processed. The primary limitation of the current 4f system is its inability to easily perform deep, multi-layered convolutions.

Future research will focus on "misalignment-aware" training. By simulating physical errors during the digital training phase, it may be possible to create LFMMs that are inherently robust to the microscopic shifts inevitable in industrial or laboratory environments, paving the way for more resilient optical AI hardware.

Summary updated

BibTeX
@misc{liu2022misaligned,
  author = {Yanbing Liu and Wei Li and Kun Cheng and Xun Liu and Wei Yang},
  title = {{Misaligned orientations of 4f optical neural network for image classification accuracy on various datasets}},
  year = {2022},
  eprint = {2210.08004},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2210.08004},
}
Figure