Introduction
Generating synthetic social graphs is a cornerstone of network science, enabling researchers to model human behavior in domains ranging from e-commerce to academic citation networks. Traditional approaches generally fall into two categories: rule-based models (e.g., preferential attachment), which often lack realism and textual richness, and deep learning-based models (e.g., GraphRNN), which require massive training datasets and struggle to scale beyond a few thousand nodes.
This paper introduces GraphAgent-Generator (GAG), a novel framework that treats graph generation as a zero-shot multi-agent simulation. By leveraging Large Language Models (LLMs) to simulate realistic human-item interactions, GAG produces large-scale, text-attributed graphs that naturally exhibit real-world network properties without the need for predefined mathematical rules or extensive training.
The GAG Framework
The GAG framework conceptualizes graph generation as a bipartite interaction simulation between "actors" (LLM agents) and "items" (e.g., papers, movies, or tweets). The process is divided into three primary stages: node formulation, interaction simulation, and graph projection.
Simulation-Oriented Retrieval Augmented Generation (S-RAG)
At the heart of the simulation is S-RAG. Unlike standard RAG used for question answering, S-RAG serves as an agent's "environment observation." Agents query a vector database of items and retrieve relevant candidates based on their unique personas (e.g., an AI researcher agent looking for relevant citations). The agents then take actions—such as citing a paper or retweeting a post—which are recorded as edges in a bipartite graph.
Scalability and Parallelization
To overcome the I/O bottlenecks associated with running thousands of LLM agents, the authors implemented Nested-ACTOR, a parallel acceleration architecture. By grouping active agents and item agents and distributing them across multiple CPU cores, the system achieved a speed-up of over 90%, allowing simulations of up to 100,000 agents to complete in roughly 11 hours.
Experimental Results and Emergent Properties
The framework was evaluated across three contexts: Scientific (citation networks), Technological (movie ratings), and Sociological (Twitter-like interactions).
Emergent Network Topology
A key finding is that LLM agents naturally form networks with macroscopic properties typical of real-world systems. Without explicit structural programming, the generated graphs exhibited power-law degree distributions, the small-world phenomenon, and the "friendship paradox."
The Role of ReRanking
The simulation incorporates a ReRanking step in the retrieval process, prioritizing items from "core" users or those matching specific agent preferences. The authors discovered that this mechanism acts as a form of "community-guided attachment," replicating the shrinking diameter phenomenon—a counterintuitive property where the average distance between nodes in a social network decreases as the network grows.
Performance and Extrapolation
GAG demonstrated superior performance in several key metrics:
- Scale: It successfully generated graphs with ~100,000 nodes and over 12 million edges, far exceeding the limits of existing deep learning generators.
- Microscopic Accuracy: GAG outperformed baselines by 11% on the Graph Expansion Metric (GEM), proving its ability to maintain structural integrity during network growth.
- Text-Structure Alignment: Node classification benchmarks using Graph Neural Networks (GNNs) showed that the generated text attributes were highly correlated with the network structure, improving accuracy retention by an average of 1.45 points over baselines.
Conclusion and Future Work
GAG represents a significant shift in graph generation, moving from pattern-matching to behavioral simulation. While currently limited to social and interaction networks, it offers a scalable, zero-shot solution for creating rich, text-attributed synthetic data. Future research will focus on improving the interpretability of LLM behaviors and expanding the framework to non-social domains like molecular structures or traffic grids.
Summary updated