atlas

Research map / Graph learning / Knowledge and temporal graphs

KnowFormer: Revisiting Transformers for Knowledge Graph Reasoning

ICML 2024 · Graph learning › Knowledge and temporal graphs · approach: Logical query answering and rule reasoning · 2 citations (OpenAlex)

Read the paperCheck your idea against 108,967 papers

AI-extracted summary. Written by AI from the paper's full text. Numbers and claims can be wrong or missing context, so check the paper before you cite or build on it.

Proposes KnowFormer, a text-free transformer for knowledge graph reasoning whose attention uses query-prototype-based kernels computed by relational message-passing networks, with a linear-complexity approximation of the exponential kernel.

Problem

Path-based knowledge graph reasoning methods suffer from missing paths and over-squashing in message passing, while PLM-based transformer methods rely on textual descriptions and fail to capture structure in domain-specific KGs.

Approach

Redefine self-attention over entities as a weighted aggregation based on query prototypes (plausibility of entity pairs for the query relation), with query and value functions built from relational message-passing networks (Q-RMPNN, V-RMPNN) and a first-order Taylor approximation of the exponential kernel that makes attention linear in entities and facts.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
add the proposed attention mechanism (ablation)KnowFormer · FB15k-237MRR: 0.417 -> 0.430Helped
add the query function (ablation)KnowFormer · FB15k-237MRR: 0.422 -> 0.430Helped
add the value function (ablation)KnowFormer · FB15k-237MRR: 0.367 -> 0.430Helped
use the proposed kernel instead of an RF-based kernel (ablation)KnowFormer · FB15k-237MRR: 0.419 -> 0.430Helped
replace the approximate kernel with the full-exponential kernel (ablation)KnowFormer · UMLSMRR: 0.971 -> 0.974Helped
use the approximate kernel instead of the full-exponential kernel (ablation)KnowFormer · UMLSMRR: 0.974 -> 0.971No clear effect

Surprising findings

Limitations

Experimental setup

Datasets: FB15k-237 WN18RR NELL-995 YAGO3-10 UMLS

Benchmarks: FB15k-237 WN18RR NELL-995 YAGO3-10 UMLS

Metrics: MRR Hits@1 Hits@10

Baselines: TransE DistMult RotatE HousE DRUM CompGCN RNNLogic NBFNet RED-GNN A*Net AdaProp Ultra

Builds on: NBFNet Simple transformer self-attention (Vaswani et al.) SAT (Structure-Aware Transformer) DistMult RA-WL_2 expressivity framework

Closest papers by meaning

Writing a paper in this area? scime draft is a free LaTeX editor with AI included, real-time co-authors and a check of your references and venue rules before you submit. It also imports OpenAI Prism projects.

Open scime draft

Get the next scime Dispatch and a monthly field update

Free. We send a confirmation link first; every email has a one-click unsubscribe. Privacy