Large Language Models for Physics Instrument Design
Sara Zoccheddu, Shah Rukh Qasim, Patrick Owen, Nicola Serra
TL;DR
The paper assesses whether prompting-based large language models (LLMs) can contribute to physics instrument design by proposing detector layouts under fixed simulation models and comparing them to reinforcement learning (RL) baselines. Without task-specific training, LLMs generate valid, resource-aware configurations that leverage broad detector-design knowledge and particle–matter interactions, achieving substantial gains over baseline designs and recovering a large fraction of RL performance. A minimal hybrid variant—LLM proposals followed by a local trust-region (TR) refinement—further narrows the gap to RL, demonstrating the potential of LLMs as meta-planners that organize design studies and coordinate optimization workflows. The results motivate hybrid pipelines where LLMs structure design hypotheses and RL executes reward-driven optimization, enabling more automated, closed-loop instrument design for future experiments.
Abstract
We study the use of large language models (LLMs) for physics instrument design and compare their performance to reinforcement learning (RL). Using only prompting, LLMs are given task constraints and summaries of prior high-scoring designs and propose complete detector configurations, which we evaluate with the same simulators and reward functions used in RL-based optimization. Although RL yields stronger final designs, we find that modern LLMs consistently generate valid, resource-aware, and physically meaningful configurations that draw on broad pretrained knowledge of detector design principles and particle--matter interactions, despite having no task-specific training. Based on this result, as a first step toward hybrid design workflows, we explore pairing the LLMs with a dedicated trust region optimizer, serving as a precursor to future pipelines in which LLMs propose and structure design hypotheses while RL performs reward-driven optimization. Based on these experiments, we argue that LLMs are well suited as meta-planners: they can design and orchestrate RL-based optimization studies, define search strategies, and coordinate multiple interacting components within a unified workflow. In doing so, they point toward automated, closed-loop instrument design in which much of the human effort required to structure and supervise optimization can be reduced.
