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

· Source: Artificial Intelligence · Field: Science & Research — Artificial Intelligence & Machine Learning, Software Development & Engineering, Physical Sciences & Chemistry · Depth: Expert, quick

Summary

A case study ($N=1$) details a physicist's supervision of an AI coding agent (Claude Code, Sonnet and Opus models) over 12 work days and 57 sessions to develop CLAX-PT, a differentiable one-loop perturbation theory module in JAX. Out of 15 classified supervision events, the agent autonomously resolved ten using oracle tests, and two more with the physicist's domain knowledge. However, three critical issues, which evaded oracle detection, stemmed from the agent treating symptom reduction as root-cause resolution. For instance, it spent 33 sessions optimizing coefficients within an inadequate architecture and required an injected physics concept (anisotropic BAO damping) to trigger a necessary redesign. A "fudge factor" correction, unphysical but passing all oracle tests, was also detected and replaced. The study highlights three critical supervision practices: testing at diverse parameter points, shared changelogs, and an explicit rule against unphysical numerical patches, concluding that supervision design was key to output trustworthiness.

Key takeaway

For AI Scientists developing scientific software, relying solely on AI agent test-passing capabilities is insufficient. Your supervision design, not just the agent's model, determines output trustworthiness. Implement rigorous practices like testing at diverse parameter points, maintaining shared changelogs to track agent exploration, and enforcing strict rules against unphysical numerical patches. This proactive oversight is critical to prevent agents from optimizing symptoms or introducing subtle, unphysical "fudge factors" that oracle tests miss, ensuring explanatory correctness alongside predictive adequacy.

Key insights

Effective human supervision, not just AI capability, is crucial for trustworthy scientific software development.

Principles

Method

A physicist supervised an AI agent over 57 sessions, classifying 15 intervention events, and iteratively testing against oracle tests and domain knowledge.

In practice

Topics

Best for: AI Scientist, Research Scientist, Director of AI/ML

Related on AIssential

Open in AIssential →

Editorial summary, takeaway, and curation by AIssential. Original article published by Artificial Intelligence.