A Foundation Model for Zero-shot Logical Query Reasoning

Mikhail Galkin, Jincheng Zhou, Bruno Ribeiro, Jian Tang, Zhaocheng Zhu
4/10/2024
cs.AIcs.LG

No official code found. Best implementation: DeepGraphLearning/ULTRA (648 stars, MIT, last commit 2025-02-03).

Abstract

Complex logical query answering (CLQA) in knowledge graphs (KGs) goes beyond simple KG completion and aims at answering compositional queries comprised of multiple projections and logical operations. Existing CLQA methods that learn parameters bound to certain entity or relation vocabularies can only be applied to the graph they are trained on which requires substantial training time before being deployed on a new graph. Here we present UltraQuery, the first foundation model for inductive reasoning that can zero-shot answer logical queries on any KG. The core idea of UltraQuery is to derive both projections and logical operations as vocabulary-independent functions which generalize to new entities and relations in any KG. With the projection operation initialized from a pre-trained inductive KG reasoning model, UltraQuery can solve CLQA on any KG after finetuning on a single dataset. Experimenting on 23 datasets, UltraQuery in the zero-shot inference mode shows competitive or better query answering performance than best available baselines and sets a new state of the art on 15 of them.

View on arXivView PDF

Code Implementations(1)

MIT

A foundation model for knowledge graph reasoning

64887C++, CudaOct 23, 20231 years agoMIT

Similar Papers

Cite this paper

@article{galkin2024foundation,
  title  = {A Foundation Model for Zero-shot Logical Query Reasoning},
  author = {Mikhail Galkin and Jincheng Zhou and Bruno Ribeiro and Jian Tang and Zhaocheng Zhu},
  year   = {2024},
  eprint = {2404.07198},
  archivePrefix = {arXiv},
  doi    = {10.52202/079017-1715},
  url    = {http://arxiv.org/abs/2404.07198v2},
  journal = {NEURIPS 2024 2024}
}

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/2404.07198.svg)](https://codeofpaper.com/paper/2404.07198)

Discussion