Simulating Tabular Datasets through LLMs to Rapidly Explore Hypotheses about Real-World Entities

Miguel Zabaleta, Joel LehmanarXiv 2024 · DOI · arXiv

Abstract

Testing scientific hypotheses often requires extensive manual data collection, a process that is both time-consuming and resource-intensive. This paper explores the potential of Large Language Models (LLMs) to serve as "simulators" of real-world entity properties, transforming unstructured latent knowledge into structured tabular data. We present a pipeline for Hypothesis-driven Dataset Simulation and evaluate its performance across diverse domains, including zoology, demographics, and sports. Our findings indicate that LLMs can generate high-fidelity datasets that accurately reflect real-world statistical patterns, offering a path toward rapid hypothesis prototyping.

Introduction

The traditional scientific workflow is often bottlenecked by data acquisition. For instance, investigating whether specific life experiences correlate with professional outcomes might require reading hundreds of biographies and manually coding variables. This paper posits that much of this information already exists within the training corpora of LLMs. By extracting this unstructured knowledge into quantitative tables, researchers can uncover insights "hiding in plain sight" and test ideas in minutes rather than months.

Methodology: Hypothesis-driven Dataset Simulation

The researchers developed a structured pipeline to automate the transition from a high-level hypothesis to a testable dataset.

The Hypothesis-driven Dataset Simulation pipeline.

The process consists of four primary stages:

  1. Prompt Generation: An LLM identifies relevant quantitative variables based on a user-provided hypothesis.
  2. Property Simulation: The model estimates values for these variables across a specific list of entities.
  3. Property Parsing: Free-form responses are converted into structured formats like JSON or Python dictionaries.
  4. Self-Correction: An optional refinement step where the model reviews its own estimates for logical consistency and accuracy.

The study compared "Direct-structured" prompting against "Report-style" narratives, finding that direct JSON requests generally yielded higher-quality data.

Experimental Setup and Datasets

The simulation approach was validated across three distinct domains:

  • Zoo Domain: A baseline using 101 animals and 16 binary features from the UCI Machine Learning Repository.
  • Countries Domain: A complex set involving World Bank demographics and the Egalitarian Democracy Index (EDI) for 155 countries.
  • Athletes Domain: A novel dataset of 40 professional athletes (soccer and tennis) focused on peak performance age and injury frequency, validated against real-world sports databases.

Key Results and Insights

The experiments revealed several critical properties of LLM-based data simulation:

Fidelity and Predictive Power

In the Zoo domain, the LLM achieved an average property accuracy of 0.923. Furthermore, a model trained on simulated data achieved 0.833 accuracy on real validation data, compared to 0.933 for a model trained on real data—a modest "Simulation Error Gap" of only 0.1.

The Advantage of Simulation

A striking finding is that LLMs are more effective at simulating individual data points than estimating correlations directly. When asked to guess a correlation, models were often inaccurate. However, when researchers calculated correlations from an LLM-generated table, the results were significantly closer to reality.

Scaling and Model Performance

Performance improved dramatically with model scale. In the Countries domain, GPT-4o-mini achieved a 0.738 correlation with ground truth, whereas the smaller Llama-3-8B reached only 0.221.

Correlation coefficients across different LLM scales for the Countries domain.

Discussion and Limitations

While promising, the approach faces several challenges. Hallucination remains a risk for obscure entities or niche variables. There is also the potential for data leakage, where models may have encountered evaluation sets like the UCI Zoo during training. However, successful results in the novel Athlete domain (0.625 correlation for peak age) suggest the capability generalizes beyond memorized data.

Future work aims to integrate Retrieval-Augmented Generation (RAG) to ground simulations in verifiable sources and to develop agentic systems capable of autonomously "mining" biographies to discover new behavioral patterns.

Summary updated

BibTeX
@misc{zabaleta2024simulating,
  author = {Miguel Zabaleta and Joel Lehman},
  title = {{Simulating Tabular Datasets through LLMs to Rapidly Explore Hypotheses about Real-World Entities}},
  year = {2024},
  eprint = {2411.18071},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2411.18071},
}
Figure