The Role of Graph Topology in the Performance of Biomedical Knowledge Graph Completion Models

Alberto Cattaneo, Stephen Bonner, Thomas Martynec, Carlo Luschi, Ian P. Barrett, Daniel Justus · OpenReview

Abstract

Knowledge Graph Completion has been increasingly adopted as a useful method for several tasks in biomedical research, like drug repurposing or drug-target identification. To that end, a variety of datasets and Knowledge Graph Embedding models has been proposed over the years. However, little is known about the properties that render a dataset useful for a given task and, even though theoretical properties of Knowledge Graph Embedding models are well understood, their practical utility in this field remains controversial. We conduct a comprehensive investigation into the topological properties of publicly available biomedical Knowledge Graphs and establish links to the accuracy observed in real-world applications. By releasing all model predictions and a new suite of analysis tools we invite the community to build upon our work and continue improving the understanding of these crucial applications.

Introduction

Biomedical Knowledge Graphs (KGs) are essential for modern drug discovery, enabling researchers to identify novel drug-target interactions or repurpose existing medications. However, these graphs are inherently incomplete. Knowledge Graph Completion (KGC) models are employed to predict missing links, yet their real-world performance often remains a "black box." While the mathematical foundations of these models are well-defined, their inconsistent performance across different datasets lacks a clear explanatory framework. This research moves beyond macro-level analysis to investigate how local graph topology—specifically at the individual triple level—dictates model accuracy.

Methodology: A Topological Audit

The researchers conducted a systematic "topological audit" of five major biomedical KGs. Unlike previous studies that focused on broad relation averages, this approach analyzes individual triples $(h, r, t)$ to understand the micro-level structural influences on performance.

Topological Categorization

Edges were classified based on cardinality (e.g., one-to-one, many-to-many) and four fundamental structural patterns:

  • Symmetry: If $A \to B$ exists, does $B \to A$?
  • Inference: Do multiple relation types exist between the same pair?
  • Inverse: Does $A \xrightarrow{r1} B$ imply $B \xrightarrow{r2} A$?
  • Composition: Is $A \to B$ supported by a path through a third node $C$ ($A \to C \to B$)?
Four key topological patterns used to categorize triples: Symmetry, Inference, Inverse, and Composition.

Benchmarking and Tools

Five popular KGE models—TransE, DistMult, RotatE, TripleRE, and ConvE—were benchmarked across all datasets to correlate structural patterns with Mean Reciprocal Rank (MRR). To facilitate further research, the authors released the kg-topology-toolbox, a Python library for calculating these topological statistics.

Datasets

The study utilized five prominent biomedical KGs and one general-domain baseline:

  • Hetionet: A classic, well-curated biomedical graph.
  • PrimeKG: A large-scale, multi-modal graph for precision medicine.
  • PharmKG: Focused on drug-gene-disease interactions.
  • OpenBioLink: A large-scale benchmark for link prediction.
  • PharMeBINet: A massive heterogeneous network built by aggregating multiple databases.
  • FB15k-237: A standard general-knowledge baseline.

Key Insights: The Impact of Structure on Accuracy

The investigation revealed several critical links between topology and model performance:

The Influence of Node Degree

Model accuracy is significantly biased by node degrees. A high "in-degree" for a tail entity makes it easier to predict as the model is more likely to select a popular destination. Conversely, a high "out-degree" for a head entity increases difficulty due to the proliferation of potential correct answers.

The Power of Composition Patterns

The presence of "composition" patterns—triangular structures in the graph—is a primary driver of accuracy. Models effectively "triangulate" missing facts using these paths, especially when the involved nodes have low degrees.

Distribution of composition counts across different intermediate entity types in Hetionet and PrimeKG.

Data Volume vs. Quality

A key finding is that more data does not necessarily lead to better performance. In a comparison between Hetionet and the larger PharMeBINet, models trained on the smaller, more tailored Hetionet often outperformed those on the larger graph. The additional data in PharMeBINet introduced noise that hindered the shallow embedding models.

Mathematical Constraints

Models like TransE, which cannot mathematically represent symmetry, suffer significant performance drops when encountering symmetric relations, regardless of the amount of training data provided.

Conclusion and Future Directions

This study demonstrates that graph structure is as critical as model architecture in determining KGC performance. While shallow embedding models are industry standards, future work should investigate how deeper models or Graph Neural Networks (GNNs) interact with these topological motifs. Furthermore, the findings suggest a need for "principled graph construction"—optimizing KGs by pruning noise to better align with the mathematical capabilities of the models.

Summary updated

BibTeX
@article{cattaneo2025role,
  author = {Alberto Cattaneo and Stephen Bonner and Thomas Martynec and Carlo Luschi and Ian P. Barrett and Daniel Justus},
  title = {{The Role of Graph Topology in the Performance of Biomedical Knowledge Graph Completion Models}},
  journal = {Bioinformatics},
  year = {2025},
  doi = {10.1093/bioinformatics/btaf547},
}
Figure