{"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/low-dimensional-hyperbolic-knowledge-graph-1","title":"Low-Dimensional Hyperbolic Knowledge Graph Embeddings","arxiv_id":"2005.00545","date":"2020-05-01","proceeding":"ACL 2020 6","authors":["Ines Chami","Adva Wolf","Da-Cheng Juan","Frederic Sala","Sujith Ravi","Christopher Ré"],"abstract":"Knowledge graph (KG) embeddings learn low-dimensional representations of entities and relations to predict missing facts. KGs often exhibit hierarchical and logical patterns which must be preserved in the embedding space. For hierarchical data, hyperbolic embedding methods have shown promise for high-fidelity and parsimonious representations. However, existing hyperbolic embedding methods do not account for the rich logical patterns in KGs. In this work, we introduce a class of hyperbolic KG embedding models that simultaneously capture hierarchical and logical patterns. Our approach combines hyperbolic reflections and rotations with attention to model complex relational patterns. Experimental results on standard KG benchmarks show that our method improves over previous Euclidean- and hyperbolic-based efforts by up to 6.1% in mean reciprocal rank (MRR) in low dimensions. Furthermore, we observe that different geometric transformations capture different types of relations while attention-based transformations generalize to multiple relations. In high dimensions, our approach yields new state-of-the-art MRRs of 49.6% on WN18RR and 57.7% on YAGO3-10.","url_abs":"https://arxiv.org/abs/2005.00545v1","url_pdf":"https://arxiv.org/pdf/2005.00545v1.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":"low-dimensional-hyperbolic-knowledge-graph-1","repo_url":"https://github.com/tensorflow/neural-structured-learning","is_official":1,"mentioned_in_paper":1,"mentioned_in_github":0,"framework":"tf","reach":null},{"paper_slug":"low-dimensional-hyperbolic-knowledge-graph-1","repo_url":"https://github.com/HazyResearch/KGEmb","is_official":0,"mentioned_in_paper":0,"mentioned_in_github":1,"framework":"pytorch","reach":null},{"paper_slug":"low-dimensional-hyperbolic-knowledge-graph-1","repo_url":"https://github.com/tensorflow/neural-structured-learning/tree/master/research/kg_hyp_emb","is_official":0,"mentioned_in_paper":0,"mentioned_in_github":0,"framework":"tf","reach":null}],"tasks":[{"task_slug":"knowledge-graph-embeddings","task_name":"Knowledge Graph Embeddings"}],"methods":[],"datasets_introduced":[],"methods_introduced":[],"results":[{"leaderboard":"/sota/link-prediction-on-fb15k-237","task":"Link Prediction","dataset":"FB15k-237","model":"RefE","rank_in_archive_order":31,"of":75,"metrics":{"Hits@1":"0.256","Hits@10":"0.541","Hits@3":"0.390","MRR":"0.351"},"uses_additional_data":false},{"leaderboard":"/sota/link-prediction-on-wn18rr","task":"Link Prediction","dataset":"WN18RR","model":"RotH","rank_in_archive_order":18,"of":75,"metrics":{"Hits@1":"0.449","Hits@10":"0.586","Hits@3":"0.514","MRR":".496"},"uses_additional_data":false},{"leaderboard":"/sota/link-prediction-on-yago3-10","task":"Link Prediction","dataset":"YAGO3-10","model":"RefE","rank_in_archive_order":5,"of":18,"metrics":{"Hits@1":"0.503","Hits@10":"0.712","Hits@3":"0.621","MRR":"0.577"},"uses_additional_data":false}],"syntology":{"atlas_url":"https://app.syntology.ai/?focus=2005.00545","mcp":{"get_harvested_code_for_paper":{"arxiv_id":"2005.00545"}},"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/HazyResearch/KGEmb","reach":null},{"provenance":"external:paperswithcode_snapshot_2025-07-28","url":"https://github.com/tensorflow/neural-structured-learning/tree/master/research/kg_hyp_emb","reach":null},{"provenance":"external:paperswithcode_snapshot_2025-07-28","url":"https://github.com/tensorflow/neural-structured-learning","reach":null}],"summary":{"ran_draft_wrong":4,"unverified":7},"by_repo_kind":{"official":{"samples":3,"ran":0,"repositories":1},"listed":{"samples":8,"ran":4,"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":8,"samples":[{"code_sha256_prefix":"c20b667506a089d4","entry":"expmap0","repo":"HazyResearch/KGEmb","repo_kind":"listed","path":"models/hyperbolic.py","file_url":"https://github.com/HazyResearch/KGEmb/blob/HEAD/models/hyperbolic.py","link_basis":"first_harvest_node","language":"python","status":"ran_draft_wrong","verification_level":1,"contract_check":"MISDECLARED","metamorphic_tier":null,"behaviour_fingerprint":true,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"c20b667506a089d4"}},{"code_sha256_prefix":"a2d8a4c33a49b3b2","entry":"givens_rotations","repo":"HazyResearch/KGEmb","repo_kind":"listed","path":"models/hyperbolic.py","file_url":"https://github.com/HazyResearch/KGEmb/blob/HEAD/models/hyperbolic.py","link_basis":"first_harvest_node","language":"python","status":"ran_draft_wrong","verification_level":1,"contract_check":"MISDECLARED","metamorphic_tier":null,"behaviour_fingerprint":true,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"a2d8a4c33a49b3b2"}},{"code_sha256_prefix":"5b412bbe94824746","entry":"mobius_add","repo":"HazyResearch/KGEmb","repo_kind":"listed","path":"models/hyperbolic.py","file_url":"https://github.com/HazyResearch/KGEmb/blob/HEAD/models/hyperbolic.py","link_basis":"first_harvest_node","language":"python","status":"ran_draft_wrong","verification_level":1,"contract_check":"MISDECLARED","metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"5b412bbe94824746"}},{"code_sha256_prefix":"61d7615dd4f001b9","entry":"project","repo":"HazyResearch/KGEmb","repo_kind":"listed","path":"models/hyperbolic.py","file_url":"https://github.com/HazyResearch/KGEmb/blob/HEAD/models/hyperbolic.py","link_basis":"first_harvest_node","language":"python","status":"ran_draft_wrong","verification_level":1,"contract_check":"MISDECLARED","metamorphic_tier":null,"behaviour_fingerprint":true,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"61d7615dd4f001b9"}},{"code_sha256_prefix":"032e87efd262bdb2","entry":"AttH","repo":"tensorflow/neural-structured-learning","repo_kind":"official","path":"research/kg_hyp_emb/models/hyperbolic.py","file_url":"https://github.com/tensorflow/neural-structured-learning/blob/HEAD/research/kg_hyp_emb/models/hyperbolic.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"032e87efd262bdb2"}},{"code_sha256_prefix":"c4747b2fc044945c","entry":"BaseH","repo":"tensorflow/neural-structured-learning","repo_kind":"official","path":"research/kg_hyp_emb/models/hyperbolic.py","file_url":"https://github.com/tensorflow/neural-structured-learning/blob/HEAD/research/kg_hyp_emb/models/hyperbolic.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"c4747b2fc044945c"}},{"code_sha256_prefix":"e2f91fad2ade7243","entry":"BaseH","repo":"HazyResearch/KGEmb","repo_kind":"listed","path":"models/hyperbolic.py","file_url":"https://github.com/HazyResearch/KGEmb/blob/HEAD/models/hyperbolic.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"e2f91fad2ade7243"}},{"code_sha256_prefix":"cd46970c3c53fdd7","entry":"KGModel","repo":"tensorflow/neural-structured-learning","repo_kind":"official","path":"research/kg_hyp_emb/models/hyperbolic.py","file_url":"https://github.com/tensorflow/neural-structured-learning/blob/HEAD/research/kg_hyp_emb/models/hyperbolic.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"cd46970c3c53fdd7"}},{"code_sha256_prefix":"75795d19ef57d249","entry":"KGModel","repo":"HazyResearch/KGEmb","repo_kind":"listed","path":"models/hyperbolic.py","file_url":"https://github.com/HazyResearch/KGEmb/blob/HEAD/models/hyperbolic.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"75795d19ef57d249"}},{"code_sha256_prefix":"142af94fff126ce4","entry":"RotH","repo":"HazyResearch/KGEmb","repo_kind":"listed","path":"models/hyperbolic.py","file_url":"https://github.com/HazyResearch/KGEmb/blob/HEAD/models/hyperbolic.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"142af94fff126ce4"}},{"code_sha256_prefix":"d302d6f892368f3d","entry":"hyp_distance_multi_c","repo":"HazyResearch/KGEmb","repo_kind":"listed","path":"models/hyperbolic.py","file_url":"https://github.com/HazyResearch/KGEmb/blob/HEAD/models/hyperbolic.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"d302d6f892368f3d"}}]},"arxiv_metadata":null,"syntology_extracted_results":null}