[Paper Review] KC-GenRe: A Knowledge-constrained Generative Re-ranking Method Based on Large Language Models for Knowledge Graph Completion
KC-GenRe uses a knowledge-constrained generative LLM approach to re-rank top-K KG completion candidates, addressing mismatch, misordering, and omission, and achieves state-of-the-art results on four datasets.
The goal of knowledge graph completion (KGC) is to predict missing facts among entities. Previous methods for KGC re-ranking are mostly built on non-generative language models to obtain the probability of each candidate. Recently, generative large language models (LLMs) have shown outstanding performance on several tasks such as information extraction and dialog systems. Leveraging them for KGC re-ranking is beneficial for leveraging the extensive pre-trained knowledge and powerful generative capabilities. However, it may encounter new problems when accomplishing the task, namely mismatch, misordering and omission. To this end, we introduce KC-GenRe, a knowledge-constrained generative re-ranking method based on LLMs for KGC. To overcome the mismatch issue, we formulate the KGC re-ranking task as a candidate identifier sorting generation problem implemented by generative LLMs. To tackle the misordering issue, we develop a knowledge-guided interactive training method that enhances the identification and ranking of candidates. To address the omission issue, we design a knowledge-augmented constrained inference method that enables contextual prompting and controlled generation, so as to obtain valid rankings. Experimental results show that KG-GenRe achieves state-of-the-art performance on four datasets, with gains of up to 6.7% and 7.7% in the MRR and Hits@1 metric compared to previous methods, and 9.0% and 11.1% compared to that without re-ranking. Extensive analysis demonstrates the effectiveness of components in KG-GenRe.
Motivation & Objective
- Motivation: Knowledge graphs are often incomplete and need effective re-ranking of candidate tail entities to improve completion quality.
- Objective: Develop a generative LLM-based re-ranking method that (i) avoids exact text matching (mismatch), (ii) learns proper candidate order (misordering), and (iii) ensures all candidates are considered (omission).
- Objective: Leverage first-stage KG embeddings to guide ranking and retrieve contextual knowledge to constrain generation for valid rankings.
Proposed method
- Formulate re-ranking as outputting an ordered sequence of candidate option identifiers rather than candidate names to avoid mismatch.
- Introduce knowledge-guided interactive training with query-candidate and candidate-candidate interactions to learn candidate plausibility and relative order, using a ranking loss that aligns LLM outputs with first-stage scores.
- Propose knowledge-augmented constrained inference with query-related and candidate-supporting prompts, plus constrained option generation to ensure complete and valid rankings.
- Fine-tune LLaMA-7b via QLORA on the KC-GenRe framework, using top-K candidates from a first-stage KGE model and instruction templates for input/output formatting.
Experimental results
Research questions
- RQ1How can generative LLMs be effectively used to re-rank KGC candidates while mitigating mismatch between generated text and KG entities?
- RQ2Can knowledge-guided training and knowledge-augmented inference improve the stability and quality of LLM-based KGC re-ranking?
- RQ3Does constraining the LLM output to candidate option identifiers and leveraging contextual prompts improve ranking accuracy and validity?
Key findings
- KC-GenRe achieves state-of-the-art re-ranking performance on four datasets, with up to 6.7% absolute gains in MRR and 7.7% in Hits@1 over previous methods on curated data.
- On open KG datasets, KC-GenRe outperforms baselines by 2.1–3.5% in MRR and 2.1–3.8% in Hits@1.
- Ablation shows query-candidate interaction and candidate-candidate interaction significantly boost performance, and the combination of query-related and candidate-supporting prompts yields the best results.
- Constrained option generation is crucial; removing it hurts performance, indicating the need to align decoding with the candidate set.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.