Beyond Structural Realism: Demographic Homophily Calibration in LLM-Generated Social Networks

Shikha Mallick, Alex Thomo, Akrati SaxenaarXiv 2026

TL;DR

Ask an LLM to simulate a social network, and it builds graphs with remarkably lifelike geometry—clusters, communities, and degrees all look right—until you realize it forces Democrats and Republicans into extreme echo chambers while under-representing racial clustering. This paper introduces ways to calibrate these demographic mixing patterns (via prompting, reinforcement learning, and graph surgery) so we can run accurate simulations of how information and opinions actually spread through society without breaking the network's underlying structure.

What Problem Does This Paper Address?

Studying how rumors, trends, or political opinions spread requires social network data containing both friendship ties and personal demographics. Because real data of this kind is heavily guarded by privacy laws and high costs, researchers increasingly use LLMs to generate synthetic social networks by having them roleplay user profiles ("personas") and pick friends.

There’s a catch: while LLMs intuitively nail structural realism (like clustering and path lengths), they distort homophily—the tendency for "birds of a feather to flock together." For instance, LLMs drastically overestimate political homophily while misjudging mixing across race, religion, and gender. Calibrating this isn't just about forcing everyone to mingle; real-world homophily varies wildly by attribute and context. Furthermore, if you naively edit a network’s edges to fix demographic ratios, you risk shattering its delicate community structure. The authors ask: how do we dial demographic mixing up or down to match empirical reality while keeping the network's topology intact?

Methods

Starting from a standard sequential generation setup—where an LLM impersonates one persona at a time and selects friends from a list of candidates—the authors measure homophily using the normalized Same-Group Ratio (SGR), which accounts for group sizes in the population. To steer SGRs toward empirical targets across gender, race/ethnicity, religion, and politics, they intervene at three distinct stages:

Fig. 1. The original network generative method “Base” and our three intervention methods, “Prompt”, “PPO”, and “TADP”, illustrated side by side. Base and Prompt show abbreviated instructions for the same persona and candidates. Prompt adds demographic guidance, illustrated here for political affiliation. During PPO training, the model selects a friend and receives a reward based on how the new tie aligns with the demographic targets given the graph before selection. The dashed edge shows the selected tie. TADP instead edits a completed graph by swapping two ties when doing so reduces total calibration error while preserving every node’s degree. Filled and open nodes denote different political affiliations.
  • Input Stage — Target-Aware Prompting (Prompt): A training-free nudge. Before the LLM picks friends, the prompt explicitly reports the evolving graph's current SGRs alongside the target SGRs, instructing the model to favor cross-group or same-group ties accordingly.
  • Model Stage — PPO Fine-Tuning (PPO): Using Proximal Policy Optimization (with LoRA adapters), the LLM learns a reusable friendship-selection policy. At each step, it gets a directional reward based on whether its newly chosen friendships push the network closer to or further from the demographic targets—allowing it to apply learned social intuition at test time without needing targets in the prompt.
  • Output Stage — Target-Aware Degree-Preserving Rewiring (TADP): Post-generation graph surgery. Adapting classic degree-preserving edge swaps, TADP samples pairs of existing friendships and swaps their endpoints if doing so reduces the total weighted demographic error, strictly preserving every single person's friend count (degree).

Datasets

  • Synthetic Personas: Two 50-person populations (one for training, one held-out for evaluation) built by combining 2023 U.S. Census demographics with 2024 Cooperative Election Study (CES) records (jointly sampling religion and politics to preserve real-world correlations).
  • Empirical Targets & Structure: Reference SGR targets and structural benchmarks (for networks of comparable size) were compiled from prior empirical collections spanning General Social Survey (GSS) discussion networks, MySpace, Tuenti, and Twitter following networks.

Key Insights and Ideas

  • Fine-tuning lightens the load on post-processing: If you apply TADP rewiring to an unmodified LLM's network vs. a PPO-tuned network, both end up hitting almost the exact same final demographic targets. Looking only at the final numbers obscures a crucial insight: PPO gets the network much closer during generation, meaning TADP has to do far less surgical rewiring afterward, preserving much more of the LLM's organic friendship choices.
  • Why do we even need LLMs if we have math? As a sanity check, the authors fitted a classical statistical (independent-edge logistic) model to hit the exact demographic targets and density. It nailed the demographics (error < 0.01) but completely collapsed on clustering (0.25 vs. the 0.45 real-world reference)—meaning friends of friends rarely knew each other. LLMs naturally generate those realistic social triangles that simple statistical rules miss.
  • Correlated attributes tug against each other: In Llama, PPO improved politics and race, but actually nudged religion slightly away from its target (1.60 to 1.48, target 1.77). Because religion and political party are correlated in real survey data, aggressively breaking up political echo chambers inadvertently broke up religious ones too!

Key Results

Evaluated across 30 generated networks each on Llama-3.1-8B-Instruct and Gemma-2-9B-IT:

  • Generation Calibration: PPO outperformed prompting on politics and race in both models. For Llama, PPO slashed the political SGR discrepancy by 87.4% (from 2.23 down to 1.51, nearing the 1.40 target) and the race/ethnicity discrepancy by 48.8% (1.22 up to 1.44, target 1.68).
  • Near-Perfect Final Ratios: Combining PPO with TADP rewiring (PPO-TADP) brought all four demographic SGRs within 0.03 of their empirical targets across both models, while maintaining realistic clustering (0.43 for Llama, 0.45 for Gemma vs. 0.45 reference).
  • Fewer Edits Required: Compared to rewiring base model outputs, rewiring PPO outputs required 32.7% fewer swaps for Llama and 17.5% fewer swaps for Gemma, boosting original friendship retention by 11.46 and 5.82 percentage points, respectively.

Limitations and Future Work

  • Scale and Fixed Populations: Experiments were conducted on relatively small 50-node graphs using a single held-out population. Testing larger networks and independently sampled populations will show how well these findings generalize.
  • Targets Aren't Universal Laws: The reference targets blend data from Twitter, MySpace, and surveys; they reflect specific platforms rather than universal human constants.
  • Confounded Model Comparisons: Llama responded more strongly to calibration than Gemma, though they used different optimal decoding temperatures (0.1 vs. 1.0), meaning architecture isn't isolated.
  • Downstream Dynamics: Future work will actually run information diffusion and opinion dynamics simulations on these calibrated graphs to see when demographic accuracy changes simulated societal outcomes.

Summary updated

BibTeX
@misc{mallick2026beyond,
  author = {Shikha Mallick and Alex Thomo and Akrati Saxena},
  title = {{Beyond Structural Realism: Demographic Homophily Calibration in LLM-Generated Social Networks}},
  year = {2026},
  eprint = {2611.39265},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2611.39265},
}
Figure