[Paper Review] Reinforcement Learning with External Knowledge and Two-Stage Q-functions for Predicting Popular Reddit Threads
This paper proposes a two-stage Q-learning framework with external knowledge integration to improve reinforcement learning for predicting popular Reddit comments. By augmenting state representations with dynamically retrieved external knowledge and using a two-stage Q-function to efficiently explore combinatorial natural language actions, the method achieves significant performance gains over baselines across five subreddits, with up to 11× faster inference than full action space exploration.
This paper addresses the problem of predicting popularity of comments in an online discussion forum using reinforcement learning, particularly addressing two challenges that arise from having natural language state and action spaces. First, the state representation, which characterizes the history of comments tracked in a discussion at a particular point, is augmented to incorporate the global context represented by discussions on world events available in an external knowledge source. Second, a two-stage Q-learning framework is introduced, making it feasible to search the combinatorial action space while also accounting for redundancy among sub-actions. We experiment with five Reddit communities, showing that the two methods improve over previous reported results on this task.
Motivation & Objective
- To address the challenge of predicting popular Reddit comments in real-time, where actions are sets of natural language comments and the action space is combinatorial.
- To enhance decision-making in reinforcement learning by incorporating unstructured external knowledge—such as world events from news and discussion threads—into the state representation.
- To enable efficient exploration of the full combinatorial action space without exhaustive enumeration, which is infeasible due to computational complexity.
- To improve prediction performance over prior methods by combining external knowledge with a two-stage Q-learning architecture that reduces search time while maintaining accuracy.
Proposed method
- Augment the state representation by querying an external knowledge source (e.g., news feeds or discussion threads on world events) using the current comment history as a query.
- Use a learnable attention mechanism to retrieve and integrate relevant external documents into the state embedding, enriching context beyond local discussion history.
- Implement a two-stage Q-learning framework: first, a lightweight Q-network generates a candidate list of sub-actions (comment sets); second, a more complex Q-network reranks the candidates for final selection.
- Apply a DRRN-BiLSTM architecture for the Q-functions to model sequential dependencies in comment history and external knowledge, enabling effective representation learning.
- Use a fixed number of candidates (N=10) sampled from the full action space, but improve selection via the two-stage process instead of random sampling.
- Train the Q-functions end-to-end using deep Q-learning with experience replay and target networks, optimizing for cumulative karma reward over time.
Experimental results
Research questions
- RQ1Can external knowledge from unstructured sources improve the performance of reinforcement learning in natural language decision-making tasks with combinatorial action spaces?
- RQ2Does a two-stage Q-learning framework enable effective exploration of the full combinatorial action space in natural language action settings without exhaustive enumeration?
- RQ3How does the integration of external knowledge and the two-stage Q-learning framework jointly affect prediction performance across diverse Reddit communities?
- RQ4To what extent does the two-stage Q-learning framework reduce inference time compared to full action space exploration?
Key findings
- The two-stage Q-learning framework reduced test runtime by 6× for K=3 and 11× for K=5 compared to full action space exploration, significantly improving inference efficiency.
- Incorporating external knowledge consistently improved performance over the two-stage Q-learning baseline across all five subreddits tested, with the largest gains observed in subreddits with high topical diversity.
- The ablation study in Figure 4 shows that both components—external knowledge and two-stage learning—contribute independently to performance, with the two-stage framework providing a larger gain.
- Case studies in Table 4 confirm that the agent learns to attend to relevant external documents (e.g., Mars colonization news for questions about Mars atmospheres), while avoiding irrelevant ones.
- The method outperformed prior reported results on Reddit popularity prediction, demonstrating state-of-the-art performance on five distinct subreddits with varying language styles and karma distributions.
- The DRRN-BiLSTM model trained on a subspace of actions still achieved strong performance, though it underperformed the two-stage Q-function due to distributional shift between training and testing.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.