Abstract
Understanding the evolution of public opinion on social media is a complex challenge due to the discrepancy between expressed posts and underlying beliefs, as well as the limitations of rigid classical sociological models. This paper introduces the Latent Social Dynamical-System (LSDS), a framework that integrates Graph Neural Networks (GNNs) with Neural Ordinary Differential Equations (ODEs). By treating opinion shifts as a continuous-time process, LSDS models how hidden opinions evolve within a social network. Evaluated on a novel dataset of US political Twitter accounts (T20D-PolA), the framework demonstrates superior performance in predicting future interactions and political leanings compared to traditional baselines.
Introduction
Social media platforms like Twitter provide a real-time window into public discourse, yet extracting meaningful insights remains difficult. Two primary hurdles exist: the Expression Gap, where a user's public posts may not fully reflect their latent beliefs, and Rigid Modeling, where classical models like DeGroot or Friedkin–Johnsen rely on mathematical assumptions that fail to capture the complexity of human interaction. The LSDS framework addresses these by learning the rules of social influence directly from raw text and interaction data, bridging the gap between sociological theory and deep learning.
Methods
The LSDS architecture consists of three primary components designed to capture the spatiotemporal nature of social media data.
- Time-Dependent Encoder: This component processes a user’s history of posts using Sentence-BERT embeddings. A spatiotemporal GNN maps these into a "latent opinion" space, accounting for both the timing of activity and the influence of the user's social neighborhood.
- GraphODE Solver: Unlike models that predict in discrete steps, LSDS utilizes a Neural ODE solver. It treats opinion evolution as a continuous flow governed by a GNN-based derivative function, allowing for state prediction at any arbitrary point in time.
- Time-Dependent Decoder: The quality of the latent representations is validated through downstream tasks, such as predicting future retweets or identifying political polarity (liberal vs. conservative).
Datasets and Results
The framework was evaluated using the T20D-PolA dataset, which tracks 800 US accounts (politicians and non-politicians) throughout 2020. This dataset includes time-stamped tweets and dynamic interaction edges (mentions, retweets, likes).
LSDS consistently outperformed baseline models:
- Interaction Prediction: The model achieved a ROC-AUC of 0.9119 and a PR-AUC of 0.8997, significantly surpassing standard GCN encoders and classical models.
- Polarity Prediction: The latent states effectively recovered real-world political ideologies, confirming that the learned "hidden" opinions are substantively meaningful.
- Ablation Studies: Results showed that the latent bottleneck is essential; models attempting to predict future text embeddings directly (without a latent state) performed poorly.
Discussion
A key insight from this research is the importance of the initial state; the choice of encoder matters more than the specific ODE update rule. Furthermore, the data highlights significant ideological inertia, where political opinions on Twitter remain remarkably stable over time. By using Neural ODEs, the framework naturally handles the irregular sampling inherent in social media data, filling gaps between sporadic user activity.
Future work will explore adaptive networks, where the social graph itself evolves as users change their connections based on shifting opinions. Additionally, integrating "offline" factors such as news consumption and local events could further enhance the model's predictive power. While LSDS offers a powerful tool for social analysis, the authors stress the ethical importance of handling individual belief predictions with care to prevent bias or misuse.
Summary updated