Introduction
Fusion energy research is entering a new era where artificial intelligence (AI) is no longer just a diagnostic tool but an active participant in reactor control. Controlling a fusion plasma—essentially a 100-million-degree "sun in a bottle"—requires managing complex, non-linear instabilities on millisecond timescales. While traditional control systems using PID loops or physics-based models have been the standard, they often struggle with the high-performance regimes necessary for commercial fusion.
Machine Learning (ML) offers the potential to handle these complexities. However, a significant "deployment gap" has existed: ML models developed in offline environments are difficult to integrate into real-time reactor hardware due to a lack of standardized data pre-processing, model execution, and safety-critical arbitration. This paper introduces PACMAN (Prediction And Control using MAchiNe learning), a modular framework designed to bridge this gap on the DIII-D tokamak.
The PACMAN Framework
PACMAN is a general-purpose algorithm architecture integrated into the Plasma Control System (PCS). It standardizes how AI models interact with the reactor, moving from isolated experiments to a scalable "operating system" for fusion control. The architecture follows a strict four-block pipeline to ensure modularity and safety:
- Diagnostic Input Pre-processing: Standardizes raw data from magnetic probes, temperature sensors, and density measurements.
- Model Block: Houses the ML models or physics surrogates. It utilizes tools like
keras2cto convert Python-based neural networks into real-time C code. - Controller Block: The decision-making layer that translates model predictions into actionable reactor strategies.
- Actuator Output Post-processing: Ensures commands are within safe operating limits and manages conflicts between different controllers.
A key innovation is the 3-level hierarchy. PACMAN operates at "Level 3" (high-level strategy), while delegating low-level hardware voltages (Level 1) and mid-level processing like profile fitting (Level 2) to existing specialized systems. This modularity allows researchers to swap AI models without rewriting the entire control loop, and includes real-time error handling to prevent "hallucinated" decisions based on faulty sensor data.
Experimental Validation and Results
The PACMAN framework was successfully demonstrated on DIII-D across five diverse, state-of-the-art control tasks. These applications utilized historical shot data and simulators (like RAPTOR) for training before real-time deployment.
Key performance metrics from these experiments include:
- RL ITB Controller: Managed internal transport barriers with an inference time of 0.8 ms.
- ELM Predictor: Predicted edge instabilities with a lightning-fast 0.2 ms inference time.
- Alfvén Eigenmode Controller: Used Reservoir Computing (RCN) to suppress instabilities in 0.65 ms.
- MPC Profile Control: A complex Model Predictive Controller handling 33-point plasma profiles within a 15 ms cycle.
Overall, the system achieved a cycle time goal of 5–50 ms, proving that sophisticated AI can keep pace with the frantic environment of a fusion pulse.
Discussion and Future Directions
While PACMAN represents a significant leap forward, it currently faces a "millisecond floor," making it unsuitable for sub-millisecond instabilities like Vertical Displacement Events (VDEs) that require dedicated hardware. Future iterations aim to integrate GPUs and FPGAs to support larger "Foundation Models" for fusion.
Additionally, as more AI controllers are added, "actuator arbitration"—the logic used to resolve conflicting commands from different models—will need to evolve from simple priority-based rules to more sophisticated negotiation logic. By standardizing the integration of AI, PACMAN paves the way for fully autonomous, optimized fusion reactors.
Reference: Rothstein, A., Farre-Kaga, H.J., et al. "Enabling Integrated AI Control on DIII-D: A Control System Design with State-of-the-art Experiments." arXiv:2511.08818v1, 2025.
Summary updated