Introduction
Current Large Language Model (LLM) research often relies on two restrictive paradigms: binary interactions (one human, one AI) and synchronous turn-taking (immediate response to a prompt). However, real-world social dynamics—such as boardroom meetings or group debates—are multi-party and asynchronous. In these settings, silence can be as strategic as speech, and participants must decide not only what to say but when to speak.
To address these limitations, we present SAUCE (Synchronous and Asynchronous User-Customizable Environment), a modular Python framework designed to simulate complex social interactions. SAUCE provides a low-code platform for researchers to study LLM behavior in "crowded" environments where agents manage their own participation timing.
Framework Architecture
SAUCE is built on a modular architecture that allows for highly customizable experiments via JSON configuration files. The system is organized into four primary components:
- Experiment & SessionRoom: The top-level containers managing the environment and interaction lifecycle.
- The Host: A moderator component that implements turn-taking logic, such as Round Robin or Random sampling.
- The Person: An abstract class representing a participant, which can be instantiated as an API-based model (e.g., OpenAI), a local model (HuggingFace), or a human-in-the-loop.
- Asynchronous Logic: The core innovation of SAUCE.
AsynchronousPersonagents utilize a dual-part internal logic consisting of a Scheduler (deciding if it is appropriate to speak based on history and a simulated clock) and a Generator (crafting the actual message).
Modeling Asynchronous Social Dynamics
The "secret sauce" of the platform is its ability to model "message sampling." Instead of being forced to respond, agents can choose to "pass" their turn, effectively listening to the conversation. This decoupling allows for the observation of "reserved" versus "opinionated" behaviors.
A key finding during validation was the impact of temporal constraints. When agents were provided with the "remaining time" in a debate, their behavior shifted. As deadlines approached, more active agents began prompting quieter participants to contribute, mimicking human social pressure under time constraints.
Case Study: The Asynchronous Trolley Problem
To demonstrate the framework's capabilities, we conducted an asynchronous philosophical debate on the "Trolley Problem" involving four agents with distinct personas: Amanda (an outgoing activist), Robert (an experienced pediatrician), and two quieter agents, Joseph and Jennifer.
As shown in the interaction above, SAUCE enables emergent social behaviors. Amanda, recognizing the need for a unanimous decision before the 10-minute limit, explicitly addressed the silent participants: "Joseph and Jennifer, I know you've been quiet so far, but I'd love to hear your thoughts..." This demonstrates that LLMs can respond to both social and temporal contexts when the environment supports asynchronous participation.
Conclusion and Future Directions
SAUCE lowers the barrier for social science research using LLMs, allowing for complex simulations with minimal coding. While the platform currently supports various models (including Llama-3, Claude-3, and Vicuna), future work will focus on more sophisticated social scheduling, such as modeling interruptions or hand-raising. Additionally, we are extending the framework to support high-stakes asynchronous games like Mafia, which require modeling deception and collaborative voting.
Summary updated