arXiv:2610.13351cs.SIOct 2026

Manuscript Offprint

arXiv:2610.13351

Polarization Dynamics under Algorithmic Recommendations in LLM-based Online Social Networks

Ali Safarpoor Dehkordi, Mohammad Shirzadi, Mehwish Nasim, Ahad N. Zehmakan

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Ali Safarpoor Dehkordi

School of Computing

Australian National University

Canberra, ACT 2601, Australia

Ali.SafarpoorDehkordi@anu.edu.au

Mehwish Nasim

School of Physics, Mathematics and Computing

The University of Western Australia

Perth, WA 6009, Australia

mehwish.nasim@uwa.edu.au

Mohammad Shirzadi

School of Computing

Australian National University

Canberra, ACT 2601, Australia

Mohammad.Shirzadi@anu.edu.au

Ahad N. Zehmakan

School of Computing

Australian National University

Canberra, ACT 2601, Australia

ahadn.zehmakan@anu.edu.au

ABSTRACT

How do recommendation algorithms contribute to the formation of polarized opinions in online social networks? This question has been studied through empirical analyses of real platforms and mathematical models of opinion dynamics. Empirical studies capture user behavior but are often limited by noisy, incomplete, or inaccessible platform data, while mathematical models offer control and interpretability but usually rely on simplified opinion update rules. More recently, large language model (LLM)-based social simulations have provided an alternative for studying recommendation and opinion dynamics through natural-language interactions. However, how different ways of applying recommendations shape opinion dynamics remains underexplored.

In this work, we provide a controlled comparison of two different recommendation mechanisms in an LLM-based online social network simulation. Edge Recommendation (ER) introduces new connections in the network, while Content-Exposure Recommendation (CR) exposes additional users to individual posts without modifying the underlying graph. Our framework represents users as LLM-based agents who interact in natural language while maintaining evolving opinion states. We measure polarization as opinion dispersion, extremization as the average distance of opinions from the neutral midpoint, and reinforcement as interactions that amplify already aligned opinions. Our results show higher mean polarization and extremization across recommendation conditions compared with the no-recommendation baseline, with absolute differences of up to 0.12 in our main experiments.

Keywords LLM-based Agents, Online Social Networks, Opinion Dynamics, Recommendation Algorithms, Polarization

1 Introduction

Online social networks (OSNs) have become central platforms for information exchange, social interaction, and discussion. While they provide access to diverse perspectives and information, their growing role in shaping how users interact and form opinions has also raised concerns about negative social outcomes, such as opinion polarization. Polarization, where users' views increasingly diverge, can reduce trust in public institutions, intensify social divisions, and increase vulnerability to misinformation [1,2][1, 2]. On OSNs, recommendation algorithms are often viewed as an important factor in the formation of opinion polarization [3,4,5][3, 4, 5]. They can operate through different mechanisms, such as suggesting new connections between users or determining which users see particular posts without changing the network structure.

Despite extensive work on polarization, isolating the role of recommendation algorithms remains challenging. Empirical studies provide valuable evidence of real-world behavior but are often constrained by costly data collection and incomplete or inaccessible platform data. Moreover, users' choices, platform design, and network structure are difficult to control or vary independently [6]. Controlled experiments can address some of these limitations, but conducting them on real platforms can increase costs and raise ethical concerns [7].

Mathematical opinion dynamics models provide a controlled way to study how opinions evolve. However, many existing models represent opinions numerically and update them according to predefined interaction rules; see, e.g., [8] for a comprehensive survey. Such abstractions can limit their ability to capture how message content, user traits, and network structure shape opinion change [9, 10]. For example, two posts that express the same numerical stance may be treated identically even if they differ substantially in tone. In Section 5.1, we illustrate these differences: under the considered formulations, the numerical models do not capture the same changes in polarization across network structures as the LLM-based agents, and do not capture differences between neutral and aggressive messages expressing the same stance.

LLM-based agents can generate and interpret natural-language messages, with responses depending on message content, tone, and topic, as well as users' opinions and behavioral attributes. Recent studies have used LLM-based simulation to model opinion dynamics [9, 10]. Related work has also incorporated recommendation algorithms into LLM-based simulations to study their effects on user behavior, interaction, and polarization [11, 12, 13, 14].

We distinguish the recommendation mechanism, which determines how a recommendation is applied, from the recommendation strategy, which determines which users are selected. We consider two mechanisms: Edge Recommendation (ER), which suggests new connections between users, and Content-Exposure Recommendation (CR), which exposes additional users to individual posts without modifying the underlying network. We therefore examine whether ER and CR produce different opinion dynamics when the recommendation strategy is held fixed, considering polarization, extremization, and reinforcement.

We investigate this question through a controlled LLM-based OSN simulation. Experiments across different synthetic network structures show generally higher mean polarization, extremization, and reinforcement under both mechanisms compared with the no-recommendation baseline. The code is available at https://github.com/aSafarpoor/LLMRS-OSN-Simulation.

The remainder of this paper is organized as follows. Section 2 reviews related work. Section 3 introduces the preliminaries and simulation model. Section 4 presents the recommendation strategies and mechanisms. Section 5 reports the experimental setup and results. Finally, Section 6 concludes the paper.

References (42)