On the Limits of Agency in Agent-based Models

Ayush Chopra, Shashank Kumar, Nurullah Giray Kuru, Ramesh Raskar, Arnau Quera-Bofarull

TL;DR

This paper introduces "LLM Archetypes," a novel method to efficiently integrate Large Language Models (LLMs) into agent-based models (ABMs), enabling simulations of millions of adaptive agents. This approach bridges the gap between computationally expensive individual LLM agents and simplistic heuristic agents, allowing for more realistic and scalable modeling of complex societal phenomena.

What Problem Does This Paper Address?

Agent-based models (ABMs) are powerful tools for understanding complex systems by simulating individual agent interactions. However, their practical application has been limited by two major challenges: (1) the immense computational cost of simulating millions of agents, and (2) the lack of behavioral realism in traditional ABM agents, which often rely on simplistic, rule-based behaviors. While Large Language Models (LLMs) offer the potential for highly adaptive and nuanced agent behavior, directly querying an LLM for every agent at every simulation step quickly becomes computationally infeasible for large-scale simulations. This paper addresses the critical trade-off between individual agent expressiveness and computational feasibility in large-scale ABMs.

Methods

The core innovation is the concept of LLM Archetypes. Instead of querying an LLM for each individual agent, this method identifies representative "archetypes" of agents based on their characteristics. LLMs are then queried to define the behavior of these archetypes, and individual agents are assigned to an archetype. This significantly reduces the number of LLM queries required.

The process involves:

  1. Assigning individuals to archetypes: Agents are grouped based on shared attributes (e.g., demographics, location).
  2. Querying LLMs for archetype behaviors: LLMs are prompted with information relevant to the archetype to generate behavioral probabilities or decisions.
  3. Sampling individual agent decisions: Individual agents then sample their actions based on the behavior distribution of their assigned archetype.

This approach is implemented within the AgentTorch framework, which supports differentiable ABMs and large-scale simulations. The authors also explore the use of auto-regressive prompting, where LLM outputs at time t depend on simulated trajectory at t-1, allowing for online LLM sampling during simulation.

Datasets

The paper uses publicly available datasets for its case study:

  • 2022 American Community Survey (ACS): For demographic and household characteristics.
  • Bureau of Labor Statistics: For employment data.
  • Centers for Disease Control (CDC): For disease dynamics data.
  • Google Mobility Trends: To parameterize mobility networks.
  • US Bureau of Labor Statistics: For observed labor force participation rates.

The authors do not introduce new benchmarks but rather use real-world data to validate their LLM-archetype approach against established ABM methodologies.

Key Insights and Ideas

  • The power of abstraction: Representing groups of agents with archetypes, rather than simulating each individually with an LLM, is the key to scaling LLM-powered ABMs. This is a crucial insight for making LLMs practically useful in large-scale simulations.
  • Balancing act: LLM Archetypes successfully navigate the trade-off between individual agent expressiveness and computational feasibility, outperforming both simple heuristic agents (lacking adaptivity) and fully LLM-powered agents (limited by scale).
  • Capturing nuanced behavior: The approach demonstrates the ability to capture complex, adaptive behaviors like "pandemic fatigue" and the impact of external incentives (stimulus payments) on individual decisions.
  • Counterfactual analysis: The framework enables meaningful counterfactual simulations, allowing policymakers to explore "what-if" scenarios that are difficult to assess with historical data alone.

Key Results

  • Computational Efficiency: LLM Archetypes require significantly fewer LLM queries (e.g., 400 queries for 8.4 million agents) compared to individual LLM agents, making large-scale simulations feasible.
  • Performance: The archetype-based model achieved lower test errors in forecasting both infections and unemployment rates compared to heuristic agents and LLM-as-agent models (when scaled up).
  • Correlation with Real-World Data: The LLM archetype approach showed increasing correlation with census data as more contextual information was provided to the LLM prompts, demonstrating its ability to capture real-world behavioral trends.
  • Runtime: Archetype-based simulations introduced only a marginal increase in runtime compared to heuristic agents, while being orders of magnitude faster than individual LLM agents.

Limitations and Future Work

  • LLM Consistency and Fairness: LLMs can produce inconsistent or biased outputs, which can lead to unrealistic agent behaviors. Future work should focus on methods to detect and mitigate these biases.
  • Heterogeneity: While archetypes capture group behavior, they might not fully represent the desired heterogeneity of individual agents. More sophisticated archetype selection and interpolation methods are needed.
  • Action Space Complexity: The current implementation focuses on relatively simple agent actions. Extending the action space and implementing multi-scale archetypes could model more complex decision-making.
  • "Time-bounding" LLM Knowledge: The potential for data contamination in LLMs, where models might contain anachronistic information, requires techniques to ensure LLM knowledge is relevant to the simulation timeframe.
  • Verification: Verifying the accuracy of individual agent behaviors generated by LLMs is challenging. Formal verification methods and benchmarks are needed.

The authors suggest that their work represents a significant step forward in ABM, opening new avenues for understanding complex systems and informing policy. They also highlight the potential for LLM-as-agent to be viable for smaller populations with high-personalized interventions.

Summary updated

BibTeX
@inproceedings{chopra2024limits,
  author = {Ayush Chopra and Shashank Kumar and Nurullah Giray Kuru and Ramesh Raskar and Arnau Quera-Bofarull},
  title = {{On the Limits of Agency in Agent-based Models}},
  booktitle = {AAMAS},
  year = {2024},
  doi = {10.48550/arxiv.2409.10568},
}
Figure