cs.LGOct 11, 2026

MERIT: Scaling KG Foundation Models with Relation Transformers

Authors: Cosimo Gregucci, Daniel Hernandez, Antonio Vergari, Steffen Staab

Organizations: Institute for Artificial Intelligence, University of Stuttgart, Germany · School of Informatics, University of Edinburgh, UK · University of Southampton

Abstract

Knowledge graph (KG) foundation models (KGFMs) predict links on unseen graphs zero-shot. KGFMs have been pioneered by ULTRA which builds a relation graph from co-occurrences that match motif templates, and passes messages over it to obtain relation representations. More recent KGFMs such as MOTIF and TRIX increase the size of this relation graph, and FLOCK replaces message-passing with probabilistic random-walk ensembles. However, larger relation graphs mean more messages, and more walks mean more sequences to encode, so they improve performance at higher training and inference cost. This cost hinders their use in more complex reasoning tasks, such as complex query answering. To reverse this trend, we design MERIT, the first KGFM with a transformer relation encoder: every relation name attends to every other, and the motifs enter as a soft prior rather than as edges. Over 56 benchmarks, MERIT matches the zero-shot MRR of SoTA KGFMs while being 6x faster than TRIX and over 100x faster than FLOCK at inference. Fine-tuned for complex query answering like UltraQuery, MERITQuery improves over it at matched cost.

Figures & tables

Appendix figures & tables18 assets

Supplementary material from the paper’s appendix.

Appendix

Explore similar work

CardsList
  1. Search-on-Graph-R1: Training Large Language Models to Search Knowledge Graphs with Reinforcement Learning

    Jul 20, 2026Jia Ao Sun, Hao Yu, Fengran Mo +4LLM Reasoning with GraphsRL for Language Model Reasoning

  2. KGFR: A Foundation Retriever for Generalized Knowledge Graph Question Answering

    Nov 6, 2025Yuanning Cui, Zequn Sun, Wei Hu +1Multi-Hop QALLM Grounding