Abstract: Nuclear fusion offers a path to sustainable, clean energy, but maintaining plasma stability within a tokamak remains a significant engineering hurdle. This paper introduces Multi-Task Thompson Sampling (MTS), an offline contextual Bayesian optimization algorithm designed to efficiently find optimal control settings for various plasma states. By treating different plasma configurations as distinct tasks and intelligently allocating simulation resources, MTS achieves lower regret than standard methods. Experimental results using the TRANSP simulator and DIII-D tokamak data demonstrate the algorithm's ability to balance stability and performance while minimizing the number of expensive high-fidelity simulations required.
Introduction
The pursuit of nuclear fusion energy relies on the ability to contain hydrogen isotopes at extreme temperatures within a tokamak. The resulting plasma is highly unstable; minor fluctuations can lead to disruptions that terminate the reaction and potentially damage the reactor. To maintain stability, real-time control of magnetic fields and heating systems is essential. However, developing these control strategies is challenging because physical experiments are costly and high-fidelity simulations, such as those using the TRANSP code, are computationally expensive—often taking hours for a fraction of a second of simulated time.
Methodology: Multi-Task Thompson Sampling (MTS)
The researchers frame the control problem as Offline Contextual Bayesian Optimization. Unlike standard contextual bandits where the environment provides the context, the "offline" nature of simulation allows the algorithm to select both the context (the specific plasma state) and the action (beam power settings).
The core innovation is Multi-Task Thompson Sampling (MTS). While traditional multi-task optimization often seeks a single global optimum, MTS aims to learn a mapping that identifies the optimal action for each specific context. The algorithm maintains a Gaussian Process (GP) model of the reward landscape across all tasks. In each iteration, it samples from the GP posterior to identify which plasma state and action pair offers the highest potential for improvement, effectively focusing its "compute budget" on the most uncertain or difficult tasks.
Experimental Setup
The study utilizes data from the DIII-D tokamak, specifically eight distinct "shots" representing different plasma contexts. The action space is defined by two parameters: the power levels of co-current and counter-current neutral beams used for heating and stabilization. The reward function is a composite metric balancing $\beta_n$ (normalized plasma pressure, a proxy for energy output) and stability metrics (such as $\Delta\omega$) derived from the plasma's internal state.
Results and Discussion
The MTS algorithm was benchmarked against a standard Thompson Sampling (TS) baseline that selects plasma states at random.
As shown in the results, MTS consistently outperforms the baseline in terms of total regret. A key observation is the algorithm's resource allocation: in "easier" states where the optimal control is quickly identified (e.g., States 4 and 5), MTS reduces its sampling frequency, shifting focus to "harder" states (e.g., States 2 and 3) where the reward landscape is more complex.
The researchers also visualized the underlying reward surfaces to understand the trade-offs between different physical objectives.
The visualization reveals a fundamental tension in fusion control: increasing beam power can enhance stability (as seen in the eigenvalue surface) but may negatively impact other performance metrics like plasma pressure ($\beta_n$). MTS successfully navigates this multi-objective landscape to find the optimal balance for each context.
Conclusion
This work demonstrates that Multi-Task Thompson Sampling is a powerful tool for optimizing high-stakes physical systems where simulation is expensive. By providing a theoretically grounded approach to context selection, MTS brings us closer to automated, efficient control of nuclear fusion reactors. Future work will look toward expanding the action space and transitioning from discrete task optimization to continuous reinforcement learning for real-time dynamic control.
Summary updated