Introduction
Knowledge Graph Completion (KGC) is a fundamental task in artificial intelligence, focused on predicting missing links between entities within a graph. For years, research has been dominated by legacy benchmarks derived from Freebase, such as FB15K-237. However, these datasets suffer from critical flaws including significant data leakage through inverse relations, trivial relational patterns, and a narrow domain focus primarily on entertainment and sports. Furthermore, standard evaluation protocols often rely on "easy negatives"—randomly generated fake triples that are so nonsensical they fail to challenge modern models.
The CoDEx Methodology
To address these limitations, the authors introduced CoDEx (Knowledge Graph COmpletion Datasets EXtracted from Wikidata). The construction of CoDEx involved a rigorous multi-step pipeline designed to ensure high quality and diversity:
- Diverse Sampling: The researchers employed "snowball sampling" across 13 distinct domains, including science, medicine, and politics, to ensure a broad thematic scope.
- Leakage Prevention: They explicitly removed inverse relations and ensured that no entity pairs in the test set were directly linked in the training set, preventing models from relying on trivial shortcuts.
- Hard Negative Generation: A standout feature of CoDEx is the inclusion of manually verified "hard negatives." Instead of random entities, pre-trained models identified "plausible" but false triples, which were then validated by humans to ensure they were truly false.
- Rich Auxiliary Data: The benchmark includes entity types, multilingual labels in six languages, and Wikipedia introductory text to support and encourage multi-modal KGC research.
Dataset Characteristics
CoDEx is released in three versions to cater to different research needs, ranging from rapid prototyping to large-scale evaluation.
- CoDEx-S (Small): Approximately 36k triples; ideal for symbolic approaches and quick model testing.
- CoDEx-M (Medium): Approximately 206k triples; comparable in scale to FB15K-237 but significantly more challenging due to the lack of trivial patterns.
- CoDEx-L (Large): Over 612k triples; designed for large-scale evaluation and few-shot learning scenarios.
Key Insights and Evaluation
The evaluation of CoDEx revealed several critical insights into the current state of KGC models:
- The "Frequency Trap": In older datasets, simple baselines guessing based on entity frequency could outperform state-of-the-art models on nearly 15% of the test set. CoDEx successfully minimizes these trivial patterns, requiring models to perform actual relational reasoning.
- Hard Negatives Reveal Performance Gaps: Triple classification was previously thought to be nearly "solved" with ~90% accuracy. CoDEx shows that when tested against manually verified hard negatives, model performance drops by up to 19 percentage points, revealing a significant gap in true discriminative power.
- Benchmark Performance: A simple frequency-based baseline achieves an MRR of 0.236 on FB15K-237 but only 0.135 on CoDEx-M, proving the new benchmark requires actual learning. Across all versions, ComplEx and TuckER generally emerged as the strongest baselines.
- Hyperparameter Sensitivity: A large-scale study showed that tuning can affect performance by over 30 percentage points, suggesting that training strategies are often as critical as model architecture.
Conclusion and Future Work
CoDEx provides a more robust and realistic testbed for Knowledge Graph Completion. While the Small and Medium datasets benefit from manual verification, scaling this to the Large dataset remains a challenge for future crowdsourcing efforts. Additionally, the inclusion of Wikipedia text and multilingual labels opens new avenues for "fusing" graph structure with natural language, particularly for few-shot link prediction and cross-lingual knowledge transfer.
Summary updated