Introduction: Bridging the Reality Gap in Photonic Computing
Photonic Neural Networks (PNNs) represent a promising frontier for AI, offering the potential for near-instantaneous computation with minimal energy consumption by using light instead of electrons. However, a significant "reality gap" persists: models that perform perfectly in digital simulations often fail when deployed on physical hardware. This performance collapse is driven by systematic errors—unavoidable physical imperfections such as geometric misalignments, fabrication tolerances, and variations in optical layer thickness.
Traditional solutions like in situ training, which trains directly on hardware, are often impractical because they require complex optical setups to measure backward light propagation for gradients. This paper introduces Dual Adaptive Training (DAT), a framework that uses lightweight "error-prediction networks" to create a high-fidelity digital twin of the physical system, allowing PNNs to maintain high accuracy without specialized hardware for backpropagation.
Methods: Dual Adaptive Training (DAT)
The core innovation of DAT is the use of Systematic Error Prediction Networks (SEPNs). These are lightweight, residual "mini-UNets" that learn to model the deviations between an ideal physical model and the actual hardware.
The training process follows a four-step cycle for each sample:
- Measurement: Input is fed into the physical PNN to measure the output.
- Extraction: The same input is processed by the digital numerical model.
- Similarity Optimization: The SEPNs are updated to minimize the difference between the digital model's output and the physical hardware's output, effectively "modeling the messiness" of the real world.
- Task Optimization: The physical PNN weights are updated to solve the target task (e.g., classification) using gradients calculated through the SEPN-corrected digital model.
By using a residual architecture, the SEPNs only need to learn the error rather than the entire physics of light propagation, making them extremely efficient—using as little as 0.05% of the parameters of a standard UNet.
Experimental Results and Robustness
The researchers evaluated DAT using MNIST and Fashion-MNIST datasets across two architectures: Diffractive PNNs (DPNNs) and Interference-based PNNs (MPNNs).
As illustrated in the results, DAT effectively "rescues" PNN performance in high-error regimes:
- Misalignment Recovery: In a large-scale DPNN-M on MNIST, a 1cm Z-axis shift caused accuracy to drop to 25.5% with standard deployment. While previous state-of-the-art methods (Physics-Aware Training) recovered it to 66.9%, DAT restored it to 96.6%, nearly matching the error-free baseline of 98.6%.
- Superiority in Complex Tasks: On the challenging Fashion-MNIST task, DAT outperformed existing methods by an average of 35.5% to 42.1% when significant hardware errors were present.
- Scalability: The framework includes a "separable mode" that allows different parts of a large network to be optimized independently, preventing gradient errors from compounding in deep architectures.
Conclusion and Future Outlook
Dual Adaptive Training provides a scalable, hardware-agnostic solution to the reality gap in analog AI. By synchronizing a digital twin with physical hardware through lightweight error prediction, DAT enables robust deployment of PNNs on imperfect physical substrates. While the current work focuses on static systematic errors in photonic systems, future research may extend this approach to dynamic errors like thermal drift and other analog platforms such as memristor-based crossbars.
Summary updated