Skip to main content
QUICK REVIEW

[Paper Review] Real-time Artificial Intelligence for Accelerator Control: A Study at the Fermilab Booster

Jason St. John, T. C. Herwig|arXiv (Cornell University)|Nov 14, 2020
Distributed and Parallel Computing SystemsComputer Science55 references39 citations
TL;DR

This paper presents a real-time reinforcement learning (RL)-based control system for the Fermilab Booster's Gradient Magnet Power Supply (GMPS), using a surrogate machine learning model trained on real accelerator data to safely train an RL agent. The system is compiled and deployed on an FPGA for low-latency, stable control, achieving the first ML-based control algorithm implemented on FPGA firmware at Fermilab, with preliminary results showing feasibility for sub-millisecond response times and a projected tenfold improvement in regulation precision.

ABSTRACT

We describe a method for precisely regulating the gradient magnet power supply at the Fermilab Booster accelerator complex using a neural network trained via reinforcement learning. We demonstrate preliminary results by training a surrogate machine-learning model on real accelerator data to emulate the Booster environment, and using this surrogate model in turn to train the neural network for its regulation task. We additionally show how the neural networks to be deployed for control purposes may be compiled to execute on field-programmable gate arrays. This capability is important for operational stability in complicated environments such as an accelerator facility.

Motivation & Objective

  • To develop a real-time artificial intelligence control system for the Fermilab Booster's Gradient Magnet Power Supply (GMPS) using reinforcement learning.
  • To reduce reliance on expert hand-tuning by replacing heuristic control with data-driven, adaptive learning methods.
  • To enable low-latency, stable control in high-speed accelerator environments through FPGA deployment of trained RL agents.
  • To demonstrate a safe, high-fidelity training pipeline using a surrogate model trained on real accelerator data before online deployment.
  • To achieve a tenfold improvement in regulation precision over existing control systems for the GMPS.

Proposed method

  • Training a neural network surrogate model on real Fermilab Booster accelerator data to emulate the behavior of the GMPS with high fidelity.
  • Using the surrogate model as a safe, high-speed environment to train and evaluate a reinforcement learning (RL) agent before real-world deployment.
  • Employing model-free deep reinforcement learning (specifically PPO and SAC algorithms) to train the online control agent for real-time decision-making.
  • Compiling the trained RL policy into hardware-compatible code using tools like hls4ml to generate FPGA-optimized inference kernels.
  • Integrating the FPGA-deployed model into the existing Booster control system for high-speed data ingestion and real-time actuation.
  • Validating the system using FPGA test benches with a pretrained, static RL model to assess latency, stability, and response time.

Experimental results

Research questions

  • RQ1Can a surrogate machine learning model trained on real accelerator data accurately replicate the dynamics of the GMPS for safe RL training?
  • RQ2Can a reinforcement learning agent trained in simulation (via the surrogate) achieve stable, real-time control of the GMPS in a hardware-deployed environment?
  • RQ3What is the achievable latency and stability of an RL-based control system when compiled and executed directly on an FPGA in an accelerator facility?
  • RQ4How does the performance of the RL-based control system compare to traditional hand-tuned control methods in terms of regulation precision and response time?
  • RQ5Can the integration of ML control into existing accelerator control infrastructure be achieved without introducing operational instability or latency?

Key findings

  • The surrogate model successfully emulates the GMPS dynamics with high fidelity, enabling safe and efficient training of RL agents in simulation.
  • The RL agent trained on the surrogate model demonstrated stable control behavior in FPGA test bench evaluations, with response times below 1 ms.
  • The first ML-based control algorithm was successfully compiled and deployed on FPGA firmware at the Fermilab accelerator complex, marking a key milestone in real-time AI control.
  • The system achieved sub-millisecond response times due to the absence of runtime latencies on the FPGA, critical for operational stability in high-speed accelerator environments.
  • Preliminary results indicate that the RL-based control system can achieve a projected tenfold improvement in regulation precision over current methods.
  • The integration of the FPGA-deployed agent into the existing Booster control system was successfully demonstrated, confirming compatibility and real-time data ingestion capability.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.