Papers › Query2box: Reasoning over Knowledge Graphs in Vector Space using Box Embeddings
Query2box: Reasoning over Knowledge Graphs in Vector Space using Box Embeddings
Hongyu Ren, Weihua Hu, Jure Leskovec
Answering complex logical queries on large-scale incomplete knowledge graphs (KGs) is a fundamental yet challenging task. Recently, a promising approach to this problem has been to embed KG entities as well as the query into a vector space such that entities that answer the query are embedded close to the query. However, prior work models queries as single points in the vector space, which is problematic because a complex query represents a potentially large set of its answer entities, but it is unclear how such a set can be represented as a single point. Furthermore, prior work can only handle queries that use conjunctions (∧) and existential quantifiers (∃). Handling queries with logical disjunctions (∨) remains an open problem. Here we propose query2box, an embedding-based framework for reasoning over arbitrary queries with ∧, ∨, and ∃ operators in massive and incomplete KGs. Our main insight is that queries can be embedded as boxes (i.e., hyper-rectangles), where a set of points inside the box corresponds to a set of answer entities of the query. We show that conjunctions can be naturally represented as intersections of boxes and also prove a negative result that handling disjunctions would require embedding with dimension proportional to the number of KG entities. However, we show that by transforming queries into a Disjunctive Normal Form, query2box is capable of handling arbitrary logical queries with ∧, ∨, ∃ in a scalable manner. We demonstrate the effectiveness of query2box on three large KGs and show that query2box achieves up to 25% relative improvement over the state of the art.
In Syntology Open this paper in Syntology's Atlas, the map of the papers in Syntology's graph and their citations.
For agents, Syntology's MCP tool lists every function and class Syntology harvested from this paper and whether it ran (how to connect): get_harvested_code_for_paper(arxiv_id="2002.05969")
Code
Syntology Ran 30 of 41 code samples harvested from 6 repositories linked to this paper; 11 have no recorded run. Of those that ran: 1 ran · honoured contract; 11 ran · our draft was wrong; 1 ran · fixture could not drive it; 17 ran with no contract checked.
By repository: official repository: 8 samples from 1 repository, 7 ran; community (archive-listed): 33 samples from 5 repositories, 23 ran. The run record, sample by sample. “Ran” means executed on a synthesized input, not that the code is correct or reproduces the paper.
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
41 samples harvested; 30 ran; 1 honoured the contract we drafted; 11 have no recorded run. Read from Syntology's graph 2026-09-24; that is when this build read the record, not when the samples ran.
Licence: 2 of the 41 samples are pointer only, meaning Syntology does not serve that copy's text. This page shows no code text for any sample; each one links to its file in the repository.
Harvested from 6 repositories linked to this paper, official or community; each sample names its own and says which. “Ran” means the sample executed on a synthesized input. It does not mean the output is correct, and nothing here reproduces the paper's results. “Honoured” and “violated” refer to a contract Syntology drafted from the code itself; “our draft was wrong” and “fixture could not drive it” are failures of Syntology's instrument, not of the code.
Each sample ends with its code_sha256, Syntology's identity for that exact code. An agent fetches the stored sample with Syntology's MCP tool get_code(code_sha256="…") (how to connect); click an identity to copy that call.
Repository labels, per sample. official repository: The archive marks this repository official for the paper. named in the paper: The archive records that the paper mentions this repository; it is not marked official. community (archive-listed): In the archive's code links for this paper, not marked official and not recorded as mentioned in the paper. found in paper text by Syntology: 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. Samples from a repository marked official are listed first. Licence labels name the repository's licence as recorded at harvest. “Pointer only” means Syntology does not serve that copy's text, for one of four reasons: no licence file was found; the licence was not identified; the licence is recorded as permissive but that copy's record is not marked cleared; or the licence is outside the permissive list Syntology serves text under (MIT, Apache-2.0, BSD and similar). Some licences outside that list permit redistribution, such as WTFPL, and GPL-3.0 under its conditions; they are simply not on the list. Hover a licence label for the reason. File links open the file on GitHub at the default branch, which may have changed since the harvest.
2575bb19d82fba6d · report
e519b1988ee37a5a · report
e6cd914f1f66ce76 · report
23039ea2b760df60 · report
c14351660e82d6b2 · report
060a24b37fb8ba59 · report
11bb0cf115a0240f · report
5cf4606d614eb571 · report
956e9a56d057daa5 · report
c16d861762f8696c · report
2a211e2e73b1cbde · report
47268ecee02ceb4f · report
c839f4122028b419 · report
a2ccec473702f3c7 · report
5c301bc69f133009 · report
f44985272d18127a · report
47248dd2646c39bd · report
25d6c06688daacdd · report
2a2b3c074a6a00b5 · report
d8b0a4e3912306de · report
d7c6b03fd8f6a3bc · report
c423c8497887b2c3 · report
6df8d7def6d8b856 · report
c347b52e0b2d0f36 · report
52f5e28fee4638ab · report
805d2b1bc7c0dc90 · report
51a131fbee1009cf · report
bc5f262d753a9eb4 · report
02f4d333d76fc417 · report
b97e0b8fe06b9171 · report
51d9d0e0413cd046 · report
b8322293c1e3a4ac · report
9b8c70940dfe67a9 · report
87b741616782eced · report
61e00b75af63ddec · report
823b93b900c73ef8 · report
13dc0495d6916564 · report
38511adc942a62d6 · report
b821d97259813ae4 · report
c5eb44c00d8b7df8 · report
2493b517068163e8 · report
Tasks
Results from the paper archive 2025-07-28
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