Q-GNN: Query-Conditioned Graph Neural Networks with Type Awareness for Knowledge Graph Completion

Dongxiao He, Ruqiong Zhang, Zhizhi Yu, Ling Ding, Di Jin +2 more
6/4/2026
cs.LG
gnn

No confident code implementation found for this paper.

Abstract

Knowledge Graph Completion (KGC) aims at predicting missing triplets from incomplete knowledge graphs, which is crucial for downstream applications. Recently, Graph Neural Network (GNN)-based methods have achieved remarkable success by performing message passing over query-centered local subgraphs.

Show full abstract

However, in practice, a query is jointly defined by both the entity and the relation, with both carrying information indispensable for reasoning, yet these methods rely solely on the query relation as the guiding signal, while the information inherent in the query entity is not leveraged to guide inference - the entity serves merely as a structural anchor for subgraph extraction. To this end, we incorporate query entity information into the reasoning process from two perspectives: the first is structural context, i.e., the neighboring structure and relation patterns around the entity, which is encoded by a dedicated context encoder and used to modulate messages; the second is semantic type of the entity, inferred by a large language model, which is incorporated into attention computation and final scoring to provide type-level prior constraints. Together, these two sources of information enable the reasoning process to be guided by both the query relation and the query entity. Experimental results on standard benchmarks demonstrate the effectiveness of the proposed Q-GNN.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. Any repos shown below are weak matches — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{he2026qgnn,
  title  = {Q-GNN: Query-Conditioned Graph Neural Networks with Type Awareness for Knowledge Graph Completion},
  author = {Dongxiao He and Ruqiong Zhang and Zhizhi Yu and Ling Ding and Di Jin and Guangquan Xu and Zhiyong Feng},
  year   = {2026},
  eprint = {2606.05639},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2606.05639v1}
}

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

Discussion