Learning Attentive Attribute-Aware Node Embeddings in Dynamic Environments

Nourhan Ahmed, Ahmed Nabih Zaki Rashed, Lars Schmidt-ThiemeResearch 2022

Abstract

Learning node embeddings is fundamentally essential for numerous applications, such as link prediction and node classification. The purpose of node embedding techniques is to learn a low-dimensional representation for each node in the graph. Many existing node representation learning methods for dynamic attributed graphs focus on preserving the temporal proximity of the nodes with relatively shallow models. However, real-life graphs are complex and usually exhibit evolutionary patterns of node attributes and graph structure. Therefore, the current state-of-the-art models fail to capture the information in the dynamic attributed graphs and settle for sub-optimal results. In this paper, we propose a novel model for embedding nodes in dynamic attributed graphs that captures the full extent of all relevant node information and the graph interrelations as well as graph evolutionary patterns. During model training, attribute-aware node embedding is learned using both graph and node properties in a dynamic context. Experiments demonstrate that our proposed method is superior to the state-of-the-art models in link prediction tasks. In addition, it introduces a novel way for learning richer representations by fully exploiting node attributes, graph structure, and evolutionary patterns in dynamic attributed graphs.

Introduction

In the rapidly evolving landscape of social networks, citation indices, and e-commerce, graphs are dynamic entities. Nodes—representing users, papers, or businesses—frequently change their behavior, and the links between them appear and disappear over time. Crucially, these nodes often carry rich "attributes," such as text descriptions or reviews, which are frequently underutilized by traditional graph algorithms. Most existing node representation learning methods suffer from a "shallow" perspective, focusing either on static structure or temporal changes without fully integrating deep semantic metadata. This paper introduces DADSAT (Deep Attributed Dynamic Self-attention model), a framework designed to bridge the gap between structural graph dynamics and deep semantic understanding.

Methodology

The DADSAT architecture is designed to capture the interplay between evolving link structures and evolving text attributes through three main components:

  1. Unsupervised Feature Extraction (DistilBERT): To handle unstructured text associated with nodes, the model employs a pre-trained DistilBERT module. This module processes node attributes to generate a dense 768-length vector for each node by averaging the hidden states of the final layer.
  2. Dual-Layer Self-Attention:
    • Structural Attention: An additive attention mechanism fuses a node’s information with its neighbors within a single time snapshot, capturing local structural context.
  3. Temporal Attention: Scaled dot-product attention combined with positional encodings captures how a node’s representation evolves across discrete time steps.
  4. Recursive Skip Connections: To prevent information loss in deep layers and facilitate optimization, the architecture implements recursive skip connections with layer normalization. This ensures that the original attribute information is preserved and effectively integrated with structural and temporal features.
The DADSAT architecture illustrating the flow from DistilBERT feature extraction through structural and temporal attention layers to the final classifier.

The model is trained using a binary cross-entropy loss function, encouraging similar representations for nodes that co-occur in random walks while differentiating them from negative samples.

Experimental Evaluation

The authors evaluated DADSAT on four diverse, real-world dynamic attributed datasets:

  • DBLP: A scientific collaboration network (authors and paper titles).
  • Epinions: A consumer trust network (users and reviews).
  • Enron: An email interaction network (employees and email content).
  • Yelp: A business review network (users/businesses and reviews).

Key Results

DADSAT consistently outperformed baselines such as DeepWalk, Node2Vec, and the previous state-of-the-art dynamic model, DySAT.

  • Link Prediction Accuracy: On the Epinions dataset, DADSAT achieved a Micro-AUC of 87.3%, significantly outperforming DySAT (85.1%) and DANE (58.1%). On DBLP, it reached a Macro-AUC of 79.4%, a 3% improvement over the nearest competitor.
  • The "Attribute Boost": Ablation studies revealed that integrating high-quality textual features via DistilBERT provided a consistent 1–3% improvement in AUC across all datasets, confirming that structural data alone is insufficient for optimal representation.
  • Stability: DADSAT exhibited superior stability over time, maintaining high accuracy even as the networks grew and evolved across multiple snapshots.

Conclusion

DADSAT demonstrates that integrating semantic information at the input layer (early fusion) allows self-attention layers to learn more nuanced, attribute-aware structural patterns. While the computational overhead of BERT-based extraction remains a challenge for scaling to massive graphs, the model's success in temporal link prediction highlights the importance of fully exploiting node attributes and evolutionary patterns. Future work may explore continuous-time dynamic graphs and broader tasks such as node classification and community detection.

Summary updated

BibTeX
@inproceedings{ahmed2022learning,
  author = {Nourhan Ahmed and Ahmed Nabih Zaki Rashed and Lars Schmidt-Thieme},
  title = {{Learning Attentive Attribute-Aware Node Embeddings in Dynamic Environments}},
  booktitle = {Research},
  year = {2022},
  doi = {10.21203/rs.3.rs-1815566/v1},
}
Figure