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 · DOI

Introduction

Identifying the political leanings of social media users is a foundational task for computational social science, enabling the study of echo chambers, polarization, and the spread of misinformation. However, researchers often select prediction models—ranging from simple followership heuristics to complex deep learning architectures—without a clear understanding of their relative performance. In "Party Prediction for Twitter," researchers from McGill University and the Mila Institute conduct the first comprehensive "head-to-head" evaluation of 38 prediction configurations, revealing that simpler methods often provide the best balance of accuracy and scalability for real-world research.

Methodology and Labeling Pipeline

The study evaluates methods across three primary categories: text-based models (e.g., RoBERTa), graph-based neural networks (GNNs like GCN and GAT), and Label Propagation (LP). A significant challenge in this domain is obtaining high-quality ground truth labels for the general public, who are often less vocal about their affiliations than politicians. The authors developed a multi-stage labeling pipeline that transitions from manual verification to weak labeling via profile classifiers, eventually training robust activity and relation classifiers.

The multi-stage labeling pipeline and initial classification accuracy for the US datasets.

A key technical finding involves the representation of interaction networks. The authors distinguish between Direct graphs (e.g., User A retweets User B) and Projected graphs (e.g., User A and User C both retweet User B). Their results indicate that while GCNs perform optimally on projected graphs, GAT and LP methods are more effective when utilizing direct links.

Datasets

The benchmarking was performed on three diverse datasets, providing a rigorous test of model generalizability across different political systems and user types. The researchers have released a rich new dataset of 14,000 US users to help standardize future testing.

Detailed statistics of the US Public, US Politicians, and CA Public datasets used in the study.
  • US Public: ~14,000 users engaged in the 2020 US election, labeled through a mix of profile keywords and manual verification.
  • US Politicians: A benchmark of ~1,000 accounts of senators and representatives, representing an "easier" classification task.
  • CA Public: A large-scale dataset of ~1.1 million users from the 2021 Canadian election, testing models in a more complex five-party environment.

Key Results and Insights

The Efficiency of Simplicity

One of the most striking findings is the performance of Label Propagation (LP) on retweet data. While the specialized POLITICS RoBERTa model achieved the highest raw accuracy (97.8%), LP followed closely at 97.2%. Crucially, LP completed its inference in approximately one second, whereas the deep learning models required hours of computation. This suggests that for large-scale social science research, the marginal gains of transformer models may not justify their extreme computational costs.

Retweets as the Primary Signal

The research confirms that retweeting behavior is a significantly cleaner indicator of political identity than mentions or likes. Furthermore, models trained on "easy" data (politicians) transferred surprisingly well to the general public, maintaining over 95% accuracy for several methods. This transferability is vital for researchers who lack the resources for extensive manual labeling.

The Challenge of Multi-Party Systems

While binary classification in the US context reached near-perfect accuracy, the Canadian five-party system proved more difficult. Accuracy dropped to approximately 76%, highlighting that multi-party environments remain a significant challenge for current political prediction models.

Conclusion

This work standardizes the evaluation of political party prediction on Twitter and introduces a high-quality dataset for future benchmarking. The results advocate for a pragmatic approach: while high-tech AI models offer peak performance, simple Label Propagation on retweet networks provides a highly accurate, scalable, and efficient alternative for real-world applications.

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