U-Net-based surrogate modeling for attosecond X-ray free-electron lasers
Yufei Wei, Bingyang Yan, Chenzhi Xu, Jiawei Yan, Haixiao Deng
TL;DR
Attosecond XFEL pulse generation demands precise control of the longitudinal phase space (LPS), but conventional optimization is computationally intensive and invasive diagnostics impede operations. The authors develop a modified U-Net surrogate that predicts two-dimensional LPS distributions from three-phase accelerator settings, trained on start-to-end simulations for AttoSHINE with structure-aware and multi-scale losses. The surrogate achieves high fidelity to simulations, with a mean normalized mean absolute error of $13.83\%$ and an $R^2 = 0.9866$ on a 200-case test set, and delivers inference times around $150$ ms on CPU after GPU training. This forward model enables fast, noninvasive diagnostics and real-time, data-efficient tuning for LPS-sensitive attosecond XFEL operation at high repetition rates.
Abstract
Attosecond X-ray pulse generation in modern X-ray free-electron lasers relies on strongly compressed, precisely tailored electron bunches, making accurate diagnostics and control of the longitudinal phase space (LPS) essential. In the self-chirping scheme, collective effects in the linac generate a strong energy chirp that is converted into high peak current through pre-undulator compression, enabling isolated attosecond pulse generation. Reliable operation of this scheme depends on precise LPS control and fast diagnostics. In this work, we present a U-Net-based neural network surrogate that predicts two-dimensional LPS distributions directly from accelerator settings. The model exhibits excellent agreement with start-to-end simulation results. These results demonstrate the potential of neural network surrogates to facilitate real-time tuning and control in attosecond X-ray pulse generation.
