In this paper, we present a simulation of social network dynamics using agents powered by the GPT-4o large language model. These agents are designed with cognitive modules for memory, reflection, and chain of thought to better emulate human-like behavior. Focusing on the Roe v. Wade case, we model public opinion propagation on a simulated Twitter-like platform through actions like likes, retweets, comments, and posts. Multiple simulation experiments are conducted with 50 agents over 10 timesteps to observe their behavior. By employing small-world networks and scale-free networks as structural variables, we analyze the impact of different network topologies on information dissemination, interaction patterns, and the formation of echo chambers. Our comparative study reveals distinct patterns of opinion dynamics in each network type, highlighting the crucial role of network topology in shaping public discourse.
| [1] |
Adamic LA, Glance N. The political blogosphere and the 2004 US election: Divided they blog. Proceedings of the 3rd International Workshop on Link Discovery, 2005, August 21–25, 2005
|
| [2] |
Albert R, Barabási AL. Statistical mechanics of complex networks. Reviews of Modern Physics, 2002, 74(1): 47
|
| [3] |
Allcott H, Gentzkow M. Social media and fake news in the 2016 election. Journal of Economic Perspectives, 2017, 31(2): 211-236
|
| [4] |
Bakshy E, Messing S, Adamic LA. Exposure to ideologically diverse news and opinion on Facebook. Science, 2015, 348(6239): 1130-1132
|
| [5] |
Barabási AL, Albert R. Emergence of scaling in random networks. Science, 1999, 286(5439): 509-512
|
| [6] |
Barberá P, Jost JT, Nagler J, Tucker JA, Bonneau R. Tweeting from left to right: Is online political communication more than an echo chamber?. Psychological Science, 2015, 26(10): 1531-1542
|
| [7] |
Boccaletti S, Latora V, Moreno Y, Chavez M, Hwang DU. Complex networks: Structure and dynamics. Physics Reports, 2006, 424(4–5): 175-308
|
| [8] |
Bommasani R, Hudson DA, Adeli E, Altman R, Arora S, von Arx S, Bernstein MS, Bohg J, Bosselut A, Brunskill E, et al. (2021). On the opportunities and risks of foundation models. arXiv Preprint arXiv:2108.07258.https://arxiv.org/abs/2108.07258.
|
| [9] |
Brown T, Mann B, Ryder N, Subbiah M, Kaplan JD, Dhariwal P, Neelakantan A, Shyam P, Sastry G, Askell A, et al. . Language models are few-shot learners. Advances in Neural Information Processing Systems, 2020, 33: 1877-1901
|
| [10] |
Cau E, Pansanella V, Pedreschi D, Rossetti G (2025). Language-driven opinion dynamics in agent-based simulations with LLMs. arXiv Preprint arXiv:2502.19098. https://arxiv.org/abs/2502.19098.
|
| [11] |
Centola D. The spread of behavior in an online social network experiment. Science, 2010, 329(5996): 1194-1197
|
| [12] |
Chen W, Su Y, Zuo J, Yang C, Yuan C, Chan CM, Yu H, Lu Y, Hung YH, Qian C, et al. (2023). Agentverse: Facilitating multi-agent collaboration and exploring emergent behaviors in agents. arXiv Preprint arXiv:2308.10848.https://arxiv.org/abs/2308.10848.
|
| [13] |
Cheng Y, Zhang C, Zhang Z, Meng X, Hong S, Li W, Wang Z, Wang Z, Yin X, Mao X, et al. (2024). Exploring large language model based intelligent agents: Definitions, methods, and prospects. arXiv Preprint arXiv:2401.03428.https://arxiv.org/abs/2401.03428.
|
| [14] |
Chuang YS, Goyal A, Harlalka N, Suresh S, Hawkins R, Yang S, Shah D, Hu J, Rogers T. Simulating opinion dynamics with networks of LLM-based agents. Findings of the Association for Computational Linguistics: NAACL 2024, 2024, June 16–21, 2024
|
| [15] |
Cinelli M, De Francisci Morales G, Galeazzi A, Quattrociocchi W, Starnini M. The echo chamber effect on social media. Proceedings of the National Academy of Sciences, 2021, 118(9): e2023301118
|
| [16] |
Colleoni E, Rozza A, Arvidsson A. Echo chamber or public sphere? Predicting political orientation and measuring political homophily in Twitter using big data. Journal of Communication, 2014, 64(2): 317-332
|
| [17] |
Conover M, Ratkiewicz J, Francisco M, Gonçalves B, Menczer F, Flammini A. Political polarization on twitter. Proceedings of the International AAAI Conference on Web and Social Media, 2011, July 17–21, 2011
|
| [18] |
DelVicario M, Bessi A, Zollo F, Petroni F, Scala A, Caldarelli G, Stanley HE, Quattrociocchi W. The spreading of misinformation online. Proceedings of the National Academy of Sciences, 2016, 113(3): 554-559
|
| [19] |
Devlin J, Chang MW, Lee K, Toutanova K. BERT: Pre-training of deep bidirectional transformers for language understanding. Proceedings of the 2019 Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies, 2019, June 2–7, 2019
|
| [20] |
Epstein JM. Agent-based computational models and generative social science. Complexity, 1999, 4(5): 41-60
|
| [21] |
Flache A, Mäs M, Feliciani T, Chattoe-Brown E, Deffuant G, Huet S, Lorenz J. Models of social influence: Towards the next frontiers. Journal of Artificial Societies and Social Simulation, 2017, 20(4): 2
|
| [22] |
Gao C, Lan X, Li N, Yuan Y, Ding J, Zhou Z, Xu F, Li Y. Large language models empowered agent-based modeling and simulation: A survey and perspectives. Humanities and Social Sciences Communications, 2024, 11(1): 124
|
| [23] |
Garimella K, De Francisci Morales G, Gionis A, Mathioudakis M. Political discourse on social media: Echo chambers, gatekeepers, and the price of bipartisanship. Proceedings of the 2018 World Wide Web Conference, 2018, 913-922
|
| [24] |
Guess A, Nagler J, Tucker J. Less than you think: Prevalence and predictors of fake news dissemination on Facebook. Science Advances, 2019, 5(1): eaau4586
|
| [25] |
Hamilton WL, Ying R, Leskovec J. Representation learning on graphs: Methods and applications. IEEE Data Engineering Bulletin, 2017, 40(3): 52-74
|
| [26] |
Huang X, Tang X. Research on echo chamber mechanism and neighbor effect. Systems Engineering–Theory & Practice, 2025, 45(7): 2433-2446(In Chinese)
|
| [27] |
Kojima T, Gu SS, Reid M, Matsuo Y, Iwasawa Y. Large language models are zero-shot reasoners. Advances in Neural Information Processing Systems, 2022, 35: 22199-22213
|
| [28] |
Kwak H, Lee C, Park H, Moon S. What is Twitter, a social network or a news media?. Proceedings of the 19th International Conference on World Wide Web (WWW’ 10), 2010, April 26–30, 2010
|
| [29] |
Lazer DMJ, Baum MA, Benkler Y, Berinsky AJ, Greenhill KM, Menczer F, Metzger MJ, Nyhan B, Pennycook G, Rothschild D, et al. . The science of fake news. Science, 2018, 359(6380): 1094-1096
|
| [30] |
Li Y, Xu M, Miao X, Zhou S, Qian T (2023). Prompting large language models for counterfactual generation: An empirical study. arXiv Preprint arXiv:2305.14791.https://arxiv.org/abs/2305.14791.
|
| [31] |
Lorenz J, Rauhut H, Schweitzer F, Helbing D. How social influence can undermine the wisdom of crowd effect. Proceedings of the National Academy of Sciences, 2011, 108(22): 9020-9025
|
| [32] |
Mou X, Wei Z, Huang X. Unveiling the truth and facilitating change: Towards agent-based large-scale social movement simulation. Findings of the Association for Computational Linguistics: ACL 2024, 2024, August 11–16, 2024
|
| [33] |
OpenAI. GPT-4 technical report, 2023,
|
| [34] |
Park JS, O’Brien JC, Cai CJ, Morris MR, Liang P, Bernstein MS. Generative agents: Interactive simulacra of human behavior. Proceedings of the 36th Annual ACM Symposium on User Interface Software and Technology (UIST’ 23), 2023, October 29–November 1, 2023
|
| [35] |
Pennycook G, Rand DG. Fighting misinformation on social media using crowdsourced judgments of news source quality. Proceedings of the National Academy of Sciences, 2019, 116(7): 2521-2526
|
| [36] |
Sobkowicz P. Opinion dynamics model based on cognitive biases of complex agents. Social Informatics: 4th International Conference, 2012, December 5–7, 2012
|
| [37] |
Vaswani A, Shazeer N, Parmar N, Uszkoreit J, Jones L, Gomez AN, Kaiser Ł, Polosukhin I. Attention is all you need. Proceedings of the 31st Annual Conference on Neural Information Processing Systems (NIPS’ 17), 2017, December 4–9, 2017
|
| [38] |
Vezhnevets AS, Agapiou JP, Aharon A, Ziv R, Matyas J, Duéñez-Guzmán EA, Cunningham WA, Osindero S, Karmon D, Leibo JZ (2023). Generative agent-based modeling with actions grounded in physical, social, or digital space using Concordia. arXiv Preprint arXiv:2312.03664.https://arxiv.org/abs/2312.03664.
|
| [39] |
Vosoughi S, Roy D, Aral S. The spread of true and false news online. Science, 2018, 359(6380): 1146-1151
|
| [40] |
Watts DJ, Strogatz SH. Collective dynamics of’ small-world’ networks. Nature, 1998, 393(6684): 440-442
|
| [41] |
Wei J, Wang X, Schuurmans D, Bosma M, Ichter B, Xia F, Chi E, Le QV, Zhou D. Chain-of-thought prompting elicits reasoning in large language models. Proceedings of the 36th International Conference on Neural Information Processing Systems (NIPS’ 22), 2022, November 28-December 9, 2022
|
| [42] |
Yukhymenko H, Staab R, Vero M, Vechev M. A synthetic dataset for personal attribute inference. Proceedings of the 38th International Conference on Neural Information Processing Systems (NIPS’ 24), 2024, December 10–15, 2024
|
RIGHTS & PERMISSIONS
Systems Engineering Society of China and Springer-Verlag GmbH Germany