Physics Is All You Need? A Case Study in Physicist-Supervised AI Development of Scientific Software

πŸ“… 2026-05-28
πŸ“ˆ Citations: 0
✨ Influential: 0
πŸ“„ PDF

career value

183K/year
πŸ€– AI Summary
This study addresses the challenge that current AI coding agents in scientific software development often produce outputs that pass conventional tests yet violate physical principles, making it difficult to distinguish symptom mitigation from genuine root-cause resolution. Under the supervision of physicists, the authors leveraged Claude-series models and the JAX framework to develop CLAX-PTβ€”a differentiable first-order perturbation theory moduleβ€”within 12 days, documenting 15 critical human interventions. Through oracle testing, multi-parameter validation, shared logs, and physics-informed constraints, they observed that the AI repeatedly optimized flawed architectures across 33 sessions until explicit injection of physical concepts triggered effective refactoring. The findings underscore that thoughtfully designed supervision mechanisms are more critical than raw model capability and identify three actionable practices to bridge testing blind spots and ensure the reliability of scientific computation.
πŸ“ Abstract
Are AI agents tools, co-authors, or researchers? We present a quantified case study ($N=1$): a physicist supervising an AI coding agent (Claude Code, Sonnet and Opus models) over 12 work days and 57 sessions to build CLAX-PT, a differentiable one-loop perturbation theory module in JAX. We documented and classified 15 supervision events by intervention level. The agent resolved ten autonomously by iterating against oracle tests. Two more by the physicist's domain knowledge. The three it could not -- all evaded oracle detection -- share a common property: the agent treated symptom reduction as root-cause resolution. It spent 33 of the 57 sessions adjusting coefficients within a code architecture that could not represent the target physics, and could not re-evaluate its CLASS-PT branch choice even when prompted to reconsider; only an injected physics concept (anisotropic BAO damping) triggered the redesign. Separately, the agent committed a calibrated correction that passed all oracle tests but corresponded to no quantity in the theory, predicting wrong values at any other cosmology. The fudge factor was caught and replaced within the same session. Three supervision practices proved critical for catching what oracle tests missed: testing at diverse parameter points beyond the fiducial calibration; shared changelogs that surfaced stalled exploration across sessions; and an explicit rule against unphysical numerical patches. In this case, supervision design, not model capability, determined whether the agent's output was trustworthy. Closing the gap would require agents that propose architectural alternatives rather than optimize within a given structure, and distinguish predictive adequacy from explanatory correctness -- capabilities not exhibited here, not obviously addressed by scaling alone. [Abridged.]
Problem

Research questions and friction points this paper is trying to address.

AI supervision
scientific software development
physics modeling
oracle testing
architectural bias
Innovation

Methods, ideas, or system contributions that make the work stand out.

physicist-supervised AI
scientific software development
differentiable perturbation theory
oracle test limitations
architectural reasoning
πŸ”Ž Similar Papers
No similar papers found.
N
Nhat-Minh Nguyen
1 Kavli IPMU (WPI), UTIAS, The University of Tokyo, 5-1-5 Kashiwanoha, Kashiwa, Chiba 277-8583, Japan; 2 Center for Data-Driven Discovery, Kavli IPMU (WPI), UTIAS, The University of Tokyo, Kashiwa, Chiba 277-8583, Japan; 3 Institute For Interdisciplinary Research in Science and Education, ICISE, Quy Nhon, 55121, Vietnam