Detecting Political Opinions in Tweets through Bipartite Graph Analysis: A Skip Aggregation Graph Convolution Approach

Xingyu Peng, Zhenkun Zhou, Chong Zhang, Ke XuarXiv 2023 · DOI

Introduction

In the high-stakes arena of the 2020 US Presidential Election, Twitter became a digital battlefield of opinions. For researchers, this represents a goldmine of data—but also a massive technical headache. Accurately categorizing a 280-character message that might be full of sarcasm, slang, or abbreviations is a significant challenge for traditional Natural Language Processing (NLP) models.

A recent study by Xingyu Peng and colleagues proposes a novel solution: shifting focus from the text alone to the social network structure. By treating users and tweets as a connected graph, their "Skip Aggregation" approach leverages hidden signals in social behavior to outperform industry standards like BERT.

The Challenge of Short-Text Sentiment

Analyzing political sentiment on social media is notoriously difficult because tweets are brief, informal, and often lack context. While Graph Neural Networks (GNNs) are adept at capturing social context, they face a "cold start" problem in bipartite graphs (graphs with two types of nodes, such as Users and Tweets).

To run a standard GNN, initial features are required for every node. While a tweet’s features can be initialized using its text, a user node has no inherent text. Assigning users random features or simple averages often introduces noise, diluting the model's ability to learn from the social structure. This paper addresses this by introducing the SA-GNN (Skip Aggregation Graph Neural Network).

Methodology: The SA-GNN Approach

The researchers constructed a user-tweet bipartite graph where edges represent two specific behaviors: posting and retweeting. The core innovation is the Skip Aggregation (SA) layer, which operates on several key principles:

  1. The "Skip": Instead of attempting to characterize the user node directly, the model uses the user as a "bridge" to reach other tweets that user has interacted with (second-order neighbors).
  2. Homophily Assumption: The model relies on the idea that users tend to post or retweet content aligning with their own views. Therefore, a tweet’s "neighbors-of-neighbors" are likely to share its political polarity.
  3. Edge-Awareness: The model differentiates between a "post" and a "retweet," recognizing that these behaviors carry different weights of endorsement.
  4. Random Walk Sampling: To handle the massive scale of the graph, a random-walk strategy selects the most relevant neighboring tweets for each target.

Datasets and Distant Supervision

The authors curated a massive dataset from the 2020 US election, starting with 138.9 million English tweets. To create a labeled set of over 1.1 million tweets without manual labor, they used "distant supervision" by identifying 245 hashtags with clear political polarities.

Word clouds illustrating the polarized hashtags used for distant supervision in the 2020 US Election dataset.

As seen in the visualization above, hashtags like #MAGA2020 and #VoteBlue served as anchors for labeling. If a tweet contained only pro-Biden hashtags, it was labeled pro-Biden, and vice versa. The final graph contained over 1.1 million tweet nodes, 700,000 user nodes, and roughly 2.6 million interaction links.

Key Results and Insights

The SA-GNN was tested against several heavyweights, including BERT and various GNN flavors (GCN, GAT, GraphSAGE). Key findings include:

  • Overall Performance: SA-GNN achieved 92.73% accuracy, outperforming the fine-tuned BERT baseline (90.70%).
  • Short Text Superiority: On tweets with fewer than 32 tokens, BERT’s performance dropped significantly. SA-GNN remained stable, proving that social context compensates for linguistic brevity.
  • Behavior as a Feature: The study confirms that a user’s history is a better proxy for a tweet's meaning than the text alone. If a pro-Trump user retweets a vague sentence, that sentence is likely pro-Trump.
  • Ablation Success: Models that ignored edge types (post vs. retweet) performed worse, confirming that the nature of the social interaction is a critical data point.

Limitations and Future Work

Despite its success, the model faces a "popularity bias." If a tweet is from a brand-new user with no history (a "low-degree node"), the graph signal is weak, and performance degrades. Additionally, the current model requires a pre-constructed graph, making real-time inference on new users difficult.

Future research may involve integrating these behavioral signals directly into the pre-training phase of Large Language Models (LLMs), potentially creating a "Social-BERT" that understands both language and the social context of the speakers.

Summary updated

BibTeX
@misc{peng2023detecting,
  author = {Xingyu Peng and Zhenkun Zhou and Chong Zhang and Ke Xu},
  title = {{Detecting Political Opinions in Tweets through Bipartite Graph Analysis: A Skip Aggregation Graph Convolution Approach}},
  year = {2023},
  eprint = {2304.11367},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2304.11367},
}
Figure