Differentiating Concepts and Instances for Knowledge Graph Embedding

Xin Lv, Lei Hou, Juanzi Li, Zhiyuan Liu

Abstract

Traditional Knowledge Graph Embedding (KGE) models often fail to distinguish between specific instances and abstract concepts, leading to difficulties in capturing hierarchical logic. This paper introduces TransC, a model that represents concepts as spheres and instances as vectors. By leveraging geometric containment, TransC effectively models "isA" transitivity and outperforms traditional "flat" embedding models on complex reasoning tasks.

Introduction: The Problem of "Flat" Embeddings

Most existing KGE models, such as TransE, represent all entities as points in a low-dimensional vector space. While this works for simple relational triples (e.g., Alice $\xrightarrow{born\_in}$ London), it struggles with the set-theoretic nature of knowledge hierarchies.

Hierarchical relationships between instances and concepts in a knowledge graph.

As shown in Figure 1, knowledge graphs typically contain two distinct types of entities:

  1. Instances: Specific individuals or objects (e.g., "Alice").
  2. Concepts: Abstract categories or sets (e.g., "Professor").

Traditional models ignore this distinction, treating both as simple vectors. This "flat" approach fails to naturally enforce IsA Transitivity: if Alice is an Associate Professor and Associate Professor is a subclass of Staff Member, it logically follows that Alice is a Staff Member. In vector-based translation models, these relationships are often lost or require complex, non-intuitive constraints.

The TransC Model: Geometry as Logic

To address these limitations, researchers from Tsinghua University proposed TransC (Translation with Concepts). TransC differentiates the geometry of the embedding space based on entity type:

  • Instances as Vectors: Specific entities are represented as vectors $\mathbf{i} \in \mathbb{R}^k$.
  • Concepts as Spheres: Concepts are represented as spheres $s(\mathbf{p}, m)$, where $\mathbf{p}$ is the center vector and $m$ is the radius.

Modeling Hierarchical Relations

TransC uses geometric containment to represent set-theoretic relationships:

  • instanceOf: For a triple $(i, \text{instanceOf}, C)$, the model optimizes the distance such that the instance vector $\mathbf{i}$ falls within the sphere of concept $C$.
  • subClassOf: For a triple $(C_i, \text{subClassOf}, C_j)$, the model ensures that the sphere representing $C_i$ is contained within the sphere of $C_j$.
Geometric conditions for modeling concept containment (subClassOf) using spheres.

As illustrated in Figure 5, the model defines specific geometric conditions (a-d) to handle different spatial relationships between concept spheres. The "Goal" state (a) ensures that one concept is a strict subset of another, mathematically guaranteeing transitivity: if sphere A is inside sphere B, and B is inside C, then A is inherently inside C.

Relational Triples

For standard relations between instances (e.g., Alice $\xrightarrow{friend}$ Bob), TransC maintains the classic translation approach: $\mathbf{h} + \mathbf{r} \approx \mathbf{t}$. This allows the model to learn a shared semantic space where instances and concepts interact seamlessly.

Experimental Evaluation

The authors evaluated TransC using YAGO39K, a dataset specifically curated to include both concepts and instances. They also created M-YAGO39K, a modified version designed to test the model's ability to handle transitive inferences.

Key Results

  • Link Prediction: TransC achieved a "Filtered" Mean Reciprocal Rank (MRR) of 0.421, significantly outperforming TransE (0.248) and DistMult (0.362).
  • Transitivity Performance: On the M-YAGO39K dataset, TransC maintained a high F1-score of ~85% for transitive instanceOf relations. In contrast, TransE's performance dropped to ~65%, highlighting the failure of point-based models to capture hierarchical logic.
  • Generalization: Interestingly, TransC also showed improved performance on standard instance-to-instance relations, suggesting that a better understanding of the underlying concept hierarchy provides valuable context for modeling specific entities.

Conclusion and Future Directions

TransC demonstrates that moving from points to spheres allows KGE models to capture the logic of hierarchies "for free" through geometric containment. While the current use of spheres is a simplification, it provides a robust foundation for future work. Potential improvements include modeling concept polysemy (using multiple spheres for one concept) and exploring more complex geometric shapes to represent irregular conceptual boundaries in high-dimensional space.

Summary updated

BibTeX
@inproceedings{lv2018differentiating,
  author = {Xin Lv and Lei Hou and Juanzi Li and Zhiyuan Liu},
  title = {{Differentiating Concepts and Instances for Knowledge Graph Embedding}},
  booktitle = {Conference on Empirical Methods in Natural Language Processing},
  year = {2018},
  doi = {10.18653/v1/d18-1222},
}
Figure