LLMs generate structurally realistic social networks but overestimate political homophily

Serina Chang, Alicja Chaszczewicz, Emma Wang, Maya Josifovska, Emma Pierson +1 more
8/29/2024
cs.CYcs.AIcs.SI

No official code found. Best implementation: snap-stanford/llm-social-network (35 stars, last commit 2025-06-30).

Abstract

Generating social networks is essential for many applications, such as epidemic modeling and social simulations. The emergence of generative AI, especially large language models (LLMs), offers new possibilities for social network generation: LLMs can generate networks without additional training or need to define network parameters, and users can flexibly define individuals in the network using natural language. However, this potential raises two critical questions: 1) are the social networks generated by LLMs realistic, and 2) what are risks of bias, given the importance of demographics in forming social ties? To answer these questions, we develop three prompting methods for network generation and compare the generated networks to a suite of real social networks. We find that more realistic networks are generated with "local" methods, where the LLM constructs relations for one persona at a time, compared to "global" methods that construct the entire network at once. We also find that the generated networks match real networks on many characteristics, including density, clustering, connectivity, and degree distribution. However, we find that LLMs emphasize political homophily over all other types of homophily and significantly overestimate political homophily compared to real social networks.

View on arXivView PDF

Code Implementations(1)

3513Python, Jupyter NotebookJun 26, 20231 years ago

Similar Papers

Cite this paper

@article{chang2024llms,
  title  = {LLMs generate structurally realistic social networks but overestimate political homophily},
  author = {Serina Chang and Alicja Chaszczewicz and Emma Wang and Maya Josifovska and Emma Pierson and Jure Leskovec},
  year   = {2024},
  eprint = {2408.16629},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2408.16629v2}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2408.16629.svg)](https://codeofpaper.com/paper/2408.16629)

Discussion