Bayesian Statistical Modeling with Predictors from LLMs

Michael Franke, Polina Tsvilodub, Fausto CarcassiarXiv 2024

TL;DR

Can Large Language Models (LLMs) serve as explanatory models for human cognition? By applying Bayesian model criticism to pragmatic "reference games," this paper reveals that while LLMs can mimic aggregate human behavior, they fail to capture the item-level variance seen in human data, suggesting they are often "right for the wrong reasons."

What Problem Does This Paper Address?

As LLMs become components in larger neuro-symbolic systems or act as proxies for human judgment, we need to know if they actually "think" like us. Most evaluations rely on benchmark accuracy—comparing a model's output to a "gold standard" answer. However, cognitive science cares about the distribution of behavior: how do humans vary across different items, and how do they behave on average in specific conditions?

The authors investigate whether LLM-derived predictions align with the nuances of human choice in pragmatic language tasks. Specifically, they tackle the "aggregation problem": LLMs provide predictions for individual strings (items), whereas human psychological theories usually describe general tendencies across experimental conditions.

Figure 2: Structure of a reference game with human participants. Each trial consists of a set of objects, the so-called context. In production trials, participants choose a single word to describe a trigger object from the context. In interpretation trials, an object is selected as the likely object a trigger word is referring to.

Methods

The researchers used Reference Games—a classic experimental paradigm where a "speaker" must describe a target object so a "listener" can identify it among distractors. They compared human data against two types of models:

  1. Rational Speech Act (RSA): A standard probabilistic cognitive model (PCM) that uses Bayesian inference to simulate pragmatic reasoning.
  2. LLM-based Predictors: Using GPT-3.5 and LLaMA-2 variants to generate log-probabilities for choice options.

To bridge the gap between item-level LLM outputs and condition-level human data, they tested three aggregation strategies:

  • Average Scores: Averaging raw log-probabilities before applying a softmax.
  • Average Probabilities: Converting scores to probabilities for each item, then averaging.
  • Average Winner-Takes-All (WTA): Assuming the model always picks the highest-scored option for each item, then averaging those binary choices.

They employed Bayesian model criticism, specifically using Bayesian posterior predictive p-values (Bppp), to strictly test how well these models could reproduce the observed human data distribution.

Figure 1: Schematic representation of key conceptual differences between different types of predictive models. Standard statistical models, like hierarchical regression models, typically make predictions for aggregate data (e.g., at the condition level), and add random offsets for item-level variation. More sophisticated models, like some probabilistic cognitive models, may holistically combine information from an aggregate level (task, condition) with specific information about items. LLMs, in contrast, first and foremost give prediction about each individual item and must rely on proper aggregation to arrive at condition-level predictions.

Datasets

  • Human Data: A new text-based reference game experiment with 302 native English speakers, covering 100 unique items across "production" (speaking) and "interpretation" (listening) conditions.
  • LLM Backends: GPT-3.5 (text-davinci-003) and LLaMA-2 (7B, 13B, and 70B versions, both base and chat-fine-tuned).

Key Insights and Ideas

  • The Item-Level Mismatch: LLMs predict significant systematic variance between specific items (e.g., preferring "circle" over "blue" due to low-level string features) that is simply not present in human data. Humans are much more consistent across items within a condition than LLMs are.
  • Right for the Wrong Reasons: Surprisingly, the "Winner-Takes-All" (WTA) aggregation—the least human-like at the atomic level—often produced the best fit for aggregate human data. This suggests that the high accuracy LLMs show on benchmarks might be a methodological artifact of averaging out their erratic item-level behavior.
  • Lack of Explanatory Power: Unlike the RSA model, which compresses complex behavior into a few interpretable parameters (like "pragmatic alpha"), LLMs function as a collection of millions of individual predictions. They lack the "human-comprehensible compression" required for a true explanatory model of cognition.

Key Results

  • RSA Success: The RSA model achieved Bppp values near 0.5, indicating an excellent fit for both item-level and condition-level data.
  • LLM Item-Level Failure: All LLM models failed the item-level check (Bppp = 0.00), proving they do not capture the actual variance of human choices.
  • Aggregate Success: For GPT-3.5, the "Average WTA" strategy reached a Bppp of ~0.5, matching the RSA model's aggregate performance. However, other aggregation methods failed significantly, especially in the interpretation condition.
  • Model Scaling: Larger LLaMA-2 models did not necessarily perform better. Interestingly, the 13B-chat model was the only LLaMA variant able to recover human-like interpretation data using the "average probability" method.
Figure 8: Visual posterior predictive checks on condition-level data for different models of the LLaMA family.

Limitations and Future Work

The authors acknowledge that their study is a "minimal non-trivial case study." While it provides a rigorous methodological framework, it is limited to one type of task (reference games).

Future directions include: * Testing LLMs against more diverse and complex cognitive datasets. * Exploring more sophisticated "link functions" to better map LLM scores to human probabilities. * Investigating subject-level variation; currently, LLMs provide a single "average" prediction, failing to account for the vast individual differences common in human participants. * Scrutinizing the "nuisance variables" (like prompt order) that cause LLMs to predict item-level variance that humans ignore.

Summary updated

BibTeX
@misc{franke2024bayesian,
  author = {Michael Franke and Polina Tsvilodub and Fausto Carcassi},
  title = {{Bayesian Statistical Modeling with Predictors from LLMs}},
  year = {2024},
  eprint = {2406.09012},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2406.09012},
}
Figure