Data Science and Engineering (Mar 2023)

Memory-Enhanced Transformer for Representation Learning on Temporal Heterogeneous Graphs

  • Longhai Li,
  • Lei Duan,
  • Junchen Wang,
  • Chengxin He,
  • Zihao Chen,
  • Guicai Xie,
  • Song Deng,
  • Zhaohang Luo

DOI
https://doi.org/10.1007/s41019-023-00207-w
Journal volume & issue
Vol. 8, no. 2
pp. 98 – 111

Abstract

Read online

Abstract Temporal heterogeneous graphs can model lots of complex systems in the real world, such as social networks and e-commerce applications, which are naturally time-varying and heterogeneous. As most existing graph representation learning methods cannot efficiently handle both of these characteristics, we propose a Transformer-like representation learning model, named THAN, to learn low-dimensional node embeddings preserving the topological structure features, heterogeneous semantics, and dynamic patterns of temporal heterogeneous graphs, simultaneously. Specifically, THAN first samples heterogeneous neighbors with temporal constraints and projects node features into the same vector space, then encodes time information and aggregates the neighborhood influence in different weights via type-aware self-attention. To capture long-term dependencies and evolutionary patterns, we design an optional memory module for storing and evolving dynamic node representations. Experiments on three real-world datasets demonstrate that THAN outperforms the state-of-the-arts in terms of effectiveness with respect to the temporal link prediction task.

Keywords