NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Type-Constrained Representation Learning in Knowledge Graphs

Denis Krompaß, Stephan Baier, Volker Tresp

Abstract

Knowledge Graphs (KGs) such as Freebase and DBpedia are essential for various AI applications but suffer from significant incompleteness. Latent variable models, which represent entities and relations in a high-dimensional vector space, are commonly used for link prediction to fill these gaps. However, these models often ignore the semantic schema of the data, leading to "category errors" where predicted facts violate logical type constraints. This paper proposes integrating type constraints into the representation learning process. By restricting the search space to semantically valid candidates, the authors demonstrate that even low-dimensional models can achieve significant performance gains, with improvements in accuracy reaching up to 77%.

Introduction

Large-scale Knowledge Graphs are notoriously incomplete; for example, over 70% of person entities in Freebase lack a recorded place of birth. To address this, researchers employ latent variable models (embeddings) like RESCAL or TransE to predict missing triples. A significant limitation of standard embedding models is their "semantic blindness." When predicting a missing object for a relation like marriedTo, a standard model might consider every entity in the KG—including cities, books, or chemicals—as a potential candidate. This lack of constraint introduces noise and necessitates high-dimensional embeddings to achieve acceptable accuracy, which in turn increases computational costs.

Methodology

The researchers from Siemens AG and Ludwig Maximilian University proposed a framework to incorporate type constraints into three state-of-the-art models: RESCAL (tensor factorization), TransE (translational embeddings), and mwNN (multiway neural networks).

Type-Constrained Training

The core of the approach lies in the training phase. Latent variable models typically learn by comparing true triples against "negative samples" (randomly generated false facts). The authors modified this process so that negative samples are only drawn from entities that satisfy the relation's domain and range. For instance, if the relation is bornIn(Subject, Location), the model only compares the true location against other entities typed as Location. This forces the model to learn the subtle distinctions between valid candidates rather than wasting capacity on obvious category errors.

Local Closed-World Assumption (LCWA)

To handle KGs with incomplete or missing schemas, the authors introduced the Local Closed-World Assumption. Under LCWA, if an entity has appeared as a subject for a specific relation in the training set, it is inferred to belong to that relation's domain. This allows the model to derive "pseudo-types" from observed data, making the benefits of type-constraints accessible even in datasets without a formal RDF schema.

Experimental Results

The methodology was evaluated on three datasets: Freebase-150k, DBpedia-Music, and YAGOc-195k. Performance was measured using the Area Under Precision-Recall Curve (AUPRC).

Accuracy and Efficiency

The integration of type constraints led to substantial improvements across all models and datasets:

  • Performance Boost: On Freebase, the mwNN model saw a 77% improvement in AUPRC at a dimensionality of $d=10$.
  • Dimensionality Reduction: One of the most significant findings was that type-constrained models with very low complexity (e.g., $d=10$) often outperformed unconstrained models with much higher complexity ($d=100$).
  • RESCAL Performance: For the RESCAL model on Freebase, the AUPRC increased from 0.327 to 0.521 at the lowest complexity level.

Discussion

Type constraints act as a powerful regularizer. By shrinking the search space, they allow the model to focus its parameters on the most relevant distinctions. This effectively "lowers the bar" for the model's complexity; because the model no longer needs to learn that a person cannot be a city, it can use its limited dimensions to learn which specific person is the most likely match for a relation.

Furthermore, the success of the LCWA approach suggests that explicit schemas are not strictly necessary to reap the rewards of type-constrained learning. The statistical patterns of the graph itself contain enough information to approximate these constraints effectively.

Conclusion

This research demonstrates that incorporating prior knowledge in the form of type constraints is a highly effective way to improve the performance and scalability of Knowledge Graph completion. By making models "semantically aware," researchers can achieve higher accuracy with significantly less computational overhead. Future work may explore the simultaneous learning of types and constraints or the integration of these latent models with explicit graph-feature models.

Summary updated

BibTeX
@inproceedings{krompa2015type,
  author = {Denis Krompaß and Stephan Baier and Volker Tresp},
  title = {{Type-Constrained Representation Learning in Knowledge Graphs}},
  booktitle = {ISWC},
  year = {2015},
  doi = {10.1007/978-3-319-25007-6\_37},
}
Figure