TL;DR
While Large Language Models (LLMs) are increasingly deployed to simulate complex human and physical systems, they fundamentally struggle to generate truly randomized outputs that match real-world probability distributions. This paper introduces UnpredictaBench, a new benchmark of 448 tasks designed to evaluate distributional randomness, alongside a novel metric called KS@N based on the Kolmogorov-Smirnov test. The findings reveal a massive capability gap: even the best-performing models fail to clear a 40% accuracy threshold, frequently collapsing onto a single "safe" answer.
What Problem Does This Paper Address?
When we use LLMs as stand-ins for humans in economic simulations, or to model epidemiological spreads, we don't just need a single plausible answer—we need the model to reflect the inherent uncertainty and randomness of the real world.
Prior work has attempted to solve this by increasing output diversity (e.g., cranking up the sampling temperature). However, the authors argue that mere diversity is insufficient; simulation requires samples that are precisely calibrated to a target distribution. Currently, many LLMs suffer from "mode collapse," where they repeatedly generate the most likely or safe response, failing to capture the full spectrum of a distribution.
Methods
To systematically evaluate how well LLMs sample from random processes, the authors designed an evaluation pipeline that treats the LLM as a black-box random number generator.
The core contribution here is KS@N, a metric that uses the two-sample Kolmogorov-Smirnov (KS) statistical test. For any given task, the evaluation pipeline draws a sample of size $N$ (defaulting to 100) from the LLM and compares it against a ground-truth sample of 10,000 points. KS@N measures the success rate: the fraction of problems where the model's sample distribution cannot be statistically rejected as being different from the ground truth. As $N$ increases, the statistical power of the test grows, making it harder for poorly calibrated models to pass.
For sequence-valued tasks like list shuffling, the authors map permutations to scalar values using normalized Lehmer codes, allowing standard continuous distance metrics to apply. They also track complementary metrics like Jensen-Shannon Divergence (JSD) and the Debiased Wasserstein-1 Distance Z-score (WDZ) to capture shape and tail mismatches.
Datasets
The authors introduced UnpredictaBench, a dataset containing 448 test instances spanning 40 well-known probability distributions across seven distinct task categories:
- Text Explicit / Implicit: Prompts that either directly name a distribution (e.g., Poisson) or describe a natural language scenario implying it.
- Code Explicit / Implicit: Prompts requiring the model to predict the output of a stochastic Python program (using NumPy/SciPy).
- Multimodal Tasks: Mixtures of multiple distributions to test if models can maintain coverage across multiple modes.
- Shuffling Tasks (Human-curated): Uniformly shuffling lists of numbers or words.
- Real-World Scenarios (Human-curated): Practical non-determinism tasks like multi-threaded race conditions, garbage collection ordering, and network simulation delays.
Out of the 448 tasks, 398 were generated using a templated pipeline powered by GPT-5.4, and 50 were manually authored by human experts.
Key Insights and Ideas
- The Alignment Penalty: Instruction tuning and Reinforcement Learning from Human Feedback (RLHF) severely suppress an LLM's natural variance. By training models to give the "best" or most helpful answer, alignment algorithms inadvertently penalize the generation of unusual or tail-end outputs, worsening mode collapse.
- Stable Internal Beliefs: The lack of sample diversity isn't just a decoding artifact that can be fixed with a better sampler. Looking at the logit distributions across independent calls reveals that the model's internal probabilities remain rigidly stable; it fundamentally believes only a narrow range of outputs is plausible.
- Models "Know More Than They Say": When forced to use chain-of-thought reasoning, some models consider a wide variety of candidate values during deliberation, yet still default to outputting a single repeated number in their final answer. Extracting numbers directly from the reasoning tokens yields a massive performance boost for certain models (e.g., Qwen3.5-35B jumped by +35.18 at KS@20).
Key Results
The benchmark revealed a massive performance spread across open and proprietary models, with a surprisingly low ceiling across the board:
- The Winner: NVIDIA's Nemotron-3 Super 120B dominated the benchmark, achieving the highest score of 32.64% at KS@100.
- Frontier Flops: Highly optimized proprietary models performed poorly. GPT-5.4 averaged only 15.18%, while Claude 3.5 Sonnet collapsed to a meager 4.70%—underperforming much smaller open-source models like Qwen-3.5-2B (17.67%).
- Hardest Tasks: Shuffling and tracking implicit distributions from code proved to be the most difficult categories, causing several leading models to drop to a 0% success rate.
Limitations and Future Work
The authors note several limitations in this initial version of UnpredictaBench:
- Language and Code Constraints: All prompts are strictly in English, and the code-based tasks are limited to Python.
- Synthetic Bias: 89% of the prompts were generated by an LLM (GPT-5.4), which could introduce subtle phrasing biases.
- Static Evaluation: The benchmark evaluates single-step generation rather than multi-step interactive simulations where distributional errors might compound over time.
Future work will focus on expanding sample sizes, testing multi-step simulation environments, and developing new pre-training or fine-tuning objectives that preserve distributional fidelity without sacrificing model alignment.
Summary updated