arXiv:2609.08620physics.acc-phSep 2026

Manuscript Offprint

arXiv:2609.08620

Flexible Spectral-Normalized Neural Gaussian Process for Dynamic Aperture Prediction

Yousra El-Bachir, Frederik Van der Veken, Davide di Croce, Carlo Emilio Montanari, Massimo Giovannozzi, Ekaterina Krymova, Tatiana Pieloni

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Yousra El-Bachir*

Swiss Data Science Center, ETH Zurich & EPFL

Frederik Van der Veken

CERN, Geneva

Davide di Croce

EPFL, Lausanne; CERN, Geneva

Carlo Emilio Montanari

CERN, Geneva

Massimo Giovannozzi

CERN, Geneva

Ekaterina Krymova†

Swiss Data Science Center, ETH Zurich & EPFL

Tatiana Pieloni

EPFL, Lausanne; CERN, Geneva

September 9, 2026

Abstract

We address the challenge of scalable uncertainty quantification in large-scale scientific applications, where complex state-of-the-art machine learning methods are often computationally infeasible. Our primary contribution is a simple yet effective empirical Bayes method for automatically tuning the hyperparameters of a flexible, heteroscedastic Spectral-normalized Neural Gaussian Process. This approach retains the expressiveness and uncertainty-awareness of semi-Bayesian neural models while significantly reducing the computational burden by integrating hyperparameter learning directly into the training loop. We demonstrate the practical impact of our method on the task of estimating the dynamic aperture in circular particle accelerators, a fundamental problem in high-energy physics colliders and storage rings, using simulation data from the case of the Large Hadron Collider at CERN. Traditional approaches to DA estimation require extensive particle-tracking simulations, which are prohibitively time-consuming and resource-intensive. Our results show that the proposed method achieves competitive predictive performance and well-calibrated uncertainty estimates at much lower computational cost than state-of-the-art approaches. We stress that, beyond this application, the proposed empirical Bayes framework offers a general solution for training heteroscedastic neural models in situations where manual hyperparameter tuning is impractical. Accordingly, we anticipate that this framework can be applied to other domains that encounter comparable computational limitations.

1 Introduction

Uncertainty in predictive modeling is traditionally categorized into two fundamentally different types: aleatoric and epistemic. Aleatoric uncertainty arises from inherent noise or randomness in the data, such as measurement errors, and is considered irreducible. In contrast, epistemic uncertainty reflects a lack of knowledge due to limited observed data and can, in principle, be reduced by increasing the training set or using more complex models. Accurate disentanglement of these types of uncertainty is particularly important in active learning and safety-critical applications such as health care or autonomous driving [Esteva et al., 2017, Huang and Chen, 2020]. However, recent machine learning literature challenges the assumption that aleatoric and epistemic uncertainties are cleanly separable, showing that they often overlap and interact in practice. Moreover, widely used uncertainty measures produce inconsistent or conflicting results, and current uncertainty quantification methods are poorly calibrated under distributional changes, further motivating the need to develop more robust and coherent approaches and measures; see Smith et al. [2024], Wimmer et al. [2023], Bengs et al. [2023], Schweighofer et al. [2023], Kotelevskii and Panov [2024], Postels et al. [2022].

*Corresponding author: yousra.elbachir@epfl.ch

†Corresponding author: ekaterina.krymova@sdsc.ethz.ch

Despite these efforts, reliably disentangling epistemic and aleatoric uncertainty, as well as developing scalable well-calibrated methods, remain open problems. Therefore, in this paper, we take a more pragmatic approach and introduce an efficient method to estimate the total predictive uncertainty directly within the model training process.

Two of the most commonly used state-of-the-art methods for uncertainty quantification are deep ensembles (DE) [Lakshminarayanan et al., 2017] and deep deterministic uncertainty (DDU) [Mukhoti et al., 2023]. For the classification task, DE involves training multiple deep learning models independently with different random initializations and averaging their predictions. The variance across the ensemble is used to estimate the uncertainty. Although DE improves accuracy, it may still produce overconfident predictions in regions far from the training data, a limitation inherited from the individual base models. Moreover, training multiple deep learning models can be computationally prohibitive in real-world applications, including scientific ones, making DE impractical in resource-constrained settings. In contrast, DDU estimates predictive uncertainty from a single forward pass of a deterministic neural network trained with residual connections and spectral normalization to mitigate feature collapse. At inference time, DDU estimates the uncertainty from a feature-space density estimator constructed based on Gaussian Discriminant Analysis, fitted separately to each output class. This makes DDU computationally efficient compared to DE, while requiring minimal architectural modifications. A more advanced state-of-the-art method is the Spectral-normalized Neural Gaussian Process (SNGP) [Liu et al., 2023], along with its heteroscedastic extension [Fortuin et al., 2022]. This semi-Bayesian approach combines the expressive predictive capabilities of deep neural networks with the principled uncertainty estimation of Gaussian Processes (GPs), and produces a better calibrated uncertainty under distributional shifts compared to several competing methods [Postels et al., 2022]. By appending a GP layer to a residual network with spectrally normalized weights, SNGP becomes sensitive to the distance between training and test points, which is particularly advantageous for out-of-distribution detection and helps mitigate the overconfidence observed in DE. However, SNGP's reliance on manual hyperparameter tuning makes it less computationally attractive in practice. We propose to improve the flexibility of SNGP and integrate its hyperparameter tuning directly into the training process, thereby improving usability without compromising performance. We motivate the development of this method through a critical problem in the design of circular particle accelerators for high-energy physics, namely, the prediction of dynamic aperture (DA) and possibly particle loss rates; see, e.g. Schenk et al. [2021], Giovannozzi et al. [2021], Van der Veken et al. [2021, 2022], based on the simulation data from the CERN Large Hadron Collider (LHC) Brüning et al. [2004].

The DA is a fundamental concept in accelerator physics, representing the extent of the region of phase space in which particle trajectories remain bounded over a predefined number of revolutions around a circular accelerator. Particles starting outside of this region are ultimately lost, resulting in beam degradation and reduced operational efficiency, making the DA a key indicator of long-term beam stability. Therefore, accurate prediction of the DA is critical for understanding nonlinear beam dynamics and for optimizing both the performance and the safe operation of modern colliders and storage rings; see, e.g. Todesco and Giovannozzi [1996], Giovannozzi et al. [1997, 1998], Giovannozzi [2012, 2026]. For the LHC, determining the DA traditionally involves scanning a high-dimensional parameter space through particle-tracking simulations, often guided by expert accelerator physics knowledge and heuristic strategies. This process is both computationally intensive and time-consuming, making DA studies challenging. In this paper, in contrast to direct DA prediction Montanari et al. [2025], Di Croce et al. [2024], we introduce an efficient and automated approach to predicting DA by distinguishing the stable region from the rest of the phase space. Moreover, we produce reliable uncertainty estimates that can guide tracking efforts toward regions where predictions are uncertain.

Particle-tracking simulations for the LHC, such as SixTrack Maria et al. [2019] with MAD-X 1^{1}, enable the identification of three distinct spatial regions within a particle accelerator. Particles that complete the maximum number of observable revolutions define the stable region of the phase space. In contrast, the unstable region corresponds to the coordinates where the particles are rapidly lost, failing to complete a significant number of revolutions. Between these two extremes lies a chaotic boundary region, where particles survive a substantial—but submaximal—number of revolutions before being lost. Figure 1 illustrates the DA, corresponding to the stable region, for three randomly selected accelerator configurations. Each configuration is defined by a unique combination of the values of the input control parameters used in the

1^{1}https://abpcomputing.web.cern.ch/codes/codes_pages/MadX/ simulator. For simplicity, the chaotic boundary and the unstable region are merged, as the primary focus is on accurately predicting the stable region. These examples already highlight several challenges associated with modeling the DA. First, the stable region has a complex and nonlinear structure that cannot be captured by simple parametric models, motivating the use of data-driven approaches. Second, the inherently noisy and ambiguous structure of the chaotic boundary makes the classification problem difficult. Third, the dataset represents simulations for millions of particles given hundreds of control variables, making the modeling task computationally intensive. The objective is therefore to develop a flexible, data-driven classification model for predicting the DA, designed for efficient training with minimal dependence on hyperparameter tuning. Crucially, the model's uncertainty estimates should be well-calibrated: they should be high only in regions where predictions are likely to be unreliable.

Figure

Figure

Figure

Figure 1: Stability regions derived from particle-tracking simulations of the LHC under three different accelerator configurations, with particles initialized at varying radial positions and angular orientations.

The paper is organized as follows. Section 2 extends the standard SNGP architecture to accommodate more flexible settings and describes the residual network architecture tailored to the tabular data used in our study. Section 3 introduces an empirical Bayes framework that enables automatic integration of hyperparameter tuning into the training process. Section 4 presents the empirical results, and Section 5 closes the article with a discussion of the findings and potential future research directions.

References (37)