Knowledge Graph Embeddings for Reasoning
1. Definition and Components of Knowledge Graphs
Definition and Components of Knowledge Graphs
A knowledge graph (KG) is a structured representation of knowledge that encodes entities, their attributes, and the relationships between them in a graph-based formalism. Mathematically, a knowledge graph G is defined as a directed, labeled multigraph:
where:
- E is the set of entities (nodes), representing real-world objects, concepts, or instances.
- R is the set of relation types (edge labels), describing how entities are interconnected.
- T ⊆ E × R × E is the set of factual triples (edges), where each triple (h, r, t) denotes a relationship r from head entity h to tail entity t.
Core Components
Knowledge graphs consist of several key components that enable rich semantic representation and reasoning:
Entities
Entities are the fundamental units of knowledge, representing distinct objects or concepts such as people, places, events, or abstract ideas. Each entity is typically assigned a unique identifier (URI) and may have associated attributes (e.g., name, type, description).
Relations
Relations define directed semantic connections between entities. Common relation types include taxonomic (e.g., is_a, part_of), meronymic (e.g., located_in), and domain-specific relationships (e.g., treats in biomedical KGs). Relations may exhibit properties such as symmetry, transitivity, or inverse functionality.
Ontological Schema
The schema layer provides formal semantics through:
- Taxonomies: Class hierarchies (e.g., Dog ⊑ Animal)
- Property constraints: Domain/range restrictions, cardinality
- Axioms: Logical rules (e.g., hasChild ≡ hasParent-1)
Representational Forms
Knowledge graphs manifest in several representational paradigms:
where λ denotes node labels and Π represents property key-value pairs in property graph models. Modern KGs often combine these approaches with probabilistic annotations or temporal dimensions.
Operational Characteristics
Key operational properties distinguish knowledge graphs from other data structures:
- Heterogeneity: Support for multiple entity/relation types with varying attributes
- Incompleteness: Partial coverage of all possible facts (Open World Assumption)
- Contextualization: Ability to attach provenance, confidence scores, or temporal validity
The graph structure enables efficient traversal for multi-hop reasoning while maintaining interpretability through explicit relational paths. This contrasts with opaque vector representations in pure embedding approaches.

1.2 Representation of Entities and Relations
Knowledge graph embeddings map entities and relations into continuous vector spaces, enabling efficient reasoning and inference. The core challenge lies in preserving the semantic and structural properties of the graph while transforming discrete nodes and edges into dense numerical representations.
Entity Embeddings
Entities are typically represented as vectors in d-dimensional space, where d is the embedding dimension. The choice of d balances expressiveness and computational efficiency—higher dimensions capture more complex relationships but increase memory and computation costs. For an entity e, its embedding is denoted as:
Initialization strategies vary, but common approaches include random sampling from uniform or Gaussian distributions, or leveraging pretrained embeddings from language models like BERT or Word2Vec when textual descriptions are available.
Relation Embeddings
Relations are similarly embedded but often require more sophisticated representations to capture their compositional nature. In translational models like TransE, a relation r is represented as a vector r ∈ ℝd that operates on entity pairs:
where h and t are head and tail entity embeddings. More expressive models use higher-order tensors or matrix operations. For instance, RESCAL represents relations as matrices R ∈ ℝd×d, enabling bilinear mappings:
Geometric Interpretations
Different embedding models impose distinct geometric constraints. Translational models like TransE assume Euclidean space, while RotatE employs complex vector spaces with relations as rotations:
Hyperbolic embeddings, used in models like MuRP, project entities into hyperbolic space to better capture hierarchical structures, with distances measured via the Poincaré metric:
Multi-Modal Representations
Advanced models integrate auxiliary data (e.g., text, images) to enrich embeddings. For example, KG-BERT fuses structural and textual information by aligning knowledge graph triples with language model outputs, while VisualBERT incorporates visual features for multimodal reasoning.
Normalization and Regularization
To prevent overfitting and ensure numerical stability, embeddings are often constrained via L2 normalization or soft constraints. For instance, ComplEx embeddings enforce unit norms, and ConvE uses dropout on entity and relation vectors during training.

1.3 Common Knowledge Graph Datasets
Knowledge graph embeddings rely on high-quality datasets for training and evaluation. Several benchmark datasets have emerged as standards in the field, each with distinct characteristics in terms of size, domain coverage, and relational complexity.
FreeBase
FreeBase was one of the largest publicly available knowledge graphs before its shutdown in 2016. It contained over 125 million entities and 3.2 billion facts across diverse domains. Researchers commonly use two subsets:
- FB15k: Contains 15,000 entities with 592,213 triples
- FB15k-237: A more challenging subset with 237 relation types and 310,116 triples
The FreeBase data schema follows a strict (subject, predicate, object) format, making it ideal for testing embedding models' ability to handle diverse relation types.
WordNet
WordNet provides lexical relations between words, organized as synsets (sets of cognitive synonyms). Key variants include:
WordNet challenges models with hierarchical relationships (hypernymy/hyponymy) and requires strong capability for transitive reasoning.
Wikidata
As the successor to FreeBase, Wikidata offers:
- Over 100 million entities
- 1.5 billion statements
- Dynamic updates from community contributions
Wikidata's schema-free nature and multilingual support make it valuable for testing embedding generalization across languages and domains.
YAGO
YAGO combines WordNet's taxonomy with Wikipedia's factual information. Notable features include:
- Precision > 95% through manual verification
- Temporal and spatial attributes for many facts
- YAGO3 contains 4.5 million entities and 24 million facts
The temporal dimension in YAGO enables testing of time-aware embedding models.
DBpedia
DBpedia extracts structured data from Wikipedia infoboxes, offering:
Its wide domain coverage and links to other datasets make it valuable for cross-domain reasoning tasks.
NELL (Never-Ending Language Learner)
NELL demonstrates continuous learning capabilities with:
- 3.2 million beliefs (as of 2021)
- Autonomous extraction from web text
- Confidence scores for each extracted fact
The incremental nature of NELL makes it suitable for testing embedding models in lifelong learning scenarios.
Biomedical Datasets
Specialized biomedical KGs present unique challenges:
- UMLS: 3 million biomedical concepts with 135 relation types
- BioKG: Integrates drug, disease, and protein interactions
- Hetionet: 47K nodes with 2.25M edges across 24 relationship types
These datasets require models to handle complex, domain-specific relationships with high precision.
Dataset Selection Criteria
When choosing a KG dataset for embedding research, consider:
- Density: Ratio of existing to possible triples
- Relation diversity: Number of unique relation types
- Domain coverage: General vs. specialized knowledge
- Data quality: Noise levels and verification mechanisms
where 𝒯 is the set of triples, ℰ entities, and ℛ relations.
2. What Are Knowledge Graph Embeddings?
Knowledge Graph Embeddings for Reasoning
What Are Knowledge Graph Embeddings?
Knowledge graph embeddings are low-dimensional, continuous vector representations of entities and relations in a knowledge graph (KG). Unlike symbolic representations, which treat entities and relations as discrete symbols, embeddings project them into a dense vector space where geometric operations can capture semantic relationships. This enables machine learning models to perform reasoning tasks such as link prediction, entity classification, and question answering.
Formally, given a knowledge graph G = (E, R, T), where E is the set of entities, R the set of relations, and T the set of triples (h, r, t) (head, relation, tail), an embedding model learns functions:
where d and k are the embedding dimensions for entities and relations, respectively. The model optimizes these functions such that the likelihood of observed triples is maximized, often using a scoring function s(h, r, t) that measures the plausibility of a triple.
Common scoring functions include:
- TransE: s(h, r, t) = -||f(h) + g(r) - f(t)||, enforcing translational equivalence in the vector space.
- DistMult: s(h, r, t) = f(h)^T \text{diag}(g(r)) f(t), a bilinear model capturing pairwise interactions.
- RotatE: s(h, r, t) = -||f(h) \circ g(r) - f(t)||, where ∘ denotes element-wise rotation in complex space.
Embeddings enable reasoning by leveraging geometric properties. For example, if f(Paris) + g(capital_of) ≈ f(France), the model infers that Paris is the capital of France. This property generalizes to unseen triples, making embeddings particularly useful for incomplete KGs.
Training involves minimizing a loss function, typically a margin-based ranking loss:
where T' is the set of corrupted triples (negative samples) and γ is a margin hyperparameter. Optimization is performed using stochastic gradient descent or its variants.
Practical applications include recommender systems (e.g., predicting user-item interactions), biomedical knowledge graphs (e.g., drug-drug interaction prediction), and semantic search (e.g., improving query understanding in search engines).

Why Embeddings Are Essential for Reasoning
Knowledge graphs (KGs) represent entities and relations as discrete symbols, which poses challenges for reasoning tasks due to their inherently sparse and symbolic nature. Embeddings transform these discrete elements into continuous vector spaces, enabling mathematical operations that capture latent semantic relationships. This continuous representation is critical for three key reasons: computational tractability, relational generalization, and probabilistic inference.
Computational Tractability in Reasoning Tasks
Symbolic reasoning over large KGs suffers from combinatorial explosion, as each logical operation requires explicit graph traversal. Embeddings alleviate this by encoding entities and relations as dense vectors, allowing reasoning to be reformulated as numerical optimization. For example, the plausibility of a triple (h, r, t) can be computed via a scoring function:
where h, r, t are vector embeddings. This reduces complex graph operations to simple vector arithmetic, enabling efficient batch processing on GPUs.
Relational Generalization Beyond Observed Data
Discrete KGs are incomplete by nature. Embeddings address this through their inherent capacity for analogical reasoning—if Paris is to France as Tokyo is to Japan in the embedding space, we can infer unobserved relations like capitalOf(Tokyo, Japan). This is formalized through relational patterns:
where Δadmin captures administrative hierarchy. Such patterns enable zero-shot inference for rare or missing relations.
Probabilistic Soft Logic
Embeddings facilitate uncertainty-aware reasoning by modeling truth values as continuous probabilities. A knowledge graph completion model like ComplEx employs Hermitian dot products to capture asymmetric relations:
where Re(·) denotes the real part and t̅ is the complex conjugate. This allows the model to learn probabilistic dependencies like causes(X,Y) → treats(Y,Z) with quantified confidence scores.
Case Study: Drug Repurposing
In biomedical KGs, embeddings enable cross-domain reasoning by projecting genes, diseases, and drugs into a unified space. A 2022 study achieved 37% higher accuracy in predicting drug-disease interactions by joint embedding of 1.2M entities from 15 databases, demonstrating that vector-space arithmetic (e.g., drug_embedding + sideEffect_embedding ≈ condition_embedding) outperformed symbolic rule-based systems.

2.3 Key Properties of Effective Embeddings
Expressiveness and Dimensionality
Effective knowledge graph embeddings must balance expressiveness and dimensionality. Higher-dimensional embeddings can capture complex relational patterns but risk overfitting and computational inefficiency. The embedding space dimensionality d determines the model's capacity to represent entities and relations. For instance, TransE uses a simple translational approach where relations are modeled as linear transformations in low-dimensional space:
where h and t are head and tail entity embeddings, and r is the relation vector. In contrast, models like RotatE employ complex-valued embeddings in higher dimensions to capture symmetric, antisymmetric, and inverse relations through rotation:
Geometric Interpretability
The geometric structure of the embedding space—whether Euclidean, hyperbolic, or spherical—directly impacts reasoning capabilities. Hyperbolic embeddings excel at hierarchical relations due to their tree-like metric properties, while spherical spaces suit cyclic structures. For example, Poincaré embeddings map entities to a hyperbolic disk, where distances grow exponentially toward the boundary:
Invariance and Equivariance
Effective embeddings should preserve invariance (e.g., entity uniqueness) and equivariance (e.g., relation symmetry). Models like ComplEx leverage Hermitian dot products to handle antisymmetric relations without explicit constraints:
where Re(·) extracts the real part, and ¯ denotes complex conjugation. This ensures scores differ for (h, r, t) and (t, r, h) when r is antisymmetric.
Computational Scalability
Embedding models must scale to large knowledge graphs with millions of entities. Techniques like negative sampling and dimensionality reduction trade off accuracy for efficiency. For instance, DistMult reduces relation operations to diagonal matrix multiplications:
enabling faster training while preserving sufficient expressiveness for symmetric relations.
Robustness to Noise
Real-world knowledge graphs contain missing or erroneous facts. Robust embeddings minimize the impact of noise through margin-based loss functions or probabilistic scoring. For example, ConvKB uses convolutional filters to extract local relational patterns resilient to sparse data:
where Ω denotes trainable filters, and ∗ is the convolution operator.

3. Translational Models: TransE, TransH, TransR
Translational Models: TransE, TransH, TransR
TransE: The Foundational Translational Model
The TransE (Translational Embedding) model, introduced by Bordes et al. in 2013, is the simplest and most widely used knowledge graph embedding method. It represents entities and relations as vectors in the same space, enforcing the translational principle:
where h is the head entity vector, r is the relation vector, and t is the tail entity vector. The score function measures the distance between h + r and t:
where p is typically 1 or 2 (L1 or L2 norm). Training minimizes a margin-based ranking loss:
where γ is a margin hyperparameter and G' contains corrupted triples. While TransE performs well on one-to-one relations, it struggles with complex relations like one-to-many or many-to-many.
TransH: Handling Complex Relations
TransH (Wang et al., 2014) extends TransE by projecting entities onto relation-specific hyperplanes. For each relation r, there exists a hyperplane with normal vector wr. The projected entity vectors are:
The translational principle then operates in the relation-specific hyperplane:
This allows entities to have different representations when participating in different relations, addressing TransE's limitations with complex relation types. The score function becomes:
TransR: Entity-Relation Separate Spaces
TransR (Lin et al., 2015) introduces separate vector spaces for entities and relations. Each relation r has a projection matrix Mr that maps entities from entity space to relation space:
The translational principle is then applied in the relation space:
with the score function:
The additional regularization terms (weighted by α) ensure the projected vectors don't deviate too far from the original entity vectors. TransR's separate spaces provide more modeling flexibility but increase computational complexity.
Comparative Analysis
Key differences between these models:
- Space Complexity: TransE uses a single shared space (d dimensions), TransH adds relation hyperplanes (d dimensions per relation), and TransR requires relation-specific matrices (d×k dimensions per relation).
- Modeling Power: TransE cannot model reflexive, one-to-many, many-to-one, or many-to-many relations well. TransH handles these better through hyperplane projections, while TransR provides the most expressive power through separate spaces.
- Training Efficiency: TransE is fastest to train, TransH moderately so, and TransR is significantly slower due to matrix multiplications.
Empirical studies show TransR generally achieves better prediction accuracy than TransH and TransE on complex knowledge graphs, at the cost of increased computational resources. The choice between models depends on the specific knowledge graph characteristics and available computational budget.

Semantic Matching Models: DistMult, ComplEx
DistMult: Diagonal Matrix Factorization
DistMult (Distributed Multiplicative) is a bilinear model that represents relations as diagonal matrices, reducing the number of parameters while maintaining expressiveness. Given a triple (h, r, t), the scoring function is defined as:
Here, h, r, t are d-dimensional embeddings for head, relation, and tail entities, respectively. The relation matrix is restricted to a diagonal form, making the model computationally efficient but limited to symmetric relations. This constraint means DistMult cannot model anti-symmetric relations (e.g., "parentOf" vs. "childOf"), as fr(h, t) = fr(t, h) always holds.
ComplEx: Complex-Valued Embeddings
ComplEx extends DistMult by introducing complex-valued embeddings, enabling asymmetric relations while retaining efficiency. The scoring function leverages Hermitian dot products in complex space:
Where Re(·) denotes the real part, and t̄ is the complex conjugate of t. The use of complex numbers allows the model to capture anti-symmetry since fr(h, t) ≠ fr(t, h) in general. ComplEx subsumes DistMult as a special case when all embeddings are real-valued.
Training and Optimization
Both models are trained using negative sampling, where corrupted triples (e.g., (h', r, t) or (h, r, t')) are generated as negative examples. The loss function is typically a margin-based ranking loss:
γ is a margin hyperparameter, and 𝒢' is the set of corrupted triples. Optimization is performed via stochastic gradient descent (SGD) or Adam.
Practical Trade-offs
- DistMult is faster and more memory-efficient but limited to symmetric relations.
- ComplEx handles asymmetric relations but requires twice the memory (real + imaginary components).
In practice, ComplEx often outperforms DistMult on benchmarks like FB15k-237 and WN18RR, where asymmetric relations are prevalent. However, DistMult remains competitive for symmetric-heavy datasets.
Extensions and Variants
Recent work has hybridized these models with neural architectures (e.g., ConvE) or incorporated attention mechanisms to improve performance. RotatE, another complex-valued model, generalizes ComplEx by representing relations as rotations in complex space.

Neural Network-Based Models: ConvE, R-GCN
Convolutional Embeddings for Knowledge Graphs (ConvE)
ConvE is a neural link prediction model that applies 2D convolutional layers to knowledge graph embeddings. Unlike translational models like TransE, ConvE captures complex relational patterns by learning non-linear interactions between entities and relations through convolutional filters. Given an entity e and relation r, their embeddings are reshaped into 2D matrices and concatenated before convolution:
A series of convolutional filters fk slide over M to generate feature maps, followed by a fully connected layer and sigmoid activation for scoring triples:
where vec(·) flattens the feature maps, W is a weight matrix, and σ ensures probabilistic outputs. ConvE’s strength lies in parameter efficiency—it achieves competitive performance with lower-dimensional embeddings than translational models.
Relational Graph Convolutional Networks (R-GCN)
R-GCN extends graph convolutional networks (GCNs) to multi-relational knowledge graphs. Each entity’s representation is updated by aggregating neighbor information conditioned on relation types. For entity v in layer l, the propagation rule is:
Here, Nvr denotes neighbors of v under relation r, Wr are relation-specific weights, and cv,r normalizes for node-degree. R-GCNs handle relational heterogeneity via two regularization techniques:
- Basis decomposition: Shares parameters across relations by expressing Wr as a linear combination of basis matrices Bk:
$$ \mathbf{W}_r = \sum_{k=1}^K a_{rk} \mathbf{B}_k $$
- Block-diagonal decomposition: Constrains Wr to block-diagonal matrices, reducing parameters while preserving relation-specific learning.
Comparative Analysis
ConvE excels at link prediction tasks (e.g., FB15k-237, WN18RR) due to its ability to model intricate relational patterns via convolutional filters. R-GCN, however, is better suited for node classification and graph completion, leveraging graph structure through neighborhood aggregation. Both models address limitations of earlier approaches:
- ConvE replaces TransE’s linear scoring with non-linear interactions, capturing compositionality (e.g., r1(x,y) ∧ r2(y,z) ⇒ r3(x,z)).
- R-GCN generalizes GCNs to heterogeneous graphs, enabling reasoning over multi-relational paths.
Implementation Considerations
For ConvE, embedding dimensions must be divisible by the convolution kernel size (e.g., 20×10 for a 5×5 kernel). R-GCN requires careful tuning of basis/block dimensions to balance expressiveness and computational cost. Both models benefit from:
- Label smoothing: Replaces hard 0/1 labels with smoothed values (e.g., 0.9/0.1) to mitigate overfitting.
- 1-N scoring: Computes scores for all candidate entities in parallel, accelerating training.
import torch
import torch.nn as nn
import torch.nn.functional as F
class ConvE(nn.Module):
def __init__(self, num_entities, num_relations, embed_dim):
super(ConvE, self).__init__()
self.emb_e = nn.Embedding(num_entities, embed_dim)
self.emb_r = nn.Embedding(num_relations, embed_dim)
self.conv = nn.Conv2d(1, 32, (3, 3))
self.fc = nn.Linear(32 * 10 * 10, embed_dim) # Example dimensions
def forward(self, e1, r, e2):
e1_emb = self.emb_e(e1).view(-1, 1, 10, 20) # Reshape to 2D
r_emb = self.emb_r(r).view(-1, 1, 10, 20)
x = torch.cat([e1_emb, r_emb], dim=2)
x = F.relu(self.conv(x))
x = x.view(x.shape[0], -1)
x = self.fc(x)
return torch.sigmoid((x * self.emb_e(e2)).sum(dim=1))
4. Loss Functions for Embedding Models
4.1 Loss Functions for Embedding Models
Loss functions in knowledge graph embedding models serve as the optimization objective, quantifying the discrepancy between predicted and ground-truth triple scores. The choice of loss function significantly impacts model performance, convergence speed, and robustness to noisy data. Three principal loss functions dominate the literature: margin-based ranking loss, logistic loss, and negative log-likelihood loss.
Margin-Based Ranking Loss
Introduced by Bordes et al. in TransE, margin-based ranking loss enforces a separation between positive and negative triples by a predefined margin γ. The loss function is defined as:
where [x]_+ = max(0,x), f(h,r,t) is the scoring function for true triples, and f(h',r,t') for corrupted triples. The margin γ acts as a hyperparameter controlling the separation degree between positive and negative samples. This loss is particularly effective for models like TransE and RotatE where geometric relationships are explicitly encoded.
Logistic Loss
Logistic loss, used in models like DistMult and ComplEx, treats knowledge graph completion as a binary classification problem. The loss function applies the sigmoid activation to scores:
where y = 1 for positive triples and y = 0 for negative ones. This formulation provides probabilistic interpretations of triple plausibility and is more sensitive to subtle differences in scores compared to margin-based losses.
Negative Log-Likelihood Loss
For probabilistic embedding models like KG2E, negative log-likelihood loss measures the Kullback-Leibler divergence between distributions:
where p(h,r,t) represents the probability density of the triple under the learned distribution. This loss is particularly suited for models capturing uncertainty in embeddings, as it directly optimizes the likelihood of observed triples.
Sampling Strategies
The effectiveness of these loss functions depends heavily on negative sampling strategies. Common approaches include:
- Uniform sampling: Corrupts triples by randomly replacing head or tail entities
- Bernoulli sampling: Adjusts corruption probabilities based on relationship-specific entity distributions
- Adversarial sampling: Generates hard negatives using a generator network
Recent work has shown that incorporating relation-specific margins (γ_r) or adaptive weighting schemes can further improve performance, particularly in graphs with heterogeneous relation semantics.
Practical Considerations
In implementation, loss functions often incorporate regularization terms to prevent overfitting. The L2 regularization term is commonly added:
where λ controls regularization strength. For large-scale knowledge graphs, self-adversarial sampling (as used in RotatE) and loss annealing techniques have proven effective in balancing exploration and exploitation during training.
4.2 Negative Sampling Strategies
Negative sampling is a critical component in training knowledge graph embeddings, as it directly influences the model's ability to discriminate between valid and invalid triples. Unlike positive samples, which are observed facts in the knowledge graph, negative samples are synthetically generated to represent non-existent or implausible relationships. The choice of negative sampling strategy significantly impacts the embedding quality, convergence speed, and downstream reasoning performance.
Uniform Negative Sampling
The simplest approach is uniform negative sampling, where corrupted triples are generated by randomly replacing either the head or tail entity with a uniformly sampled entity from the knowledge graph. Given a positive triple (h, r, t), a negative triple is constructed as either (h', r, t) or (h, r, t'), where:
Here, 𝒰(ℰ) denotes a uniform distribution over all entities in the knowledge graph. While computationally efficient, this strategy suffers from the vanishing gradient problem when many generated negatives are too obviously false, providing little learning signal.
Bernoulli Negative Sampling
To address the limitations of uniform sampling, the Bernoulli strategy introduces relation-specific corruption probabilities. For each relation r, the probability of corrupting the head (pr) or tail (1 - pr) is learned based on the relation's cardinality:
This adaptively balances between head and tail corruption, particularly useful for 1-to-N, N-to-1, and N-to-N relations. The strategy was first introduced in TransH and has become a standard baseline in many embedding models.
Adversarial Negative Sampling
More sophisticated approaches employ adversarial training, where a generator network produces challenging negative samples that maximize the current model's loss. The generator's objective is:
where pϕ is the generator's distribution parameterized by ϕ. This minimax formulation produces hard negatives that lie near the decision boundary, forcing the embedding model to learn sharper distinctions. KBGAN and other GAN-based approaches have demonstrated superior performance with this strategy.
Type-Constrained Negative Sampling
For knowledge graphs with entity type information, type constraints can be enforced during negative sampling to avoid semantically invalid corruptions. Given an entity e with type set T(e), a negative sample must satisfy:
where domain(r) and range(r) are the permissible types for a relation's subject and object. This strategy prevents nonsensical negatives like (MonaLisa, hasCurrency, Euro) while maintaining computational tractability through type-aware sampling.
Self-Adversarial Sampling
RotatE introduced a temperature-based self-adversarial approach that weights negative samples by their current scores:
where α is an annealing temperature parameter. This creates a curriculum where initially easier negatives are sampled more frequently, gradually shifting to harder negatives as training progresses. The approach achieves state-of-the-art results while requiring no additional parameters.
Geometric Negative Sampling
For hyperbolic knowledge graph embeddings, negative sampling can exploit the geometric properties of the embedding space. In Poincaré ball models, negatives are sampled proportionally to their distance from the positive sample:
where dhyp is the hyperbolic distance metric. This strategy is particularly effective for hierarchical relations, as it preserves the latent tree-like structure during negative sampling.
4.3 Hyperparameter Tuning and Evaluation Metrics
Hyperparameter Optimization Strategies
The performance of knowledge graph embedding models heavily depends on selecting appropriate hyperparameters. Key hyperparameters include embedding dimension d, learning rate η, batch size B, negative sampling ratio k, and regularization coefficient λ. For translational distance models like TransE, the margin hyperparameter γ is particularly critical.
Grid search remains a reliable but computationally expensive approach for hyperparameter optimization. Given the high-dimensional search space, Bayesian optimization with Gaussian processes often yields better results with fewer evaluations. The acquisition function balances exploration and exploitation:
where μ(x) is the posterior mean, σ(x) the posterior standard deviation, and κ controls exploration-exploitation trade-off.
Evaluation Metrics for Knowledge Graph Completion
Standard evaluation protocols measure the model's ability to predict missing triples (h, r, t). Two primary metrics are used:
- Mean Rank (MR): Average rank of correct entities when replacing either head or tail entity with all possible candidates.
- Hits@k: Percentage of correct entities ranked in the top k positions.
For filtered evaluation, all known valid triples are removed from the ranking to prevent artificially inflated scores. The filtered MR and Hits@k provide more realistic performance estimates.
Advanced Evaluation Protocols
Recent work introduces more sophisticated metrics that account for the semantic hierarchy in knowledge graphs:
where w(t) is an importance weight based on the entity's position in the class hierarchy. This Adjusted Hits@k (AH@k) metric gives higher weight to predicting rare or specific entities correctly.
Cross-Validation for Knowledge Graphs
Traditional k-fold cross-validation is problematic for knowledge graphs due to their inherent relational structure. Instead, time-aware evaluation splits triples chronologically, using older facts for training and newer ones for testing. An alternative is degree-stratified sampling that maintains the same distribution of node degrees across splits.
Practical Considerations
When tuning knowledge graph embeddings:
- Monitor both validation loss and downstream task performance if embeddings will be used for transfer learning
- Use early stopping with patience based on Hits@10 rather than just loss minimization
- For large graphs, consider progressive shrinking - start with a small subset for initial hyperparameter search before full training
The optimal hyperparameters often depend on the graph's properties. For example, denser graphs typically benefit from higher-dimensional embeddings, while sparse graphs may achieve good performance with lower dimensions and stronger regularization.
5. Link Prediction and Completion
5.1 Link Prediction and Completion
Link prediction in knowledge graphs (KGs) involves inferring missing edges between entities based on the existing graph structure. Given a KG G = (E, R, T), where E is the set of entities, R the set of relations, and T the set of triples (h, r, t), the task is to predict whether a candidate triple (h', r', t') holds true. Embedding-based methods map entities and relations to a continuous vector space, where the likelihood of a triple is modeled via a scoring function f(h, r, t).
Scoring Functions for Link Prediction
Different KG embedding models employ distinct scoring functions to measure triple plausibility. Translational models like TransE define:
where p is the norm (typically L1 or L2), and h, r, t are vector embeddings. Rotational models such as RotatE use complex space embeddings:
where ∘ denotes element-wise rotation. Tensor factorization models like RESCAL decompose the KG as a 3D tensor, scoring triples via:
where Mr is a relation-specific matrix.
Negative Sampling and Training
Since KGs contain only positive triples, negative samples are generated by corrupting existing triples, replacing either h or t with a random entity. The model is trained using a margin-based loss:
where γ is a margin hyperparameter and T' is the set of negative triples. Advanced techniques like self-adversarial sampling dynamically weight negative samples during training.
Evaluation Metrics
Link prediction performance is measured using:
- Mean Rank (MR): Average rank of true triples among corrupted candidates.
- Mean Reciprocal Rank (MRR): Harmonic mean of reciprocal ranks.
- Hits@k: Percentage of true triples ranked in the top k.
Filtered evaluation excludes corrupted triples that exist in the KG, providing a more realistic assessment.
Applications and Challenges
Link prediction enables KG completion in domains like biomedical research (predicting drug interactions) and recommendation systems (suggesting user-item connections). Key challenges include handling long-tail relations, multi-hop reasoning, and incorporating temporal dynamics. Recent advances leverage graph neural networks (GNNs) to capture higher-order structural patterns beyond shallow embeddings.

5.2 Entity Classification and Clustering
Entity classification and clustering in knowledge graphs leverage embedding techniques to group entities based on their semantic or relational similarity. Unlike traditional clustering methods, knowledge graph embeddings incorporate relational structure, enabling more nuanced groupings that reflect both attribute similarity and graph topology.
Embedding-Based Entity Classification
Given a knowledge graph G = (E, R, T), where E is the set of entities, R the relations, and T the triples, entity classification assigns a label y ∈ Y to each entity e ∈ E. Embedding-based approaches first project entities into a low-dimensional space using models like TransE, ComplEx, or RotatE, then apply a classifier (e.g., logistic regression, SVM, or neural networks) on the embeddings.
The classification objective minimizes the cross-entropy loss:
where W and b are learnable parameters, and σ is the sigmoid function. This approach outperforms feature-based methods by capturing relational dependencies implicitly encoded in the embeddings.
Clustering with Knowledge Graph Embeddings
Clustering groups entities without predefined labels, using similarity metrics derived from embeddings. Common algorithms include:
- K-Means: Minimizes intra-cluster variance in the embedding space.
- Spectral Clustering: Uses graph Laplacians constructed from embedding similarities.
- Hierarchical Agglomerative Clustering (HAC): Merges entities iteratively based on distance thresholds.
The similarity between two entities ei and ej can be measured using cosine similarity or Euclidean distance:
Case Study: DBpedia Entity Clustering
Applying HAC to DBpedia embeddings (generated with RotatE) reveals clusters aligning with ontological categories (e.g., "Scientists," "Cities," "Companies"). The silhouette score evaluates cluster cohesion:
where a(ei) is the average intra-cluster distance, and b(ei) the nearest-cluster distance.
Joint Classification and Clustering
Recent work combines both tasks via multi-task learning. The model jointly optimizes:
where α balances classification accuracy and cluster purity. This is particularly effective in semi-supervised settings with limited labeled data.
5.3 Question Answering over Knowledge Graphs
Formalization of QA over Knowledge Graphs
Given a knowledge graph G = (E, R, T), where E is the set of entities, R is the set of relations, and T is the set of triples (h, r, t), question answering aims to find an answer entity a ∈ E or a relation r ∈ R given a natural language question q. The task can be formulated as learning a function f: Q → A, where Q is the space of questions and A is the space of answers derived from G.
Here, P(q) represents the set of possible logical forms (or query paths) derived from question q, and P(a|p, G) measures the likelihood of answer a given path p in graph G.
Embedding-Based Approaches
Embedding methods project entities and relations into a continuous vector space where semantic similarity can be computed efficiently. For QA tasks, the question q is typically encoded into the same space using neural networks, allowing direct comparison with KG embeddings. The most common architectures include:
- Translation-based models (e.g., TransE, RotatE) where relations are interpreted as translations or rotations in the embedding space.
- Neural link predictors that use convolutional (ConvE) or graph neural networks (R-GCN) to score candidate answers.
- Hybrid models combining pre-trained language models (BERT, GPT) with KG embeddings for joint reasoning.
Example: Complex Query Answering with Beta Embeddings
For complex queries involving logical operators (∧, ∨, ∃), BetaE models entities as beta distributions in a hyper-rectangular space. The probability of an answer is computed via:
where fq(x) is the density function for query q, and Box(a) defines the region associated with entity a.
Neural Semantic Parsing
State-of-the-art systems like NSM (Neural Semantic Machines) parse questions into executable logical forms using sequence-to-sequence models. The parsing involves:
- Encoding the question with a transformer (e.g., BART).
- Decoding into a grammar-constrained logical form (e.g., SPARQL, λ-DCS).
- Executing the form against the KG using beam search to handle ambiguity.
For example, the question "Which scientists worked at both MIT and Harvard?" translates to the logical query:
Case Study: MetaQA Benchmark
The MetaQA dataset evaluates multi-hop QA performance over a movie KG. A 2-hop question like "Who directed the movies starring [actor]?" requires traversing actor → movie → director edges. Key findings:
- Embedding-based methods (e.g., GraftNet) achieve ~90% accuracy on 1-hop queries but degrade to ~65% for 3-hop.
- Models incorporating attention (e.g., PullNet) improve robustness by dynamically retrieving relevant subgraphs during reasoning.
Challenges and Future Directions
Current limitations include handling incomplete KGs (missing edges) and compositional queries with negation. Promising solutions involve:
- Uncertainty-aware embeddings (e.g., Gaussian embeddings) to model confidence in missing facts.
- Neuro-symbolic integration, where neural networks guide symbolic reasoning engines like Prolog.

6. Scalability Issues with Large Knowledge Graphs
6.1 Scalability Issues with Large Knowledge Graphs
Knowledge graph embeddings face significant computational and memory constraints when applied to large-scale knowledge graphs (KGs) such as Freebase, Wikidata, or enterprise KGs with millions of entities and relations. The primary bottlenecks emerge from three key dimensions:
1. Memory Complexity of Embedding Matrices
Given a KG with N entities and R relations, traditional embedding models like TransE or DistMult require storing two dense matrices:
where d is the embedding dimension. For Freebase (≈40M entities) with d=200, this demands 32GB memory just for entity embeddings (assuming 32-bit floats). The quadratic growth O(Nd + Rd) becomes prohibitive for web-scale KGs.
2. Computational Cost of Negative Sampling
Training typically requires negative sampling, where for each positive triple (h,r,t), we generate k negative samples. The computational complexity scales as:
where T is the number of training triples. For Wikidata with 1B triples and k=10, this requires ≈20 trillion floating-point operations per epoch.
3. Sparsity and Long-Tail Distributions
Real-world KGs exhibit power-law degree distributions where most entities have few connections while a small fraction (e.g., "United States" in Wikidata) have millions. This creates two issues:
- Inefficient gradient updates: High-degree entities dominate the gradient signal, while tail entities receive sparse updates.
- Embedding collapse: Rare entities may converge to near-identical vectors due to insufficient training signals.
Practical Mitigation Strategies
Current approaches address these challenges through:
a) Dimensionality Reduction Techniques
Methods like ComplEx-N3 exploit low-rank tensor decomposition:
where 𝐰r is a diagonal relation matrix, reducing memory by 60-80% compared to full-rank models.
b) Subgraph Sampling
Graph partitioning algorithms like METIS divide the KG into clusters that fit in GPU memory, with cross-cluster edges handled via:
where ℒc is the local loss for cluster c and the second term preserves global consistency.
c) Quantization and Pruning
Recent work shows 8-bit quantized embeddings retain 95% of link prediction accuracy while reducing memory by 4×. Dynamic pruning of gradient updates for high-degree entities (e.g., top 0.1%) can accelerate training by 3-5×.

6.2 Handling Incomplete or Noisy Data
Knowledge graphs often suffer from incompleteness and noise due to imperfect data sources, extraction errors, or evolving information. Advanced embedding techniques must account for these imperfections to maintain robust reasoning capabilities. Two primary challenges emerge: missing triples (incompleteness) and erroneous triples (noise).
Probabilistic Approaches for Missing Data
When triples are missing, probabilistic models treat each potential triple (h, r, t) as a latent variable with an associated probability. The ComplEx model extends this by leveraging complex-valued embeddings to capture asymmetric relations:
where h, r, t are complex embeddings, and Re denotes the real part. The probability of a triple being valid is modeled via the logistic sigmoid:
This formulation allows the model to impute missing triples by ranking candidates based on their computed probabilities.
Robust Loss Functions for Noisy Data
Noisy triples can distort embeddings if not handled properly. Robust loss functions, such as negative sampling with margin-based ranking, mitigate this by downweighting outliers. The loss function for a batch of triples is:
where (h', r, t') are negative samples, and γ is a margin hyperparameter. Noise-resistant variants like self-adversarial negative sampling further improve robustness by adaptively weighting negative samples based on their plausibility.
Graph Autoencoders for Denoising
Graph autoencoders (GAEs) learn to reconstruct clean graph structures from noisy inputs. The encoder maps noisy triples to latent embeddings, while the decoder reconstructs the denoised adjacency matrix. The reconstruction loss is:
where A is the adjacency matrix, Z is the latent embedding matrix, and σ is the sigmoid function. Variational graph autoencoders (VGAEs) introduce a probabilistic latent space to better handle uncertainty:
Case Study: Wikidata Refinement
Wikidata’s knowledge graph contains both missing and noisy assertions. A hybrid approach combining ComplEx for completion and a Gaussian Mixture Model (GMM) for noise detection achieved a 12% improvement in precision over baseline methods. The GMM clusters embedding distances to identify outliers:
Triples with low likelihood under this mixture are flagged for review or removal.

6.3 Interpretability and Explainability of Embeddings
Knowledge graph embeddings, while powerful for reasoning tasks, often suffer from being treated as black-box representations. The latent space geometry that enables effective link prediction and entity ranking does not inherently provide human-understandable explanations for why certain relations hold or how entities are semantically positioned.
Geometric Interpretability of Embedding Spaces
Rotational models like RotatE and QuatE offer direct interpretability through their geometric transformations. In RotatE, relations are modeled as rotations in complex space:
where θ represents the angle of rotation between head and tail entities. This allows for explicit interpretation of relations as angular displacements in the embedding space. Similarly, translational models like TransE can be interpreted through vector offsets:
where the relation vector r provides a direct geometric interpretation of how entities are transformed.
Attention Mechanisms for Explainability
Transformer-based knowledge graph embedding methods incorporate attention weights that can be analyzed to understand which parts of the graph structure contribute most to predictions. For a given triple (h, r, t), the attention distribution α over neighboring entities reveals the relative importance of different graph paths:
where n_i represents neighboring entities and f is a scoring function. These attention weights provide local explanations for individual predictions.
Probabilistic Interpretation of Scoring Functions
The scoring functions used in knowledge graph embeddings can be reinterpreted as log-likelihoods of probabilistic models. For DistMult with score:
we can derive the corresponding probability through a sigmoid transformation:
This probabilistic framing enables Bayesian interpretation of the embeddings and allows for uncertainty quantification.
Post-hoc Explanation Methods
Several techniques have been adapted from deep learning explainability to knowledge graph embeddings:
- Gradient-based attribution: Compute ∇_h s(h,r,t) to identify which dimensions of the head entity embedding most influence the prediction
- Embedding perturbation analysis: Systematically perturb dimensions of entity embeddings to measure impact on prediction confidence
- Subgraph extraction: Identify the minimal connected subgraph around a predicted triple that preserves the prediction
These methods produce saliency maps or important substructures that explain individual predictions.
Dimensionality Reduction for Visualization
Techniques like t-SNE and UMAP can project high-dimensional embeddings to 2D/3D while preserving local neighborhoods. For a knowledge graph with N entities, we minimize:
where p_{ij} are probabilities in the original space and q_{ij} in the reduced space. This enables visual inspection of entity clusters and relation patterns.
Symbolic-Distilled Explanations
Recent work combines neural embeddings with symbolic reasoning to generate human-readable rules. The embedding space is analyzed to extract frequent patterns that can be expressed as Horn clauses:
where P, Q, R are relations learned to be compositionally meaningful in the embedding space.

7. Key Research Papers on Knowledge Graph Embeddings
7.1 Key Research Papers on Knowledge Graph Embeddings
- A review: Knowledge reasoning over knowledge graph — The review reveals opportunities for future knowledge graph reasoning research. ... Translations operating on the low-dimensional embeddings of the entities from knowledge graph. ... Therefore, incorporating common-sense knowledge into KBQA for reasoning is a key issue in intelligent question answering.
- A collaborative learning framework for knowledge graph embedding and ... — Recently, knowledge graph embedding (KGE) methods [7] and knowledge graph reasoning (KGR) methods [4], [8] have emerged as two kinds of promising approaches for discovering the missing knowledge from known KG facts. Specifically, KGE models map entities and relations into a low-dimensional and continuous vector space [9] to capture inner connections and then evaluate the confidence of new ...
- Logical Rule-Based Knowledge Graph Reasoning: A Comprehensive Survey - MDPI — With its powerful expressive capability and intuitive presentation, the knowledge graph has emerged as one of the primary forms of knowledge representation and management. However, the presence of biases in our cognitive and construction processes often leads to varying degrees of incompleteness and errors within knowledge graphs. To address this, reasoning becomes essential for supplementing ...
- ReCDAP: Relation-Based Conditional Diffusion with Attention Pooling for ... — tribution of knowledge graph facts by reframing entity prediction as conditional fact generation. Leveraging the Denoising Diffu-sion Probabilistic Model (DDPM) [5], it captures complex relational patterns and improves knowledge graph completion performance. This study proposes a novel approach that explicitly models pos-
- PDF Temporal Knowledge Graph Embedding and Reasoning — Knowledge Graphs (KGs) have emerged as an efficient way to organize and represent knowledge by storing the underlying relations between entities. Recently, a large amount of research works have been devoted to KG embeddings, aiming at mapping entities and relations in KGs to low-dimensional continuous vector spaces for fast reasoning.
- Unifying Large Language Models and Knowledge Graphs: A Roadmap - arXiv.org — Copilot, New Bing, and Shop.ai adopt LLMs to empower their applications in the areas of coding assistant, web search, and recommendation, respectively. Wikidata and KO are two representative knowledge graph applications that are used to provide external knowledge. OpenBG is a knowledge graph designed for recommendation. Doctor.ai develops a ...
- Improving Knowledge Graph Embeddings with Ontological Reasoning — Knowledge graph (KG) embedding models have emerged as powerful means for KG completion. To learn the representation of KGs, entities and relations are projected in a low-dimensional vector space ...
- Towards electronic health record-based medical knowledge graph ... — Fig. 2 reveals that there has been a steady rise in the number of published articles in the knowledge graph domain that incorporated the use of EHR data. The number of articles shown in Fig. 2 are the articles selected for this literature survey using the search methodology mentioned in Section 3.The purpose of this paper is to review the literature on EHR-based medical knowledge graphs, which ...
- An enhanced framework for knowledge graph embedding based on negative ... — Knowledge graph embedding (KGE) is an effective method for link prediction in knowledge graphs, with numerous models demonstrating significant success. However, many existing KGE models struggle ...
- KG-EGV: A Framework for Question Answering with Integrated Knowledge ... — Despite the remarkable progress of large language models (LLMs) in understanding and generating unstructured text, their application in structured data domains and their multi-role capabilities remain underexplored. In particular, utilizing LLMs to perform complex reasoning tasks on knowledge graphs (KGs) is still an emerging area with limited research. To address this gap, we propose KG-EGV ...
7.2 Open-Source Libraries and Tools
- PDF Type-aware Embeddings for Multi-Hop Reasoning over Knowledge Graphs — reasoning, producing intermediate uncertain entities. 3 Background In this paper, a knowledge graph [Pan et al., 2016] is repre-sented in a standard format for graph-structured data such as RDF. A knowledge graph Gis a tuple (E,R,C,T), where E is a set of entities, Ris a set of relation types, Cis a set of entity types, and Tis a set of triples.
- A review: Knowledge reasoning over knowledge graph — The remaining challenges of knowledge graph reasoning and its applications are discussed. ... (Suchanek, Kasneci, & Weikum, 2007) is an open source knowledge base developed by the Max Planck Institute. The information in YAGO is extracted from Wikipedia (e.g., categories, redirects, infoboxes), WordNet (e.g., synsets, hyponymy), and GeoNames ...
- PDF Improving Knowledge Graph Embeddings with Ontological Reasoning — Improving Knowledge Graph Embeddings with Ontological Reasoning 5 Definition 1(Modules). Given a KG Gand an entity e2Ent(G), the module of e w.r.t. Gis defined as M(e;G) = f j 2Gand eoccurs in g. We denote the set of all modules for individuals occurring in Gas M G= fM(e;G) je2Ent(G)g. Lemma 1(Consistency Local Property). Let Gbe a KG and Oan ...
- RDFox | The Knowledge Graph and Reasoning Engine — RDFox is the world's fastest knowledge graph and semantic reasoning engine. Spun out of the University of Oxford, RDFox is an enterprise-ready rules-based AI. ... RDFox's inbuilt graph database uses the open RDF standard, meaning greater flexibility to switch between different RDF triple stores and less vendor lock-in. As standard we support:
- GitHub - zjunlp/DeepKE: [EMNLP 2022] An Open Toolkit for Knowledge ... — DeepKE contains a unified framework for named entity recognition, relation extraction and attribute extraction, the three knowledge extraction functions.; Each task can be implemented in different scenarios. For example, we can achieve relation extraction in standard, low-resource (few-shot), document-level and multimodal settings.; Each application scenario comprises of three components: Data ...
- Deep Graph Library — DGL empowers a variety of domain-specific projects including DGL-KE for learning large-scale knowledge graph embeddings, DGL-LifeSci for bioinformatics and cheminformatics, and many others. Find an example to get started ... I taught my students Deep Graph Library (DGL) in my lecture on "Graph Neural Networks" today. It is a great resource to ...
- ULTRA: Towards Foundation Models for Knowledge Graph Reasoning - GitHub — ULTRA is a foundation model for knowledge graph (KG) reasoning. A single pre-trained ULTRA model performs link prediction tasks on any multi-relational graph with any entity / relation vocabulary. Performance-wise averaged on 50+ KGs, a single pre-trained ULTRA model is better in the 0-shot inference mode than many SOTA models trained specifically on each graph.
- Towards Semantically Enriched Embeddings for Knowledge Graph Completion — Type-Aware Graph Attention neTworks for reasoning over KGs (TAGAT) is one of the methods that combine the entity type information with the neighborhood information of the types while generating embeddings with the help of Graph ATtention networks (GAT). The relation level attention aims at distinguishing the importance of each associated ...
- Concept-aware embedding for logical query reasoning over knowledge ... — Logical query reasoning over knowledge graphs (KGs) is an important task for querying some information upon specified conditions. Despite recent advancements, existing methods typically focus on the inherent structure of logical queries and fail to capture the commonality among entities and relations, resulting in cascading errors during multi-hop inference.
- KG-EGV: A Framework for Question Answering with Integrated Knowledge ... — Despite the remarkable progress of large language models (LLMs) in understanding and generating unstructured text, their application in structured data domains and their multi-role capabilities remain underexplored. In particular, utilizing LLMs to perform complex reasoning tasks on knowledge graphs (KGs) is still an emerging area with limited research. To address this gap, we propose KG-EGV ...
7.3 Recommended Books and Surveys
- Neural-Symbolic Methods for Knowledge Graph Reasoning: A Survey — 2 Neural-Symbolic Knowledge Graph Reasoning Taxonomy; 3 Background and Preliminary. 3.1 Knowledge Graph; 3.2 Symbolic Logic; 3.3 Knowledge Graph in the Language of Symbolic Logic; 3.4 Logical Rules in the Context of Knowledge Graph; 4 Link Prediction. 4.1 Symbolic Reasoning. 4.1.1 Logical Inference for Boolean Logic. 4.1.2 Probabilistic ...
- Knowledge graphs / Aidan Hogan, Eva Blomqvist, Michael Cochez [and 15 ... — Inductive knowledge -- 5.1. Graph analytics -- 5.2. Knowledge graph embeddings -- 5.3. Graph neural networks -- 5.4. Symbolic learning, 6. ... and refinement of knowledge graphs and surveys recent open and enterprise knowledge graphs and the industries or applications within which they have been most widely adopted. ... knowledge bases; Genre(s ...
- PDF Beta Embeddings for Multi-Hop Logical Reasoning in Knowledge Graphs — given FOL query, we can follow the computation graph and execute logical operators. 3. Probabilistic Embeddings for Reasoning 3.1. Beta Embeddings for Entities and Queries For each entity v2V, we assign an initial Beta embed-ding with learnable parameters. We also embed each query qwith a Beta embedding, which is calculated by a set of
- Logical Rule-Based Knowledge Graph Reasoning: A Comprehensive Survey - MDPI — With its powerful expressive capability and intuitive presentation, the knowledge graph has emerged as one of the primary forms of knowledge representation and management. However, the presence of biases in our cognitive and construction processes often leads to varying degrees of incompleteness and errors within knowledge graphs. To address this, reasoning becomes essential for supplementing ...
- PDF Using Knowledge Graph for Explainable Recommendation of External ... — between the textbook content, Wikipedia and the student model. The knowledge graph is hosted on a native graph database (Neo4j) and used for both storing the data and generating the recommendations.The overall schema of our knowledge graph is presented in Figure 3. In the following, we will describe the process of building the knowledge graph.
- Knowledge Graphs | The MIT Press - Ublish — After presenting introductory and background material, the text covers techniques for constructing knowledge graphs, adding new knowledge to (or refining old knowledge in) knowledge graphs, and accessing (or querying) knowledge graphs. Finally, the book describes specific knowledge graph ecosystems, with each ecosystem corresponding to several ...
- [2212.05767] A Survey of Knowledge Graph Reasoning on Graph ... - ar5iv — Knowledge graph reasoning (KGR), aiming to deduce new facts from existing facts based on mined logic rules underlying knowledge graphs (KGs), has become a fast-growing research direction. ... Humans learn skills from two main sources, i.e., specialized books and working experiences. For example, a good doctor needs to get knowledge from school ...
- KNOWLEDGE REASONING WITH GRAPH NEURAL NETWORKS - gatech.edu — 3.2.4 Probabilistic Module for Reasoning over Knowledge Graph. . . . . 18 ... ing graphs are efficiently embedded and scored against the question embeddings to retrieve the best answer. During training, to handle the non-differentiable sam-pling operation y ∼P(y|q), we use variational posterior with the REINFORCE ...
- entity2rec: Property-specific knowledge graph embeddings for item ... — Recently, knowledge graph embeddings have proven to be extremely effective at learning features for prediction tasks, reducing the complexity and time required to manually design effective features. In this work, we present entity2rec, which learns user-item relatedness for item recommendation through property-specific knowledge graph embeddings.
- Using Knowledge Graph for Explainable Recommendation of External ... — The purpose of creating such a knowledge graph of manufacturing using Wikidata is to provide a starting point for a structured manufacturing knowledge base, which can be amalgamated with knowledge ...








