TREND: TempoRal Event and Node Dynamics for Graph Representation Learning

Zhihao Wen, Yuan Fang · DOI

Abstract

Temporal graph representation learning has drawn significant attention due to the prevalence of temporal graphs in real-world applications. However, most existing works rely on discrete snapshots, lack inductive capabilities for new nodes, or fail to model "exciting effects"—the phenomenon where one event triggers the occurrence of others. We propose TREND, a novel framework for temporal graph representation learning driven by TempoRal Event and Node Dynamics. Built upon a Hawkes process-based Graph Neural Network (GNN), TREND is inductive and captures exciting effects between events. By integrating both individual event dynamics and collective node dynamics, TREND achieves a more precise modeling of the temporal process. Extensive experiments on four real-world datasets demonstrate the effectiveness of the proposed model.

Introduction

In the real world, graphs are rarely static. Social networks, citation indices, and e-commerce platforms are defined by a continuous stream of interactions. To model these systems effectively, temporal graph representation learning must transform shifting connections into informative mathematical vectors.

Existing methodologies often fall short in three key areas. First, many models discretize time into "snapshots," which discards fine-grained temporal information. Second, they often fail to account for the "exciting effect," where an event increases the likelihood of subsequent related events. Third, they frequently overlook the distinction between individual event uniqueness (why a specific interaction occurs) and collective node dynamics (the overall activity level of a node). TREND addresses these gaps by combining the structural power of GNNs with the temporal rigor of point processes.

Methodology

TREND (TempoRal Event and Node Dynamics) is built upon three primary pillars designed to capture the complexity of evolving graphs.

1. Hawkes Process-based GNN

The Hawkes process is a mathematical framework used to model events that occur in clusters. TREND integrates this process into a GNN architecture, allowing the model to remain inductive—capable of handling nodes not seen during training—while explicitly accounting for how historical "excitement" influences current link formation. This allows the model to treat time as a continuous variable rather than a series of discrete steps.

2. Event Dynamics: The Individual Scale

To capture the unique characteristics of every link, TREND utilizes a hypernetwork-driven "event prior." Rather than applying a single global rule to all interactions, the model learns a prior that is specialized for each specific event using Feature-wise Linear Modulation (FiLM). This approach allows the model to scale and shift parameters based on the specific nodes involved, capturing "long-tail" patterns and unique interaction contexts that global models typically ignore.

3. Node Dynamics: The Collective Scale

While individual events are unique, they are constrained by the nodes involved. TREND includes an estimator that predicts the "event tendency" of a node over time. This acts as a regularizer, ensuring that the sum of individual events associated with a node aligns with that node's overall evolutionary pace. By modeling the arrival rate of events at the node level, TREND provides a stable anchor for the more volatile individual event dynamics.

Experimental Evaluation

The researchers evaluated TREND against a wide range of baselines, including static methods (Node2vec, GraphSAGE) and temporal methods (TGAT, EvolveGCN), across four diverse datasets:

  • CollegeMsg: An online social network of private messages.
  • cit-HepTh: A citation graph for high-energy physics.
  • Wikipedia: A graph of users editing pages over a one-month period.
  • Taobao: A massive e-commerce dataset containing over 4 million events.

Results and Discussion

TREND consistently outperformed state-of-the-art baselines across all datasets. On the cit-HepTh and Wikipedia datasets, TREND showed significant improvements in link prediction accuracy, exceeding the best baselines by up to 5%.

The most notable result occurred with the Taobao dataset, where TREND achieved a 13.12% improvement in F1 score over the runner-up model. This success is attributed to Taobao's high event diversity; TREND’s ability to specialize via the event prior proved particularly beneficial in such a complex environment. Furthermore, despite the model's sophistication, TREND’s training time scales linearly with the number of events, suggesting strong viability for large-scale industrial applications.

Conclusion

TREND represents a significant advancement in temporal graph representation learning by treating graphs as living systems with distinct rhythms. By integrating Hawkes processes with GNNs and balancing individual event dynamics with collective node activity, TREND provides a robust framework for modeling the ever-changing digital world. Future work may expand this framework to account for graph contraction (node or edge deletion) and explore non-parametric decay functions for the Hawkes process.

Summary updated

BibTeX
@inproceedings{wen2022trend,
  author = {Zhihao Wen and Yuan Fang},
  title = {{TREND: TempoRal Event and Node Dynamics for Graph Representation Learning}},
  booktitle = {The Web Conference},
  year = {2022},
  doi = {10.1145/3485447.3512164},
}
Figure