This is the code repo for Advancing Abductive Reasoning in Knowledge Graphs through Complex Logical Hypothesis Generation
- Paper: https://arxiv.org/abs/2312.15643
- Slides: Google drive
conda create -n akgr python=3.10
conda activate akgr
conda install pytorch==2.0.1 torchvision==0.15.2 torchaudio==2.0.2 pytorch-cuda=11.8 -c pytorch -c nvidia
pip install -r requirements.txt
As described in the paper, the Reinforcement Learning from Knowledge Graph Feedback (RLF-KG) pipeline comprises the following steps:
- Sampling
- Supervised training
- Reinforcement learning
bash scripts/sample/sample_full.sh
See Example Data and Checkpoints
Example scripts:
bash scripts/train/fb-t5.sh
bash scripts/train/db-t5.sh
bash scripts/train/wn-t5.sh
bash scripts/train/fb-g2.sh
bash scripts/train/db-g2.sh
bash scripts/train/wn-g2.sh
Example scripts:
bash scripts/optim/fb-t5-0.0.sh
bash scripts/optim/fb-t5-0.2.sh
bash scripts/optim/db-t5-0.0.sh
bash scripts/optim/db-t5-0.2.sh
bash scripts/optim/wn-t5-0.0.sh
bash scripts/optim/wn-t5-0.2.sh
bash scripts/optim/fb-g2-0.0.sh
bash scripts/optim/fb-g2-0.2.sh
bash scripts/optim/db-g2-0.0.sh
bash scripts/optim/db-g2-0.2.sh
bash scripts/optim/wn-g2-0.0.sh
bash scripts/optim/wn-g2-0.2.sh
Example scripts:
bash scripts/test/fb-t5.sh
bash scripts/test/db-t5.sh
bash scripts/test/wn-t5.sh
bash scripts/test/fb-g2.sh
bash scripts/test/db-g2.sh
bash scripts/test/wn-g2.sh
bash scripts/optim-test/fb-t5-0.0.sh
bash scripts/optim-test/fb-t5-0.2.sh
bash scripts/optim-test/db-t5-0.0.sh
bash scripts/optim-test/db-t5-0.2.sh
bash scripts/optim-test/wn-t5-0.0.sh
bash scripts/optim-test/wn-t5-0.2.sh
bash scripts/optim-test/fb-g2-0.0.sh
bash scripts/optim-test/fb-g2-0.2.sh
bash scripts/optim-test/db-g2-0.0.sh
bash scripts/optim-test/db-g2-0.2.sh
bash scripts/optim-test/wn-g2-0.0.sh
bash scripts/optim-test/wn-g2-0.2.sh
See Example Data and Checkpoints
Sampled data: Download Onedrive to sampled_data
under the root.
Checkpoints: Download Onedrive to checkpoints
under the root.
@misc{bai2024advancingabductivereasoningknowledge,
title={Advancing Abductive Reasoning in Knowledge Graphs through Complex Logical Hypothesis Generation},
author={Jiaxin Bai and Yicheng Wang and Tianshi Zheng and Yue Guo and Xin Liu and Yangqiu Song},
year={2024},
eprint={2312.15643},
archivePrefix={arXiv},
primaryClass={cs.AI},
url={https://arxiv.org/abs/2312.15643},
}