{"about":{"site":"https://codewithpapers.app","non_affiliation":"Code with Papers and Syntology are not affiliated with, endorsed by, or sponsored by Papers with Code, Meta, or the pwc-archive mirror.","licence":"CC BY-SA 4.0","licence_url":"https://creativecommons.org/licenses/by-sa/4.0/legalcode","attribution":"https://codewithpapers.app/attribution","modified":"archive material modified by Syntology; see the attribution page"},"url":"/paper/interpretable-and-fair-comparison-of-link","title":"On the Ambiguity of Rank-Based Evaluation of Entity Alignment or Link Prediction Methods","arxiv_id":"2002.06914","date":"2020-02-17","proceeding":null,"authors":["Max Berrendorf","Evgeniy Faerman","Laurent Vermue","Volker Tresp"],"abstract":"In this work, we take a closer look at the evaluation of two families of methods for enriching information from knowledge graphs: Link Prediction and Entity Alignment. In the current experimental setting, multiple different scores are employed to assess different aspects of model performance. We analyze the informativeness of these evaluation measures and identify several shortcomings. In particular, we demonstrate that all existing scores can hardly be used to compare results across different datasets. Moreover, we demonstrate that varying size of the test size automatically has impact on the performance of the same model based on commonly used metrics for the Entity Alignment task. We show that this leads to various problems in the interpretation of results, which may support misleading conclusions. Therefore, we propose adjustments to the evaluation and demonstrate empirically how this supports a fair, comparable, and interpretable assessment of model performance. Our code is available at https://github.com/mberr/rank-based-evaluation.","url_abs":"https://arxiv.org/abs/2002.06914v5","url_pdf":"https://arxiv.org/pdf/2002.06914v5.pdf","source":{"archive":"pwc-archive (Hugging Face), CC BY-SA 4.0","snapshot":"2025-07-28","licence_url":"https://creativecommons.org/licenses/by-sa/4.0/legalcode","row_kind":"abstracts"},"code_links":[{"paper_slug":"interpretable-and-fair-comparison-of-link","repo_url":"https://github.com/mberr/rank-based-evaluation","is_official":1,"mentioned_in_paper":1,"mentioned_in_github":0,"framework":"pytorch","reach":{"status":"ok","spdx":"MIT"}}],"tasks":[{"task_slug":"entity-alignment","task_name":"Entity Alignment"},{"task_slug":"informativeness","task_name":"Informativeness"},{"task_slug":"knowledge-graphs","task_name":"Knowledge Graphs"},{"task_slug":"link-prediction","task_name":"Link Prediction"}],"methods":[{"method_slug":"test","method_name":"Test"}],"datasets_introduced":[],"methods_introduced":[],"results":[],"syntology":{"atlas_url":"https://app.syntology.ai/?focus=2002.06914","mcp":{"get_harvested_code_for_paper":{"arxiv_id":"2002.06914"}},"developers":"https://syntology.ai/developers","read_at":"2026-09-24T18:15:14+00:00","read_at_is":"when the build read Syntology's graph, not when any sample ran","claim":"Per-sample execution status on synthesized fixtures; not a correctness claim about the paper. Samples come from repositories linked to the paper, official or community; repo_kind says which.","repos":[{"provenance":"external:paperswithcode_snapshot_2025-07-28","url":"https://github.com/mberr/rank-based-evaluation","reach":{"status":"ok","spdx":"MIT"}}],"summary":{"unverified":11},"by_repo_kind":{"official":{"samples":11,"ran":0,"repositories":1}},"repo_kind_vocabulary":{"official":"The archive marks this repository official for the paper","named_in_paper":"The archive records that the paper mentions this repository; it is not marked official","listed":"In the archive's code links for this paper, not marked official and not recorded as mentioned in the paper","found_in_text":"Syntology found this repository in the paper's own text; whether it is the authors' implementation is not asserted","community":"Not in the archive's code links for this paper; a community repository Syntology harvested"},"n_pointer_only_for_licence":0,"samples":[{"code_sha256_prefix":"f0fb7775745ffc20","entry":"aggregate_ranks","repo":"mberr/rank-based-evaluation","repo_kind":"official","path":"src/kgm/eval/common.py","file_url":"https://github.com/mberr/rank-based-evaluation/blob/HEAD/src/kgm/eval/common.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"f0fb7775745ffc20"}},{"code_sha256_prefix":"35e9202e35b8bbdc","entry":"base_loss_name_normalizer","repo":"mberr/rank-based-evaluation","repo_kind":"official","path":"src/kgm/modules/losses.py","file_url":"https://github.com/mberr/rank-based-evaluation/blob/HEAD/src/kgm/modules/losses.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"35e9202e35b8bbdc"}},{"code_sha256_prefix":"fb175edadd075161","entry":"compute_ranks","repo":"mberr/rank-based-evaluation","repo_kind":"official","path":"src/kgm/eval/common.py","file_url":"https://github.com/mberr/rank-based-evaluation/blob/HEAD/src/kgm/eval/common.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"fb175edadd075161"}},{"code_sha256_prefix":"1945e751bd381bf7","entry":"enum_values","repo":"mberr/rank-based-evaluation","repo_kind":"official","path":"src/kgm/utils/common.py","file_url":"https://github.com/mberr/rank-based-evaluation/blob/HEAD/src/kgm/utils/common.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"1945e751bd381bf7"}},{"code_sha256_prefix":"a025efdcb1a42ce7","entry":"get_pairwise_loss","repo":"mberr/rank-based-evaluation","repo_kind":"official","path":"src/kgm/modules/losses.py","file_url":"https://github.com/mberr/rank-based-evaluation/blob/HEAD/src/kgm/modules/losses.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"a025efdcb1a42ce7"}},{"code_sha256_prefix":"24c3f21daf7bffe9","entry":"get_rank","repo":"mberr/rank-based-evaluation","repo_kind":"official","path":"src/kgm/eval/common.py","file_url":"https://github.com/mberr/rank-based-evaluation/blob/HEAD/src/kgm/eval/common.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"24c3f21daf7bffe9"}},{"code_sha256_prefix":"371ee716e84139b6","entry":"get_similarity","repo":"mberr/rank-based-evaluation","repo_kind":"official","path":"src/kgm/modules/similarity.py","file_url":"https://github.com/mberr/rank-based-evaluation/blob/HEAD/src/kgm/modules/similarity.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"371ee716e84139b6"}},{"code_sha256_prefix":"7270ec7d537c2ad1","entry":"identity","repo":"mberr/rank-based-evaluation","repo_kind":"official","path":"src/kgm/utils/common.py","file_url":"https://github.com/mberr/rank-based-evaluation/blob/HEAD/src/kgm/utils/common.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"7270ec7d537c2ad1"}},{"code_sha256_prefix":"c4ddb92d17afd0e8","entry":"matching_loss_name_normalizer","repo":"mberr/rank-based-evaluation","repo_kind":"official","path":"src/kgm/modules/losses.py","file_url":"https://github.com/mberr/rank-based-evaluation/blob/HEAD/src/kgm/modules/losses.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"c4ddb92d17afd0e8"}},{"code_sha256_prefix":"550d97ba3bc5dc07","entry":"transformation_normalizer","repo":"mberr/rank-based-evaluation","repo_kind":"official","path":"src/kgm/modules/similarity.py","file_url":"https://github.com/mberr/rank-based-evaluation/blob/HEAD/src/kgm/modules/similarity.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"550d97ba3bc5dc07"}},{"code_sha256_prefix":"44d1ede746faf793","entry":"value_to_enum","repo":"mberr/rank-based-evaluation","repo_kind":"official","path":"src/kgm/utils/common.py","file_url":"https://github.com/mberr/rank-based-evaluation/blob/HEAD/src/kgm/utils/common.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"44d1ede746faf793"}}]},"arxiv_metadata":null,"syntology_extracted_results":null}