Learning Attribute-Structure Co-Evolutions in Dynamic Graphs

Daheng Wang, Zhihan Zhang, Yihong Ma, Tong Zhao, Tianwen Jiang, Nitesh V. Chawla, Meng JiangarXiv 2020

Abstract

Dynamic graphs in the real world exhibit a complex interplay between node attributes and graph structure. Existing Graph Neural Networks (GNNs) often treat these dimensions independently or rely on recurrent architectures that struggle with long-range dependencies. We present CoEvoGNN, a framework that explicitly models the co-evolution of attributes and structure. By employing an S-stack temporal self-attention mechanism and a multi-task loss function, CoEvoGNN captures mutually reinforcing patterns over time. Experimental results on co-authorship and transaction networks demonstrate significant improvements in link prediction and attribute forecasting, including the ability to predict entire future graph snapshots.

Introduction

Most real-world networks, from social platforms to financial systems, are inherently dynamic. These dynamics manifest in two intertwined dimensions: structural changes (edge formation and dissolution) and attribute changes (shifts in node characteristics). For instance, in an academic network, a researcher’s shift in research interests (attributes) often precedes new collaborations (structure), which in turn may further influence their research direction. Despite this clear "co-evolution," many current dynamic GNNs treat structure and attributes in isolation or assume a unidirectional influence. CoEvoGNN addresses this gap by modeling these dimensions as a coupled system.

Motivation

The necessity of modeling co-evolution is supported by empirical data. Analysis of academic networks reveals a strong correlation between changes in a researcher's keywords and their collaboration patterns.

Pearson correlation between attribute and structural changes in the co-authorship dataset.

As shown in the figure above, over 60% of authors exhibit a Pearson correlation higher than 0.3 between attribute and link changes, suggesting that joint modeling is essential for predictive accuracy. Furthermore, temporal analysis shows that nearly 30% of new links recur after intervals of two years or more, highlighting the need for models that can look beyond the immediate past and capture long-range dependencies.

Methodology

CoEvoGNN introduces two core components to capture these dynamics: the S-stack Temporal Self-Attention and a Multi-task Co-evolutionary Loss.

The CoEvoGNN framework: (a) generation of evolutionary node embeddings using an S-stack of previous snapshots, and (b) the multi-task loss for attribute and structure evolution.

1. S-stack Temporal Self-Attention

Instead of using Recurrent Neural Networks (RNNs) which can suffer from vanishing gradients and limited parallelism, CoEvoGNN maintains a "stack" of $S$ historical snapshots. A self-attention mechanism dynamically weighs these past states to generate the current node embedding $\mathbf{h}_v^t$. This allows the model to capture long-range dependencies efficiently and parallelize training across time steps, addressing the scalability issues that plague models like EvolveGCN.

2. Multi-task Co-evolutionary Loss

The model is trained to simultaneously minimize errors in two tasks:

  • Attribute Inference: Predicting the raw attribute values of nodes in the next time step.
  • Link Prediction: Predicting which edges will form or dissolve.

This joint optimization ensures that the learned embeddings reflect the mutual influence between "what a node is" and "who a node knows." The framework is backbone-agnostic, allowing the integration of various static GNN layers (e.g., GCN, GAT, or GraphSAGE) for spatial feature aggregation within each snapshot.

Experiments and Results

The authors evaluated CoEvoGNN on four datasets: evolutionary co-authorship graphs ($D_{AU}^{2K}$, $D_{AU}^{10K}$) and Bitcoin transaction networks ($D_{bc}^{otc}$, $D_{bc}^{alp}$). CoEvoGNN consistently outperformed state-of-the-art baselines like EvolveGCN, DySAT, and DCRNN.

  • Link Prediction: On co-authorship data, the model improved the F1 score by +9.2% over the best baseline.
  • Attribute Inference: It achieved a massive 49.1% reduction in RMSE (Root Mean Squared Error) compared to competitive models.
  • Snapshot Forecasting: Unlike many models that require partial information about the "future" graph, CoEvoGNN successfully forecasted an entire unseen snapshot (both links and attributes) for the year 2010.

Conclusion

CoEvoGNN demonstrates that modeling the co-evolution of attributes and structure is vital for understanding dynamic graphs. By replacing recurrence with temporal self-attention and using a multi-task loss, the framework achieves superior predictive performance and scalability. While current work focuses on next-step prediction, it lays the groundwork for more complex multi-step forecasting and non-linear attribute transformations in future research.

Summary updated

BibTeX
@misc{wang2020learning,
  author = {Daheng Wang and Zhihan Zhang and Yihong Ma and Tong Zhao and Tianwen Jiang and Nitesh V. Chawla and Meng Jiang},
  title = {{Learning Attribute-Structure Co-Evolutions in Dynamic Graphs}},
  year = {2020},
  eprint = {2007.13004},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2007.13004},
}
Figure