OpenAI Codex and Claude Co-Author a Real Particle Physics Paper
Two AI coding agents performed a full particle physics measurement on archived ALEPH data, from event selection to unfolding to writing the paper.
Takeaways
- AI agents Codex and Claude performed a full ALEPH thrust measurement under physicist direction, from raw data to published paper.
- Analysis used Iterative Bayesian Unfolding with a Monte Carlo response matrix built by the agents from scratch.
- Corrected thrust spectrum at 91.2 GeV agrees with historical ALEPH results within uncertainties.
- Seven experimental systematic variations covering tracking cuts and neutral energy scale were handled by the agents.
- Agents also drafted the LaTeX note, generated figures, and iterated on referee feedback.
- Full pipeline open-sourced at GitHub repo; published in HiHEP 2 (2026) 3, 10.
Physicists gave OpenAI Codex and Anthropic Claude responsibility for much of an experimental particle-physics analysis, from processing archived detector data to generating figures and drafting the manuscript. The humans defined the measurement, approved methods, and reviewed the output. The resulting arXiv paper, Agentic AI - Physicist Collaboration in Experimental Particle Physics, reports the thrust distribution in electron-positron collisions at a center-of-mass energy of 91.2 GeV using data from CERN’s ALEPH experiment.
A benchmark with an answer key
Thrust compresses the shape of a collision event into a number between 0.5 and 1. For each event, the calculation finds the axis that maximizes the summed particle momenta projected along it. A value near 1 describes two narrow, back-to-back jets; a value near 0.5 describes a more spherical spray of particles. Physicists use thrust to study quantum chromodynamics, including gluon radiation and the strong coupling constant.
ALEPH recorded millions of Z-boson decays at CERN’s Large Electron-Positron Collider during the 1990s. At 91.2 GeV, the collider operated near the Z-boson resonance, where hadronic decays provided a large, well-studied event sample. Archived ALEPH data suit an agentic workflow test because historical measurements provide a reference against which researchers can detect biased selections, incorrect corrections, or faulty uncertainty estimates.
From event records to a corrected spectrum
The agents executed the main stages of a collider analysis while physicists reviewed intermediate results and methodological choices:
- Read ALEPH event records and classify reconstructed objects as charged particles, neutral hadrons, photons, electrons, or muons.
- Select hadronic Z-boson decays using requirements on track multiplicity, polar-angle acceptance, and missing energy.
- Process Monte Carlo samples with the same selection used for collision data.
- Build a response matrix that records how detector reconstruction moves events between generator-level and reconstructed thrust bins.
- Apply Iterative Bayesian Unfolding to estimate the particle-level distribution from the detector-level measurement.
- Propagate statistical uncertainties and systematic effects from seven experimental variation branches, including tracking requirements, neutral-energy scale, and neutral-energy resolution.
- Generate plots, write the LaTeX manuscript, and revise the analysis in response to referee comments.
Iterative Bayesian Unfolding corrects for finite detector resolution and inefficiency. It repeatedly combines the measured distribution, a simulated detector response, and an updated estimate of the particle-level spectrum. This avoids the numerical instability that can arise when directly inverting a response matrix, although the result still depends on binning, simulation quality, and the number of iterations.
After unfolding, the corrected thrust spectrum agrees with ALEPH’s historical measurement within the reported uncertainties. That agreement checks the combined effect of event selection, simulation, binning, detector correction, and uncertainty propagation across the pipeline.
What the result establishes
Collider analyses can produce plausible plots even when an early methodological choice introduces bias. Fiducial cuts must match the intended measurement, data and simulation must receive consistent selections, reconstructed and generator-level events must be associated correctly, and bin widths must reflect detector resolution. Systematic variations also need careful bookkeeping to prevent omissions or double counting.
The reported agreement shows that coding agents can carry a bounded, mature analysis through many interdependent stages under expert supervision. The scope remains specific: physicists chose the observable, set the analysis direction, approved methodological decisions, and corrected conceptual errors. The study therefore evaluates supervised execution and collaboration rather than independent scientific judgment.
Human review stayed in the loop
The project divided responsibilities among two coding agents and the physicists overseeing the measurement:
| Participant | Primary responsibilities |
|---|---|
| OpenAI Codex | Code generation, ROOT-based data processing, and pipeline implementation |
| Anthropic Claude | Longer-horizon reasoning, cross-checks, and manuscript drafting |
| Physicists | Measurement design, methodological approval, output review, and correction of conceptual errors |
The authors also describe a possible closed workflow in which experimental agents produce measurements, theory agents calculate predictions, and automated systems compare the two. Such a system would still require traceable inputs, explicit approval points, reproducible environments, and expert review of statistical and physical assumptions.
Good targets, known failure modes
Archived-data reanalyses, systematic-variation studies, and reproductions of published measurements provide strong targets for current agents because their outputs can be checked against established results. Novel searches impose a harder problem: researchers must decide which signatures deserve attention and determine whether an anomaly comes from new physics, detector behavior, simulation, or analysis code.
Current coding agents can generate incorrect code with confident explanations, apply unsuitable statistical methods, or smooth over inconsistencies that should stop an analysis. The paper reports that expert direction remained necessary and that some unsupervised choices would have failed scientific review.
A production workflow should preserve every configuration, cut definition, software version, prompt, generated artifact, and reviewer decision. Useful safeguards include data-versus-simulation comparisons, cut-flow checks, tests that unfolding recovers known simulated truth, independent review of response matrices, and automated reruns of every systematic variation.
Inspect the analysis
The project’s GitHub repository contains the analysis code, figure-generation tools, LaTeX sources, section drafts, and referee-response material. Its structure provides developers and researchers with an audit trail for examining how agent-generated code, scientific review, uncertainty studies, and publication artifacts fit into a reproducible analysis.