A Generative Foundation Model for Multimodal Tokamak Tasks
Organizations: Zhongguancun Academy · XinZhuAI
Abstract
Tokamak experiments record diverse measurements, including waveforms, profiles, fields, and scalars, which are used to reconstruct the plasma, forecast its evolution, recover associated control signals, and estimate disruption risk. Most models are built separately for one task and a fixed set of inputs and outputs, and each relies on a prescribed subset of diagnostics rather than structuring the full multimodal observation set to extract global, cross-signal information about the discharge. These limitations motivate a reusable foundation model that adapts to each task's input-output schema and models heterogeneous target signals jointly, rather than retraining a separate model for every configuration. In this work, we extend the TokaMark benchmark with two groups of tasks for actuator action inversion and disruption prediction, yielding 20 MAST tasks in six groups with explicit schemas and evaluation protocols. Then, we introduce GenToka, a generative tokamak foundation model that jointly generates schema-selected targets through a shared conditional diffusion Transformer, with signal-specific codecs preserving native time series, profiles, fields, and scalars; foundation pretraining and task-specific adaptation transfer cross-signal structure across all six groups. Evaluation on MAST measurements shows that GenToka reduces macro-average normalized root mean squared error relative to TokaMind by 4.7% on Groups 1-4 and by 17.7% on Group 5, and improves macro-average window-level F1 on Group 6 by 8.4% at a common validation-selected threshold. GenToka provides a reusable, generative, and multimodal pathway for experimental tokamaks, linking plasma-state reconstruction, actuator inference, and disruption warning from shared measurements to support more integrated, data-driven fusion plasma prediction and control research.
Figures & tables
| Task family | Conditioning information | Requested output |
|---|---|---|
| Equilibrium reconstruction | Co-temporal magnetic and plasma observations | Global equilibrium quantities, plasma boundary, or poloidal-flux field |
| Magnetic dynamics | Recent magnetic and plasma state with task-provided actuator traces | Future magnetic and equilibrium time series |
| Profile and diagnostic dynamics | Recent profiles and diagnostics with operating context | Future kinetic profiles, global plasma quantities, or diagnostic responses |
| Long-horizon MHD dynamics | Extended multimodal history with operating context | Future plasma-current, equilibrium, or diagnostic time series |
| Actuator action inversion | State and control history with an observed same-discharge future response | Future recorded control-signal time series |
| Disruption prediction | Strictly pre-anchor diagnostic and, where configured, control-related history | A scalar time-to-disruption risk surrogate |
| Group | Task | Metric | TokaMind | GenToka | Scratch |
|---|---|---|---|---|---|
| Group 1 | 1-1 | NRMSE | 0.1363 | 0.0941 | 0.0991 |
| 1-2 | NRMSE | 0.0439 | 0.0412 | 0.0412 | |
| 1-3 | NRMSE | 0.1200 | 0.1156 | 0.1184 | |
| Group 1 avg | NRMSE | 0.1001 | 0.0836 | 0.0862 | |
| Group 2 | 2-1 | NRMSE | 0.1289 | 0.0880 | 0.0931 |
| 2-2 | NRMSE | 0.0408 | 0.0370 | 0.0375 |
| Group | Task | Metric | LSTM | TokaMark-CNN |
| Group 1 | 1-1 | NRMSE | 0.1853 | 0.1491 |
| 1-2 | NRMSE | 0.0488 | 0.0408 | |
| 1-3 | NRMSE | 0.1302 | 0.1354 | |
| Group 1 avg | NRMSE | 0.1215 | 0.1084 | |
| Group 2 | 2-1 | NRMSE | 0.1633 | 0.1376 |
| 2-2 | NRMSE | 0.0461 | 0.0482 |
Appendix figures & tables4 assets
Supplementary material from the paper’s appendix.
Appendix
| Task | Observed history | Observed future response | Prediction target | Window and held-out cohort |
|---|---|---|---|---|
| 5-1 | Magnetic diagnostics; PF-coil, solenoid and plasma currents; past PF voltages; optional NBI power. | P2/P4/P5 coil currents, solenoid current and ; optional LCFS contour. | Four PF voltage traces: P1, P2, P4, P5. | History: 5 ms; response/target: 25 ms; 1 ms cut grid; 1,103 test shots. |
| 5-2 | Magnetic diagnostics; PF-coil, solenoid and plasma currents; line-integrated density; Thomson ; past current/density requests, NBI power, cumulative gas and gas-valve voltages. | Thomson electron-density profile. | Six gas-valve voltage traces: G1, G2, G3, G4, G11, G12. | History: 150 ms (Thomson: 5 ms); response/target: 50 ms; 1 ms cut grid; 681 test shots. |
| 5-3 | Thomson ; D-alpha and upper/lower soft-X-ray camera voltages; past current/density requests, NBI power, cumulative gas and gas-valve voltages. | Three-channel D-alpha voltage time series. | Six gas-valve voltage traces: G1, G2, G3, G4, G11, G12. | History: 5 ms; response/target: 50 ms; 1 ms cut grid; 803 test shots. |
| 6-1 | Nine signals: , line-integrated density, radiated power, D-alpha voltage, lower soft-X-ray camera voltage, , internal inductance , diamagnetic energy and minor radius. | — | Soft time-to-disruption risk. | History: 100 ms; 10 ms cut grid; 933 test shots / 39,967 windows. |
| 6-2 | Five signals: , line-integrated density, D-alpha voltage, lower soft-X-ray camera voltage and minor radius. | — | Soft time-to-disruption risk. | Same history, grid, shots, window coordinates and targets as 6-1. |
| 6-3 | Plasma current . | — | Soft time-to-disruption risk. | Same history, grid, shots, window coordinates and targets as 6-1. |
| Task | Target component | TokaMind | GenToka | Reduction (%) |
|---|---|---|---|---|
| 5-1 | XDC_PF_F_P1 | 0.1545 | 0.0706 | 54.3 |
| 5-1 | XDC_PF_F_P2 | 0.0710 | 0.0360 | 49.3 |
| 5-1 | XDC_PF_F_P4 | 0.1437 | 0.0825 | 42.6 |
| 5-1 | XDC_PF_F_P5 | 0.1507 | 0.0881 | 41.5 |
| 5-2 | G1 | 0.2930 | 0.2842 | 3.0 |
| 5-2 | G2 | 0.2874 | 0.2761 | 3.9 |
| Setting | LSTM | TokaMark-CNN |
|---|---|---|
| Training epochs | 50 | 50 |
| Optimizer | AdamW | Adam |
| Learning rate | ||
| Weight decay | 0 | |
| Global batch size | 1024 | 2048 |
| Supervision / selection | Masked coefficient MSE | Masked native-space MSE |
| 0.1 | 0.2 | 0.3 | 0.4 | 0.5 | 0.6 | 0.7 | 0.8 | 0.9 | |
|---|---|---|---|---|---|---|---|---|---|
| Mean F1 | 0.4105 | 0.4884 | 0.5391 | 0.5570 | 0.5226 | 0.4675 | 0.3932 | 0.2983 | 0.1724 |
Multimodal Foundation Models
Multimodal foundation models learn shared capabilities across text, images, audio, video, and other signals for understanding, generation, and action.
See all 357 papers