Robust Diffractive Optical Neuromorphic System Created via Sharpness-Aware and Immune Training
Abstract
1. Introduction
2. The Proposed Training Method
2.1. Modeling Optical Forward Propagation in a D2NN
2.2. Enhancing Device-Level Robustness Through Sharpness-Aware Minimization
2.3. Enhancing System-Level Robustness Through Aberration-Immune Learning
2.4. Joint SAM–AIL Co-Optimization for Phase-Only D2NNs
| Algorithm 1 Joint SAM–AIL training for D2NNs |
| Require: Training set ; network parameters (amplitudes fixed ); SAM radius ; step size ; Legendre basis and coefficient ; loss . |
| Ensure: D2NN trained with the joint SAM–AIL strategy |
| 1: Initialize parameters ; |
| 2: while not converged do |
| 3: Sample a mini-batch |
| 4: # AIL injection (input plane, per batch) |
| 5: Sample ; build |
| 6: Aberrate inputs: for all |
| 7: # Forward/backward at current parameters |
| 8: Compute using |
| 9: # SAM: worst-case perturbation (optical specialization) |
| 10: Compute via Equation (13); has the same shape as |
| 11: Apply perturbation: |
| 12: # Gradient of SAM objective at under the same AIL batch |
| 13: |
| 14: # Parameter update |
| 15: Update |
| 16: |
| 17: end while |
| 18: return |
3. Results and Discussion
4. Conclusions
Supplementary Materials
Author Contributions
Funding
Data Availability Statement
Conflicts of Interest
References
- LeCun, Y.; Bengio, Y.; Hinton, G. Deep learning. Nature 2015, 521, 436–444. [Google Scholar] [CrossRef] [PubMed]
- Momeni, A.; Rahmani, B.; Malléjac, M.; Del Hougne, P.; Fleury, R. Backpropagation-free training of deep physical neural networks. Science 2023, 382, 1297–1303. [Google Scholar] [CrossRef] [PubMed]
- Wright, L.G.; Onodera, T.; Stein, M.M.; Wang, T.; Schachter, D.T.; Hu, Z.; McMahon, P.L. Deep physical neural networks trained with backpropagation. Nature 2022, 601, 549–555. [Google Scholar] [CrossRef] [PubMed]
- Grollier, J.; Querlioz, D.; Camsari, K.; Everschor-Sitte, K.; Fukami, S.; Stiles, M.D. Neuromorphic spintronics. Nat. Electron. 2020, 3, 360–370. [Google Scholar] [CrossRef]
- Clouse, J.; Ramsey, T.; Somathilaka, S.; Kleinsasser, N.; Ryu, S.; Balasubramaniam, S. Insect-Wing Structured Microfluidic System for Reservoir Computing. arXiv 2025, arXiv:2508.10915. [Google Scholar] [CrossRef]
- Ahrar, S.; Raje, M.; Lee, I.C.; Hui, E.E. Pneumatic computers for embedded control of microfluidics. Sci. Adv. 2023, 9, eadg0201. [Google Scholar] [CrossRef]
- Picella, S.; van Riet, C.M.; Overvelde, J.T.B. Pneumatic coding blocks enable programmability of electronics-free fluidic soft robots. Sci. Adv. 2024, 10, eadr2433. [Google Scholar] [CrossRef]
- Hoang, S.; Shehada, M.; Patel, Z.; Tran, M.H.; Karydis, K.; Brisk, P.; Grover, W.H. Air-powered logic circuits for error detection in pneumatic systems. Device 2024, 2, 100507. [Google Scholar] [CrossRef]
- Wetzstein, G.; Ozcan, A.; Gigan, S.; Fan, S.; Englund, D.; Soljačić, M.; Denz, C.; Miller, D.A.; Psaltis, D. Inference in artificial intelligence with deep optics and photonics. Nature 2020, 588, 39–47. [Google Scholar] [CrossRef]
- Zhou, J.; Qian, H.; Chen, C.F.; Zhao, J.; Li, G.; Wu, Q.; Luo, H.; Wen, S.; Liu, Z. Optical edge detection based on high-efficiency dielectric metasurface. Proc. Natl. Acad. Sci. USA 2019, 116, 11137–11140. [Google Scholar] [CrossRef]
- Yildirim, M.; Dinc, N.U.; Oguz, I.; Psaltis, D.; Moser, C. Nonlinear processing with linear optics. Nat. Photonics 2024, 18, 1076–1082. [Google Scholar] [CrossRef] [PubMed]
- Fu, T.; Zhang, J.; Sun, R.; Huang, Y.; Xu, W.; Yang, S.; Zhu, Z.; Chen, H. Optical neural networks: Progress and challenges. Light. Sci. Appl. 2024, 13, 263. [Google Scholar] [CrossRef] [PubMed]
- Chen, Y.; Nazhamaiti, M.; Xu, H.; Meng, Y.; Zhou, T.; Li, G.; Fan, J.; Wei, Q.; Wu, J.; Qiao, F.; et al. All-analog photoelectronic chip for high-speed vision tasks. Nature 2023, 623, 48–57. [Google Scholar] [CrossRef] [PubMed]
- Shastri, B.J.; Tait, A.N.; Ferreira de Lima, T.; Pernice, W.H.; Bhaskaran, H.; Wright, C.D.; Prucnal, P.R. Photonics for artificial intelligence and neuromorphic computing. Nat. Photonics 2021, 15, 102–114. [Google Scholar] [CrossRef]
- Shen, Y.; Harris, N.C.; Skirlo, S.; Prabhu, M.; Baehr-Jones, T.; Hochberg, M.; Sun, X.; Zhao, S.; Larochelle, H.; Englund, D.; et al. Deep learning with coherent nanophotonic circuits. Nat. Photonics 2017, 11, 441–446. [Google Scholar] [CrossRef]
- Fontaine, N.K.; Ryf, R.; Chen, H.; Neilson, D.T.; Kim, K.; Carpenter, J. Laguerre–Gaussian mode sorter. Nat. Commun. 2019, 10, 1865. [Google Scholar] [CrossRef]
- Lib, O.; Shekel, R.; Bromberg, Y. Building and aligning a 10-plane light converter. J. Phys. Photonics 2025, 7, 033001. [Google Scholar] [CrossRef]
- Mididoddi, C.; Kilpatrick, R.J.; Sharp, C.; del Hougne, P.; Horsley, S.A.R.; Phillips, D.B. Threading light through dynamic complex media. Nat. Photonics 2025, 19, 434–440. [Google Scholar] [CrossRef]
- Goi, E.; Schoenhardt, S.; Gu, M. Direct retrieval of Zernike-based pupil functions using integrated diffractive deep neural networks. Nat. Commun. 2022, 13, 7531. [Google Scholar] [CrossRef]
- Luo, X.; Hu, Y.; Ou, X.; Li, X.; Lai, J.; Liu, N.; Cheng, X.; Pan, A.; Duan, H. Metasurface-enabled on-chip multiplexed diffractive neural networks in the visible. Light. Sci. Appl. 2022, 11, 158. [Google Scholar] [CrossRef]
- Bandyopadhyay, S.; Sludds, A.; Krastanov, S.; Hamerly, R.; Harris, N.; Bunandar, D.; Streshinsky, M.; Hochberg, M.; Englund, D. Single-chip photonic deep neural network with forward-only training. Nat. Photonics 2024, 18, 1335–1343. [Google Scholar] [CrossRef]
- Lin, X.; Rivenson, Y.; Yardimci, N.T.; Veli, M.; Luo, Y.; Jarrahi, M.; Ozcan, A. All-optical machine learning using diffractive deep neural networks. Science 2018, 361, 1004–1008. [Google Scholar] [CrossRef] [PubMed]
- Vadlamani, S.K.; Englund, D.; Hamerly, R. Transferable learning on analog hardware. Sci. Adv. 2023, 9, eadh3436. [Google Scholar] [CrossRef] [PubMed]
- Xu, T.; Zhang, W.; Zhang, J.; Luo, Z.; Xiao, Q.; Wang, B.; Luo, M.; Xu, X.; Shastri, B.J.; Prucnal, P.R.; et al. Control-free and efficient integrated photonic neural networks via hardware-aware training and pruning. Optica 2024, 11, 1039–1049. [Google Scholar] [CrossRef]
- Mengu, D.; Rivenson, Y.; Ozcan, A. Scale-, shift-, and rotation-invariant diffractive optical networks. ACS Photonics 2020, 8, 324–334. [Google Scholar] [CrossRef]
- Shi, J.; Chen, M.; Wei, D.; Hu, C.; Luo, J.; Wang, H.; Zhang, X.; Xie, C. Anti-noise diffractive neural network for constructing an intelligent imaging detector array. Opt. Express 2020, 28, 37686–37699. [Google Scholar] [CrossRef]
- Li, K.; Jia, Y.; Gu, M.; Fang, X. Robust occlusion-aware orbital angular momentum feature extraction via all-optical diffractive processing systems. Opt. Express 2025, 33, 23053–23064. [Google Scholar] [CrossRef]
- Wang, Y.; Chen, M.; Yao, C.; Ma, J.; Yan, T.; Penty, R.; Cheng, Q. Asymmetrical Estimator for Training Encapsulated Deep Photonic Neural Networks. Nat. Commun. 2025, 16, 2143. [Google Scholar] [CrossRef]
- Sunada, S.; Niiyama, T.; Kanno, K.; Nogami, R.; Röhm, A.; Awano, T.; Uchida, A. Blending Optimal Control and Biologically Plausible Learning for Noise-Robust Physical Neural Networks. Phys. Rev. Lett. 2025, 134, 017301. [Google Scholar] [CrossRef]
- Spall, J.; Guo, X.; Lvovsky, A.I. Hybrid training of optical neural networks. Optica 2022, 9, 803–811. [Google Scholar] [CrossRef]
- Zhao, G.; Shu, X.; Zhou, R. High-performance real-world optical computing trained by in situ gradient-based model-free optimization. IEEE Trans. Pattern Anal. Mach. Intell. 2024, 47, 7194–7205. [Google Scholar] [CrossRef]
- Nakajima, M.; Inoue, K.; Tanaka, K.; Kuniyoshi, Y.; Hashimoto, T.; Nakajima, K. Physical deep learning with biologically inspired training method: Gradient-free approach for physical hardware. Nat. Commun. 2022, 13, 7847. [Google Scholar] [CrossRef] [PubMed]
- Foret, P.; Kleiner, A.; Mobahi, H.; Neyshabur, B. Sharpness-Aware Minimization for Efficiently Improving Generalization. In Proceedings of the 9th International Conference on Learning Representations (ICLR 2021), Virtual, 3–7 May 2021. [Google Scholar]
- Xu, T.; Luo, Z.; Liu, S.; Fan, L.; Xiao, Q.; Wang, B.; Wang, D.; Huang, C. Perfecting Imperfect Physical Neural Networks with Transferable Robustness using Sharpness-Aware Training. arXiv 2024, arXiv:2411.12352. [Google Scholar] [CrossRef]
- Mengu, D.; Zhao, Y.; Yardimci, N.T.; Rivenson, Y.; Jarrahi, M.; Ozcan, A. Misalignment resilient diffractive optical networks. Nanophotonics 2020, 9, 4207–4219. [Google Scholar] [CrossRef]
- LeCun, Y.; Bottou, L.; Bengio, Y.; Haffner, P. Gradient-Based Learning Applied to Document Recognition. Proc. IEEE 1998, 86, 2278–2324. [Google Scholar] [CrossRef]
- Xiao, H.; Rasul, K.; Vollgraf, R. Fashion-MNIST: A Novel Image Dataset for Benchmarking Machine Learning Algorithms. arXiv 2017, arXiv:1708.07747. [Google Scholar] [CrossRef]
- Tong, Y.; Pivnenko, M.; Chu, D. Effects of phase flicker in digitally driven phase-only LCOS devices on holographic reconstructed images. Appl. Opt. 2022, 61, B25–B33. [Google Scholar] [CrossRef]
- García-Márquez, J.; López, V.; González-Vega, A.; Noé, E. Flicker minimization in an LCoS spatial light modulator. Opt. Express 2012, 20, 8431–8441. [Google Scholar] [CrossRef]
- Engström, D.; Persson, M.; Bengtsson, J.; Goksör, M. Calibration of spatial light modulators suffering from spatially varying phase response. Opt. Express 2013, 21, 16086–16103. [Google Scholar] [CrossRef]
- Fan, D.; Smith, C.S.; Unnithan, R.R.; Kim, S. 3D printed diffractive optical elements for rapid prototyping. Micro Nano Eng. 2024, 24, 100270. [Google Scholar] [CrossRef]
- Bengtsson, J.; Johansson, M. Fan-out diffractive optical elements designed for increased fabrication tolerances to linear relief depth errors. Appl. Opt. 2002, 41, 281–289. [Google Scholar] [CrossRef] [PubMed]
- Banerji, S.; Sensale-Rodriguez, B. A computational design framework for efficient, fabrication error-tolerant, planar THz diffractive optical elements. Sci. Rep. 2019, 9, 5801. [Google Scholar] [CrossRef] [PubMed]
- Jenkins, R.P.; Campbell, S.D.; Werner, D.H. Establishing exhaustive metasurface robustness against fabrication uncertainties through deep learning. Nanophotonics 2021, 10, 4497–4509. [Google Scholar] [CrossRef]
- Zhang, X.; Jin, J.; Wang, Y.; Pu, M.; Li, X.; Zhao, Z.; Gao, P.; Wang, C.; Luo, X. Metasurface-based broadband hologram with high tolerance to fabrication errors. Sci. Rep. 2016, 6, 19856. [Google Scholar] [CrossRef]
- Patoux, A.; Agez, G.; Girard, C.; Paillard, V.; Wiecha, P.R.; Lecestre, A.; Carcenac, F.; Larrieu, G.; Arbouet, A. Challenges in nanofabrication for efficient optical metasurfaces. Sci. Rep. 2021, 11, 5620. [Google Scholar] [CrossRef]
- Chen, H.; Feng, J.; Jiang, M.; Wang, Y.; Lin, J.; Tan, J.; Jin, P. Diffractive deep neural networks at visible wavelengths. Engineering 2021, 7, 1483–1491. [Google Scholar] [CrossRef]
- Kim, J.; Yu, N.; Yu, Z. Compute-First Optical Detection for Noise-Resilient Visual Perception. ACS Photonics 2025, 12, 1137–1145. [Google Scholar] [CrossRef]
- Yao, Z.; Gholami, A.; Keutzer, K.; Mahoney, M.W. Pyhessian: Neural networks through the lens of the hessian. In Proceedings of the 2020 IEEE International Conference on Big Data (Big Data), Atlanta, GA, USA, 10–13 December 2020; pp. 581–590. [Google Scholar]
- Izmailov, P.; Podoprikhin, D.; Garipov, T.; Vetrov, D.; Wilson, A.G. Averaging Weights Leads to Wider Optima and Better Generalization. In Proceedings of the 34th Conference on Uncertainty in Artificial Intelligence (UAI 2018), Monterey, CA, USA, 6–10 August 2018; pp. 876–885. [Google Scholar]
- Keskar, N.S.; Mudigere, D.; Nocedal, J.; Smelyanskiy, M.; Tang, P.T.P. On Large-Batch Training for Deep Learning: Generalization Gap and Sharp Minima. In Proceedings of the 5th International Conference on Learning Representations (ICLR 2017), Toulon, France, 24–26 April 2017. [Google Scholar]
- Kewei, E.; Zhang, C.; Li, M.; Xiong, Z.; Li, D. Wavefront reconstruction algorithm based on Legendre polynomials for radial shearing interferometry over a square area and error analysis. Opt. Express 2015, 23, 20267–20279. [Google Scholar] [CrossRef]
- Hoshi, I.; Wakunami, K.; Ichihashi, Y.; Oi, R. Wavefront-aberration-tolerant diffractive deep neural networks using volume holographic optical elements. Sci. Rep. 2025, 15, 1104. [Google Scholar] [CrossRef]
- Li, Y.; Zheng, Z.; Li, R.; Chen, Q.; Luan, H.; Yang, H.; Zhang, Q.; Gu, M. Multiscale diffractive U-Net: A robust all-optical deep learning framework modeled with sampling and skip connections. Opt. Express 2022, 30, 36700–36710. [Google Scholar] [CrossRef]
- Li, Y.; Guo, J.; Liu, R. Exploring Wavefront Detection in Imaging Systems with Rectangular Apertures Using Phase Diversity. Sensors 2024, 24, 1191. [Google Scholar] [CrossRef]
- Liu, X.; Zhang, D.; Wang, L.; Ma, T.; Liu, Z.; Xiao, J.J. Parallelized and Cascadable Optical Logic Operations by Few-Layer Diffractive Optical Neural Network. Photonics 2023, 10, 503. [Google Scholar] [CrossRef]
- Long, X.; Gao, Y.; Yuan, Z.; Yan, W.; Ren, Z.C.; Wang, X.L.; Ding, J.; Wang, H.T. In-Situ Wavefront Correction via Physics-Informed Neural Network. Laser Photonics Rev. 2024, 18, 2300833. [Google Scholar] [CrossRef]
- Jiang, M.; Zhang, X.; Puliafito, C.A.; Zhang, H.F.; Jiao, S. Adaptive Optics Photoacoustic Microscopy. Opt. Express 2010, 18, 21770–21776. [Google Scholar] [CrossRef]
- Abdelazeem, R.M.; Agour, M.; Elnaby, S.H. Interferometric Surface Analysis of a Phase-Only Spatial Light Modulator for Surface Deformation Compensation. Photonics 2025, 12, 285. [Google Scholar] [CrossRef]
- Whitworth, G.L.; Francone, A.; Sotomayor-Torres, C.M.; Kehagias, N. Real-time optical dimensional metrology via diffractometry for nanofabrication. Sci. Rep. 2020, 10, 5371. [Google Scholar] [CrossRef]









Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content. |
© 2026 by the authors. Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license.
Share and Cite
Li, F.; Yang, K. Robust Diffractive Optical Neuromorphic System Created via Sharpness-Aware and Immune Training. Photonics 2026, 13, 139. https://doi.org/10.3390/photonics13020139
Li F, Yang K. Robust Diffractive Optical Neuromorphic System Created via Sharpness-Aware and Immune Training. Photonics. 2026; 13(2):139. https://doi.org/10.3390/photonics13020139
Chicago/Turabian StyleLi, Fansanqiu, and Kaicheng Yang. 2026. "Robust Diffractive Optical Neuromorphic System Created via Sharpness-Aware and Immune Training" Photonics 13, no. 2: 139. https://doi.org/10.3390/photonics13020139
APA StyleLi, F., & Yang, K. (2026). Robust Diffractive Optical Neuromorphic System Created via Sharpness-Aware and Immune Training. Photonics, 13(2), 139. https://doi.org/10.3390/photonics13020139
