LLMs for Social Network Analysis: Mapping Relationships from Unstructured Survey Response
Source abstract
Abstract
This paper explores the emerging potential of large language models (LLMs) and generative AI for social network analysis (SNA) based on open-ended survey data as a source. We introduce a novel methodology, Survey-to-Multilayer Network (SURVEY2MLN), which systematically transforms qualitative survey responses into structured multilayer social networks. The proposed approach integrates prompt engineering with LLM-based text interpretation to extract entities and infer relationships, formalizing them as distinct network layers representing research similarity, communication, and organizational affiliation. The SURVEY2MLN methodology is defined through six phases, including data preprocessing, prompt-based extraction, network construction, integration, analysis, and validation. We demonstrate its application through a real-world case study within an academic department, where prompt engineering was used to extract and model relational data from narrative responses. The resulting multilayer network reveals both explicit and latent social structures that are not accessible through conventional survey techniques. Our results show that LLMs can serve as effective tools for deriving sociograms from free-form text and highlight the potential of AI-driven methods to advance SNA into new, text-rich domains of inquiry.
Source: crossref · Quality: baseline
Research context
OpenAlex topics: Computational and Text Analysis Methods · Social Power and Status Dynamics · Qualitative Research Methods and Applications
SciVX discovery tags are terminology-based. OpenAlex topics are source-provided classifications.
Affiliations
Faculty for Informatics and Digital Technologies, University of Rijeka, 51000 Rijeka, Croatia
Center for Artificial Intelligence and Cybersecurity, University of Rijeka, 51000 Rijeka, Croatia
Peoplet Ltd., 52000 Lindar, Croatia
Funding
European Union via Croatian Ministry of Education - Funded by the European Union – NextGeneration EU
References (42)
Show source-provided references
1. Social Network Analysis: An Overview10.1002/widm.1256 ↗
2. The Complex Network Patterns of Human Migration at Different Geographical Scales: Network Science Meets Regression Analysis10.1007/s41109-024-00635-1 ↗
3. Social Network Analysis of COVID-19 Public Discourse on Twitter: Implications for Risk Communication10.1017/dmp.2020.347 ↗
4. Foreign Capital and Economic Growth: A Social Network Analysis, 2001–201710.1177/07311214211035150 ↗
5. Multiple Features Based Approach for Automatic Fake News Detection on Social Networks Using Deep Learning10.1016/j.asoc.2020.106983 ↗
6. Bommasani, R., Hudson, D.A., Adeli, E., Altman, R., Arora, S., von Arx, S., Bernstein, M.S., Bohg, J., Bosselut, A., and Brunskill, E. (2021). On the Opportunities and Risks of Foundation Models. arXiv.
7. Foundation Models: A New Paradigm for Artificial Intelligence10.1007/s12599-024-00851-0 ↗
8. Devlin, J., Chang, M.W., Lee, K., and Toutanova, K. (2019, January 2–7). 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, Minneapolis, MN, USA.
9. Language Models Are Few-Shot Learners
10. Graph Machine Learning in the Era of Large Language Models (LLMs)
11. A Survey on Evaluation of Large Language Models10.1145/3641289 ↗
12. A Survey of Named Entity Recognition and Classification10.1075/li.30.1.03nad ↗
13. A Survey on Deep Learning for Named Entity Recognition10.1109/TKDE.2020.2981314 ↗
14. Chang, S., Chaszczewicz, A., Wang, E., Josifovska, M., Pierson, E., and Leskovec, J. (2025, January 23–26). LLMs Generate Structurally Realistic Social Networks but Overestimate Political Homophily. Proceedings of the International AAAI Conference on Web and Social Media, Copenhagen, Denmark.10.1609/icwsm.v19i1.35820 ↗
15. Do AIs Know What the Most Important Issue Is? Using Language Models to Code Open-Text Social Survey Responses at Scale10.1177/20531680241231468 ↗
16. Meštrović, A., Beliga, S., and Pitoski, D. (2025, January 2–6). Peoplet: Exploring Organizational Structures through Social Network Analysis. Proceedings of the 48th ICT and Electronics Convention MIPRO, Opatija, Croatia.10.1109/MIPRO65660.2025.11132083 ↗
17. Deleris, L., Bonin, F., Daly, E., Deparis, S., Hou, Y., Jochim, C., Lassoued, Y., and Levacher, K. (2018, January 1–6). Know Who Your Friends Are: Understanding Social Connections from Unstructured Text. Proceedings of the Conference of the North American Chapter of the Association for Computational Linguistics: Demonstrations, New Orleans, LA, USA.10.18653/v1/N18-5016 ↗
18. Network Analysis of the Viking Age in Ireland as Portrayed in Cogadh Gaedhel re Gallaibh10.1098/rsos.171024 ↗
19. Wei, J., Tay, Y., Bommasani, R., Raffel, C., Zoph, B., Borgeaud, S., Yogatama, D., Bosma, M., Zhou, D., and Metzler, D. (2022). Emergent Abilities of Large Language Models. arXiv.
20. Dehal, R.S., Sharma, M., and Rajabi, E. (2025). Knowledge Graphs and Their Reciprocal Relationship with Large Language Models. Mach. Learn. Knowl. Extr., 7.10.3390/make7020038 ↗
21. Ananya, A., Tiwari, S., Mihindukulasooriya, N., Soru, T., Xu, Z., and Moussallem, D. (2024, January 26–30). Towards Harnessing Large Language Models as Autonomous Agents for Semantic Triple Extraction from Unstructured Text. Proceedings of the Extended Semantic Web Conference, Hersonissos, Greece.
22. Inferring Social Networks from Unstructured Text Data: A Proof of Concept Detection of Hidden Communities of Interest10.1017/dap.2023.48 ↗
23. Ren, X., Tang, J., Yin, D., Chawla, N., and Huang, C. (2024, January 25–29). A Survey of Large Language Models for Graphs. Proceedings of the 30th ACM SIGKDD Conference on Knowledge Discovery and Data Mining, Barcelona, Spain.10.1145/3637528.3671460 ↗
24. Multilayer Networks10.1093/comnet/cnu016 ↗
25. The Structure and Dynamics of Multilayer Networks10.1016/j.physrep.2014.07.001 ↗
26. Bianconi, G. (2018). Multilayer Networks: Structure and Function, Oxford University Press.10.1093/oso/9780198753919.001.0001 ↗
27. Multilayer Networks in a Nutshell10.1146/annurev-conmatphys-031218-013259 ↗
28. More Is Different in Real-World Multilayer Networks10.1038/s41567-023-02132-1 ↗
29. Meštrović, A., Petrović, M., and Beliga, S. (2022). Retweet Prediction Based on Heterogeneous Data Sources: The Combination of Text and Multilayer Network Features. Appl. Sci., 12.10.20944/preprints202210.0086.v1 ↗
30. Multilayer Networks: Aspects, Implementations, and Application in Biomedicine10.1186/s41044-020-00046-0 ↗
31. Lv, Y., Huang, S., Zhang, T., and Gao, B. (2021). Application of Multilayer Network Models in Bioinformatics. Front. Genet., 12.10.3389/fgene.2021.664860 ↗
32. (2025, March 04). GPT-4.5 API Documentation. Available online: https://platform.openai.com/docs.
33. Newman, M.E.J. (2010). Networks: An Introduction, Oxford University Press.10.1093/acprof:oso/9780199206650.003.0001 ↗
34. Finding Community Structure in Very Large Networks10.1103/PhysRevE.70.066111 ↗
35. Fast Algorithm for Detecting Community Structure in Networks10.1103/PhysRevE.69.066133 ↗
36. Community Detection in Graphs10.1016/j.physrep.2009.11.002 ↗
37. Objective Criteria for the Evaluation of Clustering Methods10.1080/01621459.1971.10482356 ↗
38. Comparing Partitions10.1007/BF01908075 ↗
39. Friends and Neighbors on the Web10.1016/S0378-8733(03)00009-1 ↗
40. Davis, J., and Goadrich, M. (2006, January 25–29). The Relationship Between Precision-Recall and ROC Curves. Proceedings of the 23rd International Conference on Machine Learning (ICML), Pittsburgh, PA, USA.10.1145/1143844.1143874 ↗
41. QAP Partialling as a Test of Spuriousness10.1016/0378-8733(87)90012-8 ↗
42. Sensitivity of MRQAP Tests to Collinearity and Autocorrelation Conditions10.1007/s11336-007-9016-1 ↗