Bayes in the age of intelligent machines

Thomas L. Griffiths, Jian-Qiao Zhu, Erin Grant, R. Thomas McCoy · DOI

Introduction

The rapid ascent of large language models (LLMs) has sparked a debate in cognitive science. For decades, Bayesian inference served as the gold standard for explaining human intelligence as rational belief updating. In contrast, modern artificial neural networks (ANNs) are often viewed as "black boxes" whose success stems from massive scaling rather than mathematical elegance. This paper argues that these two paradigms are not in conflict but are complementary tools operating at different levels of analysis.

A Multi-Level Framework for Intelligence

To reconcile Bayesian models with deep learning, the authors employ Marr’s classic "Levels of Analysis." In this hierarchy, the Computational Level defines the goal or problem the system aims to solve, while the Algorithmic and Implementation Levels describe the processes and physical realization.

Marr's Levels of Analysis mapping Bayesian models to the computational goal and neural networks to the algorithmic implementation.

Under this view, Bayesian models describe the ideal solution (the "what"), whereas neural networks provide the mechanism (the "how") to approximate that solution. By treating LLMs like human psychological subjects, researchers can use Bayesian models to reverse-engineer the hidden inductive biases and "priors" that govern AI behavior.

Bridging the Gap: Prior Distillation and Probing

The authors propose two primary methods to connect abstract Bayesian principles with neural architectures:

  1. Prior Distillation: This involves using meta-learning to "bake" structured Bayesian priors—such as formal grammars or logical rules—directly into the weights of a neural network. By training on data sampled from a probabilistic model, the network internalizes these inductive biases.
The process of prior distillation: sampling from a probabilistic model to create training data for meta-learning in a neural network.
  1. Psychological Probing: By treating LLMs like human subjects, researchers can use "predicting the future" tasks to recover the model's internal probability distributions. For instance, asking an LLM to estimate the duration of an event based on partial information allows researchers to mathematically reconstruct the "priors" the model has learned from its training corpus.

Key Insights: The "Probability Trap" and World Knowledge

Evaluation across deterministic reasoning tasks (e.g., ciphers, counting) and everyday event distributions revealed several critical findings:

  • Frequency Bias: LLMs are highly sensitive to token frequency. In letter-counting tasks, GPT-4's accuracy fluctuated based on how often specific numbers appeared in its training data. For example, it was significantly more likely to correctly identify "30" letters than "29" simply because 30 is more common in natural text.
  • Hallucination via Probability: When faced with rare or difficult tasks, models often default to high-probability sequences (e.g., common phrases) rather than following the underlying logic. This "probability trap" explains why GPT-4 might hallucinate a common quote when decoding a rare shift cipher.
  • Internalized Statistics: Despite these biases, GPT-4 demonstrates a sophisticated grasp of real-world statistics. It accurately matches human-like intuitions for various distributions, such as the Erlang distribution for baking times or Gaussian distributions for human lifespans.

Conclusion

Rather than undermining Bayesian theories of cognition, the success of deep learning provides a new substrate for exploring them. By viewing LLMs through a Bayesian lens, we can begin to reverse-engineer the opaque "black box" of AI, moving toward systems that are both powerful and interpretable. Future work will likely focus on using these tools to identify more complex inductive biases, potentially leading to models that are more human-like in their reasoning.

Summary updated

BibTeX
@inproceedings{griffiths2024bayes,
  author = {Thomas L. Griffiths and Jian-Qiao Zhu and Erin Grant and R. Thomas McCoy},
  title = {{Bayes in the age of intelligent machines}},
  booktitle = {Current},
  year = {2024},
  doi = {10.1177/09637214241262329},
}
Figure