LiteLink is a lightweight research codebase for low-resource KG link prediction experiments, based on ULTRA-style inference and LLM-assisted relation prompts.
config/: inference and pretrain configsscript/: training / inference / few-shot / reporting scriptsultra/: model and task implementationllmoutput/: relation-text outputs used by promptingingram_fewshot_ds/: few-shot dataset json filesckpts/: checkpoints used for inferenceresults/: summary csv / markdown outputs
Recommended:
- Python 3.10+
- PyTorch 2.1+
- PyTorch Geometric 2.4+
Install dependencies:
pip install -r requirements.txt- Prepare datasets (do not commit large raw/preprocessed data to git).
- Ensure checkpoint files exist under
ckpts/. - Run a few-shot inference example:
python script/run_fewshot.py -c config/inductive/inference.yaml --gpus [0] --ckpt ckpts/ultra_3g.pth -d MedIngram:100- Build result summary:
python script/build_final_report.pyThis repository is prepared as a code-focused version. Large generated artifacts, cached wheels, and local training outputs are removed before upload.
Suggested: keep large dataset files and intermediate training outputs outside this repository, or manage them with external storage.
Core model implementation references ULTRA and InGram related resources.