Abstract
Achieving sustainable nuclear fusion requires precise control over plasma turbulence, a complex 5D phenomenon typically modeled by computationally intensive gyrokinetic equations. We present GyroSwin, the first scalable 5D neural surrogate model designed for nonlinear plasma turbulence. By adapting the Swin Transformer architecture to five dimensions and integrating physics-informed inductive biases, GyroSwin captures critical nonlinear effects—such as zonal flows—that traditional fast models overlook. Our results demonstrate that GyroSwin is three orders of magnitude faster than conventional numerical codes while exhibiting strong scaling properties and high predictive accuracy.
Introduction: The Challenge of Plasma Turbulence
In magnetic confinement fusion, plasma turbulence is the primary mechanism for heat and particle loss, directly impacting the efficiency of energy production. Modeling this turbulence requires solving the 5D gyrokinetic equation, a task that presents a significant computational bottleneck. Current approaches are divided between high-fidelity nonlinear simulations, which are too slow for real-time reactor design, and fast reduced-order models (ROMs) that often fail to capture essential nonlinear dynamics like zonal flows—large-scale currents that regulate turbulence.
Methodology: Scaling to Five Dimensions
GyroSwin addresses the "speed vs. accuracy" trade-off by leveraging a hierarchical Vision Transformer (ViT) architecture optimized for 5D data. The model introduces several key technical innovations:
- 5D Shifted Window Attention (5DWA): To handle the quadratic complexity of standard Transformers on 5D grids, GyroSwin utilizes local windows. This keeps computation near-linear, enabling the model to scale to high-resolution plasma data.
- Multitask Learning Framework: The model is trained to simultaneously predict the 5D distribution function ($f$), 3D electrostatic potentials ($\phi$), and scalar heat fluxes ($Q$). This multitask objective ensures the model remains grounded in the underlying physics.
- Latent Integrators and 5|3DMix: Specialized cross-attention modules allow the model to integrate information across velocity space, mimicking physical integration processes required to move between 5D and 3D representations.
- Channelwise Mode Separation: By explicitly separating the "zonal flow" mode into its own channel, the network can more effectively learn the structures responsible for turbulence regulation.
Data and Scaling Laws
The model was trained on a massive 6-Terabyte dataset generated by the GKW (Gyro-Kinetic Workshop) numerical code, comprising 255 nonlinear simulations. A key finding of this work is the emergence of "scaling laws" in plasma turbulence modeling. As the GyroSwin model size increased toward 1 billion parameters and more training data was provided, the prediction error decreased consistently. This suggests that the complex, chaotic nature of plasma turbulence is highly amenable to large-scale deep learning approaches.
Results and Performance
GyroSwin achieves a 1,000x speedup over traditional GKW numerical simulations. Beyond speed, it significantly outperforms state-of-the-art quasilinear surrogates like QuaLiKiz in heat flux prediction. Notably, GyroSwin is the first surrogate capable of accurately reproducing the energy transport spectrum and recovering zonal flow profiles. In autoregressive tests, the model remained stable for over 100 timesteps, demonstrating its robustness even when applied to out-of-distribution data.
Conclusion and Future Directions
GyroSwin represents a significant step toward real-time, high-fidelity plasma control. While the model currently focuses on the saturated turbulent phase and employs the adiabatic electron approximation, future iterations aim to include full kinetic electron dynamics. Addressing long-term error accumulation through generative modeling techniques like Diffusion or GANs remains a promising avenue for future research.
Summary updated