Abstract
Precise control of plasma shape and position is essential for stable tokamak operation and achieving commercial fusion energy. Traditional control methods rely on equilibrium reconstruction and linearized models, limiting adaptability and real-time performance. Here, the first application of deep reinforcement learning (RL) for magnetic plasma control on the mid-size DIII-D tokamak is presented, demonstrating a nonlinear approach that improves robustness and flexibility across plasma scenarios. Using the Soft Actor-Critic algorithm, this method eliminates the need for equilibrium reconstruction, enabling high-speed control execution and scalability on larger fusion devices. NSFsim, a 2D Grad-Shafranov equilibration solver with a circuit equation and a 1D transport solver, is used to train the agent. Its capability of reproducing the kinetic parameter evolution alongside magnetic equilibria evolution appears to be an essential factor significantly affecting control quality. RL-based controllers demonstrated robust magnetic control in experimental application at DIII-D, preserving control performance in transient events during plasma discharges, and reaching target parameters from the first discharge without additional tuning or modifications. The approach itself has significant generalization potential across devices and targets. This work represents a step toward AI-driven, real-time plasma control, advancing the feasibility of next-generation fusion reactors.
Introduction
To achieve commercial fusion, a tokamak must maintain a "burning" plasma in a precise shape and position using magnetic fields. Traditionally, this is a two-step process: sensors measure magnetic flux, and a code (like rtEFIT) "reconstructs" the plasma's current state. Then, a linearized PID controller uses that reconstruction to adjust magnetic coils.
However, this legacy approach faces two major bottlenecks. First, equilibrium reconstruction is computationally slow, often taking 1–2 milliseconds—a significant lag in the context of rapid plasma instabilities. Second, PID controllers rely on linearized models that struggle with the highly nonlinear behavior of high-performance plasma, often requiring tedious manual tuning for every new experiment. This research presents a "reconstruction-free" approach using deep reinforcement learning to enable high-speed, nonlinear control.
Methods and Implementation
The researchers developed an end-to-end RL controller that maps raw sensor data—including magnetic probes, flux loops, and coil currents—directly to actuator commands. By training the network to "see" the plasma state directly through raw signals, the need for rtEFIT during live operations is eliminated.
The core algorithm utilized was Soft Actor-Critic (SAC), an off-policy RL algorithm that promotes exploration by maximizing both expected reward and policy entropy. A key architectural choice was the use of Asymmetric Actor-Critic: during training, the "Critic" network receives "privileged information" (exact internal simulator states like the plasma boundary) that is invisible to the "Actor" (the actual controller). This significantly improves training stability and speed.
Training was conducted entirely in simulation using NSFsim, which couples a 2D Grad-Shafranov solver with a 1D transport solver. This coupling allows the agent to learn how kinetic changes, such as pressure decay, affect magnetic equilibrium—a critical factor for successful "sim-to-real" transfer. The resulting Actor is a compact 3-layer Multi-Layer Perceptron (MLP) capable of running in a 4 kHz feedback loop on the DIII-D Plasma Control System.
Experimental Results
The RL-based controllers were validated on 11 different experimental shots at DIII-D. Most notably, the controllers achieved "zero-shot" success, reaching target parameters on their very first physical discharge without any manual gain tuning or modifications.
Key performance metrics included:
- High Precision: The RL25 series of controllers maintained the plasma center position within 1 cm and the overall shape (separatrix) within 1.2 cm of the target.
- Robustness to Transitions: The controller successfully managed the plasma during volatile H-to-L mode transitions, where sudden drops in confinement often cause traditional controllers to fail.
- Vertical Stability: The RL agent maintained vertical stability even when the dedicated 20 kHz fast vertical control loop was deactivated.
Discussion and Future Work
A major insight from this work is the importance of kinetic modeling. Agents trained with varying kinetic parameters proved far more robust to transient events, such as the sudden loss of auxiliary heating. By understanding the relationship between plasma pressure (beta) and shape, the agent could better handle the "Shafranov shift."
Despite these successes, some limitations remain. Currently, the RL agents are "patch panel-specific," meaning a new agent must be trained if the physical wiring of the DIII-D coils changes. Future work will focus on improving simulator fidelity and generalizing the approach for next-generation reactors where diagnostics may be more limited and pulses much longer. This research marks a significant step toward autonomous, AI-driven control for the future of fusion energy.
Summary updated