Temporal Heterogeneous Graph Pretraining for Relational Deep Learning
Abstract
Relational deep learning models database rows and foreign-key links as a heterogeneous graph for prediction from record attributes and relational context. These graphs contain two distinct temporal signals: record age changes with the prediction cutoff, while intervals between observed records remain fixed. Prior work often treats time as a single signal or studies temporal representation and pretraining separately. We investigate how explicitly encoding both signals affects temporal pretraining for downstream tasks. Our framework combines Multi-scale Time Encoding, which captures record age using learnable time scales and type-specific projections, with Rotary Time Encoding, which represents signed inter-record intervals through rotary transformations during graph propagation. We pair these encodings with three self-supervised objectives: historical relation recovery, horizon-aware future relation activity prediction, and temporal subgraph contrast. All inputs respect their observation cutoffs. Pretraining proceeds in two stages: subgraph contrast first learns neighborhood representations, followed by refinement through either relation recovery or future activity prediction. We evaluate on five RelBench datasets across 11 classification and regression tasks using heterogeneous GNN and graph Transformer backbones. With both encodings, the best evaluated staged schedules improve over supervised training with the same encodings by 3.02% and 1.06% on the two backbones, respectively, and over controls without pretraining or either encoding by 3.24% and 2.37%.
Create a lesson
Related papers
Explaining Knowledge Utilization in Heterogeneous GNNs for 3D Semantic Scene Graphs
Shared title terminologycs.LGTim Stelzner, Marian Renz, Felix Igelbrink et al.
HiTS-CL: A Continual Learning Framework for Long-Horizon Temporal Knowledge Graph Extrapolation
Shared title terminologycs.LGYansong Liu, Rui Liu, Yuan Zuo et al.
Air Pollution Nowcasting via Multimodal Learning with Temporal and Visual Data
Shared title terminologycs.LGSojeong Kim, Jaewan Chun, Jongha Lee et al.
Strong EEG Decoding without EEG-Specific Pretraining: A Simple Reversible Interface for Vision Backbones
Shared title terminologycs.LGZi Liang, Haibo He, Peng Hu et al.
Short-Term Forecasting of Subsurface Drainage Flow and Water-Table Depth Using Deep Learning
Shared title terminologycs.LGAshkan Tehrani, Ramin Akbari, Ehsan Ghane et al.
Valid Inference with AI-Generated Covariates in Clustered Business Panels: Informative Validation, Temporal Contamination and Stabilization
Shared title terminologycs.LGYousef Nejatbakhsh, Malihe Aliasgari, Sina Shokoohyar et al.