Particle physics experiments produce various of complex data. Extracting reliable physics results from these data requires much more than simply running a program. Researchers must carry out a series of interconnected tasks, including data processing, event selection, signal extraction, statistical analysis and the time-consuming evaluation of systematic uncertainties. These procedures rely heavily on specialized knowledge, experimental software and research experience, and can take considerable time to complete. Artificial intelligence (AI) has the potential to go beyond data processing and code generation, enabling systems to understand research objectives, operate specialized tools, and take on tasks within real-world experimental workflows.
A research team from the Institute of High Energy Physics (IHEP, CAS), Jilin University, Lanzhou University and Shanghai Jiao Tong University has developed and tested DrSai, a multi-agent AI system designed for the BESIII experiment. BESIII is an international particle physics experiment operating at the Beijing Electron-Positron Collider (BEPCII). Its research program covers tau-charm physics, exotic hadron spectroscopy and related areas. Designed for this active experimental environment, DrSai aims to translate natural language instructions into executable physics analysis workflows. Using general-purpose Monte Carlo (MC) simulation samples from BESIII, the team used the system to remeasure branching fractions across 10 J/ψ decay channels, obtaining results in good agreement with the simulation input values.
The study, titled “DrSai: an agentic AI system toward autonomous physics analysis workflows at BESIII,” was published as a short communication in Science Bulletin. The paper is available at https://doi.org/10.1016/j.scib.2026.10.072 .
Why automate particle physics analysis?
BESIII is a large, general-purpose particle detector at BEPCII. As an international collaboration experiment currently in operation, it continues to collect large volumes of experimental data in multiple formats.
Obtaining reliable physics measurements from experimental data involves much more than simply running a program. Depending on the research objectives, physicists must carry out a series of interconnected tasks, including data preprocessing, signal simulation, particle reconstruction, event selection, signal extraction, statistical analysis, efficiency corrections, and systematic uncertainty evaluation. Each stage requires specialized knowledge of the experiment's software framework, data formats, and physics processes. As a result, a single analysis can take years of development, debugging, and cross-checking.
DrSai: from natural language instructions to executable workflows
DrSai is not simply a chatbot that generates text or code. It is a task-execution system built on a multi-agent architecture. Through a conversational web interface, researchers can describe their physics objectives in natural language. The Host agent interprets the request, breaks it down into subtasks and coordinates other expert agents. These agents work together on task planning, code generation, program testing and results reflection.
To adapt the system to the specialized BESIII computing environment, the research team integrated several domain-specific components. HepScript translates complex domain-specific analysis intentions into simple structured language and templates. A retrieval-augmented generation (RAG) knowledge base provides access to experiment-specific knowledge and templates. A particle-name variant database helps resolve inconsistencies in particle naming across different documents and programs. Remote code execution, task scheduling and monitoring modules enable DrSai to interact with specialized tools and manage long-running computational tasks.
Together, these components allow DrSai to translate researchers' natural language objectives into concrete steps, generate and execute analysis code, and interact with the BESIII software and computing environment. The central idea is to move AI beyond providing suggestions and enable it to carry out verifiable scientific tasks, while keeping researchers in control of key parameters and analysis strategies throughout the process.
Research approach and validation
The research team selected branching fraction measurements of J/ψ decays as the system's validation task. The J/ψ is a charmonium state composed of a charm quark and an anti-charm quark. It was independently discovered in 1974 by two research teams led by Nobel Prize-winning physicists Samuel Ting and Burton Richter. This discovery marked an important milestone in particle physics and established the J/ψ as an important subject for studying strong interactions and charmonium properties. Its diverse decay channels provide valuable information about strong interactions and charmonium decay mechanisms.
Another important member of the charmonium family, the ψ(2S), can decay through the strong interaction into a J/ψ and a pair of pion mesons. By exploiting this decay process, researchers can use a “tag-and-probe” method to measure the absolute branching fractions of different J/ψ decay channels while reducing the impact of QCD continuum backgrounds. BESIII has accumulated large samples of J/ψ and ψ(2S) events, which have supported a wide range of important physics results.
The validation was performed using a general-purpose BESIII MC simulation sample. The sample was processed using the same procedures and computing environment as those employed for real experimental data. Its statistical size corresponded to the BESIII ψ(2S) dataset collected in 2009, comprising more than 110 million resonantly produced ψ(2S) events. It also included a range of known physical processes involving ψ(2S), J/ψ, and related particles.
DrSai divided the branching fraction measurement workflow into up to twelve subtasks, including data preprocessing, event selection, signal extraction, and the calculation of physical observables. Following this workflow, the system completed branching fraction measurements across 10 J/ψ decay channels. The measured results showed good overall agreement with the input values predefined in the simulation, supporting the reliability of the system.
This test demonstrates that DrSai goes beyond code generation by executing and coordinating multiple interconnected analysis tasks within the specialized software and computing environment of BESIII. These results highlight the potential of multi-agent AI systems to support complex particle physics analyses. Furthermore, the application of DrSai to real physics analyses is ongoing, with further physics results expected in the near future.
Although large language models have shown promising capabilities in natural language understanding, reasoning, and code generation, general-purpose models do not inherently possess the experiment-specific software expertise and physics analysis knowledge required for specialized research tasks. Enabling AI systems to accurately understand research objectives and reliably execute complex tasks within experiment-specific software frameworks and computing environments remains a major challenge for AI applications in experimental physics.
Making AI a research partner, not a replacement for physicists
At BESIII and other large collider experiments, analyses across different collision energies and decay channels often involve numerous specialized yet repetitive procedures. Automating parts of these workflows could reduce the workload associated with software development, workflow management, and routine checks, allowing researchers to devote more time to addressing fundamental physics questions, interpreting results, and exploring new phenomena.
The DrSai project demonstrates a promising approach to integrating multi-agent AI systems into the workflows of a real-world, operational high-energy physics experiment. At the same time, it highlights the technical challenges that remain in moving beyond code generation toward the reliable execution of scientific tasks. The goal is not to replace physicists with AI, but to develop AI into a reliable research partner that can operate specialized tools, handle routine and procedural tasks, and complement researchers' expertise and scientific judgment, ultimately contributing to scientific discovery.
About the research team
The research was conducted by a collaborative team from the Institute of High Energy Physics (IHEP, CAS); Jilin University; Lanzhou University; and Shanghai Jiao Tong University. The co-first authors are Yipu Liao, a doctoral student at IHEP, and Bolun Zhang, a postdoctoral researcher at IHEP. The corresponding authors are Ke Li and Zhengde Zhang, researchers at IHEP.
Science Bulletin
Data/statistical analysis