Unsupervised User Stance Detection on Twitter

Kareem Darwish, Peter Stefanov, Michaël J. Aupetit, Preslav Nakov

TL;DR

Researchers have developed a highly effective unsupervised framework that identifies opposing "camps" on controversial Twitter topics with over 98% purity. By projecting active users into a 2D space based on their retweet behavior and applying clustering, the system replaces hours of manual labeling with a process that takes only minutes.

What Problem Does This Paper Address?

Stance detection—identifying whether a user is "pro" or "anti" regarding a specific topic—is vital for understanding public opinion and political polarization. Traditionally, this requires supervised learning, which comes with three major headaches:

  1. Labor Intensity: Analysts must manually label hundreds of individual users to create a training set, a process taking hours.
  2. Expertise Gap: Labeling requires deep domain knowledge of the specific controversy.
  3. Data Skew: If one side of a debate is much louder than the other, supervised models often struggle to generalize.

The authors sought a way to automatically group users into homogeneous "stance clusters" without needing any prior labels, making the process faster, cheaper, and more robust to imbalanced data.

Methods

The authors propose a multi-stage pipeline that leverages the social phenomenon of homophily (the tendency of like-minded people to associate):

  1. Feature Extraction: They represent users based on their interactions—specifically who they retweet, which hashtags they use, or the text of their tweets.
  2. Similarity Mapping: They compute the cosine similarity between users to see how much their interaction patterns overlap.
  3. Dimensionality Reduction: To combat the "curse of dimensionality," they project users from a high-dimensional feature space into a 2D plane. They tested Force Directed (FD) graphs, t-SNE, and UMAP.
  4. Clustering: Once in 2D, they use Mean Shift or DBSCAN to find dense "cores" of users. Mean Shift proved superior because it automatically estimates the number of clusters (usually 2 or 3 for polarizing topics) and is robust to outliers.
  5. Cluster Labeling: Instead of labeling 500 individual users, a human analyst looks at the top retweeted accounts or hashtags for an entire cluster and assigns a label (e.g., "Pro-Trump" or "Anti-Trump") in seconds.

Datasets

The framework was evaluated across diverse contexts and languages:

  • Labeled "Gold" Datasets: Used for tuning and validation.
  • Kavanaugh (English): 23M tweets regarding the Supreme Court nomination.
  • Trump (English): 4.1M tweets regarding the 2018 US midterms.
  • Erdogan (Turkish): 19.8M tweets regarding the 2018 Turkish elections.
  • Unlabeled Verification Sets: Six additional controversial topics including gun control, illegal immigration, and vaccination to test the "out-of-the-box" performance.

Key Insights and Ideas

  • Retweets are King: The most effective feature for stance detection isn't what users say (text) or the hashtags they use, but who they retweet. Retweeting is a strong signal of endorsement and group identity.
  • 2D is Enough: Projecting data into just two dimensions before clustering actually improved performance. It forces the model to focus on the most significant structures in the data and allows for easy visual verification by humans.
  • Efficiency over Complexity: While t-SNE is a popular visualization tool, the authors found that UMAP and FD were significantly faster and produced better-defined clusters for this specific task.
  • The Valence Score: To help humans label clusters quickly, the authors used a "valence score" to identify the most polarizing retweets and hashtags unique to each cluster, making the "identity" of each group immediately obvious.

Key Results

  • High Purity: The best-performing setup (Retweets + UMAP + Mean Shift) achieved an average cluster purity of over 98%.
  • Speed: The unsupervised approach can process and cluster users in a matter of minutes. Labeling the resulting clusters takes seconds, compared to the 1–2 hours required for traditional manual labeling of individual users.
  • Outperforming Supervised Models: In head-to-head tests, the unsupervised framework achieved higher precision (99.1%) than a supervised SVM classifier (86.0%) trained on 100 manually labeled examples.
  • Robustness: The system remained effective even when the distribution of stances was highly skewed (e.g., 80% pro vs. 20% anti).

Limitations and Future Work

The primary limitation is that this method focuses on prolific users—those who are active enough to have a clear interaction footprint. It may not work as well for "lurkers" or casual users with very few retweets.

For future work, the authors suggest using these high-purity clusters as "seeds" to train larger downstream classifiers or to profile the types of media and websites consumed by different ideological groups. They also aim to apply this to a wider variety of polarizing topics to see how stance dynamics evolve over time.

Summary updated

BibTeX
@inproceedings{darwish2020unsupervised,
  author = {Kareem Darwish and Peter Stefanov and Michaël J. Aupetit and Preslav Nakov},
  title = {{Unsupervised User Stance Detection on Twitter}},
  booktitle = {ICWSM},
  year = {2020},
  url = {https://openreview.net/forum?id=xnWVU-_wOj},
}
Figure