Machine Learning-Driven Beam Tuning Using Adaptive Region Bayesian Optimization at INFN-LNL †
Abstract
1. Introduction
2. Materials and Methods
2.1. Working Principle of ARBO
2.2. ARBO Parameters
2.3. Comparison of ARBO with Vanilla BO and TuRBO
2.4. General Methodology
- 1.
- Identify the part of the accelerator that needs to be optimized;
- 2.
- Develop an objective function specific to the optimization problem;
- 3.
- Determine a reasonable size for the initial search region ;
- 4.
- Integrate and apply the algorithm within the beam transport simulator or the accelerator control system.
2.5. EPICS Implementation to Online Accelerator Systems
- 1.
- The new setpoints computed by the algorithm are written to the control PVs via caput operations. The number of PVs written at each evaluation corresponds to the dimensionality of the optimization search space.
- 2.
- A fixed settling time, empirically determined on the basis of preliminary measurements of the beam behaviour, is awaited to ensure system stabilization before reading the objective function. This parameter represents a potential margin for further improvement of the algorithm’s performance.
- 3.
- The relevant beam diagnostics are read via caget and processed as described above to obtain the objective function value.
2.6. Offline Optimization of the ANTHEM MEBT Line
2.7. Online Optimization of the INFN-LNL TAP Facility
2.8. Online Optimization of the ESS-NCL
3. Results
3.1. Beam Uniformity Optimization in the ANTHEM MEBT Line
3.2. Beam Transport Optimization of the INFN-LNL TAP Facility
3.3. Beam Transport Optimization in the ESS-NCL
4. Discussion
5. Conclusions
Author Contributions
Funding
Data Availability Statement
Acknowledgments
Conflicts of Interest
Abbreviations
| ML | Machine Learning |
| INFN-LNL | Istituto Nazionale di Fisica Nucleare—Labaratori Nazionali di Legnaro |
| ARBO | Adaptive Region Bayesian Optimization |
| ANTHEM | Advanced Technologies for Human-centered Medicine |
| BNCT | Boron Neutron Capture Therapy |
| ESS | European Spallation Source |
| ALPI | Acceleratore Lineare Per Ioni |
| BO | Bayesian Optimization |
| TuRBO | Trust Region Bayesian Optimization |
| TAP | TANDEM-ALPI-PIAVE |
| UCB | Upper Confidence Bound |
| EI | Expected Improvement |
| POI | Probability of Improvement |
| EPICS | Experimental Physics and Industrial Control System |
| RFQ | Radio-Frequency Quadrupole |
| MEBT | Medium Energy Beam Transport |
| PIC | Particle-in-cell |
| CR | Cryostat |
| FC | Faraday Cup |
| NCL | Normal Conducting Linac |
| SCL | Superconducting Linac |
| DTL | Drift Tube Linac |
| BPM | Beam Position Monitor |
| BLM | Beam Loss Monitor |
| PV | Process Variable |
| RMS | Root Mean Square |
| MBL | Medium- Linac |
| HBL | High- Linac |
Appendix A. Physical Parameters for the Simulations and Experiments
| Variable | Value | Description |
|---|---|---|
| Particle | Proton | Particle type used for the simulation. |
| Number of particles | 207,611 | Number of particles used for the simulation. |
| Energy | 5 MeV | Energy of the particles used for the simulation. |
| Beam current | 31.12 mA | Beam current used for the simulation. |
| 0.22 .mm.mrad | X-X’ normalized RMS emittance of the input beam. | |
| 0.25 .mm.mrad | Y-Y’ normalized RMS emittance of the input beam. | |
| 1.78 .deg.MeV | Longitudinal RMS emittance of the input beam. | |
| Space-charge routine | PICNIC(3D) | Space-charge routine used for the simulation. |
| Mesh (x-y, z) | 6, 6 | 3D mesh for the Particle In Cells integration. |
| Calculation step | The number of calculation step for particle tracking. | |
| Space-charge step | The number of space-charge kicks for particle tracking. |
| Element | Length [m] | Edge [m] | Element Type |
|---|---|---|---|
| DR1 | 0.40 | 0.00 | Drift |
| Q1 | 0.20 | 0.40 | Quadrupole |
| DR2 | 0.15 | 0.60 | Drift |
| Q2 | 0.20 | 0.75 | Quadrupole |
| DR3 | 0.50 | 0.95 | Drift |
| Q3 | 0.20 | 1.45 | Quadrupole |
| DR4 | 0.15 | 1.65 | Drift |
| Q4 | 0.20 | 1.80 | Quadrupole |
| DR5 | 0.15 | 2.00 | Drift |
| Q5 | 0.20 | 2.15 | Quadrupole |
| DR6 | 2.67 | 2.35 | Drift |
| D1 | 0.39 | 5.02 | Dipole |
| DR7 | 1.66 | 5.42 | Drift |
| Q6 | 0.20 | 7.08 | Quadrupole |
| DR8 | 0.15 | 7.28 | Drift |
| Q7 | 0.20 | 7.43 | Quadrupole |
| DR9 | 0.50 | 7.63 | Drift |
| Q8 | 0.20 | 7.78 | Quadrupole |
| DR10 | 0.34 | 7.98 | Drift |
| O1 | 0.20 | 8.32 | Octupole |
| DR11 | 0.94 | 8.52 | Drift |
| O1 | 0.20 | 9.46 | Octupole |
| DR12 | 3.22 | 9.66 | Drift |
| C | 1.27 | 12.88 | Collimator |
| DR13 | 0.3 | 14.15 | Drift |
| T | - | 14.45 | Target |
| Variable | Value | Description |
|---|---|---|
| INFN-LNL TAP facility | ||
| Beam | Type of beam optimized. | |
| Energy | 587.5 keV·u−1 (end of PIAVE) 4.9 MeV·u−1 (at FC DU2) | Energy of the beam during optimization. |
| Beam current | ∼900 nA | Beam current from ion source during optimization. |
| ESS | ||
| Beam | Proton | Type of beam optimized. |
| Energy | 90 MeV (end of DTL) 0.8 GeV (at Beam dump, cavities until HBL05 active) | Energy of the beam during optimization. |
| Beam current | ∼5 mA | Beam current from ion source during optimization. |
| Pulse length | 5 s | Pulse length of the beam during optimization. |
| Repetition rate | 1 Hz | Repetition rate of the beam pulse during optimization. |
Appendix B. Facility-Specfic Parameters
| Parameter | ANTHEM MEBT | INFN-LNL TAP | ESS-NCL |
|---|---|---|---|
| Optimized parameters () | |||
| Initial search bounds () | T·m−1 T·m−3 | % % (– T·m−1) * deg | A ( mT) A ( T·m−1) V deg |
| Number of diagnostics/observables used in the objective functions | |||
| Objective weighting factors w | , , | – | |
Appendix C. Additional Results





References
- Nagaitsev, S.; Huang, Z.; Power, J.; Vay, J.L.; Piot, P.; Spentzouris, L.; Rosenzweig, J.; Cai, Y.; Cousineau, S.; Conde, M.; et al. Accelerator and Beam Physics Research Goals and Opportunities. arXiv 2021, arXiv:2101.04107. [Google Scholar] [CrossRef]
- U.S. Department of Energy, Office of Science. Accelerator and Beam Physics Roadmap 2023; U.S. Department of Energy, Office of Science: Washington, DC, USA, 2023.
- Nelder, J.A.; Mead, R. A Simplex Method for Function Minimization. Comput. J. 1965, 7, 308–313. [Google Scholar] [CrossRef]
- Huang, X. Robust simplex algorithm for online optimization. Phys. Rev. Accel. Beams 2018, 21, 104601. [Google Scholar] [CrossRef]
- Huang, X.; Corbett, J.; Safranek, J.; Wu, J. An algorithm for online optimization of accelerators. Nucl. Instrum. Methods Phys. Res. Sect. A 2013, 726, 77–83. [Google Scholar] [CrossRef]
- Roussel, R.; Edelen, A.L.; Boltz, T.; Kennedy, D.; Zhang, Z.; Ji, F.; Huang, X.; Ratner, D.; Santamaria Garcia, A.; Xu, C.; et al. Bayesian optimization algorithms for accelerator physics. Phys. Rev. Accel. Beams 2024, 27, 084801. [Google Scholar] [CrossRef]
- Ferran Pousa, A.; Jalas, S.; Kirchen, M.; Martinez de la Ossa, A.; Thévenet, M.; Hudson, S.; Larson, J.; Huebl, A.; Vay, J.L.; Lehe, R. Bayesian optimization of laser-plasma accelerators assisted by reduced physical models. Phys. Rev. Accel. Beams 2023, 26, 084601. [Google Scholar] [CrossRef]
- Xu, C.; Boltz, T.; Mochihashi, A.; Santamaria Garcia, A.; Schuh, M.; Müller, A.S. Bayesian optimization of the beam injection process into a storage ring. Phys. Rev. Accel. Beams 2023, 26, 034601. [Google Scholar] [CrossRef]
- Jalas, S.; Kirchen, M.; Messner, P.; Winkler, P.; Hübner, L.; Dirkwinkel, J.; Schnepp, M.; Lehe, R.; Maier, A.R. Bayesian Optimization of a Laser-Plasma Accelerator. Phys. Rev. Lett. 2021, 126, 104801. [Google Scholar] [CrossRef] [PubMed]
- Kaiser, J.; Xu, C.; Eichler, A.; Santamaria Garcia, A.; Stein, O.; Bründermann, E.; Kuropka, W.; Dinter, H.; Mayet, F.; Vinatier, T.; et al. Reinforcement learning-trained optimisers and Bayesian optimisation for online particle accelerator tuning. Sci. Rep. 2024, 14, 15733. [Google Scholar] [CrossRef]
- Duris, J.; Kennedy, D.; Hanuka, A.; Shtalenkova, J.; Edelen, A.; Baxevanis, P.; Egger, A.; Cope, T.; McIntire, M.; Ermon, S.; et al. Bayesian Optimization of a Free-Electron Laser. Phys. Rev. Lett. 2020, 124, 124801. [Google Scholar] [CrossRef]
- Shahriari, B.; Swersky, K.; Wang, Z.; Adams, R.P.; de Freitas, N. Taking the Human Out of the Loop: A Review of Bayesian Optimization. Proc. IEEE 2016, 104, 148–175. [Google Scholar] [CrossRef]
- Rasmussen, C.E.; Nickisch, H. Gaussian Processes for Machine Learning (GPML) Toolbox. J. Mach. Learn. Res. 2010, 11, 3011–3015. [Google Scholar]
- Eriksson, D.; Pearce, M.; Gardner, J.R.; Turner, R.; Poloczek, M. Scalable Global Optimization via Local Bayesian Optimization. In Proceedings of the Advances in Neural Information Processing Systems (NeurIPS 2019), Vancouver, BC, Canada, 8–14 December 2019. [Google Scholar] [CrossRef]
- Liuzzo, S.M.; Agapov, I.V.; Böse, M.; Carmignani, N.; Carver, L.R.; Edelen, A.L.; Hellert, T.; Hoummi, L.; Keil, J.; Lacoste, D.; et al. Optimisation of the Touschek Lifetime in Synchrotron Light Sources Using Badger. In Proceedings of the 19th International Conference on Accelerator and Large Experimental Physics Control Systems (ICALEPCS’23), Cape Town, South Africa, 9–13 October 2023; pp. 108–115. [Google Scholar] [CrossRef]
- Ong, Y.K.; Bellan, L.; Bortolato, D.; Montis, M.; Comunian, M.; Pisent, A.; Fagotti, E. ALPI-PIAVE performance at INFN-LNL with advanced optimization algorithms. In Proceedings of the 16th International Conference on Heavy Ion Accelerator Technology (HIAT 2025), East Lansing, MI, USA, 22–27 June 2025; pp. 211–214. [Google Scholar] [CrossRef]
- Nogueira, F. Bayesian Optimization: Open Source Constrained Global Optimization Tool for Python, version 1.4.3; GitHub; 2014. Available online: https://github.com/bayesian-optimization/BayesianOptimization (accessed on 25 May 2026).
- Srinivas, N.; Krause, A.; Kakade, S.M.; Seeger, M. Gaussian Process Optimization in the Bandit Setting: No Regret and Experimental Design. arXiv 2009, arXiv:0912.3995. [Google Scholar] [CrossRef]
- Zhu, C.; Byrd, R.H.; Lu, P.; Nocedal, J. Algorithm 778: L-BFGS-B: Fortran subroutines for large-scale bound-constrained optimization. ACM Trans. Math. Softw. 1997, 23, 550–560. [Google Scholar] [CrossRef]
- Mockus, J.; Tiesis, V.; Zilinskas, A. The Application of Bayesian Methods for Seeking the Extremum. Towards Glob. Optim. 1978, 2, 117–129. [Google Scholar]
- Kushner, H.J. A New Method of Locating the Maximum Point of an Arbitrary Multipeak Curve in the Presence of Noise. J. Basic Eng. 1964, 86, 97–106. [Google Scholar] [CrossRef]
- Ament, S.; Daulton, S.; Eriksson, D.; Balandat, M.; Bakshy, E. Unexpected Improvements to Expected Improvement for Bayesian Optimization. arXiv 2023, arXiv:2310.20708. [Google Scholar] [CrossRef]
- Brochu, E.; Cora, V.M.; de Freitas, N. A Tutorial on Bayesian Optimization of Expensive Cost Functions, with Application to Active User Modeling and Hierarchical Reinforcement Learning. arXiv 2010, arXiv:1012.2599. [Google Scholar] [CrossRef]
- Jones, D.R. A Taxonomy of Global Optimization Methods Based on Response Surfaces. J. Glob. Optim. 2001, 21, 345–383. [Google Scholar] [CrossRef]
- Hansen, N.; Auger, A.; Brockhoff, D.; Tušar, T. Anytime Performance Assessment in Blackbox Optimization Benchmarking. IEEE Trans. Evol. Comput. 2022, 26, 1293–1305. [Google Scholar] [CrossRef]
- Hansen, N.; Auger, A.; Finck, S.; Ros, R. Real-Parameter Black-Box Optimization Benchmarking 2009: Noiseless Functions Definitions; Research Report RR-6829; INRIA: Orsay, France, 2009. [Google Scholar]
- Hansen, N.; Tušar, T.; Mersmann, O.; Auger, A.; Brockhoff, D. COCO: The Experimental Procedure. arXiv 2016, arXiv:1605.03560. [Google Scholar] [CrossRef]
- Dalesio, L.R.; Hill, J.O.; Kraimer, M.; Lewis, S.; Murray, D.; Hunt, S.; Watson, W.; Clausen, M.; Dalesio, J. The experimental physics and industrial control system architecture: Past, present, and future. Nucl. Instrum. Methods Phys. Res. Sect. A 1994, 352, 179–184. [Google Scholar] [CrossRef]
- Pisent, A.; Grespan, F.; Passarelli, A.; Selva, A.; Palmieri, A.; Baltador, C.; Mingioni, C.; Nicoletti, E.; Fagotti, E.; Esposito, J.; et al. ANTHEM Project, construction of a RFQ driven BNCT neutron source. In Proceedings of the 32nd Linear Accelerator Conference (LINAC 2024), Chicago, IL, USA, 25–30 August 2024; pp. 291–294. [Google Scholar] [CrossRef]
- Duperrier, R. TOUTATIS: A radio frequency quadrupole code. Phys. Rev. Spec. Top.-Accel. Beams 2000, 3, 124201. [Google Scholar] [CrossRef]
- Uriot, D.; Pichoff, N. TraceWin, version 2.23; CEA Saclay, DRF/Irfu/DACM/LEDA: Gif-sur-Yvette, France, 2009; Available online: https://www.dacm-logiciels.fr/tracewin (accessed on 25 May 2026).
- Tsoupas, N.; Ahrens, L.; Bellavia, S.; Bonati, R.; Brown, K.A.; Chiang, I.H.; Gardner, C.J.; Gassner, D.; Jao, S.; Mackay, W.W.; et al. Uniform beam distributions at the target of the NASA Space Radiation Laboratory’s beam line. Phys. Rev. Spec. Top.-Accel. Beams 2007, 10, 024701. [Google Scholar] [CrossRef][Green Version]
- Yuri, Y.; Miyawaki, N.; Kamiya, T.; Yokota, W.; Arakawa, K.; Fukuda, M. Uniformization of the transverse beam profile by means of nonlinear focusing method. Phys. Rev. Spec. Top.-Accel. Beams 2007, 10, 104001. [Google Scholar] [CrossRef]
- Guo, Y.Y.; Xu, G. Design of transport lines for uniforming beam distribution with octupoles. Phys. Rev. Spec. Top.-Accel. Beams 2013, 16, 023501. [Google Scholar] [CrossRef][Green Version]
- Bellan, L.; Galatà, A.; Pisent, A.; Gallo, C.S.; Bortolato, D.; Marcato, D.; Fagotti, E.; Munaron, E.; Gelain, F.; Grespan, F.; et al. Boost of ALPI superconducting linac performances using AI techniques. In Proceedings of the 16th International Conference on Heavy Ion Accelerator Technology (HIAT 2025), East Lansing, MI, USA, 22–27 June 2025; pp. 85–90. [Google Scholar] [CrossRef]
- Gorgisyan, I.; Noll, D.; Salehi, E.; Eshraqi, M.; Milas, N.; Miyamoto, R.; Johannesson, S. First beam through the superconducting linac of European Spallation Source. In Proceedings of the 16th International Particle Accelerator Conference (IPAC’25); JACoW Publishing: Geneva, Switzerland, 2025; pp. 1560–1563. [Google Scholar] [CrossRef]
- Baron, R.A.; Bustinduy, I.; Grespan, F.; Gräber, T.; Hassanzadegan, H.; Jansson, A.; Kocevar, H.; Lipka, D.; Poggi, M.; Rosengren, K.E.; et al. ESS Beam Position and Phase Monitor System. In Proceedings of the 8th International Beam Instrumentation Conference (IBIC 2019), Malmö, Sweden, 8–12 September 2019; pp. 543–547. [Google Scholar] [CrossRef]
- Kittelmann, I.D.; Baron, R.A.; Bergman, E.C.; Donegani, E.M.; Grishin, V.; Hassanzadegan, H.; Kocevar, H.; Milas, N.; Miyamoto, R.; Mohammednezhad, M.; et al. Beam Instrumentation Performance During Commissioning of the ESS Normal Conducting Linac. In Proceedings of the 12th International Beam Instrumentation Conference (IBIC 2023), Saskatoon, SK, Canada, 10–14 September 2023; p. TU1I02. [Google Scholar] [CrossRef]
- Bellan, L.; Grespan, F.; Bortolato, D.; Comunian, M.; Fagotti, E.; Montis, M.; Ong, Y.K.; Pisent, A.; Milas, N.; Miyamoto, R.; et al. AI techniques and strategies for linac tuning at LNL. In Proceedings of the 71st ICFA Advanced Beam Dynamics Workshop on High-Intensity and High-Brightness Hadron Beams (HB2025), Huizhou, China, 19–24 October 2025; pp. 183–186. [Google Scholar]
- Santoni, M.L.; Raponi, E.; De Leone, R.; Doerr, C. Comparison of High-Dimensional Bayesian Optimization Algorithms on BBOB. ACM Trans. Evol. Learn. Optim. 2024, 4, 1–33. [Google Scholar] [CrossRef]











| Feature | ARBO |
|---|---|
| Initial search region () | |
| Boundary proximity check | After each iteration (default) |
| Boundary proximity threshold | lies within 10% of the boundary (default) |
| Region expansion factor | Expansion of the lower and/or upper bounds by 33% of current R (default) |
| Exploration vs. exploitation | Upper Confidence Bound (UCB) with (default from BO) |
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content. |
© 2026 by the authors. Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license.
Share and Cite
Ong, Y.K.; Bellan, L.; Bortolato, D.; Montis, M.; Comunian, M.; Milas, N.; Miyamoto, R.; Nicosia, D.; Grespan, F.; Fagotti, E.; et al. Machine Learning-Driven Beam Tuning Using Adaptive Region Bayesian Optimization at INFN-LNL. Instruments 2026, 10, 33. https://doi.org/10.3390/instruments10020033
Ong YK, Bellan L, Bortolato D, Montis M, Comunian M, Milas N, Miyamoto R, Nicosia D, Grespan F, Fagotti E, et al. Machine Learning-Driven Beam Tuning Using Adaptive Region Bayesian Optimization at INFN-LNL. Instruments. 2026; 10(2):33. https://doi.org/10.3390/instruments10020033
Chicago/Turabian StyleOng, Ysabella Kassandra, Luca Bellan, Damiano Bortolato, Maurizio Montis, Michele Comunian, Natalia Milas, Ryoichi Miyamoto, Domenic Nicosia, Francesco Grespan, Enrico Fagotti, and et al. 2026. "Machine Learning-Driven Beam Tuning Using Adaptive Region Bayesian Optimization at INFN-LNL" Instruments 10, no. 2: 33. https://doi.org/10.3390/instruments10020033
APA StyleOng, Y. K., Bellan, L., Bortolato, D., Montis, M., Comunian, M., Milas, N., Miyamoto, R., Nicosia, D., Grespan, F., Fagotti, E., & Pisent, A. (2026). Machine Learning-Driven Beam Tuning Using Adaptive Region Bayesian Optimization at INFN-LNL. Instruments, 10(2), 33. https://doi.org/10.3390/instruments10020033

