You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Improving Convolution-based Knowledge Graph Embeddings by Increasing Feature Interactions
Overview of InteractE
Given entity and relation embeddings, InteractE generates multiple permutations of these embeddings and reshapes them using a "Chequered" reshaping function. Depthwise circular convolution is employed to convolve each of the reshaped permutations, which are then fed to a fully-connected layer to compute scores. Please refer to Section 6 of the paper for details.*
Dependencies
Compatible with PyTorch 1.0 and Python 3.x.
Dependencies can be installed using requirements.txt.
Dataset:
We use FB15k-237, WN18RR and YAGO3-10 datasets for evaluation.
FB15k-237, WN18RR are included in the repo. YAGO3-10 can be downloaded from here.
Training model from scratch:
Install all the requirements from requirements.txt.
Execute sh preprocess.sh for extracting the datasets and setting up the environment.
Please cite the following paper if you use this code in your work.
@inproceedings{interacte2020,
title={InteractE: Improving Convolution-based Knowledge Graph Embeddings by Increasing Feature Interactions},
author={Vashishth, Shikhar and Sanyal, Soumya and Nitin, Vikram and Agrawal, Nilesh and Talukdar, Partha},
booktitle={Proceedings of the 34th AAAI Conference on Artificial Intelligence},
pages={3009--3016},
publisher={AAAI Press},
url={https://aaai.org/ojs/index.php/AAAI/article/view/5694},
year={2020}
}
For any clarification, comments, or suggestions please create an issue or contact Shikhar.