LLM-based Multi-Level Knowledge Generation for Few-shot Knowledge Graph Completion

Qian Li, Zhuo Chen, Cheng Ji, Shiqi Jiang, Jianxin Li

Abstract

Knowledge Graphs (KGs) are essential for various AI applications but frequently suffer from incompleteness, particularly for "long-tail" relations with limited training data. Traditional Few-shot Knowledge Graph Completion (FKGC) methods often focus on model-level optimizations, yet the fundamental bottleneck remains data scarcity. This paper introduces MuKDC (Multi-level Knowledge Distillation for Completion), a framework that utilizes Large Language Models (LLMs) to generate multi-level structured knowledge—including triplets, entity attributes, and logical decision paths. By integrating a consistency assessment mechanism to mitigate LLM hallucinations, MuKDC achieves state-of-the-art performance in both text-based and multi-modal FKGC tasks.

Introduction

Knowledge Graphs serve as the backbone for search engines and recommendation systems, yet they are notoriously sparse. The "long-tail problem" is a significant challenge: while common relations have abundant data, many niche relations have only a few examples, making it difficult for models to learn effective representations. Existing FKGC methods typically attempt to solve this through model-centric approaches, such as improved embedding techniques. However, MuKDC shifts the focus toward a data-centric strategy, leveraging the vast parametric knowledge of LLMs to enrich the graph structure before the completion task begins.

The MuKDC Framework

The MuKDC framework treats LLMs as a source of distilled structured knowledge, operating in two primary stages: Multi-level Knowledge Generation and Consistency Assessment.

Multi-level Knowledge Generation (MKG)

Instead of simple link prediction, MuKDC prompts an LLM (such as LLaVA for multi-modal contexts) to generate three distinct types of information:

  1. Triplet Generation (TG): The LLM identifies new related facts to densify the local graph neighborhood.
  2. Attribute Generation (AG): The model generates descriptive text or identifies visual features for entities, providing richer context.
  3. Decision Path Generation (DPG): The LLM constructs logical reasoning chains (e.g., transitive relations) that provide a framework for the completion model to follow.
The MuKDC framework details the generation of multi-level knowledge (triplets, attributes, and paths) and the subsequent consistency assessment.

Consistency Assessment (CA)

To address the risk of LLM hallucinations, MuKDC employs a pre-trained Knowledge Graph Embedding (KGE) model to score the generated facts. This filtering step ensures that only reliable and coherent additions are integrated into the expanded graph, maintaining high data quality.

Experimental Evaluation

The framework was rigorously tested on four major benchmarks: standard FKGC datasets (NELL and Wiki) and multi-modal datasets (MM-FB15K and MM-DBpedia).

Key Results

MuKDC established new state-of-the-art (SOTA) benchmarks across all datasets:

  • Performance Gains: On NELL and Wiki, MuKDC improved average metrics by 3.8% and 4.9%, respectively, over previous leaders like GANA and YANA. In multi-modal settings, it outperformed the MULTIFORM model by up to 7.4%.
  • Ablation Studies: Removing any generation level (triplets, attributes, or paths) resulted in a performance decline, validating the necessity of the multi-level approach.
  • Impact of Consistency Assessment: The CA step proved crucial; without it, LLM noise could degrade model performance, especially in low-shot scenarios.
Experimental results showing the impact of prompt quantity, the effectiveness of consistency assessment, and examples of interpretable reasoning paths.

Conclusion

MuKDC demonstrates that the reasoning capabilities of LLMs can be effectively distilled into structured graph data to overcome the data scarcity inherent in few-shot knowledge graph completion. By combining multi-level generation with a robust consistency check, the framework not only improves predictive accuracy but also enhances the interpretability of the reasoning process. Future work will focus on reducing the computational overhead of LLM prompting and extending the framework to zero-shot scenarios.

Summary updated

BibTeX
@inproceedings{li2024llm,
  author = {Qian Li and Zhuo Chen and Cheng Ji and Shiqi Jiang and Jianxin Li},
  title = {{LLM-based Multi-Level Knowledge Generation for Few-shot Knowledge Graph Completion}},
  booktitle = {International Joint Conference on Artificial Intelligence},
  year = {2024},
}
Figure