NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Online Social Behavior Enhanced Detection of Political Stances in Tweets

Xingyu Peng, Zhenkun Zhou, Chong Zhang, Ke XuICWSM 2024

Abstract

Social media platforms like Twitter are primary arenas for political discourse, yet detecting user stances remains challenging due to the brevity and informal nature of tweets. Traditional text-based models often struggle with a lack of context and the "cold start" problem of sparse user profiles. This paper introduces SA-GNN, a Skip Aggregation Graph Neural Network that leverages online social behavior—specifically the relationships between users and the tweets they post or retweet. By modeling these interactions as a bipartite graph and employing a skip aggregation mechanism to incorporate second-order neighbor information, the proposed model achieves a high accuracy of 92.57% on a large-scale 2020 US Presidential Election dataset, significantly outperforming state-of-the-art text-only models like BERT.

Introduction

In the echo chambers of social media, a single tweet often lacks the context needed to determine a user's true political leanings. While a post like "Trump must go!" is explicit, more nuanced or brief commentary often eludes traditional AI models, which struggle with the brevity, slang, and sarcasm prevalent on Twitter. Furthermore, manually annotating millions of tweets to create training data is a significant bottleneck.

Presented at ICWSM 2024, the paper "Online Social Behavior Enhanced Detection of Political Stances in Tweets" proposes a shift in perspective: instead of focusing solely on what is said, models should consider who is interacting with the content. By analyzing social behavior, researchers can uncover latent political stances that text alone cannot reveal.

Methodology: Modeling Social Behavior

The researchers developed the Skip Aggregation Graph Neural Network (SA-GNN) to bridge the context gap. The process begins with the construction of a bipartite graph consisting of two node types: Users and Tweets.

Bipartite graph of users and tweets illustrating the relationship between individuals and the content they share.

In this graph, an edge is formed whenever a user posts or retweets a specific tweet. While tweet nodes can be initialized using text embeddings (such as BERT), user nodes often lack inherent descriptive text. To solve this "feature problem" without relying on potentially private or blank user profiles, the model employs a Skip Aggregation mechanism.

During the update phase, the model "skips" the user node, allowing a tweet node to aggregate information directly from its second-order neighbors—other tweets connected via the same user. This approach is rooted in the intuition that if a user interacts with multiple posts, those posts likely share a similar political orientation. The model is also relation-aware, applying different weights to "posting" versus "retweeting" behaviors to reflect different levels of endorsement.

The SA-GNN Architecture

The technical heart of the model is the SA Layer, which manages the flow of information across the graph. By bypassing the need for explicit user features, the architecture focuses on the relational context provided by the user as a bridge between content pieces.

The SA Layer architecture, showing the skip aggregation mechanism that bypasses user nodes to aggregate information from related tweets.

Experimental Results and Insights

The study utilized a massive dataset from the 2020 US Presidential Election, comprising 138.9 million tweets. To create a labeled ground truth, the authors used a hashtag-based distant supervision approach, identifying over 1.1 million tweets associated with polarized hashtags (e.g., #VoteBidenHarris2020 vs. #Maga2020).

Key findings include:

  • Superior Accuracy: SA-GNN achieved an accuracy of 92.57% and an F1-score of 89.35%, outperforming standard BERT by nearly 2% in accuracy.
  • Robustness on Short Text: While BERT’s performance typically drops on tweets under 32 tokens, SA-GNN remained stable, as the graph structure compensated for the lack of linguistic detail.
  • Optimal Depth: A 3-layer SA-GNN was found to be the most effective. Due to the skip aggregation, this depth allows the model to capture context from six steps away in a standard graph, avoiding the "over-smoothing" issues common in deep neural networks.

Conclusion and Future Directions

SA-GNN demonstrates that behavior is often the best context for understanding social media discourse. By treating users as bridges rather than just data points, the model bypasses ethical and technical hurdles related to profile scraping while achieving state-of-the-art results.

Future work may involve addressing the "inactive user" problem—where a lack of history prevents effective aggregation—and integrating these behavioral insights into Large Language Models (LLMs) to develop more "socially-aware" artificial intelligence.

Paper Citation: Xingyu Peng, Zhenkun Zhou, Chong Zhang, Ke Xu.

  1. Online Social Behavior Enhanced Detection of Political Stances in Tweets. In Proceedings of the Eighteenth International AAAI Conference on Web and Social Media (ICWSM 2024).

Summary updated

BibTeX
@inproceedings{peng2024online,
  author = {Xingyu Peng and Zhenkun Zhou and Chong Zhang and Ke Xu},
  title = {{Online Social Behavior Enhanced Detection of Political Stances in Tweets}},
  booktitle = {ICWSM},
  year = {2024},
  doi = {10.1609/icwsm.v18i1.31383},
}
Figure