CogBench: a large language model walks into a psychology lab

Julian Coda-Forno, Marcel Binz, Jane X Wang, Eric Schulz

TL;DR

CogBench is a novel, open-source benchmark that treats Large Language Models (LLMs) like human subjects in a cognitive psychology lab. By translating seven canonical psychology experiments into text prompts and testing 40 different models, researchers move beyond simple accuracy scores to "phenotype" the underlying decision-making mechanisms of AI. This approach reveals how factors like Reinforcement Learning from Human Feedback (RLHF) and model size fundamentally alter an AI's behavioral "personality."

The Problem: Beyond the "Opaque Box"

Most LLM benchmarks focus heavily on performance—evaluating whether a model can pass the Bar exam or solve complex coding challenges. While useful, these metrics fail to explain how a model arrives at an answer. This creates an "opaque box" problem: we lack insight into behavioral mechanisms like how a model handles uncertainty, explores new information, or balances immediate versus delayed rewards.

Furthermore, as models are increasingly trained on benchmark data, these evaluations risk becoming mere training targets rather than genuine measures of intelligence. The authors argue for a shift toward behavioral phenotyping—using validated tools from cognitive psychology to understand the inner workings of LLM behavior in a way that is directly comparable to human data.

Methods: Translating Psychology for AI

To achieve this, the authors introduced CogBench, a toolkit consisting of 10 behavioral metrics derived from 7 classic psychology experiments:

  1. Probabilistic Reasoning: Tests how agents update beliefs based on new evidence.
  2. Horizon Task: Measures directed versus random exploration in a multi-armed bandit setting.
  3. Restless Bandit Task: Assesses meta-cognition (the ability to accurately judge one's own certainty).
  4. Instrumental Learning: Measures learning rates and "optimism bias."
  5. Two-Step Task: Disentangles "model-based" (planning) from "model-free" (habitual) reinforcement learning.
  6. Temporal Discounting: Measures the preference for immediate versus delayed rewards.
  7. Balloon Analog Risk Task (BART): Assesses risk-taking behavior.
Overview of the CogBench approach: translating psychology experiments into LLM prompts to derive behavioral phenotypes.

The researchers evaluated 40 different LLMs using zero-shot prompting. To analyze the results robustly, they employed statistical multilevel modeling. This sophisticated approach accounts for "model families"—recognizing, for instance, that Llama-2-7b and Llama-2-7b-chat share underlying architecture—preventing fine-tuned variants from skewing the overall statistical conclusions.

Datasets

  • CogBench: The primary contribution, providing programmatically generated tasks that minimize data leakage by randomizing specific numbers and scenarios.
  • LLMs: A diverse set of 40 models, including proprietary giants (GPT-4, Claude-2, PaLM-2) and open-source models (Llama-2 variants, Falcon, MPT, Yi).
  • Human Baselines: Existing human behavioral data from the original studies that defined these seven experiments, providing a "gold standard" for comparison.

Key Insights

  • RLHF as a "Humanizer": Reinforcement Learning from Human Feedback (RLHF) does more than just make models safer; it significantly aligns their decision-making behavior with human patterns. RLHF models were roughly 2x more similar to humans in their behavioral profiles than their base-model counterparts.
  • The Exploitation Trap: Interestingly, many models showed "super-human" performance on bandit tasks (like the Horizon Task) but lacked human-like exploration. They achieved high scores through pure exploitation, suggesting they are highly efficient but perhaps less "curious" or adaptable than humans.
  • The Risk Paradox: Contrary to the popular belief that open-source models are "wilder" due to fewer safety guardrails, the study found that proprietary models were actually more risk-prone in the BART task.
  • Prompt Engineering "Modes": Different prompting techniques unlock distinct cognitive strengths. Chain-of-Thought (CoT) was most effective at boosting probabilistic reasoning, while Take-a-Step-Back (SB) prompting significantly fostered "model-based" behaviors (planning and abstraction).

Key Results

  • GPT-4 stood out as the most human-like model, achieving human-level performance in 5 out of 6 performance metrics.
  • Model Size Matters: Larger models were consistently more "model-based" ($\beta = 0.481$) and performed better across the board.
  • Code Training: Surprisingly, the researchers found little evidence that fine-tuning on code improved these specific cognitive behaviors, challenging the common assumption that code-tuning is a "silver bullet" for general reasoning.
  • Meta-cognition: Models that performed well on the Restless Bandit task showed a high degree of meta-cognition, meaning they could accurately report their own confidence levels.
Performance and behavioral metrics for established LLMs compared to human averages (dotted lines).

Limitations and Future Work

The authors acknowledge several hurdles in this emerging field:

  • Proprietary Opacity: It is difficult to fully account for the effects of hidden pre-prompts or specific training data in closed models like GPT-4, which can muddy regression analyses.
  • The "Single Subject" Problem: It remains an open philosophical and technical question whether a single LLM should be treated as one "person" or as a representative of a whole population of agents.
  • Expansion: Future versions of CogBench aim to cover a broader set of domains beyond the current seven experiments and to further automate the evaluation of complex prompt-engineering techniques.

Summary updated

BibTeX
@inproceedings{codaforno2024cogbench,
  author = {Julian Coda-Forno and Marcel Binz and Jane X Wang and Eric Schulz},
  title = {{CogBench: a large language model walks into a psychology lab}},
  booktitle = {International Conference on Machine Learning},
  year = {2024},
  url = {https://openreview.net/forum?id=Q3104y8djk},
}
Figure