Abstract
Hashtag annotation for microblog posts has been recently formulated as a sequence generation problem to handle emerging hashtags that are unseen in the training set. The state-of-the-art method leverages conversations initiated by posts to enrich contextual information for the short posts. However, it is unrealistic to assume the existence of conversations before the hashtag annotation itself. Therefore, we propose to leverage news articles published before the microblog post to generate hashtags following a Retriever-Generator framework. Extensive experiments on English Twitter datasets demonstrate superior performance and significant advantages of leveraging news articles to generate hashtags.
Introduction
Hashtags are the connective tissue of microblogging platforms, driving user engagement and helping categorize massive streams of data. However, annotating a post with the right hashtag is difficult for two main reasons: sparsity and the "cold start" for trends. Tweets are incredibly short, often lacking enough information to determine the broader topic. Furthermore, many hashtags are "emerging"—they refer to new events that were not present in the model's training data.
As illustrated in the figure above, a tweet might mention a "supreme court pick" without naming the individual. By looking at news articles published on the same day, a system can identify the specific entity (e.g., Brett Kavanaugh) and generate the appropriate hashtag. Previous state-of-the-art methods relied on post-publication conversations, but this paper argues that news articles published before the post are a more realistic and effective source of context.
The HashNews Framework
The authors propose HashNews, a Retriever-Generator framework that looks "sideways" at news articles to provide external context for short microblog posts.
1. Time-Aware Entity-Focused Retriever
Instead of a standard search, the retriever focuses on Named Entities (people, places, organizations). It utilizes a Temporal Popularity (TP) metric, which prioritizes entities that have recently spiked in news coverage compared to their historical frequency. This ensures that the system focuses on trending events rather than just generally common terms. A soft entity matching mechanism is also employed to bridge the gap between informal tweet language and formal news reporting.
2. Hybrid Bi-Attention Generator
Once relevant news articles are retrieved, the system extracts key context words. The generator uses dual encoders for the tweet and the news context, linked by a Hybrid Bi-Attention mechanism. This allows the model to capture the mutual influence between the tweet and the news, ensuring that words from highly relevant, trending articles have a stronger influence on the final hashtag generation.
Experimental Results
The researchers evaluated HashNews on two large-scale English Twitter datasets: Tweets2018 (covering the Brett Kavanaugh hearings) and Tweets2020 (covering the George Floyd protests). They crawled nearly 5,000 articles per day from over 170 newspapers to provide context.
Key results include:
- Superior Accuracy: HashNews consistently outperformed standard Seq2Seq models. On the Tweets2018 dataset, it achieved an F1@1 score of 11.51, compared to 7.17 for a standard model.
- Contextual Enrichment: Roughly 28% of named entities found in hashtags were present in retrieved news articles even if they were absent from the original tweet, confirming news as a viable source for "missing" information.
- Importance of Recency: Ablation studies showed that removing the "Time-Aware" ranking led to a significant drop in performance, proving that prioritizing emerging entities is crucial for handling the ephemeral nature of social media.
Conclusion
HashNews demonstrates that news articles can act as a high-quality external memory for AI models processing microblogs. By leveraging real-world events reported in the news, the framework successfully addresses the sparsity and cold-start problems inherent in hashtag annotation. Future work will explore user-aware generation to account for individual hashtagging styles and optimization techniques to handle the computational overhead of large-scale news retrieval.
Summary updated