Thanks to visit codestin.com
Credit goes to github.com

Skip to content
/ DiMNet Public

This is the official code release of the following paper: Hao Dong et al., Disentangled Multi-span Evolutionary Network against Temporal Knowledge Graph Reasoning.

License

Notifications You must be signed in to change notification settings

hhdo/DiMNet

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Disentangled Multi-span Evolutionary Network against Temporal Knowledge Graph Reasoning

This is the official code release of the following paper:

Hao Dong, Ziyue Qiao, Zhiyuan Ning, Qi Hao, Yi Du, Pengyang Wang and Yuanchun Zhou. "Disentangled Multi-span Evolutionary Network against Temporal Knowledge Graph Reasoning." ACL 2025 Findings.

DiMNet_Architecture

Quick Start

Dependencies

conda create -n dimnet python=3.8.15
conda activate dimnet
conda install pytorch==1.10.0 torchvision==0.11.0 torchaudio==0.10.0 cudatoolkit=11.3  -c pytorch  -c conda-forge
conda install pytorch-geometric==2.0.4 -c rusty1s -c conda-forge

❗️Note: This work also requires the wandb environment to be set up in advance and logged in. (Ref: W&B Quickstart)

Train & Evaluate Models

  1. Switch to src/ folder
cd src/
  1. Run scripts
python main.py -d ICEWS18 --history_len 10 --num_head 4 --num_ly 3 --topk 50 --decay 1e-4 --gpu 0

Change the Hyperparameters

To get the optimal result reported in the paper, change the hyperparameters and other setting according to the Implementation Details section in the paper.

Citation

If you find the resource in this repository helpful, please cite

@article{dong2025disentangled,
  title={Disentangled Multi-span Evolutionary Network against Temporal Knowledge Graph Reasoning},
  author={Dong, Hao and Qiao, Ziyue and Ning, Zhiyuan and Hao, Qi and Du, Yi and Wang, Pengyang and Zhou, Yuanchun},
  journal={arXiv preprint arXiv:2505.14020},
  year={2025}
}

About

This is the official code release of the following paper: Hao Dong et al., Disentangled Multi-span Evolutionary Network against Temporal Knowledge Graph Reasoning.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages