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

Physics-aware Roughness Optimization for Diffractive Optical Neural Networks

Shanglin Zhou, Yingjie Li, Minhan Lou, Weilu Gao, Zhijie Shi, Cunxi Yu, Caiwen Ding · DOI

Abstract

Diffractive Optical Neural Networks (DONNs) represent a significant shift toward high-speed, energy-efficient AI hardware by utilizing light-diffracting materials for computation. However, a persistent "reality gap" exists between digital simulations and physical hardware due to interpixel crosstalk—interference caused by sharp phase transitions between adjacent pixels. This paper details a physics-aware training framework designed to minimize this "roughness." By combining roughness modeling regularization, block sparsification, and $2\pi$ periodic optimization, the framework achieves up to a 50% reduction in physical interference while maintaining high classification accuracy across multiple benchmarks.

Introduction

Diffractive Optical Neural Networks (DONNs) perform computations at the speed of light by passing wave-fronts through layers of phase-modulating materials. While theoretically efficient, the transition from numerical models to physical deployment is often hindered by the mismatch between idealized pixel behavior and physical reality. In digital simulations, pixels are treated as independent units; in physical systems, light passing through one pixel inevitably interferes with its neighbors. This phenomenon, known as interpixel crosstalk, is most pronounced when adjacent pixels have significantly different phase values—a state referred to as high "roughness." High roughness leads to manufacturing challenges and degraded optical performance in 3D-printed or etched masks.

Methodology

To bridge the reality gap, we propose a three-pronged optimization strategy that integrates physical constraints directly into the neural network's training loop.

1. Roughness Modeling Regularization

We introduce a "roughness score" into the network's loss function. This term penalizes the model when it assigns vastly different phase values to neighboring pixels. By making roughness a differentiable component of the objective function, the optimizer is forced to converge on "smoother" phase mask configurations that are more resilient to crosstalk.

2. Physics-Aware Block Sparsification

Unlike traditional pruning used for model compression, we employ block sparsification to create physical "buffer zones." By setting entire blocks of pixels to zero, we effectively isolate active computational regions. This spatial insulation reduces the opportunity for light to leak between active units, thereby mitigating interpixel interference.

3. $2\pi$ Periodic Optimization

Leveraging the periodic nature of light, we utilize a Gumbel-Softmax approach to selectively add $2\pi$ to specific pixels. Because a phase shift of $\theta$ is physically identical to $\theta + 2\pi$, this technique allows the model to reduce the numerical gradient between neighbors without altering the intended optical function. This "free lunch" optimization significantly smooths the mask's mathematical representation while preserving its physical output.

4. Intra-block Smoothness

For pixels within active blocks, an additional variance-based penalty is applied. This ensures that phase values within a single block remain as uniform as possible, further stabilizing the wave-front as it passes through the diffractive layer.

Experimental Evaluation

The framework was evaluated using four standard image classification benchmarks, resized to a $200 \times 200$ pixel resolution to match the optical system's constraints: MNIST (handwritten digits), FMNIST (fashion items), KMNIST (Kuzushiji characters), and EMNIST (extended letters and digits).

Key Results

The optimized model, referred to as "Ours-D," demonstrated substantial improvements in physical metrics with negligible costs to accuracy:

  • Roughness Reduction: After $2\pi$ optimization, the framework reduced roughness by 35.7% for MNIST, 34.2% for FMNIST, 28.1% for KMNIST, and 27.3% for EMNIST compared to baseline models.
  • Accuracy Preservation: On the MNIST dataset, accuracy only shifted from a baseline of 96.67% to 95.90%. This minor trade-off is highly acceptable given the significant gains in manufacturability.
  • Qualitative Improvements: The optimized masks exhibit a noticeable reduction in "salt-and-pepper" noise. The resulting patterns are smoother and more continuous, making them significantly easier to fabricate via 3D printing or lithography.

Discussion and Insights

Our findings suggest that sparsity in optical computing serves a unique role: it acts as a spatial insulator rather than just a compression tool. Furthermore, the observation that optimized masks naturally cluster valid modulations toward the center suggests that the model is learning to align with the Gaussian decay of physical laser light. By making the physics of the system differentiable, we allow standard gradient descent to solve complex hardware engineering problems during the design phase.

Conclusion and Future Work

This physics-aware framework successfully reduces the reality gap for DONNs, producing phase masks that are both computationally effective and physically robust. While current results rely on established proxies for crosstalk, future research will focus on extensive experimental validation with fabricated hardware and exploring the scalability of these optimizations in multi-wavelength optical systems.

Summary updated

BibTeX
@inproceedings{zhou2023physics,
  author = {Shanglin Zhou and Yingjie Li and Minhan Lou and Weilu Gao and Zhijie Shi and Cunxi Yu and Caiwen Ding},
  title = {{Physics-aware Roughness Optimization for Diffractive Optical Neural Networks}},
  booktitle = {DAC},
  year = {2023},
  url = {https://openreview.net/forum?id=-uwM9V9KL9F},
}
Figure