Manuscript Offprint

arXiv:2611.02031

SensOFormer: Foundation Models for Particle Accelerators

Mahindra Rautela, Alexander Scheinker

SensOFformer: Foundation Models for Particle Accelerators

Mahindra Rautela, Alexander Scheinker

Los Alamos National Laboratory, Los Alamos, NM, USA.

{mrautela,ascheink}@lanl.gov

Abstract

Large-scale scientific facilities, such as particle accelerators, are complex systems composed of thousands of interacting components that must operate collectively to support diagnostics and control, and ensure safe, reliable operation. These facilities rely on extensive sensor networks that generate large volumes of heterogeneous, incomplete, and noisy telemetry, often sampled at different rates across subsystems. In this paper, we adopt the foundation-model paradigm to learn general-purpose sensor representations from historical accelerator data through self-supervised pretraining. We introduce SensOFformer, a denoising masked transformer with a Perceiver-style encoder–decoder architecture designed to handle variable sensor sets, accommodate heterogeneous sampling rates, and learn robust representations from noisy measurements. The model is pretrained on multiple particle-accelerator datasets and transferred to downstream tasks, including missing-data imputation, anomaly detection, cavity identification, and fault identification. Through extensive evaluations and comparisons, we demonstrate that a single self-supervised model can learn reusable representations for diverse operational tasks in large-scale scientific facilities. Project page: https://mahindraautela.github.io/sensoformer.

References (69)

  • Learning the language of time series
  • Noise2Self: Blind denoising by self-supervision
  • Nature, 641(8065):1180–1187, 2025
  • On the Opportunities and Risks of Foundation Models
  • Nature, pages 1–13, 2026
  • Emerging properties in self-supervised vision transformers
  • Handbook of accelerator physics and engineering
  • A decoder-only foundation model for time-series forecasting
  • Chang, K. Lee, and K. Toutanova
  • Machine learning for design and control of particle accelerators: A look backward and forward
  • Machine learning for orders of magnitude speedup in multiobjective optimization of particle accelerator systems
  • Machine learning surrogate for charged particle beam dynamics with space charge based on a recurrent neural network with aleatoric uncertainty
  • Masked autoencoders are scalable vision learners
  • Training Compute-Optimal Large Language Models
  • Set functions for time series
  • Beam-based rf station fault identification at the SLAC linac coherent light source
  • Alayrac, C. Doersch, C. Ionescu, D. Ding, S. Koppula, D. Zoran, A. Brock, E. Shelhamer, et al. Perceiver io: A general architecture for structured inputs & outputs (opens arXiv in a new tab)
  • Scaling Laws for Neural Language Models
  • Data-driven modeling of beam loss in the LHC. Frontiers in Physics, 10:960963, 2023
  • Set transformer: A framework for attention-based permutation-invariant neural networks
  • Physics-constrained machine learning for electrodynamics without gauge ambiguity based on fourier transformed maxwell's equations
  • Ti-MAE: Self-supervised masked time series autoencoders (opens arXiv in a new tab)
  • Decker, R. Humble, B. Morris, F. H. O'Shea, D. A. Steele, Z. Zhang, E. Darve, and D. Ratner
  • Uncertainty quantification for deep learning in particle accelerator applications
  • Foundation models for generalist medical artificial intelligence
  • ClimaX: A foundation model for weather and climate
  • A Time Series is Worth 64 Words: Long-term Forecasting with Transformers
  • A scaling foundation model for nuclear and particle physics (opens arXiv in a new tab)
  • How do vision transformers work? arXiv preprint arXiv:2202.06709, 2022 (opens arXiv in a new tab)
  • Time series anomaly detection in power electronics signals with recurrent and convlstm autoencoders
  • Operational data for fault prognosis in particle accelerators with machine learning
  • Early fault detection in particle accelerator power electronics using ensemble learning
  • OpenAI blog, 1(8):9, 2019
  • Advancing accelerator virtual beam diagnostics through latent evolution modeling: An integrated solution to forward, inverse, tuning, and uq problems
  • A conditional latent autoregressive recurrent model for generation and forecasting of beam dynamics in particle accelerators
  • MORPH: Pde foundation models with arbitrary data modality (opens arXiv in a new tab)
  • Physical Review Accelerators and Beams, 24(6):062801, 2021
  • Improved robustness of deep reinforcement learning for control of time-varying systems by bounded extremum seeking
  • Latent diffusion can map beam loss to two-dimensional phase-space projections
  • 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
  • Machine learning based cavity fault classification and prediction
  • A study at the fermilab booster
  • Superconducting radio-frequency cavity fault classification using machine learning at jefferson laboratory
  • A. Wadell, A. Bhutani, V. Azumah, A. R. Ellis-Mohr, C. Kelly, H. Zhao, A. K. Nayak, K. Hegazy, A. Brace, H. Lin, et al. Foundation models for discovery and exploration in chemical space. arXiv preprint arXiv:2510.18900, 2025. (opens arXiv in a new tab)
  • Symplectic machine learning model for fast simulation of space-charge effects
  • Anti-oversmoothing in deep vision transformers via the fourier domain analysis: From theory to practice (opens arXiv in a new tab)
  • Unified training of universal time series forecasting transformers
  • Set-based processing of irregular observations, arbitrary-variate modeling, and multi-source self-supervised pretraining are established ideas in time-series learning
  • SensOFormer is pretrained on the heterogeneous accelerator datasets described in Table 1, including LANSCE, LHC-BL, HVCM-SNS, RFS-LCLS, and SRF-CEBAF data
  • Including $\sigma = 0$ keeps a subset of batches noise-free, while the nonzero noise levels encourage the model to learn robust denoising representations instead of simply copying the visible measurements
  • The second term weakly regularizes reconstruction on unmasked entries, and the third term penalizes high-frequency variation in the predicted sequence
  • Each GPU processes one micro-batch, and gradient accumulation is used before applying an optimizer update
  • Published baselines include convolutional neural networks, tree-based ensembles, support vector machines, and a hierarchical voting ensemble
  • Each run begins with approximately three minutes of normal operation, followed by gradual perturbation of HVCM settings to induce progressive waveform degradation
  • Since the final classification-layer dimensions are not fully specified, the calculated values are lower bounds, not exact total network parameter counts
  • Consequently
  • The first layer has one input channel and the other four layers have 64 input channels
  • The scalogram CNN uses the same architecture, except that its first convolution receives 32 input channels
  • Table 8 summarizes the estimated baseline parameter counts alongside the pretrained SensOFormer model sizes and trainable downstream heads
  • the main change is pretrained backbone scale, while the backbone remains frozen and the classification-head architecture, label fractions, and optimization protocol are held the same
  • Baseline counts are lower bounds inferred from the specified layers; head counts refer only to trainable downstream parameters, while pretrained-model counts refer to the complete pretrained architecture
  • The constant $\mathcal{L}_{\infty}$ represents the asymptotic loss approached by the fitted model in the limit of large $N$ and $D$
  • Red markers denote observed model-data configurations, and the yellow marker denotes the best fitted point within the evaluated grid
  • The best fitted point lies at the largest evaluated model and data scale, indicating that SensOFormer continues to benefit from scale in this regime
  • For a fixed training recipe, let the training compute budget be approximately proportional to the product of model size and data size
  • Let $K = \mathcal{C}/\kappa$, so the compute constraint is $ND = K$
  • Solving for the optimal model and data scales gives
  • However, the compute-optimal trajectory increases data size faster than parameter count as the compute budget grows
  • Blue curves show the normalized ground-truth sensor values, red markers indicate masked entries, and green circles show the model predictions at the masked locations