Political stance detection on X during the 2024 U.S. election: a comparative study of classical, neural, and transformer models
Qile Wang, Sahar Ostadrahimi, Safoura Faghri, Mohammad Baksh, Matthew Louis Mauriello, Kenneth E. Barner
University of Delaware
Key points
From the paper's conclusion- Overall, this work provides a controlled comparison of text models for candidate affiliation on a heuristically labeled corpus.
Abstract
Abstract As online social networks (OSNs) play an increasingly influential role in political communication, accurately detecting political stance from noisy, short-form content remains a significant challenge in computational social science (CSS). This paper presents a controlled comparison of text classification models for political stance detection during the 2024 U.S. presidential election, focusing on candidate affiliation toward Donald Trump and Joe Biden–Kamala Harris. Using nearly 100,000 posts from X, we define candidate affiliation as a three-class target variable (Trump, Biden–Kamala, or Neutral) and use topic modeling to support keyword development and thematic characterization. Under a unified preprocessing, labeling, and evaluation pipeline, we compare classical machine learning models, sentence-embedding-based neural architectures, and a domain-adapted transformer. Results suggest that task-aligned text representation accounts for most of the predictive signal in this setting. While fine-tuned BERTweet achieves the strongest in-domain performance, carefully engineered classical models, particularly linear support vector machines, remain highly competitive. Multi-feature and ablation analyses further indicate that expanded metadata did not yield reliable gains beyond strong text representations. Overall, this work provides a controlled comparison of text models for candidate affiliation on a heuristically labeled corpus.
Read the paper
Discussion
Science Skim's AI key points, plus readers' public thoughts
Readers' thoughts
No reader thoughts yet.
Related papers
- A sentiment-based approach to measuring multidimensional party positions using transformerPolitical Science Research and Methods · 2026
- Whose Side Are You On? A Framework and Benchmark for Assessing LLM Political Stances through Politicians Social Media PostsarXiv · 2026
- Geographically aggregated psychological traits from linguistic analysis of Twitter data predict U.S. voter realignment since 20162026
- Context-Aware Political Misinformation Detection Across Claims and News Headlines: Multi-Seed Evaluation, Cross-Dataset Transfer, and Few-Shot AdaptationFuture Internet · 2026
- From Faces to Politics: Vision-Language Models (Sometimes) Link Visual Demographic Characteristics to Ideological LabelsPolitical Analysis · 2026
- Public opinion surveys with large language models: methodological opportunities and validity risksHumanities and Social Sciences Communications · 2026