Party Prediction for Twitter

Kellin Pelrine, Anne Imouza, Zachary Yang, Jacob-Junqi Tian, Sacha Lévy, Gabrielle Desrosiers-Brisebois, Aarash Feizi, Cécile Amadoro, André Blais, Jean-François Godbout, Reihaneh Rabbany

Abstract

Computational social science increasingly relies on automated tools to infer user attributes, such as political affiliation, to study polarization and misinformation. This paper presents a comprehensive evaluation of various prediction models, ranging from complex deep learning architectures to simple graph-based algorithms. We demonstrate that small variations in prediction accuracy can lead to significant distortions in downstream sociological findings. Furthermore, we show that Label Propagation on retweet networks provides a state-of-the-art balance of accuracy, speed, and data accessibility.

Introduction: The Challenge of Political Classification

Identifying the political leaning of social media users is a foundational task for researchers studying digital discourse. While numerous methods exist—relying on tweet text, social ties, or interaction patterns—there is little consensus on which approach is optimal. This study addresses two critical gaps: the "downstream ripple effect" of prediction errors on social science conclusions and the efficiency gap between complex state-of-the-art (SOTA) models and simpler alternatives.

The Downstream Ripple Effect

A primary contribution of this work is the "reality check" on how prediction accuracy impacts research outcomes. Researchers often treat model predictions as ground truth, but even a small drop in accuracy can drastically alter findings. For instance, network modularity—a standard metric for measuring group polarization—is highly sensitive to classification errors.

The relationship between prediction accuracy and measured network modularity.

As shown in the figure above, a decrease in accuracy from near-perfect levels to approximately 70% results in a twofold drop in measured modularity. This suggests that conclusions about how "polarized" a community is may be artifacts of the chosen model's performance rather than true sociological phenomena.

Methodology and Data

The researchers compared several classes of models across three datasets: US Public (general users), US Politicians (members of Congress), and a multi-party Canadian dataset. The models included:

  • Graph-Based Models: Graph Convolutional Networks (GCN), Graph Attention Networks (GAT), and Heterogeneous Graph Attention Networks (HAN).
  • Text-Based Models: Fine-tuned RoBERTa and its specialized variant, POLITICS.
  • Label Propagation (LP): A non-neural method that iteratively assigns labels based on network neighbors.

The study evaluated various "signals," including retweets, mentions, quotes, hashtags, and followership.

Key Results: Efficiency vs. Complexity

The experimental results reveal that complexity does not always equate to superior performance. Label Propagation on retweet networks achieved ~97% accuracy, rivaling the most advanced transformer-based models.

Performance comparison of various classification methods across different signal types.

Beyond accuracy, the practical advantages of simpler methods are stark. Label Propagation completed its task in roughly one second, whereas fine-tuning the POLITICS model required over six hours. Additionally, collecting retweet data is significantly faster than scraping follower lists, which is often throttled by API rate limits.

Conclusion

For researchers in computational social science, the choice of algorithm is a consequential decision. While deep learning models offer high performance, the speed and accessibility of Label Propagation on retweet networks make it the most viable "first-line" tool. However, challenges remain in multi-party systems and for "lurker" populations who provide fewer interaction signals. Ensuring high accuracy is not just a technical goal but a prerequisite for valid sociological inference.

Summary updated

BibTeX
@inproceedings{pelrine2024party,
  author = {Kellin Pelrine and Anne Imouza and Zachary Yang and Jacob-Junqi Tian and Sacha Lévy and Gabrielle Desrosiers-Brisebois and Aarash Feizi and Cécile Amadoro and André Blais and Jean-François Godbout and Reihaneh Rabbany},
  title = {{Party Prediction for Twitter}},
  booktitle = {ICWSM},
  year = {2024},
  doi = {10.1609/icwsm.v18i1.31381},
}
Figure