A Start To End Machine Learning Approach To Maximize Scientific Throughput From The LCLS-II-HE

Aashwin Mishra, Matt Seaberg, Ryan Roussel, Frédéric Poitevin, Jana Thayer, Daniel Ratner, Auralee Edelen, Apurva MehtaarXiv 2025 · DOI

Introduction

The Linac Coherent Light Source (LCLS-II-HE) represents a paradigm shift in X-ray science, delivering diffraction-limited brightness that enables unprecedented resolution. However, this leap in performance introduces significant operational hurdles. Maintaining nanoradian stability and sub-micron positioning across kilometers of hardware involves managing hundreds of interdependent variables—a task that has historically relied on hours of manual expert tuning. Furthermore, the facility generates data at rates exceeding 1 Terabit per second (Tb/s), creating a "data deluge" that threatens to overwhelm researchers' ability to adjust experiments in real-time. To address these challenges, researchers at SLAC are developing a "Start-to-End" (S2E) machine learning framework designed to automate optimization and maximize scientific throughput.

The Start-to-End (S2E) Framework

The core of the proposed solution is a modular S2E framework that integrates the entire facility pipeline, from the electron injector to the final experimental detectors. Unlike monolithic "black box" models, this approach utilizes specialized ML modules for different stages of the accelerator and beamline.

The S2E control loop integrates automated tuning, online system models, and human-in-the-loop oversight to manage the accelerator pipeline.

The implementation follows a three-phase progression: independent training on simulations, real-time chaining via diagnostics, and finally, global optimization using a "digital twin." A critical component of this architecture is the "human-in-the-loop" philosophy. By providing automated tuning and online system displays (as seen in Figure 4), the system augments human expertise. The "veto rate"—the frequency with which operators reject AI suggestions—serves as a primary metric for assessing model maturity and trustworthiness.

Standard optimization techniques often struggle with the high-dimensional search spaces (often 12+ variables) inherent in accelerator physics. The S2E framework leverages Trust Region Bayesian Optimization (TuRBO) to navigate these complex landscapes. TuRBO is particularly effective at finding "singular optimal" manifolds, such as the sharp response curves characteristic of crystal optics, where traditional methods often fail. This algorithmic approach is supported by a robust software ecosystem including Xopt for optimization, Badger for the user interface, and Lume for high-fidelity modeling.

Key Results and Performance

The transition from manual to ML-driven tuning has yielded dramatic improvements in operational efficiency. In the Hard X-Ray Split and Delay (HXRSND) system, alignment times were slashed from several hours to just a few minutes. The system demonstrated the ability to optimize 12 dimensions simultaneously, a feat nearly impossible for human operators who typically focus on two or three variables at once.

Optimization performance showing the rapid reduction of beam position error to sub-pixel levels over 130 iterations.

As shown in Figure 5, the framework achieved a beam position error of under one pixel within 130 samples, starting from a ten-pixel width. This level of precision is vital for maintaining the stability required for high-resolution experiments. Additionally, during LCLS-II injector commissioning, online ML models assisted in achieving record-breaking emittance levels by supplementing physicist intuition with data-driven insights.

Conclusion and Future Directions

While the S2E framework has already demonstrated significant gains, several challenges remain. Propagating uncertainty through the entire chain is a complex task, as upstream errors can be magnified downstream. Future work will focus on deeper integration of electron-accelerator and photon-beamline data, which have traditionally been siloed. Ultimately, the goal is to evolve these systems into "agentic" digital twins—AI agents capable of proactively suggesting experimental steps to maximize scientific discovery, effectively democratizing access to state-of-the-art light source facilities.

Summary updated

BibTeX
@misc{mishra2025start,
  author = {Aashwin Mishra and Matt Seaberg and Ryan Roussel and Frédéric Poitevin and Jana Thayer and Daniel Ratner and Auralee Edelen and Apurva Mehta},
  title = {{A Start To End Machine Learning Approach To Maximize Scientific Throughput From The LCLS-II-HE}},
  year = {2025},
  eprint = {2505.23858},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2505.23858},
}
Figure