Dynamics-Informed Adaptive Offline RL for Real-Time Tokamak Plasma Control

Rohit Sonker, Xiaoyan Hu, Hiro Josep Farre Kaga, Andrew Rothstein, Jiayu Chen, Egemen Kolemen, Jeff SchneiderNeurIPS 2026

TL;DR

Controlling nuclear fusion inside a tokamak is like steering a miniature star through invisible weather fronts using blurry sensors. This paper introduces an offline reinforcement learning (RL) controller that adapts to shifting plasma states by tapping into the "memory" of a learned dynamics model, while using a neural translator to bridge the gap between clean historical data and noisy real-time sensors. Better yet, they didn't just simulate it—they successfully ran it on a real fusion reactor.

What Problem Does This Paper Address?

Inside a tokamak fusion reactor, operators don't just manage single numbers; they must sculpt spatial profiles—how temperature, pressure, and rotation vary from the fiery core to the outer edge. Because letting an AI learn by trial-and-error on a real reactor is far too risky and expensive, researchers train RL controllers offline using historical data. However, existing data-driven RL controllers stumble over two major hurdles:

  1. Partial Observability: A single snapshot of sensor data isn't enough to predict what the plasma will do next. Two plasmas can look identical right now, yet evolve completely differently depending on the reactor's current operating phase or wall conditions.
  2. Diagnostic Mismatch (The Sim-to-Real Gap): Offline dynamics models are trained on smooth, high-fidelity sensor reconstructions calculated after an experiment ends (like ZIPFIT). During a live shot, however, the controller only receives fast, low-latency, noisy estimates (like RTCAKENN)—causing standard offline-trained policies to fail when deployed.

Methods

The authors build a model-based offline RL framework using Proximal Policy Optimization (PPO), introducing two clever twists on top of a standard ensemble of Recurrent Probabilistic Neural Networks (RPNNs) that simulate plasma dynamics:

Figure 1: Adaptive offline RL framework: The student latent model is trained to predict dynamics- informed context that varies between plasma regimes. The observation converter exposes policy training to real-time tokamak diagnostics.
  • Dynamics-Informed Latent Context & Distillation: Instead of training a recurrent policy to figure out memory purely from sparse control rewards, the authors extract the internal hidden states of the RPNN ensemble, which learned rich representations from dense next-step state predictions. Because running a 25-model ensemble in real time is too slow, they distill the averaged hidden states into a lightweight, single Student GRU model that feeds adaptive context directly to the policy.
  • Real-Time Observation Converter: Trying to train dynamics models directly on noisy real-time signals failed. Instead, the authors keep the dynamics simulator and PPO critic operating in the clean offline space, while training a heteroscedastic neural network to translate clean states into noisy, real-time-style observations for the actor and student model.

Datasets

  • Dynamics & Policy Training: Approximately 16,000 historical experimental trajectories ("shots") spanning over a decade at the DIII-D Tokamak. Shots last 4–5 seconds (sampled at 50 Hz), with 33-dimensional spatial profiles compressed into 4 Principal Component Analysis (PCA) components.
  • Observation Converter Training: Approximately 5,000 DIII-D shots containing matched pairs of offline reconstructed signals (ZIPFIT) and real-time diagnostic estimates (RTCAKENN).
  • No new public benchmarks are introduced, though the authors build an independent Transformer-based simulator (TPNN) alongside their RPNN environment for unbiased evaluation across 43 held-out test shots.

Key Insights and Ideas

  • Next-state prediction teaches physics regimes: Without any explicit labels, the dynamics model's latent space naturally clusters distinct physical regimes—cleanly separating the "ramp-up" phase from steady "flat-top" operation, and tracking subtle confinement transitions (like L-mode to H-mode to Quiescent H-mode).
  • Context stops policies from "playing the averages": Standard memoryless policies optimize for average behavior, causing them to diverge wildly when the plasma shifts regimes (such as startup transitions). Conditioning on the distilled latent context lets a single policy adapt on the fly without scenario-specific tuning.
  • Creative MIMO problem-solving in live plasma: During live reactor testing, the controller discovered non-obvious multi-input-multi-output (MIMO) strategies—like firing Electron Cyclotron Heating (ECH) to lower plasma density (reducing inertia) in order to spin the plasma faster after overshooting with neutral beams.

Key Results

  • Superior Offline Tracking: Across both RPNN and Transformer (TPNN) test environments, the latent-conditioned policy beat feedforward, history-stacked, and standard recurrent GRU baselines. On TPNN rotation tracking, it achieved a return of -344.6 vs. -371.5 (feedforward) and -441.0 (recurrent GRU) (higher/less negative is better).
  • Bridging the Sim-to-Real Gap: Evaluating policies on simulated real-time noisy signals caused catastrophic drops when trained without the observation converter. Adding the converter rescued TPNN evaluation returns from -1544.4 to -482.4 on rotation, and from -603.5 to -357.0 on electron temperature.
  • Live Fusion Deployment: Deployed on the DIII-D Tokamak across two live shots, the controller tracked target profiles in real time (achieving a Normalized RMSE of 0.196 / RMSE of 27.41 km/s for rotation in Shot 206591, and NRMSE of 0.518 / RMSE of 0.722 keV for electron temperature in Shot 206589).

Limitations and Future Work

  • Small Live Sample Size: Because tokamak runtime is scarce and fiercely competitive, live validation was limited to two demonstration shots rather than a statistically significant trial.
  • Hardware Dropouts: Real reactors frequently suffer sudden sensor spikes or actuator dropouts during a shot, which were not modeled during training. Simulating these failures is a key next step.
  • Pipeline Dependencies: Live deployment still relies on an upstream neural diagnostic estimator (RTCAKENN). Future work aims to model raw diagnostics directly and repurpose the learned latent context for tasks like predicting tearing instabilities.

Summary updated

Abstract

Tracking plasma profiles, such as electron temperature and rotation, remains a challenging task in tokamak nuclear fusion. While RL-based approaches offer a promising path for multi-input-multi-output control systems, existing frameworks overlook two key obstacles: partial observability of plasma dynamics and the diagnostic mismatch between offline training and online execution. We propose a novel offline RL framework to address these challenges. Specifically, we train the control policy to condition on the latent context extracted from a trained plasma dynamics model. This dynamics-informed latent context encodes information about operating regimes, enabling the policy to adapt as the plasma evolves. To mitigate the gap between offline and real-time observation, we learn a converter that maps offline reconstructed plasma diagnostics to their real-time observable counterparts, thereby exposing policy training to the real-time plasma diagnostics available in live experiments. In offline evaluations, the proposed method substantially improves tracking performance and robustness across a diverse set of discharges. We report real-time deployment results on DIII-D Tokamak Fusion Facility, showing feasibility under challenging actuator conditions.
BibTeX
@inproceedings{sonker2026dynamics,
  author = {Rohit Sonker and Xiaoyan Hu and Hiro Josep Farre Kaga and Andrew Rothstein and Jiayu Chen and Egemen Kolemen and Jeff Schneider},
  title = {{Dynamics-Informed Adaptive Offline RL for Real-Time Tokamak Plasma Control}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2026},
  url = {https://openreview.net/forum?id=XPCEsmysv7},
}
Figure