Articulating assumptions in AI-generated scientific analyses through task decomposition
Scientific results produced by LLM-generated analysis code must be understandable and reproducible. However, uncertainty can arise at different stages of the process, both in the original natural language specification and in the generated implementation. As a result, even executable code may not provide a clear understanding of which quantities are being computed or which assumptions determine the final results. To address this challenge, we introduce quantity-grounded semantic differencing, a multi-agent framework for analyzing and comparing scientific programs generated by LLMs. The framework assigns code generation, execution, tracing, and validation to separate agents, allowing it to reconstruct how key output quantities are produced and to identify differences between the intended analysis and the implemented code. We also introduce a module that inspects ambiguities in the initial user instruction and suggests alternative rewrites before code generation. Its modular design is intended to facilitate application to different scientific domains by replacing domain-specific resources while preserving the same workflow. We validate the framework on representative collider physics analyses. In the studies HEP cases, the modular task decomposition provides explicit intermediate artifacts for inspection and the complete workflow was operated with substantially smaller models than in the previous implementation.
Authors
- Ahmed Hammad (ORCID: https://orcid.org/0000-0002-7525-4617)
- Mihoko Nojiri
Institutions
- Korea Institute for Advanced Study (KR)
- High Energy Accelerator Research Organization (JP)
Publication Details
- Journal
- Machine Learning Science and Technology
- Published
- 2026-11-23
- DOI
- https://doi.org/10.1088/2632-2153/aec5b9
- Citations
- 4
- Primary Topic
- Scientific Computing and Data Management
- Type
- article
- Field-Weighted Citation Impact
- 6.86
Funders
- Science and Technology Development Fund