This study asks whether LLMs can construct synthetic friendship networks whose structure resembles real networks and what demographic biases they introduce when selecting ties. It does not study personality. Its “personas” are 50 synthetic demographic profiles containing gender, age, race/ethnicity, religion and political affiliation; they contain no psychological traits, questionnaires, life histories or individual human data. The main sample has 24 Democrats and 26 Republicans and no Independents, so the central political comparison is binary.
The authors compare three zero-shot prompting methods. Global requests the entire network in one response. Local assigns the model one persona at a time and asks it to choose friends without current-network information. Sequential also acts one persona at a time but supplies each candidate's current degree or friend list. All conditions use the same profiles, and the main study generates 30 networks per method at temperature 0.8. The models are GPT-3.5 Turbo, GPT-4o, Llama 3.1 8B and 70B, and Gemma 2 9B and 27B. GPT-3.5 Turbo is reported in the main text because it best matched the structural references.
Structural realism is evaluated against eight small and heterogeneous CASOS/KONECT friendship networks with 31-70 nodes and 63-274 edges. Metrics cover density, average clustering, largest-component proportion, average shortest path, modularity and degree distribution. Global is too sparse and disconnected, has low clustering, excessive modularity and no long degree tail. Local and Sequential overlap the reference distributions more closely, and Sequential better captures the long tail because it receives accumulated network information. The paper reports mean KS distance 0.330 for Sequential versus 0.499 for the best fitted classical comparator, small-world, a 51% larger distance. This is similarity on selected graph metrics, not general social realism or validation of diffusion, contagion or influence dynamics.
Homophily is measured as observed divided by expected cross-group edge proportion; values below 1 mean fewer cross-group ties. For GPT-3.5 Turbo, the political ratios are 0.180 under Local and 0.340 under Sequential, 82% and 66% fewer Democrat-Republican edges than expected under the paper's null. Same-party ratios are 1.851 and 1.685, isolation indices 0.729 and 0.530, and polarization measures 0.639 and 0.515. Political affiliation is the strongest separator for all six models. GPT-4o and Llama 3.1 70B sometimes generate zero cross-party edges and split the graph into two political components.
Political dominance persists after shuffling demographic correlations and in single-/two-variable ablations. In a free-reason condition, politics appears in 86.7% of model-generated friendship reasons, followed by religion at 43.0%, age at 21.8%, race/ethnicity at 12.1% and gender at 7.3%. These are model explanations classified by another LLM, not a validated causal measure of internal attention. Adding generated interests also fails as a correction: because interests are generated from the same demographics, they encode political stereotypes and politics remains dominant.
The claim that LLMs overestimate political homophily needs a central qualification. The eight structural-reference networks have no node demographics, so the paper cannot compare political homophily on those same networks. Instead it compares generated values with published measures from Twitter, voluntary associations, work, neighborhoods, family, trusted contacts and political discussants. These differ in population, period, tie definition and network context. Generated values are more extreme than every cited reference, but this is not a matched replication. The appendix also shows wide cross-study variation in real homophily for other demographics and suggests the LLM may underestimate race/ethnicity and religion homophily.
The repository supports part of the evidence and limits the rest. Commit a841a29 releases 30 Global, Local and Sequential networks for both GPT-3.5 Turbo and GPT-4o, the 50-person sample, real-network data, statistics and a notebook. Recomputing all three GPT-3.5 homophily CSVs from the released graphs produced exact row-level matches, verifying political means 0.180 and 0.340. Structural metrics also match except modularity: Louvain runs without a seed and changes by up to about 0.018-0.027 across runs. Raw Llama/Gemma networks, most ablations, the 1,000-person interest sample and classical-model graphs for Table B1 are absent, so those claims can only be checked against derived statistics.
The public environment does not run as documented. requirements.txt requests Pillow 9.3.0 and 10.4.0 simultaneously and pins numpy 1.23.4 although scipy 1.14.1 requires at least 1.23.5. Analysis imports require api-key.txt even offline. The README's persona command uses an unsupported --save_name flag, and the analysis CLI fails with NameError: SHOW_PLOTS is not defined. There are no tests, CI, lockfile, container, tags or repository license; model names are mutable aliases and execution dates are not reported.
The faithful conclusion is that, under these prompts and a simplified US demographic sample, LLMs can generate locally plausible graphs while exaggerating Democrat-Republican separation; the main GPT-3.5 effect is supported by public artifacts. The study does not establish synthetic personality, human friendship preferences, a representative US network, a causal pretraining source, cross-cultural universality, downstream diffusion effects or full reproducibility of every model and appendix.