Bridging social media via distant supervision

Walid Magdy, Hassan Sajjad, Tarek El-Ganainy, Fabrizio Sebastiani

TL;DR

Training machine learning models to classify tweets by topic usually requires expensive, manually labeled datasets. This paper bypasses that bottleneck using distant supervision: by collecting tweets that link to YouTube videos and assigning the YouTube video's category to the tweet, the authors generate a massive, free training dataset. A classifier trained on this noisy but vast "silver" dataset significantly outperforms models trained on smaller, manually annotated "gold" datasets.

What Problem Does This Paper Address?

Classifying microblogs (like tweets) into general-purpose topics (e.g., Sports, Politics, Entertainment) is highly valuable for market research, social analysis, and content filtering. However, standard supervised learning requires thousands of manually annotated examples.

Labeling tweets is tedious, expensive, and difficult to scale across many classes—especially for rare topics. Furthermore, Twitter is a highly dynamic environment; a model trained on manual labels from January might suffer from "concept drift" and fail by August because the vocabulary and trending topics have changed. The authors tackle the challenge of acquiring massive amounts of training data for general-purpose tweet classification without spending a dime on manual annotation.

Methods

The core innovation is a cross-platform distant supervision pipeline.

  1. Data Acquisition: The authors stream tweets containing YouTube links.
  2. Label Transfer: They query the YouTube API to find the official category of the linked video (YouTube requires uploaders to choose from 18 predefined classes). They assume the tweet discusses the same topic as the video and assign the video's class to the tweet.
  3. Preprocessing: They merge/drop a few ambiguous YouTube classes to settle on 14 distinct categories. They strictly filter out retweets and duplicate text to prevent model bias.
  4. Feature Engineering & Selection: They use a standard Bag-of-Words (BOW) approach. They also experiment with text enrichment (e.g., duplicating hashtags to give them more weight, or appending the YouTube video title). They use Information Gain (IG) to select the top 10,000 terms per class.
  5. Modeling: They train a Support Vector Machine (SVM) with a linear kernel on this massive dataset.

Datasets

The authors utilized and created several datasets, introducing a new benchmark for the community:

  • Silver Training Set ($train_S$): ~913,000 automatically labeled tweets, balanced across 14 classes.
  • Silver Test Set ($test_S$): 14,000 automatically labeled tweets (1,000 per class).
  • Gold Test Set ($test_G$) [NEW BENCHMARK]: 1,617 manually labeled tweets. These do not necessarily contain YouTube links. They were crowdsourced and verified by at least three annotators.
  • Time-shifted Gold Test Set ($test_{G2}$): 1,511 manually labeled tweets collected 8 months later to test for concept drift.
  • Arabic Silver Dataset: ~482k training and 14k test tweets in Arabic, used to prove the method's language independence.

Key Insights and Ideas

  • Quantity beats quality (to a point): Automatically derived labels are inherently noisier than manual labels. However, the sheer volume of data you can collect for free via distant supervision more than makes up for the noise.
  • Cross-platform metadata is a goldmine: Using the structured metadata of one platform (YouTube categories) to solve an unstructured text problem on another platform (Twitter) is a highly effective, scalable hack.
  • Immunity to Concept Drift: Because the distant supervision model is trained on nearly a million tweets, it captures a much wider, more generalized vocabulary. This makes it far more robust to the passage of time compared to a manually trained model, which tends to overfit to the specific trends happening the week the data was labeled.
  • Language Agnosticism: The pipeline requires zero language-specific NLP parsing to get its labels. If a tweet links to a YouTube video, the label transfers. This makes it trivially easy to spin up classifiers for resource-poor languages.

Key Results

  • Overall Performance: On the manually labeled Gold test set, the model trained via distant supervision achieved an Accuracy of 61.1% and an F1 score of 0.579. The model trained on manual labels only achieved an Accuracy of 54.6% and an F1 of 0.537.
  • The Data Threshold: The authors found that the distant supervision model overtakes the manually trained model once it is fed roughly 50,000 training examples—an amount of data that can be scraped from Twitter in a single day.
  • Beating Concept Drift: When tested on tweets collected 8 months later, the distant supervision model maintained its accuracy (61.1%). The manually trained model's accuracy plummeted from 54.6% to 46.5%.
  • Cross-Lingual Success: When applied to Arabic tweets, the distant supervision model achieved an impressive 64.6% accuracy, proving the method works exceptionally well outside of English.

Limitations and Future Work

  • Single-Label Constraint: The current model forces tweets into a single category. The authors note that tweets are multifaceted (e.g., a tweet about a stolen scooter could be both "Autos & Vehicles" and "News & Politics"). Future work should explore multi-label classification.
  • Data Noise: Because the training data is collected automatically, it contains noise (e.g., a user posting a music video but tweeting about their breakfast). Advanced data cleaning and pruning could improve performance further.
  • Transfer Learning: The authors suggest using these automatically labeled topic datasets as a base for other tasks, like sentiment analysis (e.g., tweets in the "Comedy" or "Entertainment" classes are strong priors for positive emotion).

Summary updated

Abstract

Microblog classification has received a lot of attention in recent years. Different classification tasks have been investigated, most of them focusing on classifying microblogs into a small number of classes (five or less) using a training set of manually annotated tweets. Unfortunately, labelling data is tedious and expensive, and finding tweets that cover all the classes of interest is not always straightforward, especially when some of the classes do not frequently arise in practice. In this paper, we study an approach to tweet classification based on distant supervision, whereby we automatically transfer labels from one social medium to another for a single-label multi-class classification task. In particular, we apply YouTube video classes to tweets linking to these videos. This provides for free a virtually unlimited number of labelled instances that can be used as training data. The classification experiments we have run show that training a tweet classifier via these automatically labelled data achieves substantially better performance than training the same classifier with a limited amount of manually labelled data; this is advantageous, given that the automatically labelled data come at no cost. Further investigation of our approach shows its robustness when applied with different numbers of classes and across different languages.
BibTeX
@inproceedings{magdy2015bridging,
  author = {Walid Magdy and Hassan Sajjad and Tarek El-Ganainy and Fabrizio Sebastiani},
  title = {{Bridging social media via distant supervision}},
  booktitle = {Soc. Netw. Anal. Min},
  year = {2015},
  url = {https://openreview.net/forum?id=6nP8S6MQHx},
}

Loading related content...

Figure