Physics

Tokamak Plasma Control

Develop AI controllers that maintain plasma shape, position, and current in a simulated tokamak under changing physical conditions and disturbances.

Episode successShape & current tolerances
Close the feedback loop around a tokamak
  1. Plasma and magnetic coils

    The dashed gold outline marks the requested plasma boundary.

  2. Sensor feedback

    The controller uses sensor measurements and the requested boundary to set its actions.

  3. Coil voltage feedback
    Controller output
    Commands adjust 12 magnetic-coil voltages.
    Plasma response
    Track the requested position, shape and current.

Results

Score breakdown

The Task

What is Tokamak Magnetic Control?

Nuclear fusion releases energy when light atomic nuclei combine. Fusion fuel is heated into plasma, a state of matter made up of charged particles. A tokamak is a doughnut-shaped device that uses magnetic fields to confine the plasma away from the vessel walls.

Small disturbances can shift or deform the plasma and make it unstable. Tokamak magnetic control adjusts the currents in external electromagnetic coils to keep the plasma close to its desired shape, position, and current.

An orange plasma region inside a gray vessel wall, with blue magnetic coils outside and small light-blue sensors along the wall. Vacuum vessel Plasma boundary Magnetic coils Magnetic sensors

Learning Magnetic Feedback Control

The benchmark uses FreeGSNKE[2] to simulate a MAST-U-like tokamak. At each step, the controller receives 585 values, including magnetic sensor readings, coil currents, measured plasma current, and descriptors of the target geometry. It returns 12 voltage commands for the magnetic coils.

ot∈ℝ585 Vt=πθ(ot)∈ℝ12

The voltages change the coil currents and the magnetic field that shapes and positions the plasma. The simulator advances the system and returns the next set of observations.

(ot,Vt)⟶Plasma simulatorot+1

The feedback loop runs at 2 kHz, issuing a new command every 0.5 ms. The controller must infer the changing plasma state from indirect, noisy measurements and keep the coils within their operating limits.

What the Agent Develops

The agent develops one real-time magnetic controller for all seven scenarios. The controller learns to translate magnetic measurements and target configurations into coil voltages.

  1. Observe the magnetic diagnostics and target plasma conditions.
  2. Apply coil voltages and observe how the simulated plasma responds.
  3. Use that feedback to improve control and plasma-state estimation.

The agent may use reinforcement learning, learned state estimation, model-based planning, or classical feedback control. Virtual-circuit control[1] and reinforcement learning[3] provide reference approaches.

One jointly trained controller must handle all seven scenarios with at most 1 million learned parameters and a median computation budget of 0.5 ms per step. Its parameters are frozen during evaluation.

Data & Prediction Tasks

Simulation Environment

The MAST-U-like machine description includes coils, sensors, vessel geometry, and reference plasma equilibria. The agent generates training experience through simulation, collecting trajectories of magnetic measurements, voltage commands, and plasma responses. The simulator can vary plasma properties, sensor noise, initial coil conditions, and actuator delays.

Plasma Control Scenarios

  • Base shape hold

    Maintain the reference plasma shape and current.

  • High-current hold

    Maintain a plasma current of approximately 750 kA.

  • Alternative shape hold

    The orange target boundary extends beyond the dashed blue reference boundary on the right.

    Maintain a different plasma shape produced by changing a shaping-coil current.

  • Current ramp

    Increase plasma current by 15% while maintaining shape.

  • Vertical shift

    Move the plasma about 2 cm upward and hold the new position.

  • Pressure disturbance

    Solid and dashed outlines illustrate the change in plasma shape.

    Recover from an unannounced 30% drop in plasma pressure.

  • Combined control sequence

    1. Current ramp
    2. Vertical shift
    3. Reshaping

    Track current changes, vertical motion, and plasma reshaping in sequence.

  • Target
  • Initial, reference, or disturbed boundary
  • Requested change

Control and Evaluation Episodes

Each episode starts from a simulated plasma equilibrium and asks the controller to maintain or track a target. Most scenarios run for 700 control steps (0.35 seconds). The combined scenario runs for 1,200 steps (0.6 seconds).

Evaluation introduces randomized physical conditions, measurement disturbances, and actuator imperfections. The controller has access to the resulting sensor measurements and target descriptors.

Evaluation

Evaluating Plasma Control

The evaluator compares the simulated plasma against its target configuration using four tracking measurements.

Plasma tracking requirements
MeasurementSuccess criterion
Boundary shapeRoot-mean-square (RMS) distance from 32 target boundary points to the actual plasma outline ≤ 1 cm
Inner & outer gapsDifference between actual and target wall clearances ≤ 1 cm each
X-point heightVertical position error of the lower X-point ≤ 1 cm
Plasma currentRelative error from the requested current ≤ 3%
Tokamak cross-section showing two plasma outlines, horizontal gap arrows to the vessel walls, and the lower X-point. Actual plasma boundary Target boundary Inner gap Outer gap X-point height
  • Actual
  • Target
  • Vessel wall
  • Plasma

Tracking errors are averaged over the steady-state window starting 100 ms after the last target change or disturbance, with the final 50 ms used when needed. An episode succeeds only if every tracking requirement is met, the plasma stays confined throughout the episode, and every coil current stays within its limit.

Overall Scoring

The 105-episode evaluation protocol runs each of the seven scenarios under 15 independently randomized simulator conditions.

Nepisodes=7×15=105

Each episode receives 1 if every control and safety requirement passes, or 0 if it fails. Plasma loss, a coil-current violation, an unrecovered simulation failure, or a missed tracking tolerance all count as failures. The overall score is the fraction of successful episodes.

Score=1105∑i=1105si

Here, si is the success indicator for episode i. A score of 1 means all 105 episodes succeed. Continuous tracking errors and time within tolerance are reported separately to show how close the controller came to the targets.

References

  1. [1] Task reference implementation. Full-shape virtual-circuit controller (2026).
  2. [2] Amorisco, N. C. et al. FreeGSNKE: A Python-based dynamic free-boundary toroidal plasma equilibrium solver. Physics of Plasmas 31, 042517 (2024). Source code.
  3. [3] Degrave, J. et al. Magnetic control of tokamak plasmas through deep reinforcement learning. Nature 602, 414–419 (2022).