Abstract
Predicting the popularity of comments in online threaded discussions is a complex task due to the high-dimensional, combinatorial nature of natural language action spaces. This paper frames the problem as reinforcement learning (RL) and introduces two key innovations: a learned attention mechanism to incorporate external world knowledge and a two-stage Q-learning approach for efficient action selection. Experimental results on Reddit data show that these methods significantly outperform existing state-of-the-art models in identifying high-karma threads while achieving up to an 11x reduction in test-time computation.
Introduction
Predicting which comments will become popular in a threaded discussion, such as on Reddit, is a significant challenge. In this context, the "state" is the discussion history, and the "actions" are the new comments an agent chooses to track. Previous work modeled this as an RL problem where an agent selects a subset of $K$ comments from $N$ candidates. However, this approach faces two major hurdles:
- Combinatorial Explosion: Evaluating all possible combinations of $K$ comments is computationally expensive. Previous methods often used random subsampling, which risks missing viral content.
- Lack of Global Context: Models typically only consider local discussion history, ignoring external factors like breaking news that often drive comment popularity.
Methods
The authors propose architectural enhancements to the Deep Reinforcement Relevance Network (DRRN) to address these bottlenecks.
Incorporating External Knowledge via Attention
To provide the agent with global context, the model maintains a database of external documents (e.g., recent news). An attention mechanism queries this database at each step, calculating weights based on timing, semantic similarity (TF-IDF cosine similarity), and popularity. The resulting "world embedding" is concatenated with the state embedding to give the agent broader context.
Two-Stage Q-Learning
To handle the combinatorial action space, a coarse-to-fine beam search is implemented:
- Stage 1 (DRRN-Sum): A computationally efficient Q-function evaluates comments independently and sums their scores, ignoring redundancies. This stage prunes the action space to the top-$m$ candidate sets.
- Stage 2 (DRRN-BiLSTM): A more complex Q-function processes the top-$m$ candidates as sequences, allowing it to detect redundancy and refine the final selection.
Experimental Setup
The model was evaluated on discussion threads from five subreddits: r/askscience, r/askmen, r/todayilearned, r/askwomen, and r/politics. The external knowledge base consisted of approximately 10,000 posts and top comments from r/worldnews, serving as a proxy for current world events.
Key Results and Insights
The combination of external knowledge and two-stage Q-learning yielded superior performance across all tested subreddits.
Performance and Efficiency
The two-stage approach not only improved accuracy but also provided massive efficiency gains, reducing test runtime by 6x to 11x depending on the number of comments selected. By exploring the entire action space in Stage 1 instead of random subsampling, the agent's performance improved significantly (e.g., from 711 to 833 average reward on r/askscience).
Community-Specific Context
The attention mechanism revealed that different communities value different types of external information. For example, r/askscience prioritizes very recent news (past-day), while r/politics relies more on news from the past week. Interestingly, r/todayilearned performance was negatively impacted by historically popular news, highlighting its focus on novel discoveries rather than established facts.
Conclusion
This work demonstrates that incorporating unstructured external knowledge and utilizing a coarse-to-fine search strategy significantly enhances RL agents in natural language environments. While a substantial gap remains between current performance and the theoretical oracle upper bound, these methods provide a robust framework for tackling combinatorial action spaces in real-world NLP tasks.
Summary updated