Plasma shape control is critical for tokamak operation: safety and achieving high performance depend on it. Traditionally, virtual circuits (sets of coefficients linking shape errors to coil currents) are precomputed for a few reference equilibria and manually assigned to discharge phases. This is labor-intensive and poorly adapts to unexpected plasma deviations. In recent years, machine learning approaches have been actively developed, but most either replace the controller entirely or require training for each scenario. This work occupies a niche between these extremes: it preserves the familiar control structure but makes it adaptive. Related papers on the archive explore adjacent topics: real-time plasma control with machine learning, quantum simulations, and neural network models of materials, but this article is the first to experimentally demonstrate updating virtual circuits on a working tokamak.
On the MAST Upgrade tokamak, neural network emulators predicted seven plasma shape parameters from currents in twelve active poloidal field coils, total plasma current, and several current profile parameters. The emulators were trained on a large library of synthetic equilibria generated with the FreeGSNKE code. In real time, every 5–5.6 milliseconds, the inference server received the current state and returned the Jacobian matrix (shape sensitivity to coil currents) computed by finite differences. The plasma control system calculated the pseudo-inverse matrix and replaced the corresponding columns in the virtual circuit matrix. The shape controller ran at 10 kHz. Before active experiments, checks were performed on reproducing archived discharges and in a passive 'piggyback' mode, where the system recorded its commands but did not control the plasma.
Experiments on four discharges showed that virtual circuits updated by the neural network in real time can perform various plasma shape control tasks. In discharge 53996 with constant shape, the parameters remained close to the requested values throughout the controlled phase. In discharge 54000, trapezoidal perturbations of the radius and X-point position were successfully tracked, as well as controlled divertor leg movement from 0.8 to 1.4 meters. Discharge 54002 demonstrated a transition to an elongated configuration with the leg nearly in Super-X configuration, although at the end of the discharge control was lost due to interaction with the plasma 'nose'. Discharge 54168, where all seven parameters were controlled simultaneously, revealed a problem of poor matrix conditioning: the norm of the virtual circuit vectors reached values of order $10^5$ A/m, leading to noise amplification and less smooth tracking. Nevertheless, in all cases the same neural network was used without retuning for the specific scenario.
This work experimentally confirms for the first time that real-time updates of plasma response linearizations can be a practical extension of traditional shape control in tokamaks. Unlike related works that either replace the controller entirely or apply reinforcement learning, here the interpretable virtual circuit structure familiar to operators is preserved. This lowers the barrier to adoption and allows gradual increases in autonomy. Furthermore, the same emulator works across different scenarios without retuning, simplifying experiment preparation.
The next step will be to include currents induced in passive structures and real-time estimates of the plasma current profile in the emulator state. This should improve the accuracy of linearizations during rapid changes. It is also planned to replace the Moore–Penrose pseudo-inverse with a regularized or damped inversion to avoid amplification in nearly degenerate shape directions. In the long term, this approach could completely eliminate manual preparation of phase schedules for virtual circuits.
The method can be transferred to other tokamaks, including future reactors, where adaptive control without complex manual tuning is important. It can also simplify scenario development for experiments with varying plasma shape.
Conduct a systematic comparison with traditional virtual circuits in a dedicated experimental campaign. Extend validation to a wider range of operating regimes and test performance with real-time current profile estimates.
This work is directly related to the problem of reliable plasma shape control under uncertainty and rapid changes. It does not solve fundamental plasma physics questions, but it removes a practical limitation associated with labor-intensive manual controller tuning, which is important for future long pulses and reactor regimes.
This section is addressed to the author of the paper and their colleagues. Neighbouring works were found by meaning-based search across our archive, not by word overlap. We do not review: we show the field around the work.
What the work does
In experiments on MAST Upgrade, virtual plasma shape control loops were updated in real time using neural network response emulators for the first time. Trained on a wide range of equilibria, the emulators predicted the Jacobian matrix, which was used to recalculate the control loops every 5–5.6 ms. The experiments covered constant shape holding, perturbations, divertor leg movement, and a strongly varying configuration, confirming compatibility with the existing control architecture.
Where its strength is
The strength of this work lies in preserving the familiar controller structure while making it adaptive without per-scenario retuning. The experimental demonstration on an operating tokamak sets it apart from most studies that are limited to simulations.
Where it could go next
Worth trying
Why this may matter
Adaptive virtual control loops could simplify experiment preparation and improve control robustness in non-standard scenarios, which is important for future reactors where manual tuning of control loops for each discharge is impractical.
Nearby works in our archive
The archive is sparse around this work: the closest review is only 0.54, against a usual 0.64. It looks like few have drilled nearby.
The neural network emulators were trained on 100,000 synthetic equilibria generated over several days on a high-performance cluster, whereas manually calculating that many virtual circuits would have taken years.