Cascade Dynamics Modeling with Attention-based Recurrent Neural Network

Yongqing Wang, Huawei Shen, Shenghua Liu, Jinhua Gao, Xueqi Cheng

Abstract

Information cascades on social media are typically modeled as linear sequences, but they actually spread like branching trees. This paper introduces CYAN-RNN, an attention-based Recurrent Neural Network that captures "cross-dependence"—where a user is influenced by a non-immediate predecessor—and utilizes a "coverage" mechanism to better reflect the true underlying diffusion structure. Experimental results on synthetic and real-world datasets demonstrate that CYAN-RNN significantly improves predictions of who will reshare content and when, outperforming state-of-the-art sequential models.

Introduction

When a piece of information goes viral, it creates a "cascade" of resharing. Predicting these dynamics is vital for viral marketing and understanding information flow. However, existing research faces two major gaps:

  1. The "Chain vs. Tree" Mismatch: Standard sequential models like LSTMs or GRUs treat cascades as linear chains. In reality, a user might be motivated to share a post because of a friend who shared it many steps ago, not necessarily the person who shared it immediately before them. This is known as cross-dependence.
  2. The "Influencer" Bias: Traditional attention mechanisms often fixate on a few high-profile "influencers," ignoring the actual path of transmission. This "memoryless" nature of attention leads to a misallocation of focus, failing to capture the branching structure of a diffusion tree.

Methodology

The authors propose CYAN-RNN (Cascade Dynamics Modeling with Attention-based RNN), which moves beyond simple chain structures by integrating an attention layer with a coverage mechanism.

Figure 1: Overview of the CYAN-RNN architecture, featuring an encoder-decoder structure with an integrated attention layer.

Key Components

  • Attention Mechanism: Instead of relying only on the most recent hidden state to predict the next move, CYAN-RNN uses an attention layer to look back at all previous users in the cascade. It calculates a "context vector" that weights the importance of every prior resharing behavior.
  • Coverage Strategy: To prevent the model from over-focusing on the same influencers repeatedly, the authors introduce a "coverage" mechanism. This tracks how much "attention" a previous user has already received, encouraging the model to explore other potential triggers in the diffusion path.
  • Temporal Point Processes: The model integrates a conditional intensity function to model the timing of the next event, treating the cascade as a continuous-time stochastic process.
  • Length of Dependence: To maintain computational efficiency for long cascades, a hyperparameter $l$ limits the attention window to the most recent $l$ behaviors.

Experiments and Datasets

The model was evaluated on both controlled and real-world data:

  • Synthetic Datasets: 20,000 cascades were generated using Core-Periphery (CP) and Erdős-Rényi (Random) network types. Timing behaviors were simulated using Exponential and Rayleigh distributions.
  • Real-World Dataset (Sina Weibo): Data from the Chinese microblogging site Sina Weibo (June 2016) was filtered to include approximately 3,000 users and nearly 600,000 cascades.

Results and Discussion

CYAN-RNN consistently outperformed state-of-the-art baselines like RMTPP (Recurrent Marked Temporal Point Process) and classic Hawkes processes.

Figure 2: Performance comparison of CYAN-RNN against baselines on synthetic and real-world datasets across various metrics including Acc@k, MRR, and RMSE.

Key Insights

  • Cascades have "Memory": The success of the attention mechanism proves that the history of a cascade matters far more than just the most recent state. Capturing non-immediate predecessors is the key to unlocking better accuracy.
  • Attention as Network Inference: The attention weights learned by the model actually reflect the hidden social network. Researchers can infer the underlying diffusion tree without needing the social graph beforehand.
  • Coverage is the "Secret Sauce": Without the coverage mechanism, models tend to "hallucinate" that everyone is triggered by the same few celebrities. Coverage forces the model to recognize the "local" triggers that actually drive the branching of the tree.

On the Weibo dataset, CYAN-RNN with coverage achieved a 6.25% relative increase in Acc@1 and a 3.90% increase in Mean Reciprocal Rank (MRR) compared to RMTPP. The model also reduced the Root Mean Square Error (RMSE) for time prediction by 0.78% over the best-performing baseline.

Conclusion

CYAN-RNN represents a significant step forward in modeling information cascades by accounting for their inherent tree-like structure. While computationally more intensive than standard RNNs, its ability to infer diffusion paths and improve prediction accuracy offers valuable tools for marketing and rumor detection. Future work will focus on incorporating content features and leveraging learned alignments to identify effective "seed" users for marketing campaigns.

Summary updated

BibTeX
@inproceedings{wang2017cascade,
  author = {Yongqing Wang and Huawei Shen and Shenghua Liu and Jinhua Gao and Xueqi Cheng},
  title = {{Cascade Dynamics Modeling with Attention-based Recurrent Neural Network}},
  booktitle = {International Joint Conference on Artificial Intelligence},
  year = {2017},
  doi = {10.24963/ijcai.2017/416},
}
Figure