Event Detection on Dynamic Graphs

Mert Kosan, Arlei Silva, Sourav Medya, Brian Uzzi, Ambuj K. SingharXiv 2021

TL;DR

This paper introduces DyGED, a novel deep learning model for detecting events in dynamic graphs by focusing on the "macro" or graph-level dynamics, rather than just individual node behaviors. DyGED leverages self-attention mechanisms to effectively learn from sequences of graph representations, outperforming existing methods in accuracy and scalability across various real-world datasets.

What Problem Does This Paper Address?

In today's data-rich world, understanding events as they unfold in dynamic systems is crucial for timely decision-making. Many real-world systems can be represented as dynamic graphs, where entities (nodes) and their interactions (edges) change over time. Events, like a sudden surge in communication during a crisis or a shift in mobility patterns due to a major event, often manifest as deviations from normal graph behavior. While deep learning has made strides in graph analysis, existing methods for event detection on dynamic graphs struggle to capture these crucial graph-level shifts. They often focus on "micro" dynamics (individual node behaviors) and fail to effectively model the overarching changes in the entire graph's structure and interactions that signal an event. This paper aims to bridge this gap by proposing a model that explicitly learns from these graph-level dynamics.

Methods

The core of DyGED lies in its focus on "macro" dynamics, meaning it learns from representations of the entire graph at each time step, rather than just individual nodes. Here's a breakdown of its key components:

  • Graph Convolutional Networks (GCNs): For each snapshot of the dynamic graph, a GCN is used to generate node embeddings. These embeddings capture the local structural information around each node.
  • Self-Attention Graph Pooling (v-Att): To obtain a single graph-level representation from the node embeddings, DyGED employs a self-attention pooling mechanism. This is a novel aspect, as it allows the model to dynamically weigh the importance of different nodes when forming the graph representation, rather than using a fixed pooling strategy.
  • Recurrent Neural Network (RNN): The sequence of graph-level embeddings generated by the GCN and pooling is then fed into an RNN (specifically, an LSTM). This allows DyGED to model the temporal dependencies and learn the "macro" dynamics of the graph over time.
  • Temporal Self-Attention (t-Att): To further enhance its ability to capture relevant temporal information, DyGED incorporates a temporal self-attention mechanism. This allows the model to adaptively weigh the importance of different past graph snapshots when making a prediction, recognizing that events might be influenced by a sequence of past states, not just the immediate one.
  • Classifier: Finally, a Multi-Layer Perceptron (MLP) takes the learned temporal representation and outputs the probability of an event occurring.

The paper also explores variations of DyGED, such as removing the LSTM or attention mechanisms, to understand the contribution of each component.

Datasets

The proposed DyGED model was evaluated on three diverse, real-world dynamic graph datasets:

  • NYC Cab: A mobility network dataset representing hourly taxi trips between zones in New York City, with events defined as major sports games (e.g., baseball games).
  • Hedge Fund: A communication network dataset from a hedge fund, where events are marked by stock market shocks.
  • Twitter Weather: A dataset integrating weather-related tweets and significant weather events (e.g., blizzards, hurricanes) in the US. A larger version with more vocabulary was also used.

These datasets represent different domains (mobility, communication, social media) and event types, making the evaluation comprehensive.

Key Insights and Ideas

  • Macro Dynamics Matter: The most significant insight is that focusing on graph-level (macro) dynamics is crucial for effective event detection, often outperforming models that solely rely on node-level (micro) dynamics. This suggests that events are often emergent properties of the entire system's behavior.
  • Self-Attention for Adaptability: The use of both structural (node) and temporal (time) self-attention mechanisms is key. It allows DyGED to dynamically learn which nodes and which past time steps are most important for detecting an event, making it more robust to varying event characteristics.
  • Interpretability through Attention: The attention weights learned by DyGED can provide insights into why an event is detected. For instance, in the NYC Cab dataset, attention highlights taxi zones near stadiums, directly linking the detection to the event's context. Similarly, temporal attention can reveal which past periods were most influential.
  • Event Diagnosis Potential: The learned graph embeddings from DyGED show a tendency to cluster events with similar causes, suggesting the model's potential for event diagnosis – understanding the nature and cause of an event based on its embedding.

Key Results

  • Accuracy Improvement: DyGED consistently outperformed state-of-the-art baselines across all three datasets, achieving up to an 8.5% improvement in AUC (Area Under the ROC Curve) on the Twitter Weather dataset compared to the best baseline (ASTGCN).
  • Scalability: DyGED demonstrated superior scalability, being up to 206 times faster than the best baseline (ASTGCN) in testing times. This is crucial for processing large, real-time dynamic graphs.
  • Feature Importance: Static node features (like word embeddings for Twitter) were often found to be more expressive than dynamic ones for event detection, though combining both can further improve performance.
  • Pooling Operator Performance: The self-attention pooling operator in DyGED significantly outperformed standard mean and max pooling operators, highlighting the benefit of adaptive node weighting.

Limitations and Future Work

  • Hierarchical Architectures: The authors suggest that future work could explore hierarchical architectures that combine both macro and micro dynamics to potentially capture a more comprehensive view of events.
  • More Interpretable Models: While attention provides some interpretability, the paper acknowledges the ongoing debate around attention's true explanatory power. Future research could focus on developing even more interpretable models for event detection on graphs, potentially linking events to specific subgraphs and their dynamics.
  • Event Diagnosis Refinement: While promising, the event diagnosis capability is still in its early stages. Further work could refine this aspect to provide more detailed and actionable insights into event causes.

Summary updated

BibTeX
@misc{kosan2021event,
  author = {Mert Kosan and Arlei Silva and Sourav Medya and Brian Uzzi and Ambuj K. Singh},
  title = {{Event Detection on Dynamic Graphs}},
  year = {2021},
  eprint = {2110.12148},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2110.12148},
}
Figure