How Well Do LLMs Predict Human Behavior? A Measure of their Pretrained Knowledge
Wayne Gao, Sukjin Han, Annie Liang
TL;DR
This paper introduces the equivalent sample size (ESS) as a concrete metric to quantify how much domain-specific data a pretrained LLM substitutes for in economic prediction. It develops a principled estimation and inference framework, including block-out cross-validation, a plugin estimator for ESS, and a sequential one-sided confidence interval for the ESS, under a fixed-N asymptotic regime with a central limit theorem for cross-validated risk. The authors apply the method to PSID data across four outcomes, finding substantial heterogeneity: the LLM can rival domain data for some tasks (e.g., homeownership) but adds little value for others (e.g., smoking), with ESS ranging from tens to several hundreds of observations depending on the benchmark. They also extend the framework to treatment effects (CATE), highlighting how ESS can inform data collection decisions and the credibility of LLM-based inferences in economics and policy analysis. Overall, the ESS framework provides a rigorous, interpretable tool to assess when pretrained knowledge is a reliable substitute for domain data and how much data would be needed to match LLM performance.
Abstract
Large language models (LLMs) are increasingly used to predict human behavior. We propose a measure for evaluating how much knowledge a pretrained LLM brings to such a prediction: its equivalent sample size, defined as the amount of task-specific data needed to match the predictive accuracy of the LLM. We estimate this measure by comparing the prediction error of a fixed LLM in a given domain to that of flexible machine learning models trained on increasing samples of domain-specific data. We further provide a statistical inference procedure by developing a new asymptotic theory for cross-validated prediction error. Finally, we apply this method to the Panel Study of Income Dynamics. We find that LLMs encode considerable predictive information for some economic variables but much less for others, suggesting that their value as substitutes for domain-specific data differs markedly across settings.
