TL;DR
Most Knowledge Graph (KG) embedding and reasoning models are developed and evaluated on a narrow set of semantic web datasets, assuming their graph structures generalize. By analyzing 29 real-world KGs across biomedicine, the semantic web, and societal domains, this paper reveals stark structural differences in density, node degrees, relation cardinalities, and composition. The authors argue that treating all KGs as structurally interchangeable leads to flawed evaluations and urge researchers to adopt domain-aware benchmarking.
What Problem Does This Paper Address?
Knowledge graphs power critical applications across natural language processing (NLP), biomedicine, materials science, and search engines. In machine learning research, new KG algorithms—ranging from link prediction embeddings (e.g., TransE, ComplEx) to graph neural networks and KG-augmented language models—are typically evaluated on a tiny handful of popular semantic web benchmarks like FB15k, WN18, or Wikidata5M.
However, do real-world KGs actually look like these benchmark datasets? While homogeneous networks (social networks, web graphs) have been extensively studied, multi-relational KGs have largely escaped systematic topological analysis. This paper addresses a fundamental question: What topological and structural properties do real-world KGs exhibit across different domains, and how do they differ from one another?
Methods
The authors conducted a large-scale comparative analysis across 29 real-world KGs accessed via the PyKEEN library. Rather than training models, they systematically measured several structural dimensions across the full graph datasets:
- Network Statistics and Sparsity: Entity counts, relation counts, triple counts, average node degree (sum of in-degree and out-degree), degree distribution, and graph density ($|E| / |R|^2$).
- Relation Cardinality: Quantifying relations into one-to-one (1-1), one-to-many (1-M), many-to-one (M-1), and many-to-many (M-M).
- Relational Patterns: Using association rule mining (with a 95% confidence threshold) to classify relations into asymmetric, symmetric, inverse (e.g., $r(h, t) \iff r'(t, h)$), and composite ($r_1(x, y) \land r_2(y, z) \implies r(x, z)$).
- Metapath Connectivity: Estimating higher-order composition by uniformly sampling entities and counting metapaths of lengths 2, 3, and 4 originating from them.
Datasets
The authors analyzed 29 open-source datasets divided into three distinct domains:
- Biomedical KGs (9): AristoV4, BioKG, DRKG, Globi, Hetionet, OpenBioLink, PharmKG, PharmKG8k, PrimeKG, UMLS. Derived from curated databases (e.g., DrugBank, PubChem) detailing biological interactions between genes, drugs, and diseases.
- Semantic Web KGs (17): CoDExLarge, CoDExMedium, CoDExSmall, ConceptNet, CSKG, DB100K, DBpedia50, FB15k, FB15k-237, OGBWikiKG2, OpenEA, WD50K, Wikidata5M, WN18, WN18RR, YAGO3-10. Triples extracted primarily from text corpora or community wikis (Wikipedia, WordNet, Wikidata).
- Societal KGs (3): Countries, Kinships, Nations. Manually curated datasets capturing real-world factual and international relationships.
Key Insights and Ideas
- Semantic Web Benchmarks Do Not Represent Other Domains: Biomedical graphs are characterized by large, highly interconnected interaction networks dominated by Many-to-Many (M-M) edges. In contrast, semantic web graphs skew strongly toward One-to-One (1-1) or Many-to-One (M-1) edges with far lower average degrees.
- The "Inverse Relation Problem" Has Not Disappeared: Toutanova and Chen (2015) identified that inverse relations in FB15k caused severe test-set data leakage (spurring the creation of FB15k-237). Despite this known issue, several later datasets (such as DB100K, DBpedia50, and OpenEA) still contain inverse relations that can distort benchmark results.
- Composite Relations Are Unusually Rare: Natural KGs across all domains possess almost no true composite relations—with FB15k-237 being a notable exception. Because composite relations create triangles and reduce multi-hop reasoning complexity, relying on FB15k-237 may give researchers a skewed impression of how well models perform multi-hop reasoning.
- Metapath Abundance in Biomedicine: Biomedical KGs contain orders of magnitude more short metapaths (length 2–4) than typical semantic web graphs, reflecting dense biological pathways and multi-relational interplay.
Key Results
| Metric / Dimension | Semantic Web KGs | Biomedical KGs | Societal KGs |
|---|---|---|---|
| Scale & Size | Dominate the largest scales (ConceptNet: ~28.4M entities; Wikidata5M: ~4.6M entities). | Mid-sized to large (PrimeKG: 129k entities, 8.1M triples; BioKG: 105k entities, 2M triples). | Tiny entity counts (Nations: 14; Kinships: 104; Countries: 271). |
| Average Node Degree | Very low (ConceptNet: 1; WN18RR: 2; DBpedia50: 1; FB15k is an outlier at 40). | High to moderate (PrimeKG: 63; DRKG: 60; Hetionet: 50; UMLS: 48). | Extremely dense (Nations: 143; Kinships: 103). |
| Leading Cardinality | 15 of 28 total datasets are 1-1 dominant (mainly semantic web); CoDEx datasets are uniquely M-1 dominant. | 11 of 28 datasets are M-M dominant (BioKG, Hetionet, PrimeKG, OpenBioLink). | Exclusively M-M dominant. |
| Relational Patterns | Almost strictly anti-symmetric, but datasets like FB15k/FB15k-237 display all 4 relation patterns. | Dominated by anti-symmetric relations; 0% composite relations. | High symmetry, presence of composite relations. |
Limitations and Future Work
- No Downstream Task Benchmarking: The study focuses strictly on cataloging structural properties rather than empirically running embedding, link prediction, or entity alignment models to quantify how specific metrics degrade across these graph types.
- Missing Datasets: A few PyKEEN-supported datasets (e.g., WK3l15k, WK3l120k, CN3l, CKG) were omitted because original hosting URLs were broken.
- Future Directions: The authors advocate for:
- Evaluating how structural profiles directly correlate with downstream embedding algorithms.
- Adding automated tools in KG libraries to detect and prune inverse relation leakage.
- Designing domain-specific, structurally diverse evaluation suites instead of treating semantic web benchmarks as universal proxies.
Summary updated