Thread Popularity Prediction and Tracking with a Permutation-invariant Model

Hou Pong Chan, Irwin King

Identifying and tracking popular content in high-traffic online forums like Reddit is a significant challenge due to the sheer volume of daily interactions. This paper, presented at EMNLP 2018, proposes a Reinforcement Learning (RL) framework that treats comment recommendation as a sequential decision-making problem. By introducing a permutation-invariant model, DRRN-Attention, and an efficient greedy selection procedure, the authors demonstrate superior performance in predicting and tracking thread popularity across multiple Reddit datasets.

The Challenges of Thread Tracking

In high-traffic forums, users cannot keep up with every new post. The goal of thread popularity prediction and tracking is to recommend a small batch ($K$) of new comments to subscribers. The authors identify three primary hurdles that make this task more complex than standard recommendation:

  1. Sequential Impact: A comment’s value is not just its immediate popularity (upvotes), but also the popularity of the entire subtree of replies it triggers. This long-term dependency makes it a natural fit for Reinforcement Learning, where an agent learns to maximize cumulative rewards over the life of a thread.
  2. The Combinatorial Explosion: Selecting the best $K$ comments from $N$ candidates leads to a massive search space of $\binom{N}{K}$ possibilities. Exhaustive search is computationally prohibitive for real-time applications.
  3. Order Bias: Previous state-of-the-art models, such as DRRN-BiLSTM, treated the set of $K$ comments as a sequence. This meant that the model's prediction of a set's popularity could change drastically if the comments were simply reordered in the input list, which is logically inconsistent for a set-based recommendation.

Methodology

To address these issues, the authors propose two major innovations:

DRRN-Attention

This model replaces traditional sequential encoders with an attention-based "Set Embedding" module. Instead of processing comments one-by-one in a fixed order, the model calculates a weighted sum of the comment representations. Because addition is commutative, the resulting action embedding is identical regardless of the input order, ensuring permutation invariance. The model then predicts the $Q$-value (expected cumulative reward) by combining the state and this permutation-invariant action embedding.

Greedy Selection Procedure

To navigate the combinatorial action space efficiently, the authors ditched complex multi-stage ranking pipelines. Instead, they use a greedy procedure: starting with an empty set, the agent iteratively adds the single comment that results in the highest predicted $Q$-value when combined with the already-selected set. This reduces the computational complexity from exponential to $O(NK)$.

Experimental Results

The model was evaluated on five real-world datasets crawled from Reddit subreddits: askscience, askmen, todayilearned, worldnews, and nfl. The authors used "karma" (upvotes minus downvotes) as the reward signal. As shown in the results table, the proposed model consistently outperforms the BiLSTM and Mean-pooling baselines across most subreddits.

Performance comparison of DRRN-Attention (Our model) against DRRN-BiLSTM and DRRN-Mean baselines.

Key Insights

The most striking finding is the model's consistency. In a case study comparing DRRN-Attention to the previous state-of-the-art (DRRN-BiLSTM), the authors demonstrated that the BiLSTM model's predictions for the same set of comments varied by over 100% depending on their order. In contrast, the DRRN-Attention model provided a stable, consistent score every time.

Table showing the permutation invariance of DRRN-Attention vs the order-sensitivity of the BiLSTM baseline.

This stability leads to more reliable agent behavior. By formulating this as RL, the model learns to "track" threads, understanding that recommending a high-quality comment early can "unlock" a subtree of popular discussion later, maximizing the total reward over the life of the thread.

Conclusion

By enforcing permutation invariance and utilizing a streamlined greedy search, the authors provide a robust and efficient solution for tracking thread popularity. This approach not only improves recommendation quality but also ensures logical consistency in how sets of content are evaluated. Future work may explore more advanced search algorithms like Monte Carlo Tree Search to further refine the selection process without incurring the full combinatorial cost.

Summary updated

BibTeX
@inproceedings{chan2018thread,
  author = {Hou Pong Chan and Irwin King},
  title = {{Thread Popularity Prediction and Tracking with a Permutation-invariant Model}},
  booktitle = {Conference on Empirical Methods in Natural Language Processing},
  year = {2018},
  doi = {10.18653/v1/d18-1376},
}
Figure