Can Large Language Models Implement Agent-Based Models? An ODD-based Replication Study
On the map: LLM agents and tool use → General LLM agent frameworks and benchmarks
Abstract (arXiv)
Large language models (LLMs) can now synthesize non-trivial executable code from textual descriptions, raising an important question: can LLMs reliably implement agent-based models from standardized specifications in a way that supports replication, verification, and validation? We address this question by evaluating 17 contemporary LLMs on a controlled ODD-to-code translation task, using the PPHPC predator-prey model as a fully specified reference. Generated Python implementations are assessed through staged executability checks, model-independent statistical comparison against a validated NetLogo baseline, and quantitative measures of runtime efficiency and maintainability. Results show that behaviorally faithful implementations are achievable but not guaranteed, and that executability alone is insufficient for scientific use. GPT-4.1 consistently produces statistically valid and efficient implementations, with Claude 3.7 Sonnet performing well but less reliably. Overall, the findings clarify both the promise and current limitations of LLMs as model engineering tools, with implications for reproducible agent-based and ecological modeling.
Key facts. Cited by 1 paper in the map (data through 7 Oct 2026). Placed in General LLM agent frameworks and benchmarks, one of 16 directions in LLM agents and tool use. Builds on 18 of its 65 references that are in the map. First posted on arXiv 8 Feb 2026.
Builds on
18 of 65 references.
Closest ancestors · 1
Same direction, newest first
- 2023Large Language Models Empowered Agent-based Modeling and Simulation: A Survey and Perspectives19 Dec
Other references · 17
- 2024The Llama 3 Herd of Modelscited by 14,192
- 2021Evaluating Large Language Models Trained on Codecited by 8,053
- 2023Code Llama: Open Foundation Models for Codecited by 2,105
- 2025Gemma 3 Technical Reportcited by 1,686
- 2021Asleep at the Keyboard? Assessing the Security of GitHub Copilot's Code Contributionscited by 417
- 2024DeepSeek-Coder-V2: Breaking the Barrier of Closed-Source Models in Code Intelligencecited by 325
- 2024CodeGemma: Open Code Models Based on Gemmacited by 145
- 2025LLM4SR: A Survey on Large Language Models for Scientific Researchcited by 81
- 2025MaintainCoder: Maintainable Code Generation Under Dynamic Requirementscited by 13
- 2024Leveraging Large Language Models for Code Translation and Software Development in Scientific Computingcited by 9
- 2019hyppo: A Multivariate Hypothesis Testing Python Packagecited by 8
- 2025GPT-4.1 Sets the Standard in Automated Experiment Design Using Novel Python Librariescited by 8
5 more
- 2024Do Large Language Models Speak Scientific Workflows?cited by 6
- 2025Assessing the Quality and Security of AI-Generated Code: A Quantitative Analysiscited by 5
- 2025Dynamic Stability of LLM-Generated Codecited by 4
- 2025SIMCODE: A Benchmark for Natural Language to ns-3 Network Simulation Code Generationcited by 2
- 2015Parallelization Strategies for Spatial Agent-Based Modelscited by 1
Built on by
Citing papers per year: 2026: 1.
1 paper.
Similar, not cited
Close in wording, no citation either way
- 2025LMR-BENCH: Evaluating LLM Agent's Ability on Reproducing Language Modeling Research
- 2025Large Language Model Agent: A Survey on Methodology, Applications and Challenges
- 2024If LLM Is the Wizard, Then Code Is the Wand: A Survey on How Code Empowers Large Language Models to Serve as Intelligent Agents
- 2026BabelArena: A Large-Scale Multilingual Benchmark for LLM Agents
- 2025From Code Foundation Models to Agents and Applications: A Comprehensive Survey and Practical Guide to Code Intelligence
- 2026Toward Formalizing LLM-Based Agent Designs through Structural Context Modeling and Semantic Dynamics Analysis
- 2024Large Language Model-Based Agents for Software Engineering: A Survey
- 2026UniACE: A Unified Framework for Evaluating LLM Agentic Capabilities