Table of Contents
Fetching ...

Sense and Sensitivity: Evaluating the simulation of social dynamics via Large Language Models

Da Ju, Adina Williams, Brian Karrer, Maximilian Nickel

TL;DR

This paper challenges the viability of using large language models as stand-ins for agent-based models by introducing a validation framework that grounds LLM-driven simulations in established reference dynamics. By treating the LLM as a black-box mapping and comparing its input-output behavior to a DeGroot/HK-based reference, the authors quantify consistency via a system-identification-like loss and probe robustness to prompt variations through structured experiments. They show that while LLM-ABMs can reproduce target dynamics with carefully engineered prompts, their reliability is highly sensitive to prompt wording and formatting, casting doubt on their usefulness for theory-building without a reference model. The work highlights practical limitations related to scalability and prompt sensitivity, and suggests directions for automated prompt optimization and larger-context modeling to enhance robustness.

Abstract

Large language models have increasingly been proposed as a powerful replacement for classical agent-based models (ABMs) to simulate social dynamics. By using LLMs as a proxy for human behavior, the hope of this new approach is to be able to simulate significantly more complex dynamics than with classical ABMs and gain new insights in fields such as social science, political science, and economics. However, due to the black box nature of LLMs, it is unclear whether LLM agents actually execute the intended semantics that are encoded in their natural language instructions and, if the resulting dynamics of interactions are meaningful. To study this question, we propose a new evaluation framework that grounds LLM simulations within the dynamics of established reference models of social science. By treating LLMs as a black-box function, we evaluate their input-output behavior relative to this reference model, which allows us to evaluate detailed aspects of their behavior. Our results show that, while it is possible to engineer prompts that approximate the intended dynamics, the quality of these simulations is highly sensitive to the particular choice of prompts. Importantly, simulations are even sensitive to arbitrary variations such as minor wording changes and whitespace. This puts into question the usefulness of current versions of LLMs for meaningful simulations, as without a reference model, it is impossible to determine a priori what impact seemingly meaningless changes in prompt will have on the simulation.

Sense and Sensitivity: Evaluating the simulation of social dynamics via Large Language Models

TL;DR

This paper challenges the viability of using large language models as stand-ins for agent-based models by introducing a validation framework that grounds LLM-driven simulations in established reference dynamics. By treating the LLM as a black-box mapping and comparing its input-output behavior to a DeGroot/HK-based reference, the authors quantify consistency via a system-identification-like loss and probe robustness to prompt variations through structured experiments. They show that while LLM-ABMs can reproduce target dynamics with carefully engineered prompts, their reliability is highly sensitive to prompt wording and formatting, casting doubt on their usefulness for theory-building without a reference model. The work highlights practical limitations related to scalability and prompt sensitivity, and suggests directions for automated prompt optimization and larger-context modeling to enhance robustness.

Abstract

Large language models have increasingly been proposed as a powerful replacement for classical agent-based models (ABMs) to simulate social dynamics. By using LLMs as a proxy for human behavior, the hope of this new approach is to be able to simulate significantly more complex dynamics than with classical ABMs and gain new insights in fields such as social science, political science, and economics. However, due to the black box nature of LLMs, it is unclear whether LLM agents actually execute the intended semantics that are encoded in their natural language instructions and, if the resulting dynamics of interactions are meaningful. To study this question, we propose a new evaluation framework that grounds LLM simulations within the dynamics of established reference models of social science. By treating LLMs as a black-box function, we evaluate their input-output behavior relative to this reference model, which allows us to evaluate detailed aspects of their behavior. Our results show that, while it is possible to engineer prompts that approximate the intended dynamics, the quality of these simulations is highly sensitive to the particular choice of prompts. Importantly, simulations are even sensitive to arbitrary variations such as minor wording changes and whitespace. This puts into question the usefulness of current versions of LLMs for meaningful simulations, as without a reference model, it is impossible to determine a priori what impact seemingly meaningless changes in prompt will have on the simulation.

Paper Structure

This paper contains 19 sections, 10 equations, 4 figures, 9 tables, 1 algorithm.

Figures (4)

  • Figure 1: Opinion Dynamics Models. Scalar opinion $x_i(t)$ per agent $i$ and time $t$ for the (\ref{['fig:degroot']}) DeGroot and (\ref{['fig:hk']}) Hegselmann-Krause models, simulated using \ref{['eq:hk']} with $\epsilon=2$ and $\epsilon=0.3$ respectively. While the DeGroot model leads to consensus and the main quantity of interest is the speed of convergence, the Hegselmann-Krause model can show a wider range of dynamics, including polarization as in \ref{['fig:hk']}.
  • Figure 2: Evaluation Framework. (\ref{['fig:simerr']}) Simulation error in black-box system identification (\ref{['fig:scheme']}) Schematic of the evaluation framework, showing encoding, decoding and dynamics operations.
  • Figure 3: (\ref{['fig:ego']}) Ego network and opinion aggregation. The ego network of node Blue is indicated by solid edges. Nodes in Blue's ego network that are within an $\epsilon$ distance of Blue's opinion are indicated in green. Edges which transmit opinions are indicated by a text icon. (\ref{['fig:arch']}) System architecture. Number of vLLM instances depends on task load. Load balancer dispatches to the least utilized instance.
  • Figure 4: Consistency Evaluation

Theorems & Definitions (5)

  • Definition 1: DeGroot Model
  • Definition 2: Hegselmann-Krause Model
  • Definition 3: Model inconsistency
  • Definition 4: Encoding-Decoding consistency
  • Definition 5: Model sensitivity