From Concepts to Model: Automating Feature Extraction of Agent-Based Models Using Large Language Models

Converting conceptual models into simulation models is a primary challenge in the Agent-based Modeling (ABM) development lifecycle, often acting as a bottleneck due to communication gaps among different stakeholders, particularly programmers and mathematicians.To address this issue, LargeLanguageModels (LLMs) and, more specifically, Question-answering (QA) models (also known as Conversational Artificial Intelligence (CAI)) can play a central role.However, using QA models and related Natural Language Processing (NLP) techniques for auto-generating simulation models in an integrated process is promising with respect to increasing efficiency, consistency and potentially quality of the extracted conceptual model.Drawing on contemporary QA models, our proposed approach involves the systematic extraction of model features from descriptions to generate a conceptual model that is the precursor for automating the generation of model implementations.A central contribution of this work is to establish a systematic method for this initial step, extracting simulationrelevant information from the conceptual model and presenting it in a generic machine-and human-readable format suitable for future applications facilitating automated code generation, taking into account the continuous technological progression in this area.To this end, this article introduces a baseline schema of information pertinent to developing basic conceptual ABMs and employs a testbed methodology to examine the performance of a wide range of contemporary LLMs like Llama 2 and 3 embedded in QA models, alongside available commercial QAs (like ChatGPT-3.5 and ChatGPT-4o).The evaluation relies on a combination of automated cosine similarity and manual similarity assessment to establish generic metrics to assess QA model performance.The results of contemporary models show the dominant performance of commercially available models (ChatGPT-4o), while highlighting the increasing potential for the use of open source LLMs (e.g., Llama 2 and 3) for the purpose of model feature extraction.We discuss the associated implications for automated code generation as well as future directions while also exploring the broader potential for the use of QA models to support other stages of the development cycle of ABMs.

Authors

Institutions

Publication Details

Journal
Journal of Artificial Societies and Social Simulation
Published
2025-01-01
DOI
https://doi.org/10.18564/jasss.5734
Primary Topic
Natural Language Processing Techniques
Type
article
Field-Weighted Citation Impact
0.00
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

From Concepts to Model: Automating Feature Extraction of Agent-Based Models Using Large Language Models

Siamak Khatami, Christopher Frantz
Journal of Artificial Societies and Social Simulation
Natural Language Processing Techniques
article

From Concepts to Model: Automating Feature Extraction of Agent-Based Models Using Large Language Models

Siamak Khatami, Christopher Frantz
article en

Abstract

Converting conceptual models into simulation models is a primary challenge in the Agent-based Modeling (ABM) development lifecycle, often acting as a bottleneck due to communication gaps among different stakeholders, particularly programmers and mathematicians.To address this issue, LargeLanguageModels (LLMs) and, more specifically, Question-answering (QA) models (also known as Conversational Artificial Intelligence (CAI)) can play a central role.However, using QA models and related Natural Language Processing (NLP) techniques for auto-generating simulation models in an integrated process is promising with respect to increasing efficiency, consistency and potentially quality of the extracted conceptual model.Drawing on contemporary QA models, our proposed approach involves the systematic extraction of model features from descriptions to generate a conceptual model that is the precursor for automating the generation of model implementations.A central contribution of this work is to establish a systematic method for this initial step, extracting simulationrelevant information from the conceptual model and presenting it in a generic machine-and human-readable format suitable for future applications facilitating automated code generation, taking into account the continuous technological progression in this area.To this end, this article introduces a baseline schema of information pertinent to developing basic conceptual ABMs and employs a testbed methodology to examine the performance of a wide range of contemporary LLMs like Llama 2 and 3 embedded in QA models, alongside available commercial QAs (like ChatGPT-3.5 and ChatGPT-4o).The evaluation relies on a combination of automated cosine similarity and manual similarity assessment to establish generic metrics to assess QA model performance.The results of contemporary models show the dominant performance of commercially available models (ChatGPT-4o), while highlighting the increasing potential for the use of open source LLMs (e.g., Llama 2 and 3) for the purpose of model feature extraction.We discuss the associated implications for automated code generation as well as future directions while also exploring the broader potential for the use of QA models to support other stages of the development cycle of ABMs.

Journal of Artificial Societies and Social SimulationVol. 28(3)
Norwegian University of Science and Technology (NO)
Openalex Percentile: Top 92%
Natural Language Processing Techniques
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.