Multi-Agent Systems Powered by Large Language Models: Applications in Swarm Intelligence

📅 2025-03-05
📈 Citations: 0
✨ Influential: 0
📄 PDF
🤖 AI Summary
This study investigates whether large language models (LLMs) can replace hand-coded logic to model adaptive behavior and self-organized emergence in multi-agent systems. We propose LLM-NetLogo, a synergistic framework integrating structured prompting with knowledge-driven dual-mode prompting to enable real-time perception–decision–response capabilities for agents in dynamic environments. Implemented via GPT-4o and the NetLogo Python extension, the framework achieves high-fidelity replication and behavioral extension of two canonical collective phenomena: ant foraging and bird flocking. Experiments demonstrate that LLMs effectively generate emergent collective behaviors beyond predefined rule constraints. To foster reproducibility and extensibility, we open-source all code, prompt templates, and simulation datasets. This work establishes the first empirically grounded, reproducible, and scalable paradigm for leveraging LLMs in complex systems modeling.

Technology Category

Multiagent Systems: Agent-Based Simulation and Emergent BehaviorMachine Learning: Large Multimodal Models (LMMs)Cognitive Modeling & Cognitive Systems: Agent Architectures

Application Category

Semantics and Knowledge: Data modeling to support human-machine intelligence, including LLMs agents, intelligent system behavior, explanations, and user-friendly interactionsEconomics, Online Markets and Human Computation: Cost models of using LLMs in production systemsUser Modeling, Personalization and Recommendation: Large Language Models (LLM) for user modeling and recommendation
📝 Abstract
This work examines the integration of large language models (LLMs) into multi-agent simulations by replacing the hard-coded programs of agents with LLM-driven prompts. The proposed approach is showcased in the context of two examples of complex systems from the field of swarm intelligence: ant colony foraging and bird flocking. Central to this study is a toolchain that integrates LLMs with the NetLogo simulation platform, leveraging its Python extension to enable communication with GPT-4o via the OpenAI API. This toolchain facilitates prompt-driven behavior generation, allowing agents to respond adaptively to environmental data. For both example applications mentioned above, we employ both structured, rule-based prompts and autonomous, knowledge-driven prompts. Our work demonstrates how this toolchain enables LLMs to study self-organizing processes and induce emergent behaviors within multi-agent environments, paving the way for new approaches to exploring intelligent systems and modeling swarm intelligence inspired by natural phenomena. We provide the code, including simulation files and data at https://github.com/crjimene/swarm_gpt.
Problem

Research questions and friction points this paper is trying to address.

Integrating LLMs into multi-agent simulations for adaptive behavior.
Studying self-organizing processes in swarm intelligence systems.
Developing a toolchain for LLM-driven prompt-based agent behavior.
Innovation

Methods, ideas, or system contributions that make the work stand out.

LLMs replace hard-coded agent programs
Toolchain integrates LLMs with NetLogo
Prompt-driven adaptive agent behavior
🔎 Similar Papers
2023-08-22Frontiers Comput. Sci.Citations: 866
C
Cristian Jimenez-Romero
ETIS-Lab Faculty of Computer Science, CY Cergy Paris University, Cergy, France
A
Alper Yegenoglu
C
Christian Blum
Artificial Intelligence Research Institute (IIIA-CSIC), Campus of the UAB, Bellaterra, Spain