{"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/cone-cone-embeddings-for-multi-hop-reasoning","title":"ConE: Cone Embeddings for Multi-Hop Reasoning over Knowledge Graphs","arxiv_id":"2110.13715","date":"2021-10-26","proceeding":"NeurIPS 2021 12","authors":["Zhanqiu Zhang","Jie Wang","Jiajun Chen","Shuiwang Ji","Feng Wu"],"abstract":"Query embedding (QE) -- which aims to embed entities and first-order logical (FOL) queries in low-dimensional spaces -- has shown great power in multi-hop reasoning over knowledge graphs. Recently, embedding entities and queries with geometric shapes becomes a promising direction, as geometric shapes can naturally represent answer sets of queries and logical relationships among them. However, existing geometry-based models have difficulty in modeling queries with negation, which significantly limits their applicability. To address this challenge, we propose a novel query embedding model, namely Cone Embeddings (ConE), which is the first geometry-based QE model that can handle all the FOL operations, including conjunction, disjunction, and negation. Specifically, ConE represents entities and queries as Cartesian products of two-dimensional cones, where the intersection and union of cones naturally model the conjunction and disjunction operations. By further noticing that the closure of complement of cones remains cones, we design geometric complement operators in the embedding space for the negation operations. Experiments demonstrate that ConE significantly outperforms existing state-of-the-art methods on benchmark datasets.","url_abs":"https://arxiv.org/abs/2110.13715v2","url_pdf":"https://arxiv.org/pdf/2110.13715v2.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":"cone-cone-embeddings-for-multi-hop-reasoning","repo_url":"https://github.com/miralab-ustc/qe-cone","is_official":1,"mentioned_in_paper":1,"mentioned_in_github":1,"framework":"pytorch","reach":null}],"tasks":[{"task_slug":"knowledge-graphs","task_name":"Knowledge Graphs"},{"task_slug":"negation","task_name":"Negation"}],"methods":[],"datasets_introduced":[],"methods_introduced":[],"results":[],"syntology":{"syntology_url":"https://syntology.ai/paper/2110.13715","atlas_url":"https://app.syntology.ai/?focus=2110.13715","mcp":{"get_harvested_code_for_paper":{"arxiv_id":"2110.13715"}},"developers":"https://syntology.ai/developers","read_at":"2026-09-25T09:33:49+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/miralab-ustc/qe-cone","reach":null}],"summary":{"ran":5,"ran_fixture":2,"ran_draft_wrong":2},"by_repo_kind":{"official":{"samples":9,"ran":9,"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":"4e4b62644cad1b25","entry":"AngleScale","repo":"miralab-ustc/qe-cone","repo_kind":"official","path":"models.py","file_url":"https://github.com/miralab-ustc/qe-cone/blob/HEAD/models.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":true,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"4e4b62644cad1b25"}},{"code_sha256_prefix":"3e261e9eed1269bf","entry":"ConeIntersection","repo":"miralab-ustc/qe-cone","repo_kind":"official","path":"models.py","file_url":"https://github.com/miralab-ustc/qe-cone/blob/HEAD/models.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"3e261e9eed1269bf"}},{"code_sha256_prefix":"047dc3203d7cb247","entry":"ConeNegation","repo":"miralab-ustc/qe-cone","repo_kind":"official","path":"models.py","file_url":"https://github.com/miralab-ustc/qe-cone/blob/HEAD/models.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":true,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"047dc3203d7cb247"}},{"code_sha256_prefix":"edc1002197c5115f","entry":"ConeProjection","repo":"miralab-ustc/qe-cone","repo_kind":"official","path":"models.py","file_url":"https://github.com/miralab-ustc/qe-cone/blob/HEAD/models.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"edc1002197c5115f"}},{"code_sha256_prefix":"36f582e24c7a628f","entry":"KGReasoning","repo":"miralab-ustc/qe-cone","repo_kind":"official","path":"models.py","file_url":"https://github.com/miralab-ustc/qe-cone/blob/HEAD/models.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"36f582e24c7a628f"}},{"code_sha256_prefix":"712879a6c5a196db","entry":"convert_to_arg","repo":"miralab-ustc/qe-cone","repo_kind":"official","path":"models.py","file_url":"https://github.com/miralab-ustc/qe-cone/blob/HEAD/models.py","link_basis":"first_harvest_node","language":"python","status":"ran_fixture","verification_level":1,"contract_check":"RAISES","metamorphic_tier":"invariant","behaviour_fingerprint":true,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"712879a6c5a196db"}},{"code_sha256_prefix":"fa8f6d2163c007e7","entry":"convert_to_arg","repo":"miralab-ustc/qe-cone","repo_kind":"official","path":"models.py","file_url":"https://github.com/miralab-ustc/qe-cone/blob/HEAD/models.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":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"fa8f6d2163c007e7"}},{"code_sha256_prefix":"3b2e4e13f7ff05e4","entry":"convert_to_axis","repo":"miralab-ustc/qe-cone","repo_kind":"official","path":"models.py","file_url":"https://github.com/miralab-ustc/qe-cone/blob/HEAD/models.py","link_basis":"first_harvest_node","language":"python","status":"ran_fixture","verification_level":1,"contract_check":"RAISES","metamorphic_tier":"invariant","behaviour_fingerprint":true,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"3b2e4e13f7ff05e4"}},{"code_sha256_prefix":"04df086ab269bc1f","entry":"convert_to_axis","repo":"miralab-ustc/qe-cone","repo_kind":"official","path":"models.py","file_url":"https://github.com/miralab-ustc/qe-cone/blob/HEAD/models.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":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"04df086ab269bc1f"}}]},"arxiv_metadata":null,"syntology_extracted_results":null}