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

Institutions

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

Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
NOV
article

Articulating assumptions in AI-generated scientific analyses through task decomposition

Ahmed Hammad, Mihoko Nojiri
4 citations
Machine Learning Science and Technology
Scientific Computing and Data Management
6.86
article

Articulating assumptions in AI-generated scientific analyses through task decomposition

Ahmed Hammad, Mihoko Nojiri
article en
4 citations

Abstract

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.

Machine Learning Science and Technology
Korea Institute for Advanced Study (KR), High Energy Accelerator Research Organization (JP)
Science and Technology Development Fund
Openalex Percentile: Top 4%
Scientific Computing and Data Management
6.86
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.

Laika access coming soon