TLDR: A new study demonstrates the effectiveness of AI agent teams, powered by advanced Large Language Models like GPT-5, in automating complex data analysis tasks in high-energy physics. Focusing on anomaly detection using the LHC Olympics dataset, the agents successfully developed and tested analysis methods, with GPT-5 achieving results comparable to human state-of-the-art. The research highlights the potential of these agentic frameworks to streamline scientific workflows, improve reproducibility, and accelerate discoveries in fields with massive datasets.
Modern particle physics experiments, like those at the Large Hadron Collider (LHC), generate immense and intricate datasets. Analyzing this data to uncover new physics requires sophisticated, multi-stage workflows and significant human effort. Current automation efforts often focus on individual tasks, leaving the coordination of entire analysis workflows to human researchers, which can be time-consuming and hinder reproducibility.
A New Approach: Agents of Discovery
A recent study explores a novel direction: leveraging advancements in large language models (LLMs) to create a team of AI agents that can collaboratively solve data analysis problems. These agents, essentially LLMs with specialized subtasks, mimic how human researchers approach complex problems by generating code, operating standard tools and libraries (including machine learning systems), and building upon previous results. The goal is to automate routine analysis components, thereby addressing the increasing complexity of modern scientific toolchains.
The research, detailed in the paper Agents of Discovery, investigates the capabilities of current-generation commercial LLMs from OpenAI, including GPT-4o, o4-mini, GPT-4.1, and GPT-5. The chosen task for evaluation was anomaly detection using the publicly available and extensively studied LHC Olympics dataset.
How the Agent System Works
The agentic framework consists of four main agents: a Researcher, a Coder, a Code Reviewer, and a Logic Reviewer. The Researcher acts as the main orchestrator, assigning tasks and managing the overall project. It can request code from the Coder, execute Python programs, and view generated files (images and text). The Coder writes Python code based on the Researcher’s requests, which is then linted and reviewed by the Code Reviewer. The Logic Reviewer provides critical feedback on the Researcher’s statements and interpretations of results. Information between agents is shared through tools and their outputs, ensuring a transparent and reproducible workflow.
Key Findings on LLM Performance
The study benchmarked the different OpenAI models on their ability to complete the anomaly detection task. GPT-5 emerged as the most capable model, successfully completing all runs and demonstrating superior coding quality and physics performance. It consistently employed advanced techniques like “bump hunts” (a standard particle physics method for finding localized signals) and Classification Without Labels (CWoLa), a well-known approach for weak supervision. Notably, GPT-5 was the only model that understood the importance of excluding the signal region variable from classifier training to avoid “sculpting” the background, a sophisticated detail in anomaly detection literature. While GPT-5 was the most expensive and took the longest to run due to its extensive output, its results closely mirrored human state-of-the-art performance.
GPT-4.1 and o4-mini showed similar performance, with o4-mini producing more output tokens, possibly due to its reasoning capabilities. GPT-4o, however, had the lowest success rate and highest number of execution errors, indicating it was less suitable for complex coding tasks in this setup.
Impact of Prompting Strategies and Feedback
The research also explored how different prompting strategies influenced agent performance. Providing a hint to use machine learning significantly improved physics performance. Interestingly, prompts that included storytelling or conveyed a sense of urgency (e.g., “best physics AI,” “survival of humanity”) led to better results than more concise prompts. This suggests that the phrasing of instructions can have a substantial impact on LLM behavior.
A crucial aspect investigated was the feedback loop, where agents received evaluations of their method’s performance (e.g., AUC, max SIC). This emulated a method development phase where a human researcher would refine their approach based on results. In one remarkable instance, an agent using GPT-4.1 with a feedback loop successfully discovered the hidden resonance, reporting values very close to the true mass and signal percentage. This highlights the potential of iterative refinement for accelerating discovery, even though direct access to truth labels isn’t available in real-world physics analyses.
Also Read:
- Unmasking ‘LLM Hacking’: The Hidden Threat to Scientific Conclusions from AI Annotations
- Advancing Autonomous AI Research Agents with Reinforcement Learning
Future Prospects for Agent-Based Discovery
The study concludes that agent-based systems hold significant promise for high-energy physics. The observed performance increase from GPT-4 series models to GPT-5 suggests that further advancements in LLMs will likely lead to even more sophisticated analysis capabilities. Even if these systems don’t always exceed human-level results on routine problems, their ability to automate repetitive tasks can free up human researchers for more complex and creative scientific endeavors, ultimately enhancing the efficiency and potential of current and future experiments.


