원시데이터 수집 시스템
선정목록으로

Optimization of the injection beam line at the Cooler Synchrotron COSY using Bayesian Optimization

관련 필름·전자재료 · (13) 프리즘 필름

기본 정보

저자
  1. A. Awal — GSI Helmholtzzentrum für Schwerionenforschung, Planckstraße 1, 64291 Darmstadt, Germany|||III. Physikalisches Institut B, RWTH Aachen University, Otto-Blumenthal-Str., 52056 Aachen, Germany
  2. J. Hetzel — GSI Helmholtzzentrum für Schwerionenforschung, Planckstraße 1, 64291 Darmstadt, Germany
  3. R. Gebel — GSI Helmholtzzentrum für Schwerionenforschung, Planckstraße 1, 64291 Darmstadt, Germany
  4. V. Kamerdzhiev — GSI Helmholtzzentrum für Schwerionenforschung, Planckstraße 1, 64291 Darmstadt, Germany
  5. J. Pretz — III. Physikalisches Institut B, RWTH Aachen University, Otto-Blumenthal-Str., 52056 Aachen, Germany|||Institut für Kernphysik, Forschungszentrum Jülich GmbH, Wilhelm-Johnen-Straße, 52428 Jülich, Germany
DOI
10.1088/1748-0221/18/04/p04010
저널
Journal of Instrumentation
발행년도
2023
발행기관
Institute of Physics
피인용수
6
라이선스
cc-by
논문 유형
–
언어
–
원문 페이지
https://doi.org/10.1088/1748-0221/18/04/p04010
토픽
Advancements in Photolithography Techniques
OpenAlex ID
W4364381099

평가 내용

관련도
관련
사업분야
필름·전자재료 · (13) 프리즘 필름
부 분야
–
R&D 측면
–
확신도
–
근거 용어
–
판단 근거
임베딩 유사도 기반 평가로 '필름·전자재료 > 프리즘 필름' 분야에 선정된 논문입니다.
R&D 활용 포인트
–
평가 입력
–

초록

Abstract The complex non-linear processes in multi-dimensional parameter spaces, that are typical for an accelerator, are a natural application for machine learning algorithms. This paper reports on the use of Bayesian optimization for the optimization of the Injection Beam Line (IBL) of the Cooler Synchrotron storage ring COSY at the Forschungszentrum Jülich, Germany. Bayesian optimization is a machine learning method that optimizes a continuous objective function using limited observations. The IBL is composed of 15 quadrupoles and 28 steerers. The goal is to increase the beam intensity inside the storage ring. The results showed the effectiveness of the Bayesian optimization in achieving better/faster results compared to manual optimization.

본문 13,039자

본문 펼치기
The complex non-linear processes in multi-dimensional parameter spaces, that are typical for an accelerator, are a natural application for machine learning algorithms. This paper reports on the use of Bayesian optimization for the optimization of the Injection Beam Line (IBL) of the Cooler Synchrotron storage ring COSY at the Forschungszentrum Jülich, Germany. Bayesian optimization is a machine learning method that optimizes a continuous objective function using limited observations. The IBL is composed of 15 quadrupoles and 28 steerers. The goal is to increase the beam intensity inside the storage ring. The results showed the effectiveness of the Bayesian optimization in achieving better/faster results compared to manual optimization. Introduction The field of accelerator physics has seen an increasing use of Artificial Intelligence (AI) and Machine Learning (ML) in recent years. An overview of using machine learning tools in accelerator physics is given in [1]. Bayesian optimization or algorithms have been used for example to optimize quadrupole settings for a Free Electron Laser [2] for laser-plasma accelerators [3] or tuning the emittance [4]. In this paper we report on the optimization of a injection beam line connecting the cyclotron JULIC (JUelich Light Ion Cyclotron) and the Cooler Synchrotron COSY [5,6]. Introduction The paper is organized as follows. The injection beam line is described in section 2. The optimization algorithm is explained in section 3. The results are discussed in section 4. The Injection Beam Line The injection beam line (IBL) at COSY is the 94.15 m long transfer line from the injection cyclotron (JULIC) to COSY (Figure 1). It transfers negatively charged hydrogen and deuteron ions with kinetic energies of 45 MeV and 76 MeV, respectively. For the experiment described here hydrogen ions were used. The electrons are stripped at the injection point in COSY via a stripping foil. In the storage ring, three fast bumper magnets move the orbit inside COSY horizontally to the stripping foil. Then the orbit bump is gradually reduced during the injection interval which lasts 20 ms within an injection cycle. The length of the injection cycle varies depending on the experiment. When optimizing the IBL, the time interval between two injections cycles was two seconds. The IBL is composed of eight sections-four bent and four straight sections. These can be aggregated into three segments. The first segment receives the beam from the cyclotron and steers it into the second segment. the second segment it has more flexibility as it provides separate quadrupole magnets and steerers to transform and centralize the beam from the cyclotron. The second segment is the longest part of the IBL. It transports the beam from the first segment to COSY and has less quadrupole families and steerers than the other two. The last segment provides the flexibility to transform the phase space of the beam to match with the acceptance of the storage ring at the injection stripping foil. There are three Faraday beam cups to measure the beam intensity; one at the beginning of the IBL and two between the three segments. These beam cups are usually deployed by operators to facilitate the optimization of the first two segments. There are in addition eight profile grids in both the horizontal and vertical direction. One is placed at the beginning of the IBL and the others are in between the eight sections of the IBL. Table 1 gives an overview of all elements in the IBL. Injection Optimization As can be seen in table 1, the IBL has 15 quadrupole magnet families and 28 steerers summing up to 43 parameters to optimize. In this context a family is a group of magnets where all elements are operated with the same current and hence cannot be tuned independently. Dipoles have a fixed current and they are not part of the optimization procedure. Depending on the situation, different parts or magnet types of the IBL were optimized. The goal is to have the highest beam current inside the storage ring. Bayesian Optimization Bayesian Optimization is a machine learning method that optimizes an objective function f : x ∈ R d → R to find the optimum using limited observations. The objective function f to be optimized is a black-box continuous function that is costly to evaluate and/or is difficult to differentiate. The number of dimensions d for the input x is typically not too large-typically d ≤ 20 [7]. As the dimension space of the IBL is 43, we decided to perform the optimization over sections or specific components. The goal is to find the maximum of the objective function with respect to the parameters vector x. In the scope of our problem, x is a vector of the magnet currents, and f (x) is the reading of the target measurement instrument such as the beam current inside the storage ring. Bayesian optimization works by defining and computing two functions, a surrogate function and an acquisition function. The surrogate function approximates the objective function using the observations. It is computed first to model the probability distribution of the objective function in the unexplored space of parameters. Gaussian processes [8] is a widely used surrogate function and it is the method used in our experiments. In Bayesian optimization, the surrogate function is then used to find the most promising parameters to sample based on an exploration-exploitation trade-off. Exploration promotes sampling from regions with high uncertainty while exploitation promotes sampling from regions with likely improvement over the current best observation. This is achieved through computing the acquisition function. The acquisition function adopted in the experiments is the expected improvement (EI) [9]. EI is a widely used method that computes the expected value of improvement compared to the current best observation from the objective function. It is defined as Bayesian Optimization where µ and σ are the mean and standard deviation of the probability dis-Algorithm 1 Implementation of Bayesian optimization at COSY D ← empty list of tuples (x, f (x)) r, κ ← radius of the IBL beam pipe, factor threshold of beam width S ← empty list for the Twiss parameter β x,y of all IBL components Loop till convergence : Bayesian Optimization Loop : //search for the next valid parameters x t+1 ← Bayesian optimization step over D Simulation magnets ← x t+1 S ← retrieve β values from the simulation Twiss parameters β max ← max S Until ( √ εβ max < κ · r) //verify the peak width is within the threshold Magnet currents at the IBL ← x t+1 Return arg max x D tribution computed by the surrogate function, µ + is the best observed point, φ(.) and ϕ(.) are the probability density function (PDF) and cumulative distribution functions (CDF) of the Gaussian distribution, respectively. ε determines the amount of exploration during the optimization with higher ε leading to more exploration but less exploitation as shown in Figure 2 for one dimension. EI is computed over the parameter space and the point with the maximum EI is sampled and is then used to update the objective function. A detailed tutorial of Bayesian optimization can be found in [10]. Implementation The COSY facility uses the Experimental Physics and Industrial Control System (EPICS) [11]. This allows to fully automate the execution of the optimization method. The framework of executing the optimization method and controlling the IBL, has been implemented in Python and supporting libraries [12,13,14,15]. The supporting simulations have been performed in MAD-X [16]. In order for the optimization method to work properly, a fast convergence of the beam and an accurate efficiency measurement are required. As the readings of the stripping foil and the beam current inside COSY are noisy, we increased the accuracy of the readings by averaging over several injection cycles. During the optimization process, there are many combinations of magnet currents that are not feasible, because they would lead to an immediate loss of beam. As a reliable simulation model exists for the IBL, the combination of magnet currents that are quite distant from the acceptable values could be identified and omitted. This process will reduce the number of optimization steps and speeds up the convergence. We have adopted this approach during the live optimization of the IBL, albeit it is an optional step and should not change the final outcome. Implementation A single optimization cycle starts with reading the currents of the magnets and the current of the target component. The magnet currents are the parameters to be optimized and the target component is either a Faraday cup, the strip foil current, or the beam current inside the storage ring. The parameters and the target value are added to the list buffer of observed parameters and targets. A single Bayesian optimization step is then executed by sequentially computing the surrogate function over the buffer and the acquisition function. The parameters of the maximum over the acquisition function represents the potential magnet currents to be explored. To reduce the number of optimization steps and roll-out parameters that are far off, the simulation model is updated with the computed parameters and the simulation is then executed. Using the Twiss parameters, the maximum beam size over the IBL is calculated and it is tested not to exceed the size of the IBL by a predefined threshold factor κ which in our experiments was set to 4. If it exceeds the threshold width, the parameters of the beam are added to the buffer along with the target set to zero and a subsequent Bayesian optimization step is executed. If the parameters are in the allowed region, the IBL magnets are set to the computed values. Pseudocode for the full implementation algorithm is shown in Algorithm 1. The space of acceptable parameters that leads to some beam passing through the IBL is very limited with respect to the full space of possible parameters. Therefore, the hyperparameters of the optimization are tuned towards more exploitation by setting ε ≈ 0. Results Provided with sufficient time and fair parameters for the exploration-exploitation trade-off, Bayesian optimization typically continues to improve the optimization parameters. Experimentally, Bayesian optimization achieved better results on space dimension of size around 10 magnets or less compared to a much larger space. Therefore in the experiments described here we split the optimization into two consecutive parts. The first two segments, (I and II in figure 1) with 11 quadrupole families are jointly optimized during the first step. The 24 steerers in these two sections were not part of the optimization. The third segment with four quadrupoles and four steerers was optimized during the second step. This resulted in a better convergence than optimizing all the 19 quadrupoles and steerers at once. Figure 3 shows a live run of Bayesian optimization for the first two segments (i.e. first seven sections) of the IBL, where full transmission of the beam up to the Faraday cup at the beginning of the last section is achieved within 200 steps over 50 minutes. Using a manual optimization for the last section of the IBL, 2.6 × 10 10 protons inside the synchrotron were reached. Bayesian optimization was executed subsequently to optimize the quadrupoles and steerers of the last section resulting in an increase of the intensity inside the synchrotron to 3.5 × 10 10 protons in 75 steps over 19 minutes as shown in Figure 4. Overall, the use of Bayesian optimization in this context demonstrated its effectiveness in improving the performance of the injection process. A manual optimization typically takes a few hours. Summary and Outlook This paper presents the optimization of the IBL at COSY using Bayesian optimization approach. This method has shown to facilitate and reduce the tuning time compared to manual optimization methods. In addition, the use of Bayesian optimization also showed the ability to increase the beam intensity compared to manual optimization. This demonstrates the potentials of machine learning algorithms in accelerator physics, particularly in the optimization of complex non-linear problems with multi-dimensional parameter spaces. Further research can be conducted on the use of other machine learning techniques that are more efficient during the online run but require extensive training such as Reinforcement Learning agent to enhance the performance and efficiency of accelerators. Figure 4: Optimizing the quadrupole and steering magnets of the last section from the IBL via Bayesian optimization. After manual optimization of the IBL there were 2.6 × 10 10 protons inside the synchrotron. The objective function for Bayesian optimization is the beam current inside COSY and the parameters space is of size d = 8. The beam intensity after the optimization improved to 3.5 × 10 10 protons inside the synchrotron and the duration of this optimization was 19 minutes.

섹션 본문 12문단 · 12,830자

(제목 없음)

1The complex non-linear processes in multi-dimensional parameter spaces, that are typical for an accelerator, are a natural application for machine learning algorithms. This paper reports on the use of Bayesian optimization for the optimization of the Injection Beam Line (IBL) of the Cooler Synchrotron storage ring COSY at the Forschungszentrum Jülich, Germany. Bayesian optimization is a machine learning method that optimizes a continuous objective function using limited observations. The IBL is composed of 15 quadrupoles and 28 steerers. The goal is to increase the beam intensity inside the storage ring. The results showed the effectiveness of the Bayesian optimization in achieving better/faster results compared to manual optimization.

Introduction

2The field of accelerator physics has seen an increasing use of Artificial Intelligence (AI) and Machine Learning (ML) in recent years. An overview of using machine learning tools in accelerator physics is given in [1]. Bayesian optimization or algorithms have been used for example to optimize quadrupole settings for a Free Electron Laser [2] for laser-plasma accelerators [3] or tuning the emittance [4]. In this paper we report on the optimization of a injection beam line connecting the cyclotron JULIC (JUelich Light Ion Cyclotron) and the Cooler Synchrotron COSY [5,6].

3The paper is organized as follows. The injection beam line is described in section 2. The optimization algorithm is explained in section 3. The results are discussed in section 4.

The Injection Beam Line

4The injection beam line (IBL) at COSY is the 94.15 m long transfer line from the injection cyclotron (JULIC) to COSY (Figure 1). It transfers negatively charged hydrogen and deuteron ions with kinetic energies of 45 MeV and 76 MeV, respectively. For the experiment described here hydrogen ions were used. The electrons are stripped at the injection point in COSY via a stripping foil. In the storage ring, three fast bumper magnets move the orbit inside COSY horizontally to the stripping foil. Then the orbit bump is gradually reduced during the injection interval which lasts 20 ms within an injection cycle. The length of the injection cycle varies depending on the experiment. When optimizing the IBL, the time interval between two injections cycles was two seconds. The IBL is composed of eight sections-four bent and four straight sections. These can be aggregated into three segments. The first segment receives the beam from the cyclotron and steers it into the second segment. the second segment it has more flexibility as it provides separate quadrupole magnets and steerers to transform and centralize the beam from the cyclotron. The second segment is the longest part of the IBL. It transports the beam from the first segment to COSY and has less quadrupole families and steerers than the other two. The last segment provides the flexibility to transform the phase space of the beam to match with the acceptance of the storage ring at the injection stripping foil. There are three Faraday beam cups to measure the beam intensity; one at the beginning of the IBL and two between the three segments. These beam cups are usually deployed by operators to facilitate the optimization of the first two segments. There are in addition eight profile grids in both the horizontal and vertical direction. One is placed at the beginning of the IBL and the others are in between the eight sections of the IBL. Table 1 gives an overview of all elements in the IBL.

Injection Optimization

5As can be seen in table 1, the IBL has 15 quadrupole magnet families and 28 steerers summing up to 43 parameters to optimize. In this context a family is a group of magnets where all elements are operated with the same current and hence cannot be tuned independently. Dipoles have a fixed current and they are not part of the optimization procedure. Depending on the situation, different parts or magnet types of the IBL were optimized. The goal is to have the highest beam current inside the storage ring.

Bayesian Optimization

6Bayesian Optimization is a machine learning method that optimizes an objective function f : x ∈ R d → R to find the optimum using limited observations. The objective function f to be optimized is a black-box continuous function that is costly to evaluate and/or is difficult to differentiate. The number of dimensions d for the input x is typically not too large-typically d ≤ 20 [7]. As the dimension space of the IBL is 43, we decided to perform the optimization over sections or specific components. The goal is to find the maximum of the objective function with respect to the parameters vector x. In the scope of our problem, x is a vector of the magnet currents, and f (x) is the reading of the target measurement instrument such as the beam current inside the storage ring. Bayesian optimization works by defining and computing two functions, a surrogate function and an acquisition function. The surrogate function approximates the objective function using the observations. It is computed first to model the probability distribution of the objective function in the unexplored space of parameters. Gaussian processes [8] is a widely used surrogate function and it is the method used in our experiments. In Bayesian optimization, the surrogate function is then used to find the most promising parameters to sample based on an exploration-exploitation trade-off. Exploration promotes sampling from regions with high uncertainty while exploitation promotes sampling from regions with likely improvement over the current best observation. This is achieved through computing the acquisition function. The acquisition function adopted in the experiments is the expected improvement (EI) [9]. EI is a widely used method that computes the expected value of improvement compared to the current best observation from the objective function. It is defined as

7where µ and σ are the mean and standard deviation of the probability dis-Algorithm 1 Implementation of Bayesian optimization at COSY D ← empty list of tuples (x, f (x)) r, κ ← radius of the IBL beam pipe, factor threshold of beam width S ← empty list for the Twiss parameter β x,y of all IBL components Loop till convergence :

8Loop : //search for the next valid parameters x t+1 ← Bayesian optimization step over D Simulation magnets ← x t+1 S ← retrieve β values from the simulation Twiss parameters β max ← max S Until ( √ εβ max < κ · r) //verify the peak width is within the threshold Magnet currents at the IBL ← x t+1 Return arg max x D tribution computed by the surrogate function, µ + is the best observed point, φ(.) and ϕ(.) are the probability density function (PDF) and cumulative distribution functions (CDF) of the Gaussian distribution, respectively. ε determines the amount of exploration during the optimization with higher ε leading to more exploration but less exploitation as shown in Figure 2 for one dimension. EI is computed over the parameter space and the point with the maximum EI is sampled and is then used to update the objective function. A detailed tutorial of Bayesian optimization can be found in [10].

Implementation

9The COSY facility uses the Experimental Physics and Industrial Control System (EPICS) [11]. This allows to fully automate the execution of the optimization method. The framework of executing the optimization method and controlling the IBL, has been implemented in Python and supporting libraries [12,13,14,15]. The supporting simulations have been performed in MAD-X [16]. In order for the optimization method to work properly, a fast convergence of the beam and an accurate efficiency measurement are required. As the readings of the stripping foil and the beam current inside COSY are noisy, we increased the accuracy of the readings by averaging over several injection cycles. During the optimization process, there are many combinations of magnet currents that are not feasible, because they would lead to an immediate loss of beam. As a reliable simulation model exists for the IBL, the combination of magnet currents that are quite distant from the acceptable values could be identified and omitted. This process will reduce the number of optimization steps and speeds up the convergence. We have adopted this approach during the live optimization of the IBL, albeit it is an optional step and should not change the final outcome.

10A single optimization cycle starts with reading the currents of the magnets and the current of the target component. The magnet currents are the parameters to be optimized and the target component is either a Faraday cup, the strip foil current, or the beam current inside the storage ring. The parameters and the target value are added to the list buffer of observed parameters and targets. A single Bayesian optimization step is then executed by sequentially computing the surrogate function over the buffer and the acquisition function. The parameters of the maximum over the acquisition function represents the potential magnet currents to be explored. To reduce the number of optimization steps and roll-out parameters that are far off, the simulation model is updated with the computed parameters and the simulation is then executed. Using the Twiss parameters, the maximum beam size over the IBL is calculated and it is tested not to exceed the size of the IBL by a predefined threshold factor κ which in our experiments was set to 4. If it exceeds the threshold width, the parameters of the beam are added to the buffer along with the target set to zero and a subsequent Bayesian optimization step is executed. If the parameters are in the allowed region, the IBL magnets are set to the computed values. Pseudocode for the full implementation algorithm is shown in Algorithm 1. The space of acceptable parameters that leads to some beam passing through the IBL is very limited with respect to the full space of possible parameters. Therefore, the hyperparameters of the optimization are tuned towards more exploitation by setting ε ≈ 0.

Results

11Provided with sufficient time and fair parameters for the exploration-exploitation trade-off, Bayesian optimization typically continues to improve the optimization parameters. Experimentally, Bayesian optimization achieved better results on space dimension of size around 10 magnets or less compared to a much larger space. Therefore in the experiments described here we split the optimization into two consecutive parts. The first two segments, (I and II in figure 1) with 11 quadrupole families are jointly optimized during the first step. The 24 steerers in these two sections were not part of the optimization. The third segment with four quadrupoles and four steerers was optimized during the second step. This resulted in a better convergence than optimizing all the 19 quadrupoles and steerers at once. Figure 3 shows a live run of Bayesian optimization for the first two segments (i.e. first seven sections) of the IBL, where full transmission of the beam up to the Faraday cup at the beginning of the last section is achieved within 200 steps over 50 minutes. Using a manual optimization for the last section of the IBL, 2.6 × 10 10 protons inside the synchrotron were reached. Bayesian optimization was executed subsequently to optimize the quadrupoles and steerers of the last section resulting in an increase of the intensity inside the synchrotron to 3.5 × 10 10 protons in 75 steps over 19 minutes as shown in Figure 4. Overall, the use of Bayesian optimization in this context demonstrated its effectiveness in improving the performance of the injection process. A manual optimization typically takes a few hours.

Summary and Outlook

12This paper presents the optimization of the IBL at COSY using Bayesian optimization approach. This method has shown to facilitate and reduce the tuning time compared to manual optimization methods. In addition, the use of Bayesian optimization also showed the ability to increase the beam intensity compared to manual optimization. This demonstrates the potentials of machine learning algorithms in accelerator physics, particularly in the optimization of complex non-linear problems with multi-dimensional parameter spaces. Further research can be conducted on the use of other machine learning techniques that are more efficient during the online run but require extensive training such as Reinforcement Learning agent to enhance the performance and efficiency of accelerators. Figure 4: Optimizing the quadrupole and steering magnets of the last section from the IBL via Bayesian optimization. After manual optimization of the IBL there were 2.6 × 10 10 protons inside the synchrotron. The objective function for Bayesian optimization is the beam current inside COSY and the parameters space is of size d = 8. The beam intensity after the optimization improved to 3.5 × 10 10 protons inside the synchrotron and the duration of this optimization was 19 minutes.

참고문헌 7건

  1. Efficient Global Optimization of Expensive Black-Box Functions Journal of Global Optimization · Springer Science+Business Media · 1998 10.1023/a:1008306431147
  2. Cooler synchrotron COSY Nuclear Physics A · Elsevier BV · 1997 10.1016/s0375-9474(97)00562-9
  3. GAUSSIAN PROCESSES FOR MACHINE LEARNING International Journal of Neural Systems · World Scientific · 2004 10.1142/s0129065704001899
  4. The cooler synchrotron COSY in Jülich Nuclear Instruments and Methods in Physics Research Section B Beam Interactions with Materials and Atoms · Elsevier BV · 1996 10.1016/0168-583x(95)01352-0
  5. Scikit-learn: Machine Learning in Python arXiv (Cornell University) · Cornell University · 2012 10.48550/arxiv.1201.0490
  6. Bayesian Optimization of a Free-Electron Laser Physical Review Letters · American Physical Society · 2020 10.1103/physrevlett.124.124801
  7. Bayesian optimization of laser-plasma accelerators assisted by reduced physical models Physical Review Accelerators and Beams · American Physical Society · 2023 10.1103/physrevaccelbeams.26.084601