Modelling Opinion Dynamics at Scale with Deep MARL
TL;DR
We develop a fast and interpretable framework for studying opinion dynamics with MARL at the scale of real-world social networks (1000 agents). We show that simple incentives, such as accuracy and conformity, can result in non-trivial learned behaviours, and use other-play to remove unrealistic coordination conventions. We extract learned attention weights from our model and demonstrate that highly conforming populations best match agent importance structures found in a real-world Bluesky dataset. On social media networks, highly conforming populations have lower accuracy and more dishonest agents than populations on small hunter-gatherer networks.
Why Opinion Dynamics? Why MARL?
Opinion dynamics is the study of how opinions form, evolve and spread within social populations. Understanding these dynamics has important implications, from predicting collective voting behaviour to tackling the spread of misinformation online.
One of the central challenges in opinion dynamics is understanding how interactions between individuals give rise to complex population-level phenomena, such as consensus formation and polarisation. Traditionally, we study these systems by defining local rules that govern how agents interact and update their opinions, and using simulations to explore the collective behaviours that emerge. However, this approach relies on hand-crafted update rules, requiring us to make explicit assumptions about individual behaviour and potentially limiting the richness of the dynamics we can capture.
Deep multi-agent reinforcement learning (MARL) offers an alternative. Rather than explicitly prescribing how agents should behave, we can specify their incentives with reward functions and allow them to learn their own behavioural strategies through interaction. This opens up opportunities to explore how individual incentives shape collective social phenomena.
Despite this potential, the adoption of deep MARL in opinion dynamics has been limited by the computational challenges of scaling to large populations of learning agents, with prior work using just 10 agents. To address this, we develop a JAX-based framework that enables us to train populations of 1000 agents in approximately 30 minutes on a single A100 GPU.
Our Model
The game is simple. For each episode, there is a binary ground-truth value chosen uniformly from the set . Each agent receives a different noisy private signal of this ground truth and must make a guess, which is observed by all other agents in their neighbourhood. Thus, agents learn to accumulate information from their neighbours throughout an episode. Agent incentives are determined by the following reward function:
where is the accuracy of an agent’s guess and measures the agreement of an agent with its neighbouring guesses. controls the weighting between these two incentives.
Each agent has a GRU for memory and an attention layer to learn which neighbouring guesses they value more than others. They all train independently with PPO, with updates occurring at the end of each 20-step episode.
Let’s see the effect of on the dynamics of a small 100-agent population.
We see that the truth-seeking population manages to find the underlying ground truth, whereas the conforming population finds a convention where all agents agree on their guesses from the very first step. At first glance this seems sensible, but is this really what we want from our model? Imagine that a new fact in the world is debated every day. If ground-truth values of 1 and 0 represent “true” and “false” respectively, our model says that the population agrees to always claim a fact is (true/false) every single time without any discussion. That does not seem very realistic. It would be better if agents could not agree on a prior convention before an episode even starts.
Removing Unrealistic Conventions via Symmetries
Fortunately, we can apply an algorithm known as other-play, which exploits environmental symmetries to prevent exactly the conventions we wish to avoid. We do this by randomly flipping the labels of an agent’s observations and actions relating to the ground truth (i.e. swapping the labels of 0 and 1).
Let’s try to understand the intuition behind this. Imagine an agent tries to form a convention to always output a guess of 0. Since its actions will be relabelled with a 50% chance, its true guess will only be 0 half of the time, meaning it cannot form the convention successfully. However, if it tries to condition its action on its observation, this can still be consistent, since the relabelling of the observations and reverse relabelling of the actions cancel each other out. If an agent now outputs a guess of 0 based on observations that suggest the ground-truth is 0, it can be certain that, even if its observations were relabelled and the ground truth was in fact 1, its action would be relabelled back and its true guess would also be 1.
Another weaker convention
You might have noticed another weaker convention that is not resolved by this algorithm for a fully conforming population, whereby agents learn to always guess in support of or against their private signals. We deal with this in the paper by masking the private signals of the agents.
Let’s take a look at our updated simulations.
It seems like the agents have learned some interesting strategies. Once again, truth-seeking agents have learned to successfully find the correct guess. However, conforming populations often end up in polarised clusters due to the nature of the graph topology.
Interpreting behaviours
To understand some of the differences between the learned policies, we will introduce a centrality measure which we call the perceived importance, given by
where and are the closed incoming and outgoing neighbourhoods of agent , respectively, and is the attention weight from agent to agent .
This measure tells us the average importance of each agent as perceived by their neighbours. If every agent divides their attention equally, all agents will have a PI score of 1. If an agent receives more (less) relative attention from its neighbours, its PI score will be greater than (or less than) 1. Plotting the PI of each agent against its node degree reveals something interesting.

These plots make it clear that the truth-seeking agents have learned to place greater importance on signals coming from agents that bridge multiple clusters, as a way to pass signals through these bottlenecks efficiently. In contrast, conforming populations care more about fast local conformity by weighting the highest-degree nodes with greater importance, as these nodes are easier to coordinate with quickly within local clusters.
Scaling to Larger Networks
Working with toy models is great, but can our model tell us anything about the real world? To answer this, we need an appropriate dataset to test our model on. We chose to create a 1000-user Bluesky network dataset of the machine learning community, with edge weights based on the fraction of posts that each user likes from every other user in the population (a proxy for attention). This way, we can compare the learned edge weights of our model with the real data. Let’s first see what the dynamics for different look like.
As with the 100-agent population, we see a small cluster on the right that can form opposite guesses to the majority for small , but that the agents overcome this at larger .
If we plot the distribution of PI scores against node degree, we find that our model visually matches the real data fairly well for , especially when compared to other heuristic baselines.

We can quantify this with a distance metric defined by the sum over individual Wasserstein distances at each degree slice, .

This plot suggests our model most closely matches the human data for highly conforming populations.
Comparing Accuracy of Different Social Networks

Here we have included results on two additional social networks: the 117th Congress X/Twitter network and a smaller dynamic Hadza hunter-gatherer tribe network. We should be careful when interpreting these results, since additional incentives could be at play, such as the drive for influence in political networks. Nonetheless, it is clear that conformity reduces population accuracy in the two social media networks compared to the small dynamic tribal network, suggesting that conformity traits in humans may be maladaptive in these modern environments.
Dishonest Agents
We can probe the internal beliefs of agents by training a small neural network to predict the ground truth based solely on their hidden states. This tells us whether agents act according to their own belief, or whether they “lie” to agree with their neighbours.

This figure demonstrates how social media platforms can promote the existence of agents that lie to fit in. This is alarming, given that an abundance of such actors could theoretically find one another and form sources of misinformation, particularly with current algorithms often connecting like-minded individuals.
Next Steps
We deliberately chose a simple model to demonstrate how complex behaviours can emerge from just two competing incentives. However, the real world is often much richer than this. For example, influence or monetary incentives could significantly change the emergent dynamics. We hope that future work will build on our framework to explore these in more detail.
Citation
If you use this work, please cite:
@misc{seier2026modelling,
title = {Modelling Opinion Dynamics at Scale with Deep MARL},
author = {Lukas Seier and Brandon Kaplowitz and Sebastian Towers
and Richard Bailey and Jakob Foerster},
year = {2026},
url = {https://arxiv.org/abs/2606.07487}
}