Domain Representation for Knowledge Graph Embedding

Cunxiang Wang, Feiliang Ren, Zhichao Lin, Chenxu Zhao, Tian Xie, Yue Zhang

TL;DR

This paper introduces Domain Representation for Knowledge Graph Embedding (DRE), a method that models the "domains" of relations (e.g., the set of all possible "countries" or "capital cities") as hyper-ellipsoids in vector space. By adding this geometric constraint on top of existing models like TransE or STransE, the authors significantly improve link prediction accuracy by penalizing candidate entities that fall outside the logical category required by a specific relation.

What Problem Does This Paper Address?

Knowledge Graph (KG) embedding models aim to represent entities and relations as vectors to predict missing facts (link prediction). However, most popular models (like TransE) treat entities as isolated points in space and ignore hierarchical or categorical structure.

For example, in the relation (USA, capital, Washington), the head entity must be a "country" and the tail must be a "city." Current models often struggle because they don't explicitly learn what a "country" or "city" looks like in the embedding space. Without this "domain" knowledge, a model might incorrectly rank a non-city entity highly just because its vector happens to be mathematically close to the head+relation vector. The authors aim to bridge this gap by explicitly representing these entity clusters.

Methods

The authors propose DRE (Domain Representation using Ellipsoids), a "plug-and-play" layer that can be added to any translation-based KG embedding model.

  1. Defining Domains: For every relation $r$, the model identifies two domains: the head domain (all entities that appear as heads for $r$) and the tail domain (all entities that appear as tails).
  2. Hyper-ellipsoid Geometry: Instead of simple spheres, the authors use hyper-ellipsoids to represent domains. This is a key choice: entities in a domain (like "Cities") might be very similar in one dimension (e.g., "is a place") but vastly different in others (e.g., population, climate). An ellipsoid can be "skinny" in some dimensions and "wide" in others, capturing this variance.
  3. Mathematical Constraints: To ensure the ellipsoid is valid, they use Cholesky decomposition to maintain a positive definite matrix $M$ that defines the ellipsoid's shape.
  4. The Penalty Mechanism: During link prediction, the model calculates a "fitness score." If a candidate entity falls inside the domain's hyper-ellipsoid, it receives no penalty. If it falls outside, it receives a penalty proportional to its distance from the ellipsoid's surface. This distance is added to the base model's score to re-rank candidates.
  5. Training: The model first trains a standard KG embedding (like TransR). Then, it freezes those entity vectors and uses Stochastic Gradient Descent (SGD) to "fit" the hyper-ellipsoids around the existing entity clusters.

Datasets

The authors evaluated their approach on two gold-standard benchmarks:

  • WN18: A subset of WordNet containing lexical relations between words (40,943 entities, 18 relations).
  • FB15K: A subset of Freebase containing real-world facts (14,951 entities, 1,345 relations).

Key Insights and Ideas

  • The "Why" of Ellipsoids: The most insightful part of the paper is the observation that entities in a domain share some attributes but are distinct in others. A sphere would force all attributes to have equal variance, which doesn't match reality. The ellipsoid allows the model to learn which dimensions are "defining" for a category.
  • Implicit vs. Explicit Domains: While models like STransE use projection matrices that implicitly handle head/tail spaces, DRE makes these spaces explicit and bounded. This allows the model to "know" when a prediction is categorically impossible.
  • Error Reduction: The authors found that in baseline models, over half of the top-ranked incorrect entities actually belonged to the wrong domain. DRE effectively "filters" these out.

Key Results

DRE provided a consistent boost across all baselines (TransE, TransR, STransE) on both datasets:

  • Mean Rank (MR) Improvement: On FB15K, adding DRE to STransE slashed the Mean Rank from 69 to 36 (lower is better). On WN18, it dropped from 206 to 154.
  • Hits@10: On FB15K, STransE + DRE achieved 83.4%, outperforming the baseline STransE (79.7%) and other complex models like ITransF.
  • Handling Complex Relations: The model showed massive gains in "N-to-N" and "1-to-N" relations. For example, in predicting the head of a "N-to-1" relation on FB15K, DRE improved TransE's Hits@10 from 18.2% to 47.1%.

Limitations and Future Work

  • Data Sparsity in 1-to-1 Relations: The model occasionally performed worse on "1-to-1" relations. The authors attribute this to a lack of training data; if a domain only has a few entities, the model cannot accurately "fit" a hyper-ellipsoid to represent the category.
  • Static Embeddings: DRE is trained on top of pre-trained embeddings. The authors suggest that jointly training the embeddings and the ellipsoids might lead to even better alignment.
  • Application Expansion: The authors suggest extending this geometric domain approach to other NLP tasks like information extraction.

Summary updated

BibTeX
@inproceedings{wang2019domain,
  author = {Cunxiang Wang and Feiliang Ren and Zhichao Lin and Chenxu Zhao and Tian Xie and Yue Zhang},
  title = {{Domain Representation for Knowledge Graph Embedding}},
  booktitle = {NLPCC},
  year = {2019},
  doi = {10.1007/978-3-030-32233-5\_16},
}

Loading related content...

Figure