All-optical doubly resonant cavities for energy-efficient ReLU function in nanophotonic deep learning

A Amirreza Ahmadnejad M Mohammad Mehrdad Asadi S Somayyeh Koohi

Abstract

This paper presents a novel approach to implementing all-optical Rectified Linear Unit (ReLU) activation functions using compact doubly-resonant cavities with dimensions of approximately 10 μ m. The proposed design leverages χ ( 2 ) nonlinear processes within carefully engineered photonic structures that simultaneously resonate at both fundamental and second-harmonic frequencies. By exploiting the phase-sensitive nature of second-harmonic generation, we demonstrate an optical analog to the ReLU function, achieving femtojoule-level activation energy—comparable to state-of-the-art approaches—while reducing device footprint by two orders of magnitude compared to previous implementations. The theoretical framework is developed using coupled-mode theory and validated through rigorous finite-difference time-domain simulations. Beyond ReLU, we show that the same physical structure can implement alternative activation functions such as ELU and GELU through simple adjustments to input conditions. Neural network simulations demonstrate that the proposed optical activation functions achieve classification accuracy within 0.4% of ideal electronic implementations while offering significant advantages in energy efficiency and processing speed. This work represents a significant advancement toward realizing energy-efficient, high-density optical neural networks for next-generation artificial intelligence hardware.

Article Details

Journal PLoS ONE
Volume / Issue Vol. 21, Issue 6
Published June 17, 2026
Pages e0345850
ISSN 1932-6203
Publisher Public Library of Science

Journal Info

PLoS ONE

Public Library of Science

ISSN: 1932-6203 Open Access Health Sciences

Authors (3)

A

Amirreza Ahmadnejad

M

Mohammad Mehrdad Asadi

S

Somayyeh Koohi