TL;DR
Standard keyword-based data collection (like tracking hashtags on Twitter) is often too static to keep up with fast-moving social media trends. This paper introduces Keyword Latent Dirichlet Allocation (KLDA), a generative model that dynamically selects new keywords to capture emerging topics while maintaining thematic consistency. By combining neural networks with a "differentiable" selection trick, the model outperforms traditional NLP-based keyword selection by 67%.
What Problem Does This Paper Address?
Researchers and companies often collect data from social media using specific keywords (e.g., tracking a brand name or a specific event). However, this approach has a fundamental flaw: topics evolve.
If a bank only tracks its name as a keyword, it might miss a viral complaint about "credit card rewards" that doesn't explicitly mention the bank. Furthermore, new events (like a product launch or a scandal) create new "emerging" topics that old keywords won't catch. The challenge is a "chicken and egg" problem: you need to select keywords before the documents are even written. The authors aim to build a model that predicts which keywords will best capture the "forthcoming" topics of the next week.
Methods
The authors propose KLDA, which treats keyword selection as part of a generative process. Unlike standard Latent Dirichlet Allocation (LDA), where topics are somewhat static, KLDA models the interaction between keywords and topics.
Key Innovations:
- Neural Priors: The model uses two neural networks ($f_\psi$ and $g_\lambda$) to map a set of keywords to the "priors" of an LDA model. Essentially, the keywords you choose act as a lens that shapes the expected topic-word and document-topic distributions.
- The Gumbel-Softmax Trick: Keyword selection is a discrete "yes/no" decision, which is usually impossible to optimize using standard gradient descent (which requires smooth, continuous functions). The authors use the Gumbel-softmax trick to approximate this discrete choice in a way that allows the model to be trained via backpropagation.
- Dynamic Inference: To select keywords for the next time period, the authors developed an inference metric that balances two goals:
- Retention: Keeping keywords that cover existing, relevant topics.
- Extension: Finding new keywords that capture emerging "novelty" without drifting too far into irrelevant noise.
Datasets
The model was evaluated using real-world data from the Twitter streaming API collected over 11 weeks in 2019. The authors focused on three distinct, evolving domains:
- Horse-racing: Interestingly, this dataset started as "computer virus" tracking but evolved into horse racing due to the automated "viral" keyword selection process used in the baseline.
- Streaming: Focused on video and gaming content.
- KPOP: Focused on Korean pop music trends.
The first 10 weeks were used for training and calibration, while the 11th week served as the "future" test set to evaluate the recommended keywords.
Key Insights and Ideas
- Keywords as Priors: The most significant "aha moment" is treating keywords not just as filters, but as the source of the topic structure. By feeding keyword vectors into neural networks to generate LDA parameters, the model learns the semantic "weight" of each keyword.
- Differentiable Selection: By making the keyword selection process differentiable, the model can "learn" which keywords are most informative during the training phase, rather than relying on simple frequency counts (like TF-IDF).
- The "Viral" Baseline: The authors compared their model against a sophisticated "viral prediction" algorithm. They found that while viral prediction is good at finding popular words, it often lacks the thematic "guardrails" provided by a topic model, leading to "topic drift" (as seen in the computer virus to horse racing shift).
Key Results
- Accuracy Boost: KLDA significantly outperformed the viral baseline. In terms of recommendation accuracy (predicting which keywords would actually appear in relevant future tweets), KLDA showed a 67% improvement over the baseline.
- Mean Accuracy: In the "Top 2" recommendation setting, KLDA achieved a mean accuracy of 0.30 compared to 0.17 for the viral baseline and 0.11 for random selection.
- Perplexity: The model demonstrated much lower perplexity (a measure of how well a probability model predicts a sample) on future data compared to models with no training, proving it successfully "learned" the underlying topic transitions.
Limitations and Future Work
- Fixed Topic Count: The model requires the number of topics ($K$) to be set as a hyperparameter (the authors used $K=5$). In reality, the number of topics in a stream might fluctuate wildly.
- Computational Complexity: While the Gumbel-softmax trick enables training, the partition function in the keyword distribution is still difficult to calculate, requiring MCMC sampling and importance sampling during training and inference.
- Short Text Bias: The model is specifically tuned for short-form text like tweets. Its performance on long-form documents (where keyword density is lower) remains an open question.
The authors suggest that future work could involve more complex neural architectures for the priors or adapting the model to handle documents where the length follows a Poisson distribution.
Summary updated