Abstract
Knowledge representation learning (KRL) aims to represent entities and relations in knowledge graph in low-dimensional semantic space, which have been widely used in massive knowledge-driven tasks. In this article, we introduce the reader to the motivations for KRL, and overview existing approaches for KRL. Afterwards, we extensively conduct and quantitative comparison and analysis of several typical KRL methods on three evaluation tasks of knowledge acquisition including knowledge graph completion, triple classification, and relation extraction. We also review the real-world applications of KRL, such as language modeling, question answering, information retrieval, and recommender systems. Finally, we discuss the remaining challenges and outlook the future directions for KRL.
Introduction
Knowledge Graphs (KGs) such as Freebase or Wikidata are massive repositories of human knowledge, stored as triples: (head entity, relation, tail entity). Traditionally, these are treated as discrete symbols, which leads to significant hurdles regarding data sparsity and computational inefficiency. Symbolic representations struggle when relationships are not explicitly defined, and one-hot encoding millions of entities is computationally expensive and semantically shallow.
Knowledge Representation Learning (KRL) addresses these challenges by learning distributed representations (embeddings). By mapping entities and relations into a continuous, low-dimensional semantic space, geometric distance can correspond to semantic relatedness. This allows models to "fill in the gaps" of human knowledge through efficient computation.
Methodology
The field of KRL has evolved into several distinct families of models, categorized by how they define the scoring function for triples:
Translation-based Models
Led by the seminal TransE, this family treats a relation as a translation vector from the head to the tail ($h + r \approx t$). Numerous extensions like TransH (using hyperplanes) and TransR (using separate entity and relation spaces) have been developed to handle complex 1-to-N or N-to-N relations.
Linear and Factorization Models
These models utilize bilinear forms or matrix factorization (e.g., RESCAL, DistMult, and ComplEx) to capture interactions between entities. ComplEx, in particular, uses complex-valued vectors to effectively model asymmetric relations.
Neural Models and Multi-source Learning
Architectures like Neural Tensor Networks (NTN) use non-linear layers to model complex interactions. Modern KRL research has shifted toward "hybrid" models that incorporate external information such as textual descriptions, hierarchical entity types, and images to enrich the learned embeddings.
Datasets and Evaluation
Models are benchmarked using several standard datasets:
- WN18 & WN11: Subsets of the WordNet lexical database.
- FB15K & FB13: Subsets of Freebase general knowledge.
- WD50K: A more robust dataset sampled from Wikidata to avoid "inverse relation" leakage found in older benchmarks.
- NYT10: Specifically used for relation extraction tasks.
Key Insights and Results
- Relational Complexity: Simple models like TransE struggle with "complex" relations. Models that project entities into relation-specific spaces (TransR/TransD) are necessary to prevent forcing disparate entities into the same point in space.
- The Power of Paths: PTransE demonstrates that considering multi-step relational paths (e.g., A is father of B + B is mother of C $\implies$ A is grandfather of C) significantly boosts performance in knowledge inference.
- Type Constraints: Incorporating hierarchical type constraints (TKRL) helps the model learn better embeddings, especially for "long-tail" entities with few known triples. Adding type constraints (+TC) improved the Hits@10 score for almost every model tested.
- Uncertainty Modeling: Representing entities as Gaussian distributions (KG2E) allows models to express confidence levels regarding specific facts or entity definitions.
Future Directions
While KRL has matured, several frontiers remain:
- Temporal Dynamics: Most models assume static knowledge, whereas real-world facts (like political office) change over time.
- Noise Robustness: Real-world KGs contain errors; models need better mechanisms for conflict detection and noise filtering.
- Zero-Shot Learning: Learning representations for entities with zero triples in the training set—relying solely on text or images—is a critical area for growth.
- Scalability: As KGs reach billions of triples, the field requires online learning frameworks that can update embeddings incrementally rather than retraining from scratch.
Summary updated