Abstract
Knowledge Graphs (KGs) are essential for structured data representation but often suffer from incompleteness. Answering complex First-Order Logic (FOL) queries over these graphs requires reasoning through missing information. We present RoConE (Rotation on Cones), a novel framework that represents entity sets as geometric cones and relations as rotations in complex space. By explicitly modeling fundamental relational patterns such as symmetry, inversion, and composition, RoConE provides a robust inductive bias that significantly improves query answering performance over existing "black-box" neural methods.
Introduction: The Challenge of Incomplete Knowledge Graphs
Large-scale Knowledge Graphs like Wikidata and Freebase serve as the backbone for many AI applications. However, their inherent incompleteness poses a significant hurdle for complex reasoning. A typical First-Order Logic (FOL) query might involve multiple hops, intersections, and negations. For instance, consider the query: "Which cities are capitals of non-European countries that have hosted the World Cup or the Olympics?"
Traditional Query Embedding (QE) methods address this by mapping entities and queries into a low-dimensional vector space. While effective, many current models rely on Multi-Layer Perceptrons (MLPs) to process relations. These neural networks often fail to capture the underlying logical structure of relations, treating them as "black boxes" rather than structured transformations.
Methodology: RoConE (Rotation on Cones)
RoConE addresses the limitations of MLP-based reasoning by integrating geometric cone embeddings with relational rotations. This approach is built on two primary pillars:
- Geometric Cones: Entity sets are represented as cones in a complex vector space. Each cone is defined by its center axis (angle) and its aperture (width). This geometric representation naturally handles sets of varying sizes and allows for intuitive logical operations.
- Relational Rotations: Inspired by the success of rotation-based link prediction models, RoConE treats every relation as a rotation in the complex plane. Instead of a learned non-linear transformation, a relation rotates the boundaries of the cone.
Modeling Relational Patterns
The primary advantage of using rotations is their inherent ability to model key relational patterns mathematically:
- Symmetry: A relation like
SpouseOfcan be modeled as a 180-degree rotation. - Inversion: The relationship between
ChildOfandParentOfis modeled as inverse rotations. - Composition: Complex relations like
ParentInLawOfare derived by adding the rotations ofParentOfandSpouseOf.
Beyond simple hops, RoConE employs specialized operators for logical conjunction (Intersection) via semantic averaging and negation by representing the complement of the cone's area.
Experimental Evaluation
The model was evaluated on 14 logical query structures across two benchmark datasets: FB15k-237 and NELL995. Performance was measured using Mean Reciprocal Rank (MRR).
RoConE demonstrated state-of-the-art performance, particularly on the NELL995 dataset, which is characterized by strong relational patterns. For example, on 3-hop (3p) queries, RoConE improved the MRR from 13.9% (previous best) to 14.4%. Ablation studies further confirmed that replacing the rotation module with a standard MLP led to a significant drop in accuracy, validating the importance of the geometric inductive bias.
Discussion and Future Work
The success of RoConE highlights that hard-coding the geometry of logic is often more effective than expecting a neural network to learn it from scratch. By using rotations, the model inherently understands the reciprocal nature of relations.
However, challenges remain. Like its predecessors, RoConE finds negation (the "NOT" operator) difficult to represent accurately in vector space, as simple geometric complements can introduce predictive bias. Future research will focus on developing more sophisticated negation operators and extending rotation-based logic to other geometric embeddings such as boxes or spheres.
Conclusion
RoConE represents a significant step forward in logical query answering by bridging the gap between geometric embeddings and formal relational logic. By treating relations as rotations, it provides a transparent and effective way to reason over incomplete Knowledge Graphs, outperforming traditional neural approaches.
Summary updated