Shrinking Embeddings for Hyper-Relational Knowledge Graphs

Bo Xiong, Mojtaba Nayyeri, Shirui Pan, Steffen Staab

Introduction

Knowledge Graphs (KGs) are foundational to modern AI, representing information as a network of entities and relations. Traditionally, these are modeled as binary triples: $(h, r, t)$, such as (Einstein, educated_at, University of Zurich). However, real-world knowledge is often more nuanced, requiring additional context known as qualifiers. For instance, the fact that Einstein received a PhD in Physics is more accurately represented as a hyper-relational fact: ((Einstein, educated_at, University of Zurich), {major: physics, degree: PhD}).

While hyper-relational KGs provide richer data, they pose a significant modeling challenge. Existing embedding methods often treat qualifiers as auxiliary data points without respecting the underlying logic of the information. Specifically, they struggle with qualifier monotonicity: the principle that adding qualifiers should narrow or maintain the set of valid answers, never expand it. ShrinkE addresses this by introducing a geometric framework where qualifiers act as "shrinking" operations on a search space.

Methodology: The ShrinkE Framework

ShrinkE adopts a "point-to-box" geometric approach to represent the relationship between entities and their qualifying contexts.

1. Entities and Primal Triples

In the ShrinkE space, every entity is represented as a point in $d$-dimensional space. When a query is formed using a primal triple (a head entity and a relation), the relation acts as a transformation—combining rotation and translation—that maps the head entity point to a "query box." This box represents the initial region of all plausible tail entities for that relation.

2. Qualifiers as Shrinking Operations

Each qualifier (a key-value pair like degree: PhD) is modeled as a functional operation that "shrinks" the boundaries of the query box. Using a small Multi-Layer Perceptron (MLP), the model calculates a scaling factor for the box's dimensions based on the qualifier's specific attributes.

Mathematically, this ensures that the resulting box is always a subset of the original query box. Because the model uses an intersection operation to combine multiple qualifiers, it achieves permutation invariance—the order of qualifiers does not change the final result, reflecting the unordered nature of real-world metadata.

3. Scoring and Inference

The plausibility of a fact is determined by the distance between the tail entity point and the final, shrunken query box. If the entity lies within the box, the distance is zero (maximum plausibility). This geometric containment naturally enforces logical monotonicity: as more qualifiers are added, the box can only get smaller, making the criteria for a "true" fact more stringent.

Experimental Evaluation

The authors evaluated ShrinkE against three major hyper-relational benchmarks:

  1. JF17K: A Freebase-derived dataset where nearly 46% of facts contain qualifiers.
  2. WikiPeople: A dataset focused on biographical information from Wikidata.
  3. WD50K: A large-scale Wikidata subset. To test the model's robustness, the authors used three variants—WD50K(33), WD50K(66), and WD50K(100)—where the number indicates the percentage of facts containing qualifiers.

Key Results

ShrinkE demonstrated significant performance gains, particularly as the complexity of the data increased. On the WD50K(100) dataset, ShrinkE outperformed the previous state-of-the-art model, StarE, by 6.2% in Mean Reciprocal Rank (MRR) and 6.9% in Hits@1.

Ablation studies confirmed that the "shrinking" mechanism was the primary driver of performance; removing it led to a drop in accuracy of up to 5%. Furthermore, the model proved capable of recovering real-world logical implications, such as learning that the qualifier owned_by: X implies a voting interest by nesting the respective boxes.

Discussion and Future Work

ShrinkE represents a shift toward neuro-symbolic efficiency. Unlike heavy Transformer-based models, it uses simple geometric transformations, making it lightweight and less prone to overfitting. However, some limitations remain:

  • Non-Monotonic Contexts: Some qualifiers are not filters but modifiers. For example, a qualifier like reported_by: [Source] might invalidate a statement rather than narrowing it. ShrinkE currently assumes all qualifiers are monotonic.
  • Geometric Constraints: The use of axis-aligned boxes is computationally efficient but may be less flexible than other shapes like convex cones or spheres for certain relational patterns.

Future research may explore auxiliary training tasks, such as qualifier prediction, or the use of more complex geometric manifolds to capture even more nuanced relational logic.

Summary updated

BibTeX
@inproceedings{xiong2023shrinking,
  author = {Bo Xiong and Mojtaba Nayyeri and Shirui Pan and Steffen Staab},
  title = {{Shrinking Embeddings for Hyper-Relational Knowledge Graphs}},
  booktitle = {Annual Meeting of the Association for Computational Linguistics},
  year = {2023},
  doi = {10.18653/v1/2023.acl-long.743},
}
Figure