All research

Research / 01 / Contextual learning

KGPFN

Learning from graph context.

KGPFN combines local neighbourhoods, relation patterns and example triples to predict missing links through in-context learning.

Local contextGlobal contextLink prediction
KGPFN architecture: local and global graph context feed a graph encoder, feature fusion and a prior-data fitted network.
Gao et al. · 2026 · Figure 2 View full size

The research

What this work contributes.

A model trained on one knowledge graph may struggle with new entities or relation types. KGPFN addresses this by conditioning predictions on examples from the target graph, adapting at inference time without updating its parameters.

The method

How it works.

  1. Build the context

    Gather examples of the queried relation and the neighbourhood around each head entity.

  2. Encode the structure

    Combine relation representations, local graph features and candidate-tail interaction signals.

  3. Predict through examples

    A prior-data fitted network attends across features and examples to rank possible missing links.

From the paper

Evaluated across 57 graph benchmarks

The authors report strong transfer to unseen graphs through in-context learning, outperforming competitive fine-tuned baselines in inductive and fully inductive settings.

Explore the study

Connection to finance

From research to financial intelligence.

Financial information is relational: issuers, subsidiaries, instruments and suppliers connect across many datasets. Context-sensitive link prediction suggests a way to investigate gaps in those connections.

Issuer and counterparty research

Rank candidate relationships between companies, securities and counterparties for an analyst to verify against filings and source records.

Adapting to a new coverage universe

Use examples from a new sector or regional dataset to guide relationship discovery when its entities and relation vocabulary differ from existing coverage.

An example in practice

Which supplier relationships might be missing from our coverage of this issuer?

An illustrative workflow would combine the issuer’s known neighbourhood with examples of supplier links, then return candidates for document review. These candidates would be research leads, with confirmed links stored separately.

These potential applications are our interpretation of the method. Financial outcomes are not evaluated in the cited work.

Paper & resources

Read the original work.

KGPFN: Unlocking the Potential of Knowledge Graph Foundation Model via In-Context Learning

Yisen Gao, Jiaxin Bai, Haoyu Huang, Zhongwei Xie, Yufei Li, Hong Ting Tsang, Sirui Han and Yangqiu Song

14 May 2026 · Research preprint