Skip to content

Code for the NeurIPS 2025 paper "TAMI: Taming Heterogeneity in Temporal Interactions for Temporal Graph Link Prediction"

License

Notifications You must be signed in to change notification settings

Alleinx/TAMI_temporal_graph

Repository files navigation

TAMI: Taming Heterogeneity in Temporal Interactions for Temporal Graph Link Prediction

Overview

This is the official implementation of the NeurIPS 2025 paper: TAMI: Taming Heterogeneity in Temporal Interactions for Temporal Graph Link Prediction.

Our code is developed based on the codebase of the paper: Towards Better Dynamic Graph Learning: New Architecture and Unified Library. We made modifications to four files: models/modules.py, train_link_prediction.py, evaluate_link_prediction.py, and evaluate_model_utils.py.

Environments

PyTorch 1.8.1, numpy, pandas, tqdm, and tabulate

Benchmark Datasets and Preprocessing

Most of our experiments are conducted on 13 datasets from Towards Better Evaluation for Dynamic Link Prediction, including Wikipedia, Reddit, MOOC, LastFM, Enron, Social Evo., UCI, Flights, Can. Parl., US Legis., UN Trade, UN Vote, and Contact.

Baseline Link Prediction Methods

Nine popular link prediction methods for continuous-time dynamic graphs are included in our experiment: JODIE, DyRep, TGAT, TGN, CAWN, EdgeBank, TCL, GraphMixer, and DyGFormer.

Executing Scripts

Scripts for Dynamic Link Prediction

If you want to load the best model configurations determined by the grid search, please set the load_best_configs argument to True.

Model Training

  • Example of training GraphMixer on Wikipedia dataset:
python train_link_prediction.py --dataset_name wikipedia --model_name GraphMixer --num_runs 5 --gpu 0
  • If you want to use the best model configurations to train GraphMixer on Wikipedia dataset, run
python train_link_prediction.py --dataset_name wikipedia --model_name GraphMixer --load_best_configs --num_runs 5 --gpu 0

Model Evaluation

  • Example of evaluating GraphMixer on the Wikipedia dataset:
python evaluate_link_prediction.py --dataset_name wikipedia --model_name GraphMixer --num_runs 5 --gpu 0
  • If you want to use the best model configurations to evaluate GraphMixer on Wikipedia dataset, run
python evaluate_link_prediction.py --dataset_name wikipedia --model_name GraphMixer --load_best_configs --num_runs 5 --gpu 0

Citation

@inproceedings{yu2025tami,
  title={{TAMI}: Taming Heterogeneity in Temporal Interactions for Temporal Graph Link Prediction},
  author={Zhongyi Yu and Jianqiu Wu and Zhenghao Wu and Shuhan Zhong and Weifeng Su and Chul-Ho Lee and Weipeng Zhuo},
  booktitle={The Thirty-ninth Annual Conference on Neural Information Processing Systems},
  year={2025}
}

About

Code for the NeurIPS 2025 paper "TAMI: Taming Heterogeneity in Temporal Interactions for Temporal Graph Link Prediction"

Resources

License

Stars

Watchers

Forks

Languages