Abstract
With the rapid advancement of large language models (LLMs) for handling complex language tasks, an increasing number of studies are employing LLMs as agents to emulate the sequential decision-making processes of humans often represented as Markov decision-making processes (MDPs). The actions in MDPs adhere to specific probability distributions and require iterative sampling. This arouses curiosity regarding the capacity of LLM agents to comprehend probability distributions, thereby guiding the agent’s behavioral decision-making through probabilistic sampling and generating behavioral sequences. To answer the above question, we divide the problem into two main aspects: sequence simulation with explicit probability distribution and sequence simulation with implicit probability distribution. Our analysis indicates that LLM agents can understand probabilities, but they struggle with probability sampling. Their ability to perform probabilistic sampling can be improved to some extent by integrating coding tools, but this level of sampling precision still makes it difficult to simulate human behavior as agents.
Introduction
Large Language Models (LLMs) are increasingly used as autonomous agents to simulate human behavior in complex environments, ranging from social networks to economic markets. These simulations typically model human actions as sequences within a Markov Decision Process (MDP). For such simulations to be scientifically valid, the generated actions must adhere to specific, mathematically defined probability distributions (e.g., the frequency of social media interactions or the duration of browsing sessions). This study investigates whether LLMs can effectively "play dice"—that is, whether they can generate behavioral sequences that statistically align with target probability distributions.
Methodology
The research evaluates LLM performance across two primary dimensions: explicit and implicit probability distribution sampling.
- Explicit Probability Distribution: Models are prompted with a direct mathematical context (e.g., "Simulate 100 rolls of a die") to generate a sequence. The statistical fitness of these sequences is evaluated using the Kolmogorov-Smirnov (KS) test against five standard distributions: Poisson, Uniform, Normal, Exponential, and Binomial.
- Implicit Probability Distribution: Models are placed in a social scenario (e.g., an online social network) and assigned a specific activity level (e.g., 0.2/1.0). They must then generate behavioral data, such as browsing duration and interaction counts. The researchers assess whether the generated behavior scales logically and statistically with the assigned profile.
Additionally, a "Code-Assisted" approach was tested, where the LLM utilizes external Python tools (e.g., numpy) to generate sequences rather than relying on direct text generation.
Results and Analysis
The study reveals a significant gap between an LLM's "book smarts" and its "street smarts." While models exhibit a high Recognition Probability (RP)—the ability to correctly identify the intended distribution—they suffer from a low Rate of Test Pass (RT), meaning the actual numerical sequences generated rarely pass statistical fitness tests.
A notable "Normal Bias" was observed: LLMs are significantly more proficient at simulating Normal (Gaussian) distributions compared to others. This likely stems from the prevalence of Gaussian data in training sets or a semantic association of "Normal" with "typical" behavior. Furthermore, models frequently struggled with structural constraints, often failing to generate the exact number of samples requested (e.g., 100 items).
In explicit sampling tasks, models like GPT-4 and Claude 2.1 failed the KS test for Poisson and Exponential distributions nearly 100% of the time. Even for the Normal distribution, GPT-4's pass rate was only 40%. In implicit simulations, the success rate for social behavior remained below 30% across all models, indicating an inability to reliably distinguish between different tiers of user activity (e.g., "lurkers" vs. "power users").
The Impact of Code Assistance
Integrating Python tools dramatically improved performance for explicit distributions, with GPT-4 and GPT-3.5 reaching nearly 100% accuracy. However, this "coding crutch" failed to improve implicit behavioral simulations. The models still struggled to translate qualitative concepts like "high activity" into the precise mathematical parameters required for code-based generation.
Conclusion
While LLMs can recognize and name probability distributions, they currently lack the mathematical rigor to sample from them accurately in a text-based format. This limitation suggests that current LLM-based behavioral simulations may be prone to "statistical hallucinations." Future research must focus on enhancing the probabilistic reasoning of LLMs to move beyond next-token prediction toward a deeper understanding of underlying statistical manifolds. For now, researchers should exercise caution when using LLMs for high-fidelity behavioral modeling.
Summary updated