Contextualization Distillation from Large Language Model for Knowledge Graph Completion

Dawei Li, Zhen Tan, Tianlong Chen, Huan Liu
1/28/2024
cs.CLcs.AI

Official code: David-Li0406/Contextulization-Distillation (25 stars, last commit 2024-10-17).

Abstract

While textual information significantly enhances the performance of pre-trained language models (PLMs) in knowledge graph completion (KGC), the static and noisy nature of existing corpora collected from Wikipedia articles or synsets definitions often limits the potential of PLM-based KGC models. To surmount these challenges, we introduce the Contextualization Distillation strategy, a versatile plug-in-and-play approach compatible with both discriminative and generative KGC frameworks. Our method begins by instructing large language models (LLMs) to transform compact, structural triplets into context-rich segments. Subsequently, we introduce two tailored auxiliary tasks, reconstruction and contextualization, allowing smaller KGC models to assimilate insights from these enriched triplets. Comprehensive evaluations across diverse datasets and KGC techniques highlight the efficacy and adaptability of our approach, revealing consistent performance enhancements irrespective of underlying pipelines or architectures. Moreover, our analysis makes our method more explainable and provides insight into generating path selection, as well as the choosing of suitable distillation tasks. All the code and data in this work will be released at https://github.com/David-Li0406/Contextulization-Distillation

View on arXivView PDF

Code Implementations(1)

Code and data for EACL 2024 paper "Contextualization Distillation from Large Language Models for Knowledge Graph Completion"

251Shell, PythonJan 25, 20242 years ago

Similar Papers

Cite this paper

@article{li2024contextualization,
  title  = {Contextualization Distillation from Large Language Model for Knowledge Graph Completion},
  author = {Dawei Li and Zhen Tan and Tianlong Chen and Huan Liu},
  year   = {2024},
  eprint = {2402.01729},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2402.01729v3}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2402.01729.svg)](https://codeofpaper.com/paper/2402.01729)

Discussion