arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2602.10140cs.SEcs.AIcs.MA
收藏

大型语言模型能否实现基于主体的模型?基于ODD的复制研究

Can Large Language Models Implement Agent-Based Models? An ODD-based Replication Study

Lusófona University(卢塞佛纳大学);INESC INOV-Lab(INESC INOV实验室)

Nuno Fachada, Daniel Fernandes, Carlos M. Fernandes, João P. Matos-Carvalho

AI总结:

本文评估17种LLM在ODD到代码转换任务中的表现,探讨LLM能否可靠实现基于主体的模型并支持复制、验证与验证。

摘要:

大型语言模型(LLMs)现在能够从文本描述中生成非平凡的可执行代码,引发一个重要问题:LLMs能否从标准化规范中可靠地实现基于主体的模型,以支持复制、验证和验证?我们通过在受控的ODD到代码转换任务中评估17种现代LLM,使用PPHPC捕食者-猎物模型作为完全规范的参考。生成的Python实现通过分阶段的可执行性检查、与已验证的NetLogo基线的模型无关的统计比较以及运行时效率和可维护性的定量措施进行评估。结果表明,行为忠实的实现是可能的但不保证,且仅可执行性不足以用于科学用途。GPT-4.1始终产生统计上有效且高效的实现,而Claude 3.7 Sonnet表现良好但不够可靠。总体而言,研究结果澄清了LLM作为模型工程工具的潜力和当前限制,对可重复的基于主体和生态建模有影响。

英文摘要:

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.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑