arXiv:2610.32370cs.AIOct 2026

Manuscript Offprint

arXiv:2610.32370

Adaptive Control of Scientific Instruments with Nonstationary Responses through Multimodal Agents

Guoyang Shi, Hongwen Li, Yiding Yu, Zhuang Fu, Siqi Ding, Zhengyuan Chen, JianGuo Chen, Hanyue Zhao, Tianyuan Liu

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Abstract

Controlling scientific instruments requires parameters to be adjusted progressively in response to feedback from successive operations. When unobserved operating conditions evolve with operational history, responses become nonstationary, and a static action–response mapping becomes inadequate for decision-making across shots. Shot-to-shot tuning of neutral beam injection (NBI) ion sources in magnetic-confinement fusion devices is representative of this class of problems: electrode-surface and vacuum conditions are difficult to observe directly, discharge outcomes vary between shots, and experiments on the physical system are costly and carry operational risks. We propose a physics-grounded multimodal agent organized into three independently auditable components. Deterministic algorithms extract symbolic physical quantities and visual evidence from multichannel waveforms; a dual-layer memory organizes within-task trajectories, cross-task experience, and procedural knowledge to support candidate-action generation by a multimodal large language model (MLLM); and an independent action feasibility check enforces action constraints before execution. The MLLM thus integrates evidence and proposes actions, while measurement, action authorization, and final protection remain with deterministic modules. In a strictly chronological replay of 455 shots from four EXL-50U platforms, physical symbols alone outperformed waveform images alone by 0.21–0.32 in quality-classification macro- F1F_{1} across all four evaluated models. Retrieved context increased the mean agreement with historical action directions by 22.4–42.7 percentage points, whereas the contribution of visual evidence was model-dependent. Under supervised operation on five ion sources, integrating parameter write-back, programmable logic controller (PLC) execution, and waveform read-back, the system achieved a beam-extraction rate of 86.80% across 409 executed shots. These results demonstrate the engineering feasibility of the framework for supervised sequential tuning on a physical scientific instrument and provide a basis for evaluating autonomous closed-loop operation and cross-device generalization.

Keywords: neutral beam injection; ion-source tuning; multimodal agent; physical-quantity grounding; retrieval-augmented generation; fusion-device control

1 Introduction

Frontier scientific discovery increasingly relies on complex scientific instruments to create extreme experimental conditions and acquire high-quality, reproducible observations. As these instruments grow in scale and control dimensionality, bringing them efficiently into reliable operation and making effective use of limited experimental opportunities have become critical to converting major experimental infrastructure into scientific output. Autonomous experimentation offers a potential route by organizing measurement, decision-making, and execution into iterative closed loops [1, 2]. In physical experiments, however, aleatoric and epistemic uncertainties continue to limit the reproducibility and robust operation of closed-loop systems [3]. Reliable decisions across successive operations become particularly difficult when the instrument response depends on operational history, important operating conditions are not directly observable, and no high-fidelity simulator is available for repeatable interaction.

Nuclear fusion is regarded as an important pathway toward meeting long-term demand for clean and safe energy [4]. As magnetic-confinement fusion devices progress toward high-performance, long-pulse operation, stable auxiliary heating and current drive are essential for plasma heating, confinement, and scenario sustainment [5, 6, 7, 8, 9]. Neutral beam injection (NBI) can deliver megawatt-level heating power, while its beam energy and injection direction can be used to regulate energy deposition and momentum input. It is therefore one of the principal auxiliary-heating techniques for tokamaks and other magnetic-confinement fusion devices [10, 8, 11]. Before operation, an NBI ion source and its high-voltage acceleration system generally require repeated tuning: an experimental operator sets the discharge and extraction parameters, triggers a discharge, inspects the resulting multichannel waveforms, and then adjusts the parameters for the next shot. Tuning a large NBI ion source may take weeks to months and involve hundreds to thousands of high-voltage or beam pulses [12, 13, 14]. This experience-dependent, shot-to-shot tuning process directly affects NBI operational efficiency and is representative of the sequential decision-making problem encountered in scientific instruments.

Ion-source tuning is not a routine parameter-optimization problem defined by a fixed mapping from parameters to performance. Important operating conditions, including electrode-surface state, vacuum cleanliness, and coating condition, are difficult to measure directly and cannot be reset in a controlled manner between shots. Consequently, measured outcomes may vary from shot to shot under identical control settings, as shown in Fig. 1. Moreover, no high-fidelity simulator currently provides a reliable account of shot-to-shot response changes, while exploration on the physical system is costly and risky. The task is therefore more appropriately formulated as a constrained sequential decision-making problem with history-dependent response variation and incomplete observations.

(a) Shot 22541

Same control settings

Recorded IACC=41.54I_{ACC}=41.54 A

(b) Shot 22542

Same control settings

Recorded IACC=0.00I_{ACC}=0.00 A

(c) Shot 22543

Same control settings

Recorded IACC=33.65I_{ACC}=33.65 A

Figure

same a, different y because z drifts

Figure 1 Measured multichannel waveforms from three consecutive shots (shots 22541–22543) under identical control settings. Although all five control variables were held fixed, the recorded acceleration currents were 41.54 A, 0.00 A, and 33.65 A, respectively. The lower states z1−z3z_{1}-z_{3} schematically represent unobserved operating conditions and denote history-dependent factors, beyond the current control variables, that may affect the response; the bottom annotation summarizes that the same action a yields different responses y as the latent state z drifts.

Machine learning has been applied in fusion devices to tasks including plasma-configuration control, confinement-regime identification, and disruption prediction [15, 16, 17]. Within NBI research, neural networks have been used to accelerate NUBEAM and related NBI-effect and transport simulations [18, 19]; surrogate models and evolutionary algorithms, such as genetic algorithms (GA) and particle swarm optimization (PSO), have been used to learn relationships between ion-source parameters and performance [20, 21, 22, 23, 24, 25]; and neural networks have also been investigated for predicting ion-source breakdown [26]. These studies indicate the potential of simulation-driven control and historical-data modeling for fusion devices and ion-source optimization.

For the ion-source tuning task considered here, these approaches face distinct challenges under the presently available data and device conditions. Reinforcement learning (RL) generally requires either a high-fidelity simulator or extensive interaction with the physical system. Existing models do not yet reproduce shot-to-shot response changes with sufficient accuracy, whereas trial-and-error operation on the physical system is costly and risky. Standard Bayesian optimization is suitable for parameter optimization with expensive observations, and safe variants can provide conditional safety guarantees; however, when the unobserved device state changes across shots, standard or safe Bayesian optimization alone is still insufficient to address latent-state drift directly [27, 28]. Static supervised models that predict outcomes from only the current parameters are poorly suited to exploiting complete tuning trajectories, waveform morphology, and unstructured operating procedures. These limitations point to the same set of missing capabilities: a representation of state across shots, conditioning on operational history, and explicit action constraints.

before execution.

When neither a suitable simulator nor direct estimation of the latent state is available, a practical alternative is to avoid explicitly reconstructing that state. Instead, the current decision can be conditioned on the recent trajectory of actions and outcomes, retaining traceable cross-shot context without relying on a difficult-to-validate state estimate. Large language model agents have begun to be applied to robotic decision-making [29,30][29, 30] and can organize iterative scientific experimental workflows through knowledge retrieval and tool use [31,32][31, 32] . Retrieval-augmented generation (RAG) and episodic-memory methods provide traceable interfaces for integrating evolving procedures and long-horizon experience [33,34,35,36][33, 34, 35, 36] . However, observations from scientific instruments include high-frequency time series, waveform images, and equipment states, and time-series data commonly require joint representation with other modalities [37][37] . This work therefore separates deterministic measurement from multimodal reasoning, rather than relying on a general-purpose model to replace quantitative readout. Likewise, semantic guardrails or external validators [38][38] and model-based shielding [39][39] can constrain agent behavior, but they are not equivalent to a deterministic action-membership check against device-permitted bounds.

We propose a physics-grounded multimodal agent for NBI ion-source tuning. The system first uses deterministic algorithms to extract verifiable physical quantities from raw waveforms and anchors waveform images with those quantities. It then generates a candidate action for the next shot by jointly using the recent trajectory of the current task, historical experience, and operating procedures. Finally, before parameters are written, an independent action feasibility check evaluates parameter bounds, per-shot rates of change, and documented exclusion regions. Evidence integration and action proposal are thus assigned to the MLLM, and parameter execution and equipment protection remain with the PLC and hardware interlocks.

Table 1 compares representative technical paradigms in terms of the capabilities required by the problem studied here. “Handling latent-state drift” specifically refers to whether a method uses cross-shot history or current context at decision time to adapt to unobserved changes in the device. “Local–global feature integration” indicates whether a method can jointly use precisely quantified local features and macroscopic information reflecting the overall state, task objective, or system-wide relationships, and can relate the two during decision-making. “Action-constraint mechanism” indicates whether encoded conditions can be checked independently before a candidate action is issued. These dimensions characterize the cited representative studies of each paradigm under the deployment conditions of this study.

Table 1 Qualitative comparison of the task conditions in this study with representative automated decision-making paradigms

MethodHandles latent-state driftRequires a high-fidelity simulatorUses unstructured knowledgeLocal–global feature integrationAction-constraint mechanismPhysical-system closed loop
Ion-source/NBI static surrogate models and GA/PSO [20, 22, 23, 24, 25]Usually noNoNoScalar features; no explicit integrationStatic bounds and constraints can be encodedNo reported NBI tuning closed loop
Simulator-driven plasma RL [17]Indirectly, through state observationsYesNoLocal magnetic measurements and global shape objectivesAction bounds and device interlocksYes (plasma control)
Standard/safe Bayesian optimization [27, 28]Not addressed for latent-state driftNoNoPoint observations and a global surrogateConditional guarantees in safe variantsApplicable to online experiments
LLM agents for scientific experiments [31, 32]Through context or memoryNoYesTask-relevant inputs; no explicit integrationCan use semantic guardrails or external validators [38]Yes (chemical experiments)
This workHistory-conditioned dual-layer memoryNoYesQuantitative details and overall waveform morphologyDeterministic action feasibility checkSupervised shot-to-shot execution

The main contributions of this work are as follows:

  1. Problem formulation and layered decision architecture. We formulate NBI ion-source tuning as a constrained sequential decision-making problem with no available high-fidelity simulator and a partially observed latent device state (Section 2.2). On this basis, we delineate the responsibilities of deterministic measurement, evidence retrieval, strategy proposal, and the action feasibility check, such that quantitative readout and execution constraints are handled by deterministic modules and the MLLM concentrates on evidence integration and strategy proposal (Sections 3 and 3.5).

  2. Physics-grounded integration of multimodal evidence and temporal context. Physical quantities extracted by deterministic algorithms are used to anchor waveform images, which the MLLM interprets jointly with the current control parameters. A dual-layer memory comprising recent within-task trajectories, cross-task historical cases, and procedures then provides traceable temporal context for shot-to-shot decisions under latent-state drift (Sections 3.2, 3.3, and 3.4.1).

  3. Cross-model evaluation and execution on physical systems. We establish a strictly chronological replay protocol covering 455 shots from four EXL-50U [40, 41, 42] ion-source platforms. Four foundation models and five evidence configurations are compared to assess the respective contributions of physical symbols, visual evidence, retrieved context, and human feedback. In parallel, parameter write-back, PLC execution, waveform read-back, and next-shot decision-making are integrated on five ion sources, and supervised shot-to-shot execution is used to verify the system's device-integration capability (Sections 5.2 and 5.3).

References (50)