HTIM: Hybrid Text-Interaction Modeling for Broadening Political Leaning Inference in Social Media

Joseba Fernandez de Landa, Arkaitz Zubiaga, Rodrigo AgerriarXiv 2024 · DOI · arXiv

Introduction

Inferring political leaning on social media has traditionally been a "loud person's game." Most existing models rely heavily on interaction data—such as who a user follows or retweets. While this approach is effective for political activists and party members, it often fails for the average user who engages with political content only occasionally. Furthermore, most research simplifies political landscapes into a binary "Liberal vs. Conservative" framework, ignoring the complexity of multi-party systems.

Researchers have developed HTIM (Hybrid Text-Interaction Modeling) to address these gaps. HTIM is a framework designed to identify the political leanings of "quiet" users in diverse, multi-party regional landscapes by combining what users say (text) with who they interact with (retweets).

Methods

HTIM is a fusion framework that integrates three distinct types of data to create a robust user representation:

  1. Interaction Features: The model uses graph-based methods like Relational Embeddings (RE), DeepWalk, and Node2vec to transform a user's retweet network into a mathematical vector.
  2. Tweet-Level Text: Individual tweets are processed using NLP techniques ranging from TF-IDF and Word2vec to advanced Transformer models like mBERT and XLM-RoBERTa.
  3. User-Level Text: To overcome the "short text" limitation of single tweets, the framework averages a user's tweet vectors to create a stable "author profile."
The HTIM framework integrates tweet text and user vectors to create a hybrid representation.

By concatenating these interaction and text vectors, HTIM can leverage network data when available and fall back on linguistic "anchor terms" (specific political keywords) when a user's social graph is sparse.

Datasets and Engagement Levels

The study focuses on the United Kingdom, specifically three regions with distinct multi-party systems: Scotland (SCT), Wales (WAL), and Northern Ireland (NIR). To test the model's robustness, the authors categorized users into three levels of engagement:

  • Members: Officially affiliated or highly active users.
  • Supporters: Users who follow five or more members of a specific party.
  • Sympathizers: The most challenging group to classify—users who follow two or fewer members per party.
Statistics for the tiered dataset across Scotland, Wales, and Northern Ireland.

This tiered approach provides a benchmark for how inference models degrade as user activity decreases, highlighting the difficulty of classifying the "Sympathizer" group.

Key Insights

  • The "Quiet" User Solution: While interaction-based models are highly effective for party members, their performance drops significantly for sympathizers. Adding text features (specifically TF-IDF) acts as a stabilizer, providing context that network connections lack.
  • TF-IDF vs. Transformers: Interestingly, the "old school" TF-IDF often outperformed sophisticated Transformers in the hybrid model. This suggests that specific "anchor terms"—such as local politician names or policy jargon—are more predictive for political leaning than general semantic understanding.
  • Ideological Blurring: The model faced challenges with parties sharing similar goals, such as the SNP and the Scottish Greens in Scotland. This indicates that political leaning is often defined by shared ideological confluences rather than just party labels.

Results and Performance

The HTIM approach, specifically the combination of RE + tfidf, achieved the best overall results with a macro-F1 score of 84.9 across all datasets.

For the most difficult "Sympathizer" group in Northern Ireland, adding text to the interaction model boosted the F1 macro score by over 15 points. While standalone text models were mediocre and standalone interaction models were volatile, the hybrid HTIM remained robust across all regions and engagement levels, proving that multi-modal data is essential for broadening the scope of political inference.

Summary updated

Abstract

Political leaning can be defined as the inclination of an individual towards certain political orientations that align with their personal beliefs. Political leaning inference has traditionally been framed as a binary classification problem, namely, to distinguish between left vs. right or conservative vs liberal. Furthermore, although some recent work considers political leaning inference in a multi-party multi-region framework, their study is limited to the application of social interaction data. In order to address these shortcomings, in this study we propose Hybrid Text-Interaction Modeling (HTIM), a framework that enables hybrid modeling fusioning text and interactions from Social Media to accurately identify the political leaning of users in a multi-party multi-region framework. Access to textual and interaction-based data not only allows us to compare these data sources but also avoids reliance on specific data types. We show that, while state-of-the-art text-based representations on their own are not able to improve over interaction-based representations, a combination of text-based and interaction-based modeling using HTIM considerably improves the performance across the three regions, an improvement that is more prominent when we focus on the most challenging cases involving users who are less engaged in politics.
BibTeX
@misc{landa2024htim,
  author = {Joseba Fernandez de Landa and Arkaitz Zubiaga and Rodrigo Agerri},
  title = {{HTIM: Hybrid Text-Interaction Modeling for Broadening Political Leaning Inference in Social Media}},
  year = {2024},
  eprint = {2406.08201},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2406.08201},
}
Figure