Papers
Topics
Authors
Recent
Search
2000 character limit reached

Recurrent Structure-Reinforced Graph Transformer

Updated 2 January 2026
  • The paper introduces a recurrent Transformer that explicitly models edge temporal states via a two-stage process and structure-aware attention, significantly advancing dynamic link prediction.
  • The methodology employs a structure-reinforced design combining global self-attention with topological and path-based feature encoding to effectively capture both local and global graph dynamics.
  • Empirical results demonstrate that RSGT outperforms state-of-the-art baselines on various dynamic graph datasets by mitigating over-smoothing and incorporating historical structural cues.

The Recurrent Structure-reinforced Graph Transformer (RSGT) is a framework for discrete dynamic graph representation learning designed to capture the evolving structural and temporal properties of time-evolving graphs. It addresses limitations in previous approaches that combine recurrent neural networks (RNNs) and graph neural networks (GNNs)—notably their inability to adequately encode edge temporal states and their susceptibility to over-smoothing, which collectively hinder the modeling of dynamic node relationships and the extraction of global structural features. RSGT introduces explicit edge temporal-state modeling and an advanced structure-reinforced transformer architecture within a recurrent paradigm, enabling superior local and global feature integration over discrete graph snapshots (Hu et al., 2023).

1. Edge Temporal States Modeling

At the core of RSGT is a two-stage process for each time step tt. First, it converts the current graph snapshot Gt=(Vt,Et,Wt)G_t=(V_t,E_t,W_t) together with the previous snapshot Gt1G_{t-1} into a weighted multi-relation “difference” graph G^t=(Vt,E^t,TPt,W^t)\hat G_t=(V_t,\hat E_t,TP_t, \hat W_t). Here, E^t=Et1Et\hat E_t = E_{t-1} \cup E_t ensures even vanished edges are considered for their residual effects. Each edge (i,j)E^t(i,j) \in \hat E_t receives a temporal-type tpijttp_{ij}^t among \textbf{emerging} (e\mathcal{e}), \textbf{persisting} (p\mathcal{p}), or \textbf{disappearing} (d\mathcal{d}):

Gt=(Vt,Et,Wt)G_t=(V_t,E_t,W_t)0

Edge weights Gt=(Vt,Et,Wt)G_t=(V_t,E_t,W_t)1 encode long-term interaction memory:

Gt=(Vt,Et,Wt)G_t=(V_t,E_t,W_t)2

where Gt=(Vt,Et,Wt)G_t=(V_t,E_t,W_t)3 is the consecutive persistence count and Gt=(Vt,Et,Wt)G_t=(V_t,E_t,W_t)4 are hyperparameters. This construction yields a multi-relation weighted graph whose topology integrates both dynamic and structural cues, addressing the insufficient edge-state modeling in prior methods.

2. Structure-reinforced Graph Transformer Design

The Structure-reinforced Graph Transformer (SGT) operates at each time step Gt=(Vt,Et,Wt)G_t=(V_t,E_t,W_t)5 on the current Gt=(Vt,Et,Wt)G_t=(V_t,E_t,W_t)6 and the previous hidden node embeddings Gt=(Vt,Et,Wt)G_t=(V_t,E_t,W_t)7. SGT stacks Gt=(Vt,Et,Wt)G_t=(V_t,E_t,W_t)8 identical encoding layers with the following components:

(a) Global Self-Attention: Standard Transformer attention is computed: Gt=(Vt,Et,Wt)G_t=(V_t,E_t,W_t)9 with query, key, and value projections Gt1G_{t-1}0, Gt1G_{t-1}1, Gt1G_{t-1}2 using learnable weights.

(b) Graph Structural Encoding: For every ordered node pair Gt1G_{t-1}3, two sets of features are extracted:

  • Topological attributes: Gt1G_{t-1}4
  • Temporal path features along the shortest path Gt1G_{t-1}5 from Gt1G_{t-1}6: Gt1G_{t-1}7, embedded and encoded with 1D convolution after positional encoding.

These are concatenated to yield Gt1G_{t-1}8.

(c) Structure-aware Attention Reinforcement: Raw self-attention scores Gt1G_{t-1}9 are modulated by an affine map dependent on G^t=(Vt,E^t,TPt,W^t)\hat G_t=(V_t,\hat E_t,TP_t, \hat W_t)0: G^t=(Vt,E^t,TPt,W^t)\hat G_t=(V_t,\hat E_t,TP_t, \hat W_t)1

(d) Update and Residuals: Updated node values G^t=(Vt,E^t,TPt,W^t)\hat G_t=(V_t,\hat E_t,TP_t, \hat W_t)2 are produced by normalizing G^t=(Vt,E^t,TPt,W^t)\hat G_t=(V_t,\hat E_t,TP_t, \hat W_t)3 and multiplying by G^t=(Vt,E^t,TPt,W^t)\hat G_t=(V_t,\hat E_t,TP_t, \hat W_t)4; standard residual and feed-forward connections apply. After G^t=(Vt,E^t,TPt,W^t)\hat G_t=(V_t,\hat E_t,TP_t, \hat W_t)5 layers, an outer residual is added: G^t=(Vt,E^t,TPt,W^t)\hat G_t=(V_t,\hat E_t,TP_t, \hat W_t)6.

This architecture enables the transformer to capture both semantic and structure/path-aware dependencies, directly incorporating dynamic edge information into the self-attention mechanism.

3. Recurrent Learning Over Snapshots

RSGT models dynamic graph representation as a shallow recurrence across G^t=(Vt,E^t,TPt,W^t)\hat G_t=(V_t,\hat E_t,TP_t, \hat W_t)7 discrete graph snapshots. With G^t=(Vt,E^t,TPt,W^t)\hat G_t=(V_t,\hat E_t,TP_t, \hat W_t)8 (initial features), the recurrence is:

G^t=(Vt,E^t,TPt,W^t)\hat G_t=(V_t,\hat E_t,TP_t, \hat W_t)9

This sum accumulates past structural-temporal updates, allowing each E^t=Et1Et\hat E_t = E_{t-1} \cup E_t0 to encode the full dynamic context up to snapshot E^t=Et1Et\hat E_t = E_{t-1} \cup E_t1. The approach ensures both historical persistence and adaptation to new graph structures.

4. Training Objective, Algorithm, and Complexity

The primary supervised task is dynamic link prediction. For each candidate edge E^t=Et1Et\hat E_t = E_{t-1} \cup E_t2 at step E^t=Et1Et\hat E_t = E_{t-1} \cup E_t3, its feature vector is E^t=Et1Et\hat E_t = E_{t-1} \cup E_t4, with prediction via a shallow MLP:

E^t=Et1Et\hat E_t = E_{t-1} \cup E_t5

and binary cross-entropy loss with E^t=Et1Et\hat E_t = E_{t-1} \cup E_t6 regularization:

E^t=Et1Et\hat E_t = E_{t-1} \cup E_t7

The optimization uses AdamW over all parameters, including E^t=Et1Et\hat E_t = E_{t-1} \cup E_t8 if learned.

Computational Complexity: For one snapshot, per-layer cost is E^t=Et1Et\hat E_t = E_{t-1} \cup E_t9, dominated by attention ((i,j)E^t(i,j) \in \hat E_t0) and path encoding ((i,j)E^t(i,j) \in \hat E_t1), where (i,j)E^t(i,j) \in \hat E_t2 is the shortest-path length horizon and (i,j)E^t(i,j) \in \hat E_t3 the edge embedding dimension. Total runtime is (i,j)E^t(i,j) \in \hat E_t4 in the number of snapshots, and practical scalability is maintained by constraining (i,j)E^t(i,j) \in \hat E_t5, (i,j)E^t(i,j) \in \hat E_t6 (history window), and (i,j)E^t(i,j) \in \hat E_t7.

5. Empirical Performance and Ablation Results

RSGT has been empirically validated on four real-world dynamic graphs:

Dataset (i,j)E^t(i,j) \in \hat E_t8 Edges Train/Test
twi-Tennis 1,000 40,839 100/20
CollegeMsg 1,899 59,835 25/63
cit-HepTh 7,577 51,315 77/1
sx-MathOF 24,818 506,550 64/15

On dynamic link prediction, RSGT outperforms ten strong baselines (DeepWalk, node2vec, GraphSAGE, EvolveGCN, CoEvoSAGE, ROLAND, CTDNE, TGAT, CAW, TREND):

  • twi-Tennis: Accuracy 87.6% vs TREND 74.0% (+18.3% absolute)
  • CollegeMsg: 86.8% vs 74.6% (+16.4%)
  • cit-HepTh: 87.2% vs 80.4% (+8.5%)
  • sx-MathOF: 87.9% vs 79.8% (+10.1%)

F1 scores demonstrate commensurate improvements.

Ablation analysis confirms two architectural choices as essential: (a) explicit edge temporal-state modeling (types and weights), (b) structure-aware attention (pairwise topological and path-based features). Removal of either leads to up to 15% performance drop. RSGT maintains robustness across variations in window size, number of transformer layers, attention heads, and shortest-path horizon.

6. Significance, Limitations, and Context

RSGT addresses critical shortcomings of existing dynamic graph embedding algorithms by providing a unified, recurrent, and structure-aware Transformer architecture with explicit modeling of edge temporal states. The integration of dynamic edge types, long-term edge weights, and structure-conditioned attention sets RSGT apart regarding the quality of representations and task performance. This design mitigates GNN over-smoothing, enables extraction of global graph structure, and provides scalable procedures for graphs of moderate to large size.

By consistently outperforming contemporary baselines in dynamic link prediction and demonstrating necessary ablation-verified design advances, RSGT substantiates the importance of fine-grained temporal-state modeling and structure-aware attention in dynamic graph learning. A plausible implication is that further refinements of Transformer-based recurrent paradigms, potentially with deeper recurrence, online inference, or continuous-time extensions, could continue to advance state-of-the-art performance on evolving graph data (Hu et al., 2023).

Definition Search Book Streamline Icon: https://streamlinehq.com
References (1)

Topic to Video (Beta)

No one has generated a video about this topic yet.

Whiteboard

No one has generated a whiteboard explanation for this topic yet.

Follow Topic

Get notified by email when new papers are published related to Recurrent Structure-reinforced Graph Transformers (RSGT).