Heads, Tails, and AI Fails: LLMs, Randomness, and Human Judgments
cs.AI, cs.LG
Submitted: 2024-05-31
Updated: 2026-10-01
License: http://creativecommons.org/licenses/by/4.0/
The gist: Randomness is central to human cognition and to many applications in which large language models are deployed, yet probabilistic token generation does not imply that LLMs can produce unbiased random
Abstract
Randomness is central to human cognition and to many applications in which large language models are deployed, yet probabilistic token generation does not imply that LLMs can produce unbiased random sequences. We study how contemporary LLMs generate binary random sequences using the classic behavioral-science paradigm of simulated coin flips. Across single flips, 20-flip sequences, n-gram statistics, run lengths, alternation rates, and next-flip predictability, we compare model outputs to both true Bernoulli baselines and human data from prior work. We find that LLMs reproduce several canonical human randomness biases, including over-alternation, aversion to long runs, and first-flip biases, but often amplify them or introduce model-specific distortions. Increasing temperature reduces some rigid patterns but does not eliminate systematic structure. We further investigate over-alternation through prompt-framing experiments, continuation tests, corpus searches, and residual-stream probes, finding evidence that this bias is not explained by direct memorization or tokenization alone. These results show that LLMs are unreliable generators of randomness and imperfect simulators of human randomness judgments, with implications for applications requiring stochasticity, fair sampling, or behavioral simulation.
Sources
- Evaluating the Quality of Randomness and Entropy in Tasks Supported by Large Language Models
- Exploring the Frontiers of LLMs in Psychological Applications: A Comprehensive Review
- Can large language models explore in-context?
- DeLLMa: Decision Making Under Uncertainty with Large Language Models
- EVOLvE: Evaluating and Optimizing LLMs For In-Context Exploration
- Playing games with Large language models: Randomness and strategy
- Voyager: An Open-Ended Embodied Agent with Large Language Models
- SmartPlay: A Benchmark for LLMs as Intelligent Agents
Related papers
- MAVEN-T: Reinforced Heterogeneous Distillation for Real-Time Multi-Agent Trajectory Prediction
- Model Discovery Agent: LLM-assisted Bayesian experiment design for data-efficient discovery of mechanistic world models
- Agents' Last Exam
- The Clinician's Veto: Navigating Trust, Liability, and Uncertainty in Autonomous AI Prescribing
- MindHelper: Closed-Loop Embodied Mental-State Reasoning for Precision Intervention
- Incumbent Advantage: Brand Bias and Cognitive Manipulation Dynamics in LLM Recommendation Systems