Official implementation of Mitigating pair-frequency bias and qualifier-primary relation mismatch in inductive hyper-relational knowledge graph completion, published in Neurocomputing (2026).
📄 Paper
FREQ extends MAYPL with two components without adding learnable parameters:
- IDF: frequency-conditioned pair encoding before pair normalization.
- RCQW: relation-conditioned weighting of normalized qualifier messages.
Experiments cover WD20K100v1, WD20K100v2, WP-IND, and MFB-IND.
Requires Python 3.9, PyTorch 2.0.1, and a CUDA-capable GPU.
pip install -r requirements.txtDownload the preprocessed datasets from the MAYPL repository and place each dataset under data/<dataset_name>/.
Train FREQ:
python run_experiment.py train --dataset WD20K100v1 --variant freq --seed 0Evaluate a checkpoint, replacing <epoch> with its epoch number:
python run_experiment.py test --dataset WD20K100v1 --variant freq --seed 0 --epoch <epoch>If you use this code, please cite:
Xinyu Chen, Nan Wu, Yi Yang, Jia Wang, Fangfang Han, Haoran Yu, and Yongming Cai. Mitigating pair-frequency bias and qualifier-primary relation mismatch in inductive hyper-relational knowledge graph completion. Neurocomputing, 2026. https://doi.org/10.1016/j.neucom.2026.135254
This implementation is based on MAYPL, the official implementation of Structure Is All You Need (ICML 2025).
This project follows the upstream MAYPL license, Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International (SPDX: CC-BY-NC-SA-4.0). See LICENSE.