TL;DR
This paper argues that Bayesian inference and deep learning are not competitors, but complementary tools operating at different "levels of analysis." By treating large language models (LLMs) like human psychological subjects, researchers can use Bayesian models to reverse-engineer the hidden inductive biases and "priors" that govern AI behavior.
What Problem Does This Paper Address?
For decades, cognitive scientists have used Bayesian models to explain human intelligence as a form of rational belief updating. However, the sudden success of massive artificial neural networks (ANNs) — which often seem like "black boxes" driven by brute-force scaling rather than elegant math — has led some to question if Bayesian explanations are still relevant.
The authors address two main questions:
- Does the success of deep learning undermine Bayesian models of cognition?
- Can Bayesian frameworks help us understand the opaque, often unpredictable behavior of modern AI systems like GPT-4?
Methods
The authors frame their argument using Marr’s Levels of Analysis, a classic hierarchy in vision science:
- Computational Level: What is the goal of the system? (Bayesian models live here).
- Algorithmic Level: What processes are used? (Neural networks live here).
- Implementation Level: How is it physically realized?
To bridge these levels, the authors highlight two specific techniques:
- Prior Distillation: Using meta-learning to bake abstract Bayesian priors (like grammars or logical formulas) into the weights of a neural network.
- The "Predicting the Future" Task: A psychological probing method where an LLM is asked to predict the total duration of an event (e.g., a cake baking) given a partial observation. By analyzing the LLM's answers, the researchers can mathematically "recover" the prior probability distributions the model has internalized.
Datasets
The paper doesn't introduce a new massive training corpus, but rather uses targeted evaluation sets:
- Deterministic Reasoning Tasks: A suite of simple tasks including string reversal, word swapping, letter counting, acronym formation, shift ciphers, and Pig Latin.
- Everyday Event Distributions: A dataset of real-world statistics (baking times, human lifespans, movie grosses, etc.) originally used in a landmark 2006 study on human intuition.
- GPT-4 Probes: The authors used the
gpt-4-0613API to generate predictions across these tasks.
Key Insights and Ideas
- Complementarity, Not Conflict: Bayesian models describe the ideal solution to a problem, while neural networks describe the mechanism that approximates that solution. They are two sides of the same coin.
- The "Probability Trap": LLMs are highly sensitive to the frequency of text in their training data. GPT-4 can solve a deterministic task (like a shift cipher) easily if the answer is a common phrase, but fails if the answer is rare—even if the underlying logic is identical.
- Internalized World Knowledge: GPT-4 has remarkably accurate "priors" for everyday life. It "knows" that cake baking times follow an Erlang distribution and that human lifespans are Gaussian, matching human-like intuitions with surprising precision.
- LLMs as Opaque Systems: Because we often don't have access to the training data or internal weights of proprietary models, the authors argue we should treat AI research like psychology: observing behavior to infer internal mental states.
Key Results
- Frequency Bias: In a letter-counting task, GPT-4 was significantly more likely to correctly identify "30" letters than "29," simply because the number 30 appears four times more often in natural text.
- Hallucination via Probability: When faced with rare shift ciphers, GPT-4 often "hallucinated" high-probability sequences like "I think therefore I am" instead of the actual (but low-probability) decoded text.
- Distribution Matching: The researchers successfully recovered specific mathematical priors from GPT-4’s predictions. For example, it predicted movie grosses using a power-law distribution ($\gamma \approx 1.20$) and human lifespans using a Gaussian distribution ($\mu \approx 78.9$), showing it has internalized the statistical structure of the world.
Limitations and Future Work
- Resource Constraints: The authors note that LLMs may deviate from "perfect" Bayesian logic due to computational limits or specific architectural bottlenecks.
- Teleological Limits: Not every behavior in an LLM can be explained by its "goal"; some are likely artifacts of the training process or hardware.
- Future Directions: The authors suggest that the next frontier is using these Bayesian tools to explore more complex, structured inductive biases in AI, potentially leading to models that are more interpretable and human-like in their reasoning.
Summary updated