New Embedded Representations and Evaluation Protocols for Inferring Transitive Relations

Sandeep Subramanian, Soumen Chakrabarti · OpenReview

Abstract

This paper introduces Rectangle Embeddings, a novel approach for representing hierarchical relationships in Knowledge Graphs (KGs). By mapping entities to points and types to axis-aligned hyper-rectangular regions, the authors provide a more expressive geometric framework than previous cone-based methods. Furthermore, the study exposes a critical flaw in standard evaluation protocols for transitive relations, where models could "cheat" by performing simple transitive closures. A new "sanitized" benchmark is proposed, demonstrating that Rectangle Embeddings are significantly more robust and achieve nearly triple the performance of previous state-of-the-art models on truly difficult inference tasks.

The Problem of Transitivity in Knowledge Graphs

In Knowledge Graphs, understanding transitivity is fundamental for reasoning. For instance, if a "Golden Retriever" is a "Dog" and a "Dog" is a "Mammal," a system should automatically infer that a "Golden Retriever" is a "Mammal."

Previous state-of-the-art methods, such as Order Embeddings (OE), modeled these relationships using "cones"—infinite regions in vector space. However, the authors identify two major limitations with this approach:

  1. Geometric Constraints: Cones are infinite and always intersect at the origin, making it difficult to represent disjoint types (e.g., "Liquid" vs. "Solid") or types with finite, specific boundaries.
  2. Evaluation Leakage: Existing benchmarks were found to be "leaking" answers. Most test cases could be solved by simple logic (transitive closure) without the model actually learning the underlying hierarchy.
Figure 1: F1 score comparison between Order Embeddings and a simple Transitive Closure baseline as training data increases.

As shown in Figure 1, as the training set size increases, the performance of a simple transitive closure baseline closely tracks that of Order Embeddings, suggesting that the models were largely performing a lookup of implied relations rather than learning geometric generalizations.

Proposed Methods: Rectangles and Refined Loss

To address these issues, the authors propose two primary technical improvements:

Rectangle Embeddings

Instead of infinite cones, types are represented as $D$-dimensional axis-aligned hyper-rectangles. A type is defined by a "lower-left" corner and a "width" vector. Transitivity is modeled as containment: if $A$ is a subtype of $B$, the rectangle for $A$ must be entirely contained within the rectangle for $B$. This allows for bounded volumes and the natural representation of disjoint regions.

Improved Loss ($\sigma$OE)

The authors refine the standard Order Embedding loss function by replacing the sensitive L2 norm with a sigmoid-based loss featuring a margin ($\Delta$). Crucially, they adjust the logic for negative samples: to prove $A$ is not a subtype of $B$, the model only needs to find one dimension where the relationship fails, rather than forcing a failure across all dimensions. This "negative logic" makes training significantly more stable in high-dimensional spaces.

The Sanitized Protocol

To ensure models are truly learning hierarchy, the authors introduced a new evaluation method that removes any test instances that can be trivially inferred via the transitive closure of the training set. This forces the model to generalize to unseen parts of the hierarchy.

Experimental Results

The impact of the new protocol and the rectangle method is striking. When tested on the standard WordNet noun hierarchy, the limitations of previous methods became clear.

Figure 3: Performance comparison across protocols, highlighting the significant drop in baseline performance on the sanitized benchmark.

As detailed in Figure 3, the baseline OE model achieved an impressive F1 score of 0.916 under the old, flawed protocol. However, when subjected to the "Sanitized" protocol, its performance plummeted to 0.262, proving it had not truly learned the hierarchy. In contrast, the proposed Rectangle Embeddings achieved an F1 of 0.700 on the sanitized protocol—nearly triple the performance of the previous state-of-the-art.

Conclusion

By identifying the "transitive closure shortcut" in existing benchmarks, this work sets a new standard for evaluating hierarchical embeddings. Rectangle Embeddings provide the necessary geometric expressiveness to model complex, disjoint, and bounded relationships that infinite cones cannot capture. Future work includes extending this framework to incorporate raw text support and handling out-of-vocabulary entities by integrating word embeddings like GloVe into the rectangle geometry.

Summary updated

BibTeX
@misc{subramanian2018new,
  author = {Sandeep Subramanian and Soumen Chakrabarti},
  title = {{New Embedded Representations and Evaluation Protocols for Inferring Transitive Relations}},
  year = {2018},
  eprint = {1805.04690},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1805.04690},
}
Figure