Automatic Keyword Extraction on Twitter

Luís Marujo, Wang Ling, Isabel Trancoso, Chris Dyer, Alan W. Black, Anatole Gershman, David Martins de Matos, João Paulo da Silva Neto, Jaime G. CarbonellACL 2015

Introduction

Automatic keyword extraction is a foundational task for NLP applications like text summarization and information retrieval. While systems like MAUI and KEA perform well on formal text (e.g., news articles), they struggle with the "Wild West" of Twitter. This paper introduces a new gold-standard dataset for keyword extraction on Twitter and proposes a supervised system that significantly outperforms traditional methods by leveraging unsupervised features and dynamic keyword selection.

Challenges in the Twitter Domain

The authors identify three primary challenges unique to microblogs:

  1. Extreme Brevity: With a 140-character limit (at the time of the study), there is very little context to work with.
  2. Lexical Noise: Twitter is rife with slang, abbreviations, and orthographical variants (e.g., "cats" vs. "catz" vs. "caaaats").
  3. Cardinality Variance: Unlike long news articles where a fixed number of keywords (e.g., 5-10) is standard, the "correct" number of keywords in a tweet varies wildly, from zero to half the message.

Methodology

The researchers built their system on top of the MAUI toolkit, a supervised framework using decision trees. They introduced two major innovations to adapt it for the Twitter environment.

Unsupervised Feature Expansion

To handle lexical variants without needing massive amounts of labeled data, they used two unsupervised techniques trained on a massive auxiliary corpus of 52 million tweets:

  • Brown Clustering: A hierarchical clustering method that groups words based on their context (e.g., grouping "yep" and "yesss" together).
  • Continuous Word Vectors: Using a structured skip-gram model to represent words as dense vectors, allowing the model to recognize that "John" and "Jooohn" share semantic space.

Keyword Length Prediction

Instead of extracting a fixed number of keywords ($k$), they trained a linear regression model to predict how many keywords a specific tweet should have. Features for this regressor included the total word count, the number of hashtags/mentions, the count of function words, and cluster-based features.

Datasets

  • Twitter Keyword Dataset (New): The authors created a manually annotated corpus of 1,827 tweets (originally from the Gimpel et al. 2011 POS-tagging dataset).
  • Annotation Process: They used Amazon Mechanical Turk, employing 11 annotators per tweet. A word was only accepted as a keyword if at least three annotators agreed on it.
  • Auxiliary Data: A collection of 52 million unlabeled tweets was used to calculate IDF values and train the Brown clusters and word vectors.

Results and Discussion

The performance was evaluated using the F1-measure. Initial experiments demonstrated that traditional TF-IDF is largely ineffective for tweets because most words appear only once, providing a noisy signal.

Performance comparison of various systems on the Twitter Keyword Dataset, showing the impact of unsupervised features.

As shown in the table above, the addition of unsupervised features—particularly Brown clusters—provided a massive boost over the default MAUI configuration. While MAUI (Default) achieved an F1-score of 53.56%, the inclusion of Brown clusters and word vectors (Row 6) pushed the performance to 73.57% on the test set. Interestingly, training the system on news data and testing on Twitter resulted in a performance drop (F1 of 51.79%), highlighting the severe domain mismatch.

The final performance gain came from addressing the issue of cardinality variance. By moving from a fixed number of keywords to a dynamic, regression-based prediction, the authors further refined the system's accuracy.

Comparison of keyword selection strategies, highlighting the superiority of the regression-based approach.

The regression-based approach ($y+k$) yielded the best overall results, reaching an F1-score of 76.81% (Row 3). This confirms that the "density" of information in tweets varies significantly and that predicting the appropriate number of keywords is crucial for high-performance extraction.

Conclusion

By leveraging large-scale unsupervised learning and dynamic cardinality prediction, the authors achieved a substantial jump in F1-score from 53.5% to 76.8%. This work highlights the importance of domain-specific adaptation and the power of unsupervised features in bridging the gap between formal and informal text. Future work may involve integrating this high-accuracy extractor into full Twitter summarization pipelines.

Summary updated

BibTeX
@inproceedings{marujo2015automatic,
  author = {Luís Marujo and Wang Ling and Isabel Trancoso and Chris Dyer and Alan W. Black and Anatole Gershman and David Martins de Matos and João Paulo da Silva Neto and Jaime G. Carbonell},
  title = {{Automatic Keyword Extraction on Twitter}},
  booktitle = {Annual Meeting of the Association for Computational Linguistics},
  year = {2015},
  doi = {10.3115/v1/p15-2105},
}
Figure