Simulation Streams: A Programming Paradigm for Controlling Large Language Models and Building Complex Systems with Generative AI
Peter Sunehag, Joel Z. Leibo

TL;DR
Simulation Streams is a new programming paradigm that enables efficient control of large language models for complex, dynamic simulations and multi-entity workflows, addressing their limitations in consistency and information management.
Contribution
It introduces a state-based, ECS architecture framework for controlling LLMs, enhancing modularity, reusability, and consistency in complex AI-driven simulations.
Findings
Successfully simulates market economies and social interactions
Maintains consistency over thousands of iterations
Facilitates comparison of different agent workflows
Abstract
We introduce Simulation Streams, a programming paradigm designed to efficiently control and leverage Large Language Models (LLMs) for complex, dynamic simulations and agentic workflows. Our primary goal is to create a minimally interfering framework that harnesses the agentic abilities of LLMs while addressing their limitations in maintaining consistency, selectively ignoring/including information, and enforcing strict world rules. Simulation Streams achieves this through a state-based approach where variables are modified in sequential steps by "operators," producing output on a recurring format and adhering to consistent rules for state variables. This approach focus the LLMs on defined tasks, while aiming to have the context stream remain "in-distribution". The approach incorporates an Entity-Component-System (ECS) architecture to write programs in a more intuitive manner,…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Code & Models
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Taxonomy
TopicsBIM and Construction Integration
MethodsFocus
