# Learning Opinion Dynamics From Social Traces

arXiv: https://arxiv.org/abs/2006.01673 · HTML: https://mlsanity.com/paper/2006.01673/

## Key facts

- Cited by 15 papers in the map (data through 14 Oct 2026).
- First posted on arXiv 2 Jun 2020.

## Built on by (most cited first, 15 of 15)

- [Y Social: an LLM-powered Social Media Digital Twin](https://mlsanity.com/paper/2408.00818/) (2024)
- [On learning agent-based models from data](https://mlsanity.com/paper/2205.05052/) (2022)
- [Cascade-based Echo Chamber Detection](https://mlsanity.com/paper/2208.04620/) (2022)
- [Learning Ideological Embeddings from Information Cascades](https://mlsanity.com/paper/2109.13589/) (2021)
- [Predicting Opinion Dynamics via Sociologically-Informed Neural Networks](https://mlsanity.com/paper/2207.03990/) (2022)
- [Learning Individual Behavior in Agent-Based Models with Graph Diffusion Networks](https://mlsanity.com/paper/2505.21426/) (2025)
- [Investigating User Radicalization: A Novel Dataset for Identifying Fine-Grained Temporal Shifts in Opinion](https://mlsanity.com/paper/2204.10190/) (2022)
- [Variational Inference of Parameters in Opinion Dynamics Models](https://mlsanity.com/paper/2403.05358/) (2024)
- [Learning effective models from network dynamics data with multiple initial conditions using weak form SINDy](https://mlsanity.com/paper/2605.30432/) (2026)
- [Context-Aware Sentiment Forecasting via LLM-based Multi-Perspective Role-Playing Agents](https://mlsanity.com/paper/2505.24331/) (2025)
- [Bias and Identifiability in the Bounded Confidence Model](https://mlsanity.com/paper/2506.11751/) (2025)
- [Debiasing International Attitudes: LLM Agents for Simulating US-China Perception Changes](https://mlsanity.com/paper/2508.08837/) (2025)
- [Machines & Influence: An Information Systems Lens](https://mlsanity.com/paper/2111.13365/) (2021)
- [H-NeiFi: Non-Invasive and Consensus-Efficient Multi-Agent Opinion Guidance](https://mlsanity.com/paper/2507.13370/) (2025)
- [Comparing Data Assimilation and Likelihood-Based Inference on Latent State Estimation in Agent-Based Models](https://mlsanity.com/paper/2509.17625/) (2025)

## Abstract (arXiv)

Opinion dynamics - the research field dealing with how people's opinions form and evolve in a social context - traditionally uses agent-based models to validate the implications of sociological theories. These models encode the causal mechanism that drives the opinion formation process, and have the advantage of being easy to interpret. However, as they do not exploit the availability of data, their predictive power is limited. Moreover, parameter calibration and model selection are manual and difficult tasks. In this work we propose an inference mechanism for fitting a generative, agent-like model of opinion dynamics to real-world social traces. Given a set of observables (e.g., actions and interactions between agents), our model can recover the most-likely latent opinion trajectories that are compatible with the assumptions about the process dynamics. This type of model retains the benefits of agent-based ones (i.e., causal interpretation), while adding the ability to perform model selection and hypothesis testing on real data. We showcase our proposal by translating a classical agent-based model of opinion dynamics into its generative counterpart. We then design an inference algorithm based on online expectation maximization to learn the latent parameters of the model. Such algorithm can recover the latent opinion trajectories from traces generated by the classical agent-based model. In addition, it can identify the most likely set of macro parameters used to generate a data trace, thus allowing testing of sociological hypotheses. Finally, we apply our model to real-world data from Reddit to explore the long-standing question about the impact of backfire effect. Our results suggest a low prominence of the effect in Reddit's political conversation.
