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

Da Ju, Adina Williams, Brian Karrer, Maximilian NickelarXiv 2024 · DOI

Large Language Models (LLMs) are increasingly being recruited as "digital twins" for human behavior. Researchers are swapping out the simplistic, math-heavy agents of classical social science for LLM-powered agents that can chat, reason, and exhibit "rich" personas. However, a critical question remains: how much of this emergent behavior is grounded in social reality, and how much is just a fluke of the prompt?

A recent study from researchers at Meta FAIR, titled "Sense and Sensitivity," puts these simulations to the test. By grounding LLM behavior in established mathematical models of social dynamics, they reveal a sobering truth: while LLMs can mimic social systems, they are "frighteningly" sensitive to minor, semantically meaningless changes in their instructions.

The Validation Gap in Social Simulation

For decades, social scientists have used Agent-Based Models (ABMs) to study phenomena like opinion spread or segregation. Classical ABMs are often highly idealized, representing a person’s entire worldview as a single scalar value. LLMs promise to enrich these models with personas and natural language reasoning. Yet, because LLMs are black boxes, it is difficult to determine if an agent is following micro-instructions or if the resulting macro social behavior is theoretically sound. The authors tackle this validation gap by asking how we can know an LLM-based simulation is actually doing what we think it is doing.

Methodology: Grounding LLMs in Reference Models

To address this gap, the authors treat the LLM as a black-box function and use a "system identification" approach from control theory. They compare LLM behavior against two foundational models of opinion dynamics:

  1. DeGroot Model: Agents average the opinions of all neighbors, typically leading to consensus.
  2. Hegselmann-Krause (HK) Model: Agents only average opinions close to their own, which often results in polarization.
The evaluation framework uses an encoding-decoding loop to compare LLM outputs against mathematical reference models.

The researchers built an encoding-decoding loop to bridge the gap between numerical models and text-based LLMs. An Encoder converts scalar opinions into tweet-like statements based on personas from the PersonaChat dataset. The LLM then processes a "feed" of these statements to generate an updated opinion, which a Decoder converts back into a number for comparison against the mathematical "ground truth."

Key Insights: The Reliability Crisis

The study's most striking finding is that "semantic equivalence" does not guarantee "behavioral equivalence." Two prompts that mean the same thing to a human can lead to wildly different social outcomes in the simulation.

Reference dynamics for (a) DeGroot and (b) Hegselmann-Krause models, showing consensus and polarization respectively.

The "Whitespace" and Wording Effects

The simulation's reliability proved incredibly brittle. Simply removing newline characters (\n) or apostrophes from a prompt significantly altered accuracy. This suggests that LLM-based social science might currently be built on "brittle" foundations. For example, a tiny wording change in the decoding prompt (changing "1 or -1" to "1 and selecting -1 otherwise") caused the error rate to jump from 11.8% to 44%—making the model perform worse than a random guess.

Negativity Bias

LLMs also showed a distinct bias in how they processed information. They were more consistent when dealing with "positively framed" stances (e.g., being pro-free market) than "negatively framed" ones (e.g., being contra-planned economy), even when the underlying logic was identical.

Conclusion

While Llama-2 and Llama-3 can approximate complex dynamics like polarization with carefully tuned prompts, the extreme sensitivity to minor variations remains a significant barrier. If a simulation requires "perfect" prompt engineering to match a known reference model, it becomes nearly impossible to use LLMs to discover new social theories where no reference model exists. Moving forward, rigorous validation frameworks—rather than "vibes-based" prompting—will be essential for serious computational social science.

Summary updated

BibTeX
@misc{ju2024sense,
  author = {Da Ju and Adina Williams and Brian Karrer and Maximilian Nickel},
  title = {{Sense and Sensitivity: Evaluating the simulation of social dynamics via Large Language Models}},
  year = {2024},
  eprint = {2412.05093},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2412.05093},
}
Figure