Table of Contents
Fetching ...

Complex Logical Query Answering by Calibrating Knowledge Graph Completion Models

Changyi Xiao, Yixin Cao

TL;DR

This paper proposes a method for calibrating KGC models, namely CKGC, which enables KGC models to adapt to answering complex logical queries and can enhance the performance of CLQA while preserving the ranking evaluation metrics of KGC models.

Abstract

Complex logical query answering (CLQA) is a challenging task that involves finding answer entities for complex logical queries over incomplete knowledge graphs (KGs). Previous research has explored the use of pre-trained knowledge graph completion (KGC) models, which can predict the missing facts in KGs, to answer complex logical queries. However, KGC models are typically evaluated using ranking evaluation metrics, which may result in values of predictions of KGC models that are not well-calibrated. In this paper, we propose a method for calibrating KGC models, namely CKGC, which enables KGC models to adapt to answering complex logical queries. Notably, CKGC is lightweight and effective. The adaptation function is simple, allowing the model to quickly converge during the adaptation process. The core concept of CKGC is to map the values of predictions of KGC models to the range [0, 1], ensuring that values associated with true facts are close to 1, while values linked to false facts are close to 0. Through experiments on three benchmark datasets, we demonstrate that our proposed calibration method can significantly boost model performance in the CLQA task. Moreover, our approach can enhance the performance of CLQA while preserving the ranking evaluation metrics of KGC models. The code is available at https://github.com/changyi7231/CKGC.

Complex Logical Query Answering by Calibrating Knowledge Graph Completion Models

TL;DR

This paper proposes a method for calibrating KGC models, namely CKGC, which enables KGC models to adapt to answering complex logical queries and can enhance the performance of CLQA while preserving the ranking evaluation metrics of KGC models.

Abstract

Complex logical query answering (CLQA) is a challenging task that involves finding answer entities for complex logical queries over incomplete knowledge graphs (KGs). Previous research has explored the use of pre-trained knowledge graph completion (KGC) models, which can predict the missing facts in KGs, to answer complex logical queries. However, KGC models are typically evaluated using ranking evaluation metrics, which may result in values of predictions of KGC models that are not well-calibrated. In this paper, we propose a method for calibrating KGC models, namely CKGC, which enables KGC models to adapt to answering complex logical queries. Notably, CKGC is lightweight and effective. The adaptation function is simple, allowing the model to quickly converge during the adaptation process. The core concept of CKGC is to map the values of predictions of KGC models to the range [0, 1], ensuring that values associated with true facts are close to 1, while values linked to false facts are close to 0. Through experiments on three benchmark datasets, we demonstrate that our proposed calibration method can significantly boost model performance in the CLQA task. Moreover, our approach can enhance the performance of CLQA while preserving the ranking evaluation metrics of KGC models. The code is available at https://github.com/changyi7231/CKGC.

Paper Structure

This paper contains 34 sections, 12 equations, 2 figures, 7 tables.

Figures (2)

  • Figure 1: An query, its corresponding FOL form and its corresponding computation graph.
  • Figure 2: Fourteen types of queries used in the datasets, where "p" denotes relation projection, "i" denotes intersection, "u" denotes union, and "n" denotes negation.