Knowledge bases (KBs) like Freebase and YAGO are foundational to many AI applications, yet they are notoriously incomplete. Knowledge Base Completion (KBC) aims to predict these missing facts. However, existing embedding models often struggle with complex logical rules, higher-arity relations (facts involving three or more entities), and theoretical expressivity limits.
This paper introduces BoxE, a novel spatio-translational embedding model that reimagines relations as spatial "boxes" rather than simple vectors. By doing so, BoxE provides a mathematically elegant solution to long-standing KBC problems, achieving "full expressivity" and setting new state-of-the-art performance records.
Overcoming KBC Hurdles
Prior to BoxE, KBC models faced three major limitations:
- Arity Limitations: Most models are restricted to binary "Knowledge Graphs" (e.g., BornIn(Turing, London)) and cannot naturally handle higher-arity facts (e.g., DegreeFrom(Turing, PhD, Princeton)).
- Logical Inexpressivity: Many models fail to represent basic logical rules, such as hierarchies (e.g., a "Professor" is also a "Person") or mutual exclusion.
- Theoretical Gaps: Traditional "translational" models (using geometry to represent relations) are rarely "fully expressive," meaning they mathematically cannot fit every possible configuration of facts.
The BoxE Approach: Points, Bumps, and Boxes
The core innovation of BoxE lies in its geometric abstraction, which maps entities and relations into a high-dimensional space:
- Entities as Points: Every entity is represented by two vectors: a base position and a translational bump.
- Relations as Boxes: An $n$-ary relation is represented by a set of $n$ hyper-rectangles (boxes). For a fact to be considered "true," the entities involved must fall inside their respective boxes for that relation.
- The "Bump" Mechanism: When entities appear together in a fact, they "bump" each other's positions. This dynamic shifting allows the model to capture the specific context of the relation, enabling BoxE to handle higher-arity data naturally.
To evaluate these representations, BoxE uses a custom distance-based scoring function. It rewards entities for being inside the correct box and applies a heavy penalty for being outside, scaled by the box's size to ensure the model learns meaningful boundaries.
Key Insights: Boxes as Logic Engines
Because boxes inherently represent sets, they are perfect for modeling logic. For example, if relation A is a sub-relation of B, the box for A simply needs to be contained within the box for B. This makes "reading" the model's learned logic highly intuitive.
Furthermore, the "bump" vector ensures an entity's representation changes depending on its paired entities. This solves the "bottleneck" problem where a single fixed vector cannot represent an entity's varied roles across complex facts. Crucially, the authors prove that BoxE is the first fully expressive translational model—it can represent any arbitrary KB given enough dimensions, a theoretical milestone that previous models like TransE or RotatE could not reach.
State-of-the-Art Results
The authors evaluated BoxE across standard binary Knowledge Graphs (FB15k-237, WN18RR, YAGO3-10), higher-arity datasets (JF17K, FB-AUTO), and rule injection tasks (SportsNELL).
- Higher-Arity SOTA: BoxE achieved state-of-the-art results on both higher-arity datasets. On JF17K, it improved the Mean Reciprocal Rank (MRR) from 0.492 (previous best) to 0.560. It also set new records on YAGO3-10, the largest binary benchmark.
- The Power of Rules: In the rule injection experiment on SportsNELL, adding logical rules (BoxE+RI) dramatically improved performance. The Mean Rank (MR) dropped from 17.4 to 1.74, proving the model can effectively integrate human-provided logic to refine its predictions.
- Robustness: BoxE demonstrated strong performance even with lower dimensionality, making it more parameter-efficient than many bilinear models.
Limitations and Future Work
While highly expressive, BoxE does have limitations. As shown in the inference patterns analysis, it does not explicitly model "composition" (e.g., inferring a "grandfather" relation from two "father" relations) as a core geometric property, though it still performs well empirically on datasets containing these patterns.
Additionally, the current rule injection supports a specific class of logical rules; expanding this to more complex, recursive, or "fuzzy" rules remains an open challenge. Finally, while the model is theoretically efficient ($O(nd)$ complexity), managing very high-dimensional boxes for billions of facts presents a practical engineering hurdle for future scalability.
Summary updated