AI guides

RL4F compares fusion-control algorithms in one simulator, with no universal winner

By Yang Fu 和 Haomin Bao0 viewsSource: 机器之心
RL4F benchmarks offline reinforcement learning for plasma control without real-device trials

RL4F uses historical DIII-D discharges to compare offline-RL plasma controllers. We explain its task design, 12 baselines, key results, the paper/report version difference and the gap between simulated and real-machine performance.

How can controllers be compared when repeated trial and error on a real machine is impractical? RL4F learns a dynamics model from historical discharges on the DIII-D tokamak, then runs different algorithms in closed loop against that same model and compares their tracking errors.

These are results in a learned simulation environment, not a direct ranking of real-machine performance. There is also a version difference: the publicly readable arXiv paper describes rotation, density, temperature and pressure. The source report adds 1/q and βN tasks and results; those additions are attributed to the report, not presented as independently verified in that paper version.

Over the past few years, reinforcement learning has moved steadily from games and simulation into real scientific facilities. DeepMind used deep reinforcement learning for magnetic plasma control on the TCV tokamak, with the results published in Nature. Reinforcement learning has since been used for tearing-mode avoidance, plasma-profile tracking, and ramp-down control. Tokamaks are among the most promising devices for controlled nuclear fusion. They require real-time control of hot, unstable, strongly coupled plasma, precisely the kind of high-dimensional feedback-control problem suited to reinforcement learning.

Real tokamaks, however, cannot readily support extensive trial and error: operation is expensive, machine time is limited, and safety is critical. Physics simulators such as RAPTOR and TORAX are reliable, but much more computationally expensive than conventional RL simulators. Calibrating parameters for a specific device also requires substantial modeling. A more practical approach is to use historical experimental data directly, a setting well suited to offline reinforcement learning (offline RL).

That raises a question: without real-device trial and error, how do we assess how well a controller has learned and compare different offline RL algorithms?This area previously lacked standardized data, tasks, and evaluation protocols, making progress difficult to measure fairly.

Researchers from the University of Hong Kong, Carnegie Mellon University, Central South University and Chongqing University developed RL4F. They used about 18,000 historical discharges to build a reference dynamics model and compared 12 imitation-learning and offline-RL methods under one protocol. Code, data and pretrained models are public. The source report says the work was accepted to the NeurIPS 2026 Evaluations and Datasets Track.

No method wins every task. Across the six results in the report, each best performer is model-based, but an algorithm can perform quite differently on another objective. RAMBO leads rotation and βN, yet its density error is about 2.3 times the best result and its temperature error about 3.4 times the best.

Article illustration
  • Paper: Offline Reinforcement Learning for Plasma Control in Nuclear Fusion: Codebase and Benchmark
  • Paper: https://arxiv.org/abs/2606.07550
  • Code and data: https://github.com/LucasCJYSDL/Offline-RL-Kit-for-Nuclear-Fusion
  • Dataset: https://huggingface.co/datasets/Neurips-ED-submission-685/fusion-rl-benchmark
  • Pretrained dynamics model: https://huggingface.co/Neurips-ED-submission-685/fusion-rl-dynamics-model
  • Project website: https://yywoai66.github.io/RL4F/

Why RL4F? Evaluating controllers without real-device trials

There are roughly three approaches to training plasma controllers:

  • Real devices: expensive to operate, limited in machine time, and safety-critical, making large-scale trial and error impractical;
  • Physics simulators: reliable but computationally costly. Iterative solvers converge more slowly during stochastic policy exploration, and specific devices require parameter identification and calibration;
  • Data-driven dynamics models: learn directly from a particular device’s historical discharges, linking the simulation environment more closely to that device.

RL4F adopts the third approach and turns it into a benchmark. The central idea is:

Train a dynamics model on historical discharge data and use it as a shared closed-loop evaluation environment, so all algorithms are compared in the same environment.

Candidate algorithms can learn only from model-generated data and undergo closed-loop evaluation in the same reference model. This mirrors the practical workflow of developing controllers with past experimental data before considering real-device deployment.

Core design: building a dynamics model for closed-loop evaluation

The framework has three stages.

Article illustration

RL4F’s overall workflow: train an RPNN dynamics ensemble on historical DIII-D discharges, then use it as a closed-loop environment for policy evaluation. Source: paper, Figure 1

Learn the reference dynamics model

The team uses a recurrent probabilistic neural network (RPNN) to learn plasma dynamics. Given the current state, previous actuator settings, and their increments, the model outputs a Gaussian distribution over the next state change and rolls forward autoregressively. Training has two steps: first optimize the predicted mean using mean squared error; then freeze the backbone and train only the log-variance head with negative log-likelihood to calibrate uncertainty without changing the mean dynamics.

The reference model has 25 members and uses nearly a decade of DIII-D discharges, each covering roughly four seconds at 20-millisecond intervals. Profiles are reduced with PCA before modeling.

The report attributes temperature, density and toroidal rotation to ZipFIT reconstructions, and pressure and safety factor q to EFIT01. The public paper groups profile reconstruction under ZipFIT, so these descriptions are not fully identical. Disagreement among ensemble members estimates epistemic uncertainty in the learned device dynamics.

Replay real actuator sequences to generate offline data

Importantly, the dataset starts from states in the flat-top phases of real discharges and replays real actuator sequences, letting the reference model generate plasma evolution autoregressively in place of measured next states. This preserves real experimental actuator schedules and discharge segments while producing trajectories that can be generated at scale.

After filtering, the data contains 5,882 discharges and 945,828 time steps. Of these, 5,282 discharges, or 849,977 steps, are used for training; validation and test sets contain 300 discharges each. The split is fixed.

Train offline and evaluate in one closed-loop environment

All algorithms learn only from the synthetic training set, then track target profiles in the same reference model. Model-based methods train their own 25-member dynamics ensembles on the synthetic data, randomly choosing one ensemble member for each trajectory rollout so policies adapt to a range of possible dynamics.

Define tasks, inputs and targets

The report lists five full-profile tasks—rotation, density, electron temperature, pressure and the safety-factor-related quantity 1/q—and one scalar task, βN. The first four appear in the public paper; the latter two are reported extensions. A profile describes a physical quantity from the plasma core to the edge, and tracking aims to keep the entire curve close to its target.

  • Observations: the current profile, current target profile, future target profile 10 steps ahead, and PID-inspired proportional-error terms, or P-terms;
  • Actions: neutral-beam power, neutral-beam torque, gas-puffing voltage, and total electron-cyclotron heating (ECH) power, covering heating, momentum injection, and fueling channels;
  • Targets: take two points from a reference trajectory to form a three-stage “original–changed–original” step target. This keeps targets closer to reachable states in the reference trajectory, but does not itself guarantee arbitrary-target or real-device feasibility;
  • Reward: the negative mean squared tracking error across the entire profile, using 33 radial points per step.

These profiles have different physical meanings. Rotation-profile control is related to tearing-mode suppression, density profiles to density-limit disruptions, and pressure profiles to magnetohydrodynamic stability limits.

Experimental results: comparing 12 algorithms

RL4F evaluates three method groups: imitation learning (GCIL), model-free offline RL (TD3BC, CQL, IQL, EDAC, MCQ), and model-based offline RL (PPO, COMBO, MOPO, MOBILE, RAMBO, BAMCTS). Evaluation uses closed-loop simulation on 300 held-out test discharges, with 10 random seeds per discharge, reporting RMSE at six radial locations, where lower is better. Hyperparameters are selected on the validation set; the test set is used only for final evaluation.

The best average RMSE results on each task are as follows:

Article illustration

Comparison of the best average RMSE on each task; lower is better. Source: paper, Tables 1–6. “Error reduction” was calculated by the editors from the table values.

Rotation and βN: RAMBO leads

For rotation tracking, RAMBO achieves an average RMSE of 8.03, narrowly ahead of COMBO (8.09) and MOPO (8.66), and substantially better than the best model-free method, TD3BC (13.13). Rotation profiles vary sharply from core to edge and are controlled primarily through torque, requiring sustained correction after each target switch. The paper argues that conservative or behavior-regularized model-free methods have limited ability to depart from the behavior distribution in a static dataset, making them weaker on tasks requiring active correction. RAMBO also ranks first on scalar βN, with average RMSE of 0.2041, followed by MOPO at 0.2399.

Density and 1/q: COMBO performs best

On density, COMBO leads with 0.691, followed closely by MOPO (0.727) and PPO (0.733). The gap from model-free methods is relatively small. The paper interprets this as evidence that the offline data sufficiently covers density-control behavior. RAMBO, by contrast, trails substantially with RMSE of 1.583. On 1/q, COMBO (0.0562) and MOPO (0.0564) are nearly tied, with COMBO more accurate in outer regions and MOPO in inner regions.

Temperature and pressure: MOPO performs best

On temperature, MOPO lowers RMSE to 0.193, outperforming PPO (0.240), MCQ (0.244), and COMBO (0.264). Temperature dynamics involve delayed responses and accumulated transport effects, making long-horizon accuracy particularly important. By penalizing uncertain predictions, MOPO can avoid accumulating errors in regions where the model is unreliable. Pressure is the most strongly coupled task, depending on density, temperature, and current profiles. MOPO ranks first with 5,198.6, followed by RAMBO at 5,358.2. The best model-free method, EDAC, scores 6,016.8.

Several observations

The best methods beat imitation, but not every method does

The best method for each task substantially outperforms the GCIL imitation-learning baseline, with error reductions of roughly 20%–55%. This suggests long-horizon profile tracking requires active correction by the policy; simply imitating historical behavior is insufficient. It does not mean that every offline RL method beats imitation learning, however. On rotation, for example, MOBILE (26.86) and BAMCTS (24.38) both have higher errors than GCIL (17.76). The best methods on all six tasks are model-based, but performance varies considerably even within this group across different profiles.

Errors are higher near the core

Across algorithms and tasks, error at low normalized flux, near the core, is systematically higher. For RAMBO on rotation, RMSE is 17.22 near the core at ψ = 0.06, versus just 5.93 near the edge at ψ = 0.85, a difference of about 2.9 times. Core profiles have larger amplitudes and greater temporal variation. The small standard errors in the tables suggest that these average results are relatively stable within the simulation evaluation sample. This alone does not rule out model bias or establish which method is better on a real device.

Different targets rely on different actuators

Beyond the numbers, the team demonstrates policy behavior in closed-loop simulation. On every task, each target switch immediately triggers a coordinated response from four actuators, after which profiles converge smoothly toward the new setpoint, although some systematic deviation remains between actual curves and targets. The main control channels differ: rotation relies primarily on neutral-beam torque, density on gas puffing, and temperature on ECH and neutral-beam power while suppressing gas puffing. Pressure requires coordination of all four actuators, while 1/q depends on frequent adjustments to beam power and torque.

Article illustration
Article illustration

RAMBO’s closed-loop rotation-profile tracking. Left: rotation profiles at different radial positions, with blue lines showing actual values and red dashed lines the targets. Right: the policy’s four actuator signals. Source: paper, Figure 3

Article illustration
Article illustration
Article illustration
Article illustration

Caption: high-target tracking results for density (COMBO), temperature (MOPO), pressure (MOPO), and 1/q (MOPO). Source: paper, Figure 4

What remains between simulation and real-machine testing

RL4F provides standardized data, tasks, and metrics, enabling direct comparison of algorithms on plasma control. The evaluations also show that existing offline RL algorithms cannot achieve the best performance across every plasma-control task, leaving room for improvement. For the offline RL community, this is a high-dimensional, nonlinear, stochastic, long-horizon, safety-sensitive problem, a real-world task rarely represented in existing benchmarks. The team hopes RL4F will serve both the fusion community and offline RL researchers seeking challenging real-world benchmarks.

Unresolved questions remain. The benchmark currently uses only DIII-D data: can the learned dynamics models, or even the relative rankings of algorithms, transfer to other tokamaks? Policies are also evaluated in learned dynamics models, leaving a gap from real devices. The paper notes that RL policies trained in the same class of ensemble dynamics models have been shown effective for profile control on DIII-D (Sonker et al., 2026), but how benchmark rankings correspond to real-device performance still requires further testing. Answering the first question will require broader collaboration across fusion research and data from more devices.

About the authors

As listed in the paper, co-first authors Yang Fu and Haomin Bao are affiliated with Central South University and Chongqing University respectively. Corresponding author Jiayu Chen is at the University of Hong Kong. Rohit Sonker, Xiaoyan Hu, Aravind Venugopal and Jeff Schneider are at Carnegie Mellon University.

Edited by AINRK from the Synced report by Yang Fu and Haomin Bao, the public paper (opens in a new tab) and the official repository (opens in a new tab). AINRK did not run the code or conduct real-machine experiments.

Related topics

After reading

Join the AINRK community

Read how to join the community and connect with people working in AI.

Community information (opens in a new tab)