MOSAIC: Multi-agent Orchestration for Task-Intelligent Scientific Coding
On the map: LLM agents and tool use → Web, search, and research agents
Abstract (arXiv)
We present MOSAIC, a multi-agent Large Language Model (LLM) framework for solving challenging scientific coding tasks. Unlike general-purpose coding, scientific workflows require algorithms that are rigorous, interconnected with deep domain knowledge, and incorporate domain-specific reasoning, as well as algorithm iteration without requiring I/O test cases. Many scientific problems also require a sequence of subproblems to be solved, leading to the final desired result. MOSAIC is designed as a training-free framework with specially designed agents to self-reflect, create the rationale, code, and debug within a student-teacher paradigm to address the challenges of scientific code generation. This design facilitates stepwise problem decomposition, targeted error correction, and, when combined with our Consolidated Context Window (CCW), mitigates LLM hallucinations when solving complex scientific tasks involving chained subproblems. We evaluate MOSAIC on scientific coding benchmarks and demonstrate that our specialized agentic framework outperforms existing approaches in terms of accuracy, robustness, and interpretability.
Key facts. Cited by 2 papers in the map (data through 7 Oct 2026). Placed in Web, search, and research agents, one of 16 directions in LLM agents and tool use. Builds on 38 of its 48 references that are in the map. First posted on arXiv 9 Oct 2025.
Builds on
38 of 48 references.
References · 38
- 2022Chain-of-Thought Prompting Elicits Reasoning in Large Language Modelscited by 12,302
- 2015Distilling the Knowledge in a Neural Networkcited by 10,076
- 2021Evaluating Large Language Models Trained on Codecited by 8,053
- 2022Self-Consistency Improves Chain of Thought Reasoning in Language Modelscited by 5,601
- 2023Toolformer: Language Models Can Teach Themselves to Use Toolscited by 4,072
- 2023Reflexion: Language Agents with Verbal Reinforcement Learningcited by 4,064
- 2021Program Synthesis with Large Language Modelscited by 3,509
- 2023Self-Refine: Iterative Refinement with Self-Feedbackcited by 3,317
- 2023SWE-bench: Can Language Models Resolve Real-World GitHub Issues?cited by 3,193
- 2023Tree of Thoughts: Deliberate Problem Solving with Large Language Modelscited by 3,155
- 2023Mistral 7Bcited by 3,065
- 2023AutoGen: Enabling Next-Gen LLM Applications via Multi-Agent Conversationcited by 1,906
26 more
- 2025Gemma 3 Technical Reportcited by 1,686
- 2024SWE-agent: Agent-Computer Interfaces Enable Automated Software Engineeringcited by 1,628
- 2020What Disease does this Patient Have? A Large-scale Open Domain Question Answering Dataset from Medical Examscited by 1,324
- 2019PubMedQA: A Dataset for Biomedical Research Question Answeringcited by 1,271
- 2021Measuring Coding Challenge Competence With APPScited by 879
- 2022CodeGen: An Open Large Language Model for Code with Multi-Turn Program Synthesiscited by 876
- 2023Graph of Thoughts: Solving Elaborate Problems with Large Language Modelscited by 873
- 2023StarCoder: may the source be with you!cited by 790
- 2022Galactica: A Large Language Model for Sciencecited by 736
- 2022Automatic Chain of Thought Prompting in Large Language Modelscited by 684
- 2023Language Agent Tree Search Unifies Reasoning Acting and Planning in Language Modelscited by 551
- 2022BioGPT: Generative Pre-trained Transformer for Biomedical Text Generation and Miningcited by 531
- 2022CodeT: Code Generation with Generated Testscited by 369
- 2024MapCoder: Multi-Agent Code Generation for Competitive Problem Solvingcited by 177
- 2024SciCode: A Research Coding Benchmark Curated by Scientistscited by 172
- 2023SantaCoder: don't reach for the stars!cited by 169
- 2021Retrieval Augmented Code Generation and Summarizationcited by 148
- 2023Automatic Prompt Augmentation and Selection with Chain-of-Thought from Labeled Datacited by 119
- 2023The Impact of Large Language Models on Scientific Discovery: a Preliminary Study using GPT-4cited by 112
- 2023Large Language Models as Analogical Reasonerscited by 107
- 2024A Comprehensive Survey of Scientific Large Language Models and Their Applications in Scientific Discoverycited by 96
- 2024LLM Hallucinations in Practical Code Generation: Phenomena, Mechanism, and Mitigationcited by 92
- 2023LLMs and the Abstraction and Reasoning Corpus: Successes, Failures, and the Importance of Object-based Representationscited by 81
- 2024LLMs Will Always Hallucinate, and We Need to Live With Thiscited by 77
- 2023MathChat: Converse to Tackle Challenging Math Problems with LLM Agentscited by 67
- 2024ChatVis: Automating Scientific Visualization with a Large Language Modelcited by 11
Built on by
Citing papers per year: 2026: 2.
2 papers.
Similar, not cited
Close in wording, no citation either way
- 2026SciNav: A General Agent Framework for Scientific Coding Tasks
- 2026No Test Cases, No Problem: Distillation-Driven Code Generation for Scientific Workflows
- 2025MapCoder-Lite: Distilling Multi-Agent Coding into a Single Small LLM
- 2025Chain of Unit-Physics: A Primitive-Centric Approach to Scientific Code Synthesis
- 2026When Parallelism Pays Off: Cohesion-Aware Task Partitioning for Multi-Agent Coding
- 2025DeepCode: Open Agentic Coding
- 2025TALM: Dynamic Tree-Structured Multi-Agent Framework with Long-Term Memory for Scalable Code Generation
- 2025AInsteinBench: Benchmarking Coding Agents on Scientific Repositories