GLR: Graph Chain-of-Thought with LoRA Fine-Tuning and Confidence Ranking for Knowledge Graph Completion
Source abstract
Abstract
In knowledge graph construction, missing facts often lead to incomplete structures, thereby limiting the performance of downstream applications. Although recent knowledge graph completion (KGC) methods based on representation learning have achieved notable progress, they still suffer from two fundamental limitations, namely the lack of structured reasoning capabilities and the inability to assess the confidence of their predictions, which often results in unreliable outputs. We propose the GLR framework, which integrates Graph Chain-of-Thought (Graph-CoT) reasoning, LoRA fine-tuning, and the P(True)-based confidence evaluation mechanism. In the KGC task, this approach effectively enhances the reasoning ability and prediction reliability of large language models (LLMs). Specifically, Graph-CoT introduces local subgraph structures to guide LLMs in performing graph-constrained, step-wise reasoning, improving their ability to model multi-hop relational patterns. Complementing this, LoRA-based fine-tuning enables efficient adaptation of LLMs to the KGC scenario with minimal computational overhead, further enhancing the model’s capability for graph-structured reasoning. Moreover, the P(True) mechanism quantifies the reliability of candidate entities, improving the robustness of ranking and the controllability of outputs, thereby enhancing the credibility and interpretability of model predictions in knowledge reasoning tasks. We conducted systematic experiments on the standard KGC datasets FB15K-237, WN18RR, and UMLS, which demonstrate the effectiveness and robustness of the GLR framework. Notably, GLR achieves a Mean Reciprocal Rank (MRR) of 0.507 on FB15K-237, marking a 6.8% improvement over the best recent instruction-tuned method, DIFT combined with CoLE (MRR = 0.439). GLR also maintains significant performance advantages on WN18RR and UMLS, verifying its effectiveness in enhancing both the structured reasoning capabilities and the prediction reliability of LLMs for KGC tasks. These results indicate that GLR offers a unified and scalable solution to enhance structure-aware reasoning and output reliability of LLMs in KGC.
Source: crossref · Quality: baseline
Research context
OpenAlex topics: Advanced Graph Neural Networks · Graph Theory and Algorithms · Topic Modeling
SciVX discovery tags are terminology-based. OpenAlex topics are source-provided classifications.
Affiliations
College of Information Engineering, Sichuan Agricultural University, Ya’an 625014, China
Department of Architecture and Built Environment, University of Nottingham, Nottingham 999020, UK
References (53)
Show source-provided references
1. Shang, Y., Fu, K., Zhang, Z., Jin, L., Liu, Z., Wang, S., and Li, S. (2024). MERGE: A Modal Equilibrium Relational Graph Framework for Multi-Modal Knowledge Graph Completion. Sensors, 24.10.3390/s24237605 ↗
2. Su, Y., Chen, J., Chai, R., Wu, X., and Zhang, Y. (2024). FFA-BiGRU: Attention-Based Spatial-Temporal Feature Extraction Model for Music Emotion Classification. Appl. Sci., 14.10.3390/app14166866 ↗
3. Jiang, S., Feng, W., and Ding, X. (2024). Extracting Representations from Multi-View Contextual Graphs via Convolutional Neural Networks for Point-of-Interest Recommendation. Appl. Sci., 14.10.3390/app14167010 ↗
4. Padilla Cuevas, J., Reyes-Ortiz, J.A., Cuevas-Rasgado, A.D., Mora-Gutiérrez, R.A., and Bravo, M. (2024). MédicoBERT: A Medical Language Model for Spanish Natural Language Processing Tasks with a Question-Answering Application Using Hyperparameter Optimization. Appl. Sci., 14.10.3390/app14167031 ↗
5. Novel translation knowledge graph completion model based on 2D convolution10.1007/s10489-021-02438-8 ↗
6. Wang, X., He, Q., Liang, J., and Xiao, Y. (2022, January 23–29). Language Models as Knowledge Embeddings. Proceedings of the Thirty-First International Joint Conference on Artificial Intelligence, IJCAI-22, Vienna, Austria.10.24963/ijcai.2022/318 ↗
7. Translating embeddings for modeling multi-relational data
8. Sun, Z., Deng, Z.H., Nie, J.Y., and Tang, J. (2019, January 6–9). RotatE: Knowledge Graph Embedding by Relational Rotation in Complex Space. Proceedings of the International Conference on Learning Representations, New Orleans, LA, USA.
9. Muresan, S., Nakov, P., and Villavicencio, A. (2022, January 22–27). SimKGC: Simple Contrastive Knowledge Graph Completion with Pre-trained Language Models. Proceedings of the 60th Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), Dublin, Ireland.
10. Prototypical networks relation classification model based on entity convolution10.1016/j.csl.2022.101432 ↗
11. Achiam, J., Adler, S., Agarwal, S., Ahmad, L., Akkaya, I., Aleman, F.L., Almeida, D., Altenschmidt, J., Altman, S., and Anadkat, S. (2023). Gpt-4 technical report. arXiv.
12. Yang, A., Yang, B., Zhang, B., Hui, B., Zheng, B., Yu, B., Li, C., Liu, D., Huang, F., and Wei, H. (2024). Qwen2. 5 technical report. arXiv.
13. Chain-of-Thought Prompting Elicits Reasoning in Large Language Models
14. Bouamor, H., Pino, J., and Bali, K. (2023, January 6–10). KICGPT: Large Language Model with Knowledge in Context for Knowledge Graph Completion. Proceedings of the Findings of the Association for Computational Linguistics: EMNLP 2023, Singapore.
15. Knowledge Graph Large Language Model (KG-LLM) for Link Prediction
16. Wei, J., Bosma, M., Zhao, V., Guu, K., Yu, A.W., Lester, B., Du, N., Dai, A.M., and Le, Q.V. (2022, January 25–29). Finetuned Language Models are Zero-Shot Learners. Proceedings of the International Conference on Learning Representations, Virtual.
17. Alghamdi, E.A., Zakraoui, J., and Abanmy, F.A. (2024). Domain Adaptation for Arabic Machine Translation: Financial Texts as a Case Study. Appl. Sci., 14.10.3390/app14167088 ↗
18. Yang, X.-S., Sherratt, S., Dey, N., and Joshi, A. (2024, January 19–22). Different Processes for Graphical Recognition of Derivative of a Function: An Eye-Tracker Analysis. Proceedings of the Ninth International Congress on Information and Communication Technology, London, UK.
19. Liu, Y., Tian, X., Sun, Z., and Hu, W. (2024, January 11–15). Finetuning generative large language models with discrimination instructions for knowledge graph completion. Proceedings of the International Semantic Web Conference, Hanover, MD, USA.10.1007/978-3-031-77844-5_11 ↗
20. Ku, L.W., Martins, A., and Srikumar, V. (2024, January 11–16). Graph Chain-of-Thought: Augmenting Large Language Models by Reasoning on Graphs. Proceedings of the Findings of the Association for Computational Linguistics: ACL 2024, Bangkok, Thailand.
21. Hu, E.J., Shen, Y., Wallis, P., Allen-Zhu, Z., Li, Y., Wang, S., Wang, L., and Chen, W. (2022, January 25–29). LoRA: Low-Rank Adaptation of Large Language Models. Proceedings of the International Conference on Learning Representations, Virtual.
22. Kadavath, S., Conerly, T., Askell, A., Henighan, T., Drain, D., Perez, E., Schiefer, N., Hatfield-Dodds, Z., DasSarma, N., and Tran-Johnson, E. (2022). Language models (mostly) know what they know. arXiv.
23. Ku, L.W., Martins, A., and Srikumar, V. (2024, January 11–16). How Abilities in Large Language Models are Affected by Supervised Fine-tuning Data Composition. Proceedings of the 62nd Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), Bangkok, Thailand.
24. Yang, A., Yang, B., Hui, B., Zheng, B., Yu, B., Zhou, C., Li, C., Li, C., Liu, D., and Huang, F. (2024). Qwen2 Technical Report. arXiv.
25. Ku, L.W., Martins, A., and Srikumar, V. (2024, January 11–16). Fact-and-Reflection (FaR) Improves Confidence Calibration of Large Language Models. Proceedings of the Findings of the Association for Computational Linguistics: ACL 2024, Bangkok, Thailand.
26. Tran, D.H., and Park, M. (2024). FN-GNN: A Novel Graph Embedding Approach for Enhancing Graph Neural Networks in Network Intrusion Detection Systems. Appl. Sci., 14.10.3390/app14166932 ↗
27. Bouamor, H., Pino, J., and Bali, K. (2023, January 6–10). Towards Enhancing Relational Rules for Knowledge Graph Link Prediction. Proceedings of the Findings of the Association for Computational Linguistics: EMNLP 2023, Singapore.
28. Neo-GNNs: Neighborhood Overlap-aware Graph Neural Networks for Link Prediction
29. Rogers, A., Boyd-Graber, J., and Okazaki, N. (2023, January 9–14). Double-Branch Multi-Attention based Graph Neural Network for Knowledge Graph Completion. Proceedings of the 61st Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), Toronto, Canada.
30. Wei, Q., Yang, M., Wang, J., Mao, W., Xu, J., and Ning, H. (2024). Tourllm: Enhancing llms with tourism knowledge. arXiv.10.1007/s10586-024-05009-x ↗
31. Wong, D.F., Wei, Z., and Yang, M. (2025). Reparameterization-Based Parameter-Efficient Fine-Tuning Methods for Large Language Models: A Systematic Survey. Proceedings of the Natural Language Processing and Chinese Computing, Springer.
32. Wei, J., Tay, Y., Bommasani, R., Raffel, C., Zoph, B., Borgeaud, S., Yogatama, D., Bosma, M., Zhou, D., and Metzler, D. (2022). Emergent abilities of large language models. arXiv.
33. Al-Onaizan, Y., Bansal, M., and Chen, Y.N. (2024, January 12–16). A Survey on In-context Learning. Proceedings of the 2024 Conference on Empirical Methods in Natural Language Processing, Miami, FL, USA.
34. Lin, Z., Yang, W., Wang, H., Chi, H., and Lan, L. (2024). A Closer Look at Few-Shot Classification with Many Novel Classes. Appl. Sci., 14.10.3390/app14167060 ↗
35. Calibrate Before Use: Improving Few-shot Performance of Language Models
36. Xie, S.M., Raghunathan, A., Liang, P., and Ma, T. (2022, January 25–29). An Explanation of In-context Learning as Implicit Bayesian Inference. Proceedings of the International Conference on Learning Representations, Virtual.
37. Zhang, Y., Chen, Z., Guo, L., Xu, Y., Zhang, W., and Chen, H. (November, January 28). Making Large Language Models Perform Better in Knowledge Graph Completion. Proceedings of the 32nd ACM International Conference on Multimedia, New York, NY, USA.
38. Luo, X., Sun, Z., Zhao, J., Zhao, Z., and Hu, W. (2024). KnowLA: Enhancing Parameter-efficient Finetuning with Knowledgeable Adaptation. arXiv.10.18653/v1/2024.naacl-long.396 ↗
39. Seoh, R. (2020). Qualitative Analysis of Monte Carlo Dropout. arXiv.
40. Yao, L., Mao, C., and Luo, Y. (2019). KG-BERT: BERT for knowledge graph completion. arXiv.
41. Màrquez, L., Callison-Burch, C., and Su, J. (2015, January 17–21). Representing Text for Joint Embedding of Text and Knowledge Bases. Proceedings of the 2015 Conference on Empirical Methods in Natural Language Processing, Lisbon, Portugal.
42. Convolutional 2D Knowledge Graph Embeddings
43. Inui, K., Jiang, J., Ng, V., and Wan, X. (2019, January 3–7). TuckER: Tensor Factorization for Knowledge Graph Completion. Proceedings of the 2019 Conference on Empirical Methods in Natural Language Processing and the 9th International Joint Conference on Natural Language Processing (EMNLP-IJCNLP), Hong Kong, China.
44. Neural Bellman-Ford Networks: A General Graph Neural Network Framework for Link Prediction
45. Llms for knowledge graph construction and reasoning: Recent capabilities and future opportunities10.1007/s11280-024-01297-w ↗
46. Enhancing text-based knowledge graph completion with zero-shot large language models: A focus on semantic enhancement10.1016/j.knosys.2024.112155 ↗
47. Knowledge graph embedding by relational rotation and complex convolution for link prediction10.1016/j.eswa.2022.119122 ↗
48. Training language models to follow instructions with human feedback
49. Touvron, H., Lavril, T., Izacard, G., Martinet, X., Lachaux, M.A., Lacroix, T., Rozière, B., Goyal, N., Hambro, E., and Azhar, F. (2023). Llama: Open and efficient foundation language models. arXiv.
50. Bai, J., Bai, S., Chu, Y., Cui, Z., Dang, K., Deng, X., Fan, Y., Ge, W., Han, Y., and Huang, F. (2023). Qwen technical report. arXiv.
51. Touvron, H., Martin, L., Stone, K., Albert, P., Almahairi, A., Babaei, Y., Bashlykov, N., Batra, S., Bhargava, P., and Bhosale, S. (2023). Llama 2: Open foundation and fine-tuned chat models. arXiv.
52. Ku, L.-W., Martins, A., and Srikumar, V. (2024, January 11–16). LoRA Meets Dropout under a Unified Framework. Proceedings of the Findings of the Association for Computational Linguistics: ACL 2024, Bangkok, Thailand.
53. Graph of Thoughts: Solving Elaborate Problems with Large Language Models