Reuse & Permissions

It is not necessary to obtain permission to reuse this article or its components as it is available under the terms of the Creative Commons Attribution 4.0 International license. This license permits unrestricted use, distribution, and reproduction in any medium, provided attribution to the author(s) and the published article's title, journal citation, and DOI are maintained. Please note that some figures may have been included with permission from other third parties. It is your responsibility to obtain the proper permission from the rights holder directly for these figures.

Export citation

Export citation

Choose format for download:

Download Citation
  • Open Access

Latent diffusion can map beam loss to two-dimensional phase-space projections

Alexander Scheinker* and Alan Williams

  • *Contact author: ascheink@lanl.gov

Phys. Rev. Accel. Beams 28, 094602 – Published 22 September, 2025

DOI: https://doi.org/10.1103/rqg9-g3dp

Abstract

Beam loss monitors (BLMs) and beam current monitors (BCMs) are ubiquitous at particle accelerators around the world. These simple devices provide noninvasive high-level beam measurements but give no insight into the detailed 6D (x,y,z,px,py,pz) beam phase-space distributions or dynamics. We show that generative conditional latent diffusion models can learn intricate patterns to solve the extreme inverse problem of mapping waveforms of tens of BLMs or BCMs along an accelerator to detailed 2D projections of a charged particle beam’s 6D phase-space density. This transformational method can be used at any particle accelerator to transform simple noninvasive devices into detailed beam phase-space diagnostics. We demonstrate this concept via multiparticle simulations of the high-intensity beam in the kilometer-long Los Alamos Neutron Science Center linear proton accelerator.

View figure in article

Physics Subject Headings (PhySH)

Article Text

References (85)

  1. P. W. Lisowski and K. F. Schoenberg, The Los Alamos Neutron Science Center, Nucl. Instrum. Methods Phys. Res., Sect. A 562, 910 (2006).
  2. S. Henderson, W. Abraham, A. Aleksandrov, C. Allen, J. Alonso, D. Anderson, D. Arenius, T. Arthur, S. Assadi, J. Ayers et al., The spallation neutron source accelerator system design, Nucl. Instrum. Methods Phys. Res., Sect. A 763, 610 (2014).
  3. K. Rajput, M. Schram, W. Blokland, Y. Alanazi, P. Ramuhalli, A. Zhukov, C. Peters, and R. Vilalta, Robust errant beam prognostics with conditional modeling for particle accelerators, Mach. Learn. 5, 015044 (2024).
  4. P. Emma, R. Akre, J. Arthur, R. Bionta, C. Bostedt, J. Bozek, A. Brachmann, P. Bucksbaum, R. Coffee, F.-J. Decker et al., First lasing and operation of an Ångstrom-wavelength free-electron laser, Nat. Photonics 4, 641 (2010).
  5. W. Decking, S. Abeghyan, P. Abramian, A. Abramsky, A. Aguirre, C. Albrecht, P. Alou, M. Altarelli, P. Altmann, K. Amyan et al., A MHz-repetition-rate hard x-ray free-electron laser driven by a superconducting linear accelerator, Nat. Photonics 14, 391 (2020).
  6. J. Zhu, Y. Chen, F. Brinker, W. Decking, S. Tomin, and H. Schlarb, High-fidelity prediction of megapixel longitudinal phase-space images of electron beams using encoder-decoder neural networks, Phys. Rev. Appl. 16, 024005 (2021).
  7. C. Milne, T. Schietinger, M. Aiba, A. Alarcon, J. Alex, A. Anghel, V. Arsov, C. Beard, P. Beaud, S. Bettoni et al., SwissFEL: The Swiss x-ray free electron laser, Appl. Sci. 7, 720 (2017).
  8. E. Prat, R. Abela, M. Aiba, A. Alarcon, J. Alex, Y. Arbelo, C. Arrell, V. Arsov, C. Bacellar, C. Beard et al., A compact and cost-effective hard x-ray free-electron laser driven by a high-brightness and low-energy electron beam, Nat. Photonics 14, 748 (2020).
  9. A. Malyzhenkov, Y. P. Arbelo, P. Craievich, P. Dijkstal, E. Ferrari, S. Reiche, T. Schietinger, P. Juranić, and E. Prat, Single-and two-color attosecond hard x-ray free-electron laser pulses with nonlinear compression, Phys. Rev. Res. 2, 042018 (2020).
  10. M. Turner, E. Adli, A. Ahuja, O. Apsimon, R. Apsimon, A.-M. Bachmann, M. B. Marin, D. Barrientos, F. Batsch, J. Batkiewicz et al., Experimental observation of plasma wakefield growth driven by the seeded self-modulation of a proton bunch, Phys. Rev. Lett. 122, 054801 (2019).
  11. S. Gessner, E. Adli, J. M. Allen, W. An, C. I. Clarke, C. E. Clayton, S. Corde, J. Delahaye, J. Frederico, S. Z. Green et al., Demonstration of a positron beam-driven hollow channel plasma wakefield accelerator, Nat. Commun. 7, 1 (2016).
  12. M. J. Hogan, Electron and positron beam–driven plasma acceleration, Rev. Accel. Sci. Techol. 9, 63 (2016).
  13. C. Schroeder, E. Esarey, C. Geddes, C. Benedetti, and W. Leemans, Physics considerations for laser-plasma linear colliders, Phys. Rev. ST Accel. Beams 13, 101301 (2010).
  14. A. Scheinker, A. Edelen, D. Bohler, C. Emma, and A. Lutman, Demonstration of model-independent control of the longitudinal phase space of electron beams in the linac-coherent light source with femtosecond resolution, Phys. Rev. Lett. 121, 044801 (2018).
  15. R. C. Webber, Charged particle beam current monitoring tutorial, AIP Conf. Proc. 333, 3 (1995).
  16. B. Cathey, S. Cousineau, A. Aleksandrov, and A. Zhukov, First six dimensional phase space measurement of an accelerator beam, Phys. Rev. Lett. 121, 064804 (2018).
  17. A. Hoover, Four-dimensional phase space tomography from one-dimensional measurements of a hadron beam, Phys. Rev. Accel. Beams 27, 122802 (2024).
  18. K. Hock and A. Wolski, Tomographic reconstruction of the full 4D transverse phase space, Nucl. Instrum. Methods Phys. Res., Sect. A 726, 8 (2013).
  19. S. Kim, J. P. Gonzalez-Aguilera, P. Piot, G. Chen, S. Doran, Y.-K. Kim, W. Liu, C. Whiteford, E. Wisniewski, A. Edelen et al., Four-dimensional phase-space reconstruction of flat and magnetized beams using neural networks and differentiable simulations, Phys. Rev. Accel. Beams 27, 074601 (2024).
  20. S. Jaster-Merz, R. Assmann, R. Brinkmann, F. Burkart, W. Hillert, M. Stanitzki, and T. Vinatier, 5D tomographic phase-space reconstruction of particle bunches, Phys. Rev. Accel. Beams 27, 072801 (2024).
  21. D. Marx, J. Giner Navarro, D. Cesar, J. Maxson, B. Marchetti, R. Assmann, and P. Musumeci, Single-shot reconstruction of core 4D phase space of high-brightness electron beams using metal grids, Phys. Rev. Accel. Beams 21, 102802 (2018).
  22. A. Hoover, N-dimensional maximum-entropy tomography via particle sampling, arXiv:2409.17915.
  23. H. Liu, S. Xu, M. Li, Y. Yuan, L. Huang, X. Feng, and S. Wang, Reconstructing phase space of injection beam based on the measurement of accumulated beam: A novel tomography algorithm and its applications, Phys. Rev. Accel. Beams 27, 052804 (2024).
  24. A. Scheinker, Adaptive machine learning for time-varying systems: Low dimensional latent space tuning, J. Instrum. 16, P10008
  25. A. Scheinker, F. Cropp, and D. Filippetto, Adaptive autoencoder latent space tuning for more robust machine learning beyond the training set for six-dimensional phase space diagnostics of a time-varying ultrafast electron-diffraction compact accelerator, Phys. Rev. E 107, 045302 (2023).
  26. A. Scheinker, F. Cropp, S. Paiagua, and D. Filippetto, An adaptive approach to machine learning for compact particle accelerators, Sci. Rep. 11, 19187 (2021).
  27. R. Roussel, A. Edelen, C. Mayes, D. Ratner, J. P. Gonzalez-Aguilera, S. Kim, E. Wisniewski, and J. Power, Phase space reconstruction from accelerator beam measurements using neural networks and differentiable simulations, Phys. Rev. Lett. 130, 145001 (2023).
  28. R. Roussel, J. P. Gonzalez-Aguilera, E. Wisniewski, A. Ody, W. Liu, J. Power, Y.-K. Kim, and A. Edelen, Efficient six-dimensional phase space reconstructions from experimental measurements using generative machine learning, Phys. Rev. Accel. Beams 27, 094601 (2024).
  29. M. Rautela, A. Williams, and A. Scheinker, A conditional latent autoregressive recurrent model for generation and forecasting of beam dynamics in particle accelerators, Sci. Rep. 14, 18157 (2024).
  30. A. Hoover and J. C. Wong, High-dimensional maximum-entropy phase space tomography using normalizing flows, Phys. Rev. Res. 6, 033163 (2024).
  31. J. Sohl-Dickstein, E. Weiss, N. Maheswaranathan, and S. Ganguli, Deep unsupervised learning using nonequilibrium thermodynamics, in Proceedings of the International Conference on Machine Learning (PMLR, 2015), pp. 2256–2265, http://proceedings.mlr.press/v37/sohl-dickstein15.html.
  32. J. Ho, A. Jain, and P. Abbeel, Denoising diffusion probabilistic models, in Proceedings of the 34th International Conference on Advances in Neural Information Processing System (2020), Vol. 33, pp. 6840–6851, https://proceedings.neurips.cc/paper/2020/hash/4c5bcfec8584af0d967f1ab10179ca4b-Abstract.html.
  33. J. Song, C. Meng, and S. Ermon, Denoising diffusion implicit models, arXiv:2010.02502.
  34. A. Q. Nichol and P. Dhariwal, Improved denoising diffusion probabilistic models, in Proceedings of the International Conference on Machine Learning (PMLR, 2021), pp. 8162–8171, https://proceedings.mlr.press/v139/nichol21a.html.
  35. T. Karras, M. Aittala, T. Aila, and S. Laine, Elucidating the design space of diffusion-based generative models, in Proceedings of the 36th International Conference on Advances in Neural Information Processing System (2022), Vol. 35, pp. 26565–26577, https://proceedings.neurips.cc/paper_files/paper/2022/hash/a98846e9d9cc01cfb87eb694d946ce6b-Abstract-Conference.html.
  36. R. Rombach, A. Blattmann, D. Lorenz, P. Esser, and B. Ommer, High-resolution image synthesis with latent diffusion models, in Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR) (2022), pp. 10684–10695, https://openaccess.thecvf.com/content/CVPR2022/html/Rombach_High-Resolution_Image_Synthesis_With_Latent_Diffusion_Models_CVPR_2022_paper.
  37. A. Scheinker, Conditional guided generative diffusion for particle accelerator beam diagnostics, Sci. Rep. 14, 19210 (2024).
  38. A. Scheinker, cDVAE: VAE-guided diffusion for particle accelerator beam 6D phase space projection diagnostics, Sci. Rep. 14, 29303 (2024).
  39. A. Scheinker, Physics-constrained superresolution diffusion for six-dimensional phase space diagnostics, Phys. Rev. Res. 7, 023091 (2025).
  40. X. Pang and L. Rybarcyk, GPU accelerated online multi-particle beam dynamics simulator for ion linear particle accelerators, Comput. Phys. Commun. 185, 744 (2014).
  41. D. Kleinjan, G. Rouleau, and L. Neukirch, Design of experiment to explore inside the LANSCE-H− ion source with laser absorption techniques, AIP Conf. Proc. 2373, 040003 (2021).
  42. E. M. O’Brien, S. A. Baily, E. R. Birnbaum, C. Chapman, E. A. Espinoza, J. A. Faucett, J. O. Hill, K. D. John, P. S. Marroquin, R. C. McCrady et al., Novel design and diagnostics improvements for increased production capacity and improved reliability at the Los Alamos Isotope Production Facility, Nucl. Instrum. Methods Phys. Res., Sect. A 956, 163316 (2020).
  43. C. Morris, J. Allison, S. Cool, C. Cude-Woods, M. Freeman, K. McClellan, F. Mariam, W. Meijer, L. Neukirch, M. Schanz et al., Large-grain scintillator screens for proton radiography, Rev. Sci. Instrum. 95, 083707 (2024).
  44. P. Ramachandran, B. Zoph, and Q. V. Le, Searching for activation functions, arXiv:1710.05941.
  45. S. Ioffe and C. Szegedy, Batch normalization: Accelerating deep network training by reducing internal covariate shift, arXiv:1502.03167.
  46. O. Ronneberger, P. Fischer, and T. Brox, U-net: Convolutional networks for biomedical image segmentation, in Proceedings of the Medical Image Computing and Computer-Assisted Intervention–MICCAI 2015: 18th International Conference, Munich, Germany (Springer, New York, 2015), pp. 234–241, arXiv:1505.04597.
  47. T. Salimans, A. Karpathy, X. Chen, and D. P. Kingma, PixelCNN++: Improving the PixelCNN with discretized logistic mixture likelihood and other modifications, arXiv:1701.05517.
  48. Y. Wu and K. He, Group normalization, in Proceedings of the European Conference on Computer Vision (ECCV) (2018), pp. 3–19, https://openaccess.thecvf.com/content_ECCV_2018/html/Yuxin_Wu_Group_Normalization_ECCV_2018_paper.html.
  49. B. A. Olshausen, C. H. Anderson, and D. C. Van Essen, A neurobiological model of visual attention and invariant pattern recognition based on dynamic routing of information, J. Neurosci. 13, 4700 (1993).
  50. J. K. Tsotsos, S. M. Culhane, W. Y. K. Wai, Y. Lai, N. Davis, and F. Nuflo, Modeling visual attention via selective tuning, Artif. Intell. 78, 507 (1995).
  51. L. Itti and C. Koch, Computational modelling of visual attention, Nat. Rev. Neurosci. 2, 194 (2001).
  52. V. Mnih, N. Heess, A. Graves et al., Recurrent models of visual attention, in Proceedings of the 28th International Conference on Advances in Neural Information Processing Systems (2014), Vol. 27, pp. 2204–2212, https://proceedings.neurips.cc/paper_files/paper/2014/file/3e456b31302cf8210edd4029292a40ad-Paper.pdf.
  53. M.-T. Luong, H. Pham, and C. D. Manning, Effective approaches to attention-based neural machine translation, arXiv:1508.04025.
  54. A. Vaswani, N. Shazeer, N. Parmar, J. Uszkoreit, L. Jones, A. N. Gomez, Ł. Kaiser, and I. Polosukhin, Attention is all you need, in Proceedings of the 31st International Conference on Advances in Neural Information Processing System (2017), Vol. 30, pp. 6000–6010, https://proceedings.neurips.cc/paper/2017/hash/3f5ee243547dee91fbd053c1c4a845aa-Abstract.html.
  55. T. Goehring, M. Keshavarzi, R. P. Carlyon, and B. C. Moore, Using recurrent neural networks to improve the perception of speech in non-stationary noise by people with cochlear implants, J. Acoust. Soc. Am. 146, 705 (2019).
  56. M. A. M. Ramírez, E. Benetos, and J. D. Reiss, A general-purpose deep learning approach to model time-varying audio effects, arXiv:1905.06148.
  57. G. Javadi, M. N. N. To, S. Samadi, S. Bayat, S. Sojoudi, A. Hurtado, S. Chang, P. Black, P. Mousavi, and P. Abolmaesumi, Complex cancer detector: Complex neural networks on non-stationary time series for guiding systematic prostate biopsy, in Proceedings of the International Conference on Medical Image Computing and Computer-Assisted Intervention (Springer, New York. 2020), pp. 524–533, 10.1007/978-3-030-59716-0_50.
  58. J. S. Dramsch, M. Lüthje, and A. N. Christensen, Complex-valued neural networks for machine learning on non-stationary physical data, Comput. Geosci. 146, 104643 (2021).
  59. R. Calandra, T. Raiko, M. P. Deisenroth, and F. M. Pouzols, Learning deep belief networks from non-stationary streams, in Proceedings of the International Conference on Artificial Neural Networks (Springer, New York, 2012), pp. 379–386, 10.1007/978-3-642-33266-1_47.
  60. A. Koesdwiady, S. Bedawi, C. Ou, and F. Karray, Non-stationary traffic flow prediction using deep learning, in Proceedings of the 2018 IEEE 88th Vehicular Technology Conference (VTC-Fall) (IEEE, New York, 2018), pp. 1–5, 10.1109/VTCFall.2018.8690756.
  61. R. Kurle, B. Cseke, A. Klushyn, P. van der Smagt, and S. Günnemann, Continual learning with Bayesian neural networks for non-stationary data, in Proceedings of the International Conference on Learning Representations (2019), https://openreview.net/forum?id=SJlsFpVtDB.
  62. H. Shimodaira, Improving predictive inference under covariate shift by weighting the log-likelihood function, J. Stat. Plann. Infer. 90, 227 (2000).
  63. G. Fishman, Monte Carlo: Concepts, Algorithms, and Applications (Springer Science & Business Media, Berlin, 2013).
  64. J. Huang, A. Gretton, K. Borgwardt, B. Schölkopf, and A. Smola, Correcting sample selection bias by unlabeled data, in Proceedings of the 20th International Conference on Advances in Neural Information Processing Systems (2006), Vol. 19, pp. 601–608, https://proceedings.neurips.cc/paper/2006/hash/a2186aa7c086b46ad4e8bf81e2a3a19b-Abstract.html.
  65. M. Sugiyama, S. Nakajima, H. Kashima, P. Von Buenau, and M. Kawanabe, Direct importance estimation with model selection and its application to covariate shift adaptation, in Proceedings of the NIPS (Citeseer, 2007), Vol. 7, pp. 1433–1440, https://proceedings.neurips.cc/paper/2007/hash/be83ab3ecd0db773eb2dc1b0a17836a1-Abstract.html.
  66. M. Sugiyama and M. Kawanabe, Machine Learning in Non-Stationary Environments: Introduction to Covariate Shift Adaptation (MIT Press, Cambridge, MA, 2012).
  67. D. E. Shea, R. Giridharagopal, D. S. Ginger, S. L. Brunton, and J. N. Kutz, Extraction of instantaneous frequencies and amplitudes in nonstationary time-series data, arXiv:2104.01293.
  68. N. Kuklev, Y. Sun, H. Shang, M. Borland, and G. Fystro, Time-aware Bayesian optimization for adaptive particle accelerator tuning, in Proceedings of the Machine Learning and the Physical Sciences NeurIPS Workshop (2022), https://ml4physicalsciences.github.io/2022/files/NeurIPS_ML4PS_2022_175.pdf.
  69. A. Scheinker and M. Krstić, Minimum-seeking for CLFS: Universal semiglobally stabilizing feedback under unknown control directions, IEEE Trans. Autom. Control 58, 1107 (2012).
  70. A. Scheinker, Model independent beam tuning, in Proceedings of the International Particle Accelerator Conference (IPAC-2013), Shanghai, China (JACoW, Geneva, Switzerland, 2013), pp. 1862–1864, https://proceedings.jacow.org/IPAC2013/papers/tupwa068.pdf.
  71. A. Scheinker and D. Scheinker, Bounded extremum seeking with discontinuous dithers, Automatica 69, 250 (2016).
  72. A. Scheinker and D. Scheinker, Constrained extremum seeking stabilization of systems not affine in control, Int. J. Robust Nonlinear Control 28, 568 (2018).
  73. A. Scheinker and D. Scheinker, Extremum seeking for optimal control problems with unknown time-varying systems and unknown objective functions, Int. J. Adapt. Control Signal Process. 35, 1143 (2021).
  74. A. Scheinker and R. Pokharel, Enabling dynamic 3D coherent diffraction imaging via adaptive latent space tuning of generative autoencoders, npj Comput. Mater. 10, 283 (2024).
  75. A. Scheinker, M. Bland, M. Krstić, and J. Audia, Extremum seeking-based optimization of high voltage converter modulator rise-time, IEEE Trans. Control Syst. Technol. 22, 34 (2013).
  76. A. Scheinker, D. Bohler, S. Tomin, R. Kammering, I. Zagorodnov, H. Schlarb, M. Scholz, B. Beutner, and W. Decking, Model-independent tuning for maximizing free electron laser pulse energy, Phys. Rev. Accel. Beams 22, 082802 (2019).
  77. A. Scheinker, S. Hirlaender, F. M. Velotti, S. Gessner, G. Z. Della Porta, V. Kain, B. Goddard, and R. Ramjiawan, Online multi-objective particle accelerator optimization of the AWAKE electron beam line for simultaneous emittance and orbit control, AIP Adv. 10, 055320 (2020).
  78. A. Scheinker, S. Baily, D. Young, J. S. Kolski, and M. Prokop, In-hardware demonstration of model-independent adaptive tuning of noisy systems with arbitrary phase drift, Nucl. Instrum. Methods Phys. Res., Sect. A 756, 30 (2014).
  79. A. Scheinker, E.-C. Huang, and C. Taylor, Extremum seeking-based control system for particle accelerator beam loss minimization, IEEE Trans. Control Syst. Technol. 30, 2261 (2021).
  80. S. Dubbioso, G. De Tommasi, C. Galperti, F. Felici, S. Marchioni, A. Mele, A. Merle, and A. Tenaglia, Simulation validation of an extremum seeking-based vertical stabilization system for TCV, Fusion Eng. Des. 219, 115198 (2025).
  81. R. H. Miller, J. Clendenin, M. James, and J. Sheppard, Nonintercepting emittance monitor, Technical Report No. SLAC-PUB-3186, SLAC National Accelerator Laboratory, Menlo Park, CA, 1983, 10.2172/5746569.
  82. S. J. Russell and B. E. Carlsten, Measuring emittance using beam position monitors, in Proceedings of the 15th Particle Accelerator Conference, PAC-1993, Washington, DC, 1993 (IEEE, New York, 1993), pp. 2537–2539.
  83. S. J. Russell, J. D. Gilpatrick, J. F. Power, and R. B. Shurter, Characterization of beam position monitors for measurement of second moment, in Proceedings of the Particle Accelerator Conference, Dallas, TX, 1995 (IEEE, New York, 1995), Vol. 4, pp. 2580–2582, 10.1109/PAC.1995.505624.
  84. A. Jansson, Noninvasive single-bunch matching and emittance monitor, Phys. Rev. ST Accel. Beams 5, 072803 (2002).
  85. J. A. Tsemo Kamga, W. F. Müller, and T. Weiland, Analytical and numerical calculation of the second-order moment of the beam using a capacitive pickup, Phys. Rev. Accel. Beams 19, 042801 (2016).

Outline

Information

Sign In to Your Journals Account

Filter

Filter

Article Lookup

Enter a citation