Deep Learning Assisted Modeling for $χ^{(2)}$ Nonlinear Optics

Jack Hirschman, Erfan Abedi, Minyang Wang, Hao Zhang, Abhimanyu Borthakur, Justin Baker, Sergio Carbajo, Lemons, Randy, Carbajo, SergioarXiv 2025 · DOI · arXiv

Abstract

Modeling second-order ($\chi^{(2)}$) nonlinear optical processes remains computationally expensive due to the need to resolve fast field oscillations and simulate wave propagation using methods like the split-step Fourier method (SSFM). This can become a bottleneck in real-time applications, such as high-repetition-rate laser systems requiring rapid feedback and control. We present an LSTM-based surrogate model trained on SSFM simulations generated from a start-to-end model of the photocathode drive laser at SLAC National Accelerator Laboratory's Linac Coherent Light Source II. The model achieves over 250x speedup while maintaining high fidelity, enabling future real-time optimization and laying the foundation for data-integrated modeling frameworks and digital twins of laser systems.

1. Introduction

Second-order nonlinear optical processes, such as Sum-Frequency Generation (SFG) and Second-Harmonic Generation (SHG), are fundamental to modern laser science, particularly for generating specific wavelengths required in particle accelerators. However, the standard numerical approach for simulating these interactions—the Split-Step Fourier Method (SSFM)—is computationally intensive. SSFM requires resolving carrier-wave oscillations across the length of a nonlinear crystal, often consuming up to 95% of the total simulation time in start-to-end laser modeling. This latency prevents real-time adaptive control and high-throughput optimization.

Overview of the $\chi^{(2)}$ nonlinear process and the LSTM-based surrogate model architecture.

2. Methods and Model Architecture

To overcome the limitations of SSFM, we developed a surrogate model based on a Long Short-Term Memory (LSTM) recurrent neural network. While LSTMs are traditionally applied to temporal sequences, we utilize them to model the spatial propagation of optical fields through a discretized nonlinear crystal.

2.1 LSTM Surrogate Model

The model architecture consists of a single LSTM layer with 2048 hidden units, followed by three fully connected layers. The network operates autoregressively: it takes a sequence of 10 preceding spatial slices of the complex optical fields as input to predict the subsequent slice. This approach allows the model to learn the underlying coupled-wave dynamics without the explicit need for computationally expensive Fourier transforms at every step.

2.2 Data Generation and Preprocessing

The training data was generated using a high-fidelity simulation of the LCLS-II photoinjector laser system. We varied 10,000 unique pulse shaper configurations, specifically adjusting second-order (SOD) and third-order (TOD) dispersion parameters.

Data generation and preprocessing pipeline, including frequency-domain downsampling and temporal restructuring.

To improve efficiency, the optical fields were processed in a reduced frequency domain. By downsampling and truncating the spectra to focus on relevant bandwidths, we significantly reduced the input dimensionality. The final dataset comprised 890,000 training instances, capturing the interaction of three fields (SHG1, SFG, and SHG2) across 100 crystal slices.

3. Results and Discussion

The LSTM surrogate model demonstrates exceptional performance in both speed and accuracy.

3.1 Computational Speedup

When executed on an NVIDIA A100 GPU, the model achieved a 252x speedup compared to the CPU-based SSFM baseline. The inference time per simulation instance was reduced to approximately 7.43 milliseconds. This performance shift enables the simulation to keep pace with high-repetition-rate laser operations, facilitating real-time feedback loops.

3.2 Model Fidelity

Fidelity was assessed using a composite metric incorporating Cosine Similarity, Normalized Mean Squared Error (nMSE), and Wasserstein distance. Even at the 75th percentile of error, the predicted pulse envelopes and phases remained highly consistent with the ground truth SSFM results. A weighted MSE loss function was employed during training to prioritize accuracy in the SFG field, which is the primary output of interest for the LCLS-II system.

4. Conclusion

This work demonstrates that deep learning can effectively surrogate complex nonlinear optical simulations. By replacing the SSFM bottleneck with an LSTM-based model, we enable real-time predictive capabilities for high-power laser systems. Future research will focus on incorporating physics-informed loss functions to enforce energy conservation and coupled-wave equations, as well as improving model generalization to handle non-physical or noisy experimental data. This approach serves as a critical building block for the development of digital twins in large-scale scientific facilities.

Reference: Hirschman, J., et al. "Deep Learning Assisted Modeling for $\chi^{(2)}$ Nonlinear Optics." arXiv:2503.21198v2 [physics.optics] (2025).

Summary updated

Abstract

Modeling second-order ($χ^{(2)}$) nonlinear optical processes remains computationally expensive due to the need to resolve fast field oscillations and simulate wave propagation using methods like the split-step Fourier method (SSFM). This can become a bottleneck in real-time applications, such as high-repetition-rate laser systems requiring rapid feedback and control. We present an LSTM-based surrogate model trained on SSFM simulations generated from a start-to-end model of the photocathode drive laser at SLAC National Accelerator Laboratory's Linac Coherent Light Source II. The model achieves over 250x speedup while maintaining high fidelity, enabling future real-time optimization and laying the foundation for data-integrated modeling frameworks and digital twins of laser systems.
BibTeX
@misc{hirschman2025deep,
  author = {Jack Hirschman and Erfan Abedi and Minyang Wang and Hao Zhang and Abhimanyu Borthakur and Justin Baker and Sergio Carbajo and Lemons, Randy and Carbajo, Sergio},
  title = {{Deep Learning Assisted Modeling for $χ^\{(2)\}$ Nonlinear Optics}},
  year = {2025},
  eprint = {2503.21198},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2503.21198},
}
Figure