Papers › CoDEx: A Comprehensive Knowledge Graph Completion Benchmark

CoDEx: A Comprehensive Knowledge Graph Completion Benchmark

16 Sep 2020EMNLP 2020 11arXiv:2009.07810archive 2025-07-28

Tara Safavi, Danai Koutra

We present CoDEx, a set of knowledge graph completion datasets extracted from Wikidata and Wikipedia that improve upon existing knowledge graph completion benchmarks in scope and level of difficulty. In terms of scope, CoDEx comprises three knowledge graphs varying in size and structure, multilingual descriptions of entities and relations, and tens of thousands of hard negative triples that are plausible but verified to be false. To characterize CoDEx, we contribute thorough empirical analyses and benchmarking experiments. First, we analyze each CoDEx dataset in terms of logical relation patterns. Next, we report baseline link prediction and triple classification results on CoDEx for five extensively tuned embedding models. Finally, we differentiate CoDEx from the popular FB15K-237 knowledge graph completion dataset by showing that CoDEx covers more diverse and interpretable content, and is a more difficult link prediction benchmark. Data, code, and pretrained models are available at https://bit.ly/2EPbrJs.

PaperPDFConference PDFCode

In Syntology Open this paper in Syntology's Atlas, the map of the papers in Syntology's graph and their citations.

Code

tsafavi/codex officialmentioned in papermentioned on GitHubpytorchMIT report
facebookresearch/ssl-relation-prediction mentioned on GitHubpytorchNOASSERTION report

Repository list and official/mentioned flags are the archive's, frozen 2025-07-28. Reachability, where shown, is from one Syntology probe window (2026-09-16 to 2026-09-18); repositories not probed show nothing. GitHub stars are not tracked.

Code Syntology ran Syntology

Not run by Syntology. Nothing on this page verifies that the listed code works.

Tasks

BenchmarkingKnowledge Graph CompletionKnowledge GraphsLink PredictionTriple Classification

Datasets

Introduced by this paper, per the archive.

CoDEx LargeCoDEx MediumCoDEx Small

Results from the paper archive 2025-07-28

TaskDatasetModelMetricValueRank at snapshotLeaderboardReport
Link Prediction CoDEx Large TuckER Hits@1 0.244 #2 of 6 Archive leaderboard report
Link Prediction CoDEx Large TuckER Hits@10 0.430 #2 of 6 Archive leaderboard report
Link Prediction CoDEx Large TuckER Hits@3 0.3395 #2 of 6 Archive leaderboard report
Link Prediction CoDEx Large TuckER MRR 0.309 #2 of 6 Archive leaderboard report
Link Prediction CoDEx Large RESCAL Hits@1 0.242 #3 of 6 Archive leaderboard report
Link Prediction CoDEx Large RESCAL Hits@10 0.419 #3 of 6 Archive leaderboard report
Link Prediction CoDEx Large RESCAL Hits@3 0.3313 #3 of 6 Archive leaderboard report
Link Prediction CoDEx Large RESCAL MRR 0.304 #3 of 6 Archive leaderboard report
Link Prediction CoDEx Large ConvE Hits@1 0.240 #4 of 6 Archive leaderboard report
Link Prediction CoDEx Large ConvE Hits@10 0.420 #4 of 6 Archive leaderboard report
Link Prediction CoDEx Large ConvE Hits@3 0.3298 #4 of 6 Archive leaderboard report
Link Prediction CoDEx Large ConvE MRR 0.303 #4 of 6 Archive leaderboard report
Link Prediction CoDEx Large ComplEx Hits@1 0.237 #5 of 6 Archive leaderboard report
Link Prediction CoDEx Large ComplEx Hits@10 0.400 #5 of 6 Archive leaderboard report
Link Prediction CoDEx Large ComplEx Hits@3 0.3179 #5 of 6 Archive leaderboard report
Link Prediction CoDEx Large ComplEx MRR 0.294 #5 of 6 Archive leaderboard report
Link Prediction CoDEx Large TransE Hits@1 0.116 #6 of 6 Archive leaderboard report
Link Prediction CoDEx Large TransE Hits@10 0.317 #6 of 6 Archive leaderboard report
Link Prediction CoDEx Large TransE Hits@3 0.2188 #6 of 6 Archive leaderboard report
Link Prediction CoDEx Large TransE MRR 0.187 #6 of 6 Archive leaderboard report
Link Prediction CoDEx Medium ComplEx Hits@1 0.244 #3 of 7 Archive leaderboard report
Link Prediction CoDEx Medium ComplEx Hits@10 0.456 #3 of 7 Archive leaderboard report
Link Prediction CoDEx Medium ComplEx Hits@3 0.3477 #3 of 7 Archive leaderboard report
Link Prediction CoDEx Medium ComplEx MRR 0.337 #3 of 7 Archive leaderboard report
Link Prediction CoDEx Medium TuckER Hits@1 0.223 #4 of 7 Archive leaderboard report
Link Prediction CoDEx Medium TuckER Hits@10 0.454 #4 of 7 Archive leaderboard report
Link Prediction CoDEx Medium TuckER Hits@3 0.3363 #4 of 7 Archive leaderboard report
Link Prediction CoDEx Medium TuckER MRR 0.328 #4 of 7 Archive leaderboard report
Link Prediction CoDEx Medium ConvE Hits@1 0.262 #5 of 7 Archive leaderboard report
Link Prediction CoDEx Medium ConvE Hits@10 0.476 #5 of 7 Archive leaderboard report
Link Prediction CoDEx Medium ConvE Hits@3 0.3701 #5 of 7 Archive leaderboard report
Link Prediction CoDEx Medium ConvE MRR 0.318 #5 of 7 Archive leaderboard report
Link Prediction CoDEx Medium RESCAL Hits@1 0.239 #6 of 7 Archive leaderboard report
Link Prediction CoDEx Medium RESCAL Hits@10 0.464 #6 of 7 Archive leaderboard report
Link Prediction CoDEx Medium RESCAL Hits@3 0.3551 #6 of 7 Archive leaderboard report
Link Prediction CoDEx Medium RESCAL MRR 0.317 #6 of 7 Archive leaderboard report
Link Prediction CoDEx Medium TransE Hits@1 0.259 #7 of 7 Archive leaderboard report
Link Prediction CoDEx Medium TransE Hits@10 0.458 #7 of 7 Archive leaderboard report
Link Prediction CoDEx Medium TransE Hits@3 0.3599 #7 of 7 Archive leaderboard report
Link Prediction CoDEx Medium TransE MRR 0.303 #7 of 7 Archive leaderboard report
Link Prediction CoDEx Small TuckER Hits@1 0.372 #2 of 6 Archive leaderboard report
Link Prediction CoDEx Small TuckER Hits@10 0.646 #2 of 6 Archive leaderboard report
Link Prediction CoDEx Small TuckER Hits@3 0.5038 #2 of 6 Archive leaderboard report
Link Prediction CoDEx Small TuckER MRR 0.444 #2 of 6 Archive leaderboard report
Link Prediction CoDEx Small ConvE Hits@1 0.219 #3 of 6 Archive leaderboard report
Link Prediction CoDEx Small ConvE Hits@10 0.634 #3 of 6 Archive leaderboard report
Link Prediction CoDEx Small ConvE Hits@3 0.4218 #3 of 6 Archive leaderboard report
Link Prediction CoDEx Small ConvE MRR 0.444 #3 of 6 Archive leaderboard report
Link Prediction CoDEx Small RESCAL Hits@1 0.343 #4 of 6 Archive leaderboard report
Link Prediction CoDEx Small RESCAL Hits@10 0.635 #4 of 6 Archive leaderboard report
Link Prediction CoDEx Small RESCAL Hits@3 0.4926 #4 of 6 Archive leaderboard report
Link Prediction CoDEx Small RESCAL MRR 0.404 #4 of 6 Archive leaderboard report
Link Prediction CoDEx Small ComplEx Hits@1 0.293 #5 of 6 Archive leaderboard report
Link Prediction CoDEx Small ComplEx Hits@10 0.623 #5 of 6 Archive leaderboard report
Link Prediction CoDEx Small ComplEx Hits@3 0.4494 #5 of 6 Archive leaderboard report
Link Prediction CoDEx Small ComplEx MRR 0.404 #5 of 6 Archive leaderboard report
Link Prediction CoDEx Small TransE Hits@1 0.339 #6 of 6 Archive leaderboard report
Link Prediction CoDEx Small TransE Hits@10 0.638 #6 of 6 Archive leaderboard report
Link Prediction CoDEx Small TransE Hits@3 0.4975 #6 of 6 Archive leaderboard report
Link Prediction CoDEx Small TransE MRR 0.354 #6 of 6 Archive leaderboard report

Ranks are positions in the archive's leaderboards as they stood at the 2025-07-28 snapshot. Results published since then are not among these rows, so a rank here is not a current standing.

Report a problem or propose a change · a person checks every report against the paper or source before anything changes; decisions are listed on /corrections