LLMSynthor: Macro-Aligned Micro-Records Synthesis with Large Language Models
Yihong Tang, Menglin Kong, Junlin He, Tong Nie, Lijun Sun
TL;DR
LLMSynthor bridges the micro-macro data gap by repurposing pretrained LLMs as macro-aware simulators that generate realistic micro-records aligned to target macro-statistics. It introduces a nonparametric copula interpretation of the LLM to model joint dependencies and a discrepancy-guided LLM Proposal Sampling mechanism to efficiently produce targeted batch proposals. Through an iterative loop, the framework updates macro-statistics, attributes discrepancies, and refines data via proposals, with a convergence guarantee in expectation. Empirical results across mobility, e-commerce, and population synthesis show that LLMSynthor achieves superior statistical fidelity and practical utility, often surpassing baselines trained on full micro-data while handling unstructured data without task-specific engineering. This approach offers a scalable, versatile path for synthetic data generation in economics, social science, and urban studies, enabling scenario analysis and policy-relevant research with privacy-preserving data.
Abstract
Macro-aligned micro-records are crucial for credible simulations in social science and urban studies. For example, epidemic models are only reliable when individual-level mobility and contacts mirror real behavior, while aggregates match real-world statistics like case counts or travel flows. However, collecting such fine-grained data at scale is impractical, leaving researchers with only macro-level data. LLMSynthor addresses this by turning a pretrained LLM into a macro-aware simulator that generates realistic micro-records consistent with target macro-statistics. It iteratively builds synthetic datasets: in each step, the LLM generates batches of records to minimize discrepancies between synthetic and target aggregates. Treating the LLM as a nonparametric copula allows the model to capture realistic joint dependencies among variables. To improve efficiency, LLM Proposal Sampling guides the LLM to propose targeted record batches, specifying variable ranges and counts, to efficiently correct discrepancies while preserving realism grounded in the model's priors. Evaluations across domains (mobility, e-commerce, population) show that LLMSynthor achieves strong realism, statistical fidelity, and practical utility, making it broadly applicable to economics, social science, and urban studies.
