Manuscript Offprint

arXiv:2610.38593

SpectralTF-MAE: A Pre-trained Spectral Foundation Model for Tokamak Fusion Plasma Diagnostics

Xiao Wang, Zhijie Lu, Duoqing Yang, Jiangtao Yu, Jin Tang, Zichao Lin, Hongming Zhang, Guosheng Xu, Bo Lyu, Qiang Liu

Xiao Wang, Zhijie Lu, Duoqing Yang, Jiangtao Yu, Jin Tang, Zichao Lin, Hongming Zhang, Guosheng Xu, Bo Lyu, and Qiang Liu

Abstract—Spectroscopic diagnostics provide rich information for characterizing plasma states in tokamak fusion experiments, while existing learning-based approaches are often designed for individual tasks and rely heavily on labeled data. In this work, we propose SpectralTF-MAE, a self-supervised spectral foundation model for tokamak plasma diagnostics. The model is pretrained on paired charge-exchange recombination spectroscopy (CXRS) and X-ray crystal spectroscopy (XCS) measurements through masked spectral reconstruction. To better capture diagnostically important spectral structures, we introduce a peak-aware masking strategy together with a peak-enhanced reconstruction objective, encouraging the model to focus on characteristic spectral regions. A shared Transformer encoder is employed to learn transferable representations across different diagnostic modalities. The pretrained model is further adapted to several downstream tasks, including plasma-parameter prediction, cross-diagnostic spectral generation, and spectral peak analysis. Experiments on EAST diagnostic data demonstrate that the proposed framework achieves competitive performance across different tasks and consistently benefits from self-supervised spectral pretraining. These results indicate the potential of SpectralTF-MAE as a general and transferable representation learning framework for plasma spectroscopic diagnostics.

I. INTRODUCTION

Artificial Intelligence (AI) empowered controlled nuclear fusion has attracted growing attention from researchers [1-3]. Spectroscopic diagnosis constitutes one of the core approaches for plasma analysis. On the EAST large-science facility, commonly used spectroscopic diagnostic systems acquire two major categories of spectra: active spectra and passive spectra. Specifically, charge-exchange recombination spectroscopy (CXRS) is an active diagnostic technique that employs external neutral beams to induce charge-exchange reactions and obtain plasma parameters such as ion temperature and rotation velocity, as illustrated in Fig. 1 (a). In contrast, X-ray crystal spectroscopy (XCS) is a passive diagnostic technique that measures intrinsic X-ray emission from plasma and provides information related to electron temperature, impurity behavior, and plasma conditions, as shown in Fig. 1 (b). Existing studies generally adopt small-scale models for spectral interpretation [4-8], which evidently fail to fully exploit the potential of large-scale spectral datasets. Spectral perception tailored for controlled-nuclear-fusion tasks remains an open and pressing challenge.

With the proposal of the Transformer [9] and the rapid advancement of large-model technologies [10], a variety of large models for text, vision and even multimodal data have emerged [11-13]. Leveraging self-supervised learning, these models capture inherent patterns from massive training data and achieve substantial performance improvements across downstream tasks. Several existing studies [14, 15] have investigated large-model-based learning strategies for spectral data, such as SpectraLLM [14] and MolSpectra [15]. Nevertheless, these approaches have not performed dedicated pre-training on controlled-fusion spectral data. Consequently, there remains a lack of domain-specific large models tailored for this type of data.

Through a systematic investigation of the spectral applications in controlled nuclear fusion research, we summarize three core requirements for plasma spectral analysis. First, accurate predictions of plasma temperature ( Ti/TeT_i/T_e) profiles and electron density ( nen_e) from measured spectral data are essential. Second, active and passive spectra show inconsistent correspondence, and the prevalent missing data in active spectra severely limits downstream diagnostic performance. Third, quantitative analysis of spectral peak intensity and spectral broadening is required to provide reliable data support for subsequent plasma parameter inversion and follow-up research tasks. Existing studies [4-8, 16, 17] typically design independent network architectures for individual sub-tasks and train corresponding surrogate models using small-scale networks. Such paradigms fail to fully explore the potential of massive spectral data and cannot leverage the powerful data fitting and feature mining capabilities of large models.

In this paper, we propose a novel pre-trained spectral foundation model for tokamak fusion plasma diagnostics based on Masked Auto-Encoder (MAE) [18], termed SpectralTF-MAE. As shown in Fig. 2, given the XCS and CXRS spectral input, we first perform spectral-peak detection and adaptive masking on it. Different from the random masking strategy adopted in vanilla MAE, our adaptive masking implements automatic thresholding over high-amplitude spectral-peak regions. This physics-aware masking operation prioritizes the most informative peak components for corruption, which forces the model to learn underlying physical correlations of fusion spectra rather than trivial background patterns. Then,

Xiao Wang, Zhijie Lu, Duoqing Yang, Jiangtao Yu, and Jin Tang are with the School of Computer Science and Technology, Anhui University, Hefei 230601, China (emails: {xiaowang, tangjin}@ahu.edu.cn).

Zichao Lin, Hongming Zhang, Guosheng Xu, and Bo Lyu are with the Institute of Plasma Physics, Hefei Institutes of Physical Science, Chinese Academy of Sciences, Hefei 230031, China (emails: {zichao.lin, hmzhang, blu}@ipp.ac.cn).

Qiang Liu is with the New Laboratory of Pattern Recognition, Institute of Automation, Chinese Academy of Sciences, Beijing, China (email: qiang.liu@nlpr.ia.ac.cn).

Corresponding author: Zichao Lin.

Figure

(a) CXRS acquisition.

Figure

(b) XCS acquisition.

Figure

(c) XCS→CXRS generation.

Figure

(d) CXRS→XCS generation.

Figure

(e) Spectral peak analysis.

Figure

(f) Plasma-parameter prediction.

Fig. 1. (a-b). Demonstration of different principles for spectral-data acquisition; (c-f). Performance comparison of downstream tasks based on our newly proposed spectral foundation model.

we project the remaining spectral patches into tokens using a linear layer and extract the deep representations using a shard spectral Transformer encoder network. After that, the XCS and CXRS decoder networks are utilized for masked spectral reconstruction. We conduct experiments on three tasks to validate the effectiveness of our pre-trained spectral foundation model SpectralTF-MAE, including cross-spectral generation (i.e., XCS →\rightarrow CXRS, CXRS →\rightarrow XCS), Ti/TeT_i/T_e profile prediction, electron-density ( nen_e) prediction, and spectral peak analysis.

To sum up, the main contributions of this paper can be summarized as follows:

1). We propose a novel foundation model for controllable-fusion spectral data, termed SpectralTF-MAE, which builds on the Masked Auto-Encoder (MAE) self-supervised learning framework and adopts a physics-aware masking strategy to incentivize the model to learn intrinsic plasma spectral characteristics.

2). Based on the proposed spectral foundation model, we develop a suite of downstream tasks covering spectral generation and analysis, including cross-spectral generation, Ti/TeT_{i}/T_{e} profile prediction, electron-density ( nen_{e}) prediction, and spectral-peak analysis, which establishes a solid model benchmark for large model driven controlled nuclear fusion spectral analysis.

3). Extensive experiments with comprehensive quantitative and qualitative analysis on the newly collected spectral dataset

fully validated the effectiveness and generalization of our proposed pre-trained spectral foundation model.

References (67)

  • Advancing fusion with machine learning research needs workshop report
  • Magnetic control of tokamak plasmas through deep reinforcement learning
  • Avoiding fusion plasma tearing instability with deep reinforcement learning
  • Fast estimation of ion temperature from east charge exchange recombination spectroscopy using neural network
  • Prediction of plasma rotation velocity and ion temperature profiles in east tokamak using artificial neural network models
  • Development of a neural network-based model for electron temperature inference via modelled and experimental argon spectra measured by x-ray crystal spectrometer with an extension to tungsten spectra on east
  • Machine learning-based tungsten spectroscopy analysis in the west tokamak
  • Prediction of electric and magnetic fields from spectral data using machine learning algorithms for doppler-free saturation spectroscopy diagnostics
  • Attention is all you need
  • On the Opportunities and Risks of Foundation Models
  • BERT: Pre-training of deep bidirectional transformers for language understanding
  • An Image is Worth 16x16 Words: Transformers for Image Recognition at Scale
  • Learning transferable visual models from natural language supervision
  • Spectrallm: Uncovering the ability of llms for molecule structure elucidation from multi-spectra
  • Molspectra: Pre-training 3d molecular representation with multi-modal energy spectra
  • Measuring the electron temperature and identifying plasma detachment using machine learning and spectroscopy
  • Neural network-based analysis of charge exchange spectra in kstar
  • Masked autoencoders are scalable vision learners
  • BEiT: BERT Pre-Training of Image Transformers
  • Simmim: A simple framework for masked image modeling
  • Context autoencoder for self-supervised representation learning
  • Data2vec: A general framework for self-supervised learning in speech, vision and language
  • Spectralformer: Rethinking hyperspectral image classification with transformers
  • Satmae: Pretraining transformers for temporal and multi-spectral satellite imagery
  • Spectralgpt: Spectral remote sensing foundation model
  • Hypersigma: Hyperspectral intelligence comprehension foundation model
  • Astroclip: a cross-modal foundation model for galaxies
  • Towards an astronomical foundation model for stars with a transformer-based model
  • Disruption prediction investigations using machine learning tools on dii-d and alcator c-mod
  • Machine learning for disruption warnings on alcator c-mod, diii-d, and east
  • Ai foundation models for experimental fusion tasks
  • Fusionmae, a self-supervised pretrained model to optimize and simplify diagnostic and control of fusion plasma
  • Diagnostics for magnetic confinement fusion research
  • Diagnostics: Chapter 8 of the special issue: on the path to tokamak burning plasma operation
  • Pytorch: An imperative style, high-performance deep learning library
  • Decoupled Weight Decay Regularization
  • Deep residual learning for image recognition
  • Masked siamese networks for label-efficient learning
  • Masked autoencoders as spatiotemporal learners
  • Self-supervised learning from images with a joint-embedding predictive architecture
  • Masked vision transformers for hyperspectral image classification
  • Ss-mae: Spatial-spectral masked autoencoder for multisource remote sensing image classification
  • Factoformer: Factorized hyperspectral transformers with self-supervised pretraining
  • Spectral masked autoencoder for few-shot hyperspectral image classification
  • A real-time machine learning-based disruption predictor in diii-d
  • Deep convolutional neural networks for multi-scale time-series classification and application to tokamak disruption prediction using raw, high temporal resolution diagnostic data
  • Deep learning for plasma tomography and disruption prediction from bolometer data
  • Predicting disruptive instabilities in controlled fusion plasmas through deep learning
  • Highest fusion performance without harmful edge energy bursts in tokamak
  • Developing deep learning algorithms for inferring upstream separatrix density at jet
  • Determination of plasma-ion velocity distribution via charge-exchange recombination spectroscopy
  • An overview of charge-exchange spectroscopy as a plasma diagnostic
  • Development of the charge exchange recombination spectroscopy and the beam emission spectroscopy on the east tokamak
  • Toroidal charge exchange recombination spectroscopy on east
  • Calibration of the toroidal charge exchange recombination spectroscopy system on east
  • Concept design of ultrafast charge exchange recombination spectroscopy on east tokamak
  • High-resolution spectroscopy diagnostics for measuring impurity ion temperature and velocity on the compass tokamak
  • Spatially resolved spectra from a new x-ray imaging crystal spectrometer for measurements of ion and electron temperature profiles
  • Spatially resolved high resolution x-ray spectroscopy for magnetically confined fusion plasmas
  • A spatially resolving x-ray crystal spectrometer for measurement of ion-temperature and rotation-velocity profiles on the alcator c-mod tokamak
  • Research and development of x-ray imaging crystal spectrometers for kstar
  • Imaging x-ray crystal spectrometer on east
  • Upgrades of imaging x-ray crystal spectrometers for high-resolution and high-temperature plasma diagnostics on east
  • X-ray imaging crystal spectrometer (xics) diagnostic on the hl-3 tokamak
  • X-ray imaging crystal spectroscopy for use in plasma transport research
  • Deep picker is a deep neural network for accurate deconvolution of complex two-dimensional nmr spectra
  • Deep learning for the precise peak detection in high-resolution lc-ms data