Abstract
Knowledge graph embedding aims at modeling entities and relations with low-dimensional vectors. Most previous methods require that all entities should be seen during training, which is unpractical for real-world knowledge graphs with new entities emerging on a daily basis. Recent efforts on this issue suggest training a neighborhood aggregator in conjunction with the conventional entity and relation embeddings, which may help embed new entities inductively via their existing neighbors. However, their neighborhood aggregators neglect the unordered and unequal natures of an entity’s neighbors. To this end, we summarize the desired properties that may lead to effective neighborhood aggregators. We also introduce a novel aggregator, namely, Logic Attention Network (LAN), which addresses the properties by aggregating neighbors with both rules- and network-based attention weights. By comparing with conventional aggregators on two knowledge graph completion tasks, we experimentally validate LAN’s superiority in terms of the desired properties.
Introduction
Knowledge Graphs (KGs) like DBpedia and Freebase are dynamic entities, growing by hundreds of new nodes daily. Traditional embedding models (e.g., TransE, DistMult) are typically transductive, meaning they require every entity to be present during training to learn its vector representation. Retraining these massive models from scratch for every new addition is computationally infeasible.
To address this, researchers are shifting toward inductive learning. The goal is to "guess" the embedding of a new entity by aggregating information from its existing neighbors. However, KGs are multi-relational; a neighbor connected via a "born_in" relation carries different weight than one connected via "works_as" depending on the query.
Methodology: The Logic Attention Network (LAN)
The authors propose the Logic Attention Network (LAN), a neighborhood aggregator that transforms an entity's neighbors into a single representative vector. LAN is built on the principle that neighbors are unordered (permutation-invariant) and of unequal importance (query-aware).
Double-View Attention
LAN’s core innovation is its Double-View Attention mechanism, which combines symbolic logic with neural learning:
- Logic Rule Mechanism (Top-Down): This view leverages global KG statistics to identify logical dependencies. For example, if a neighbor is connected via "plays_for_Chicago_Bulls," the model assigns a higher weight to that neighbor when predicting the entity's profession as a "Basketball_Player."
- Neural Network Mechanism (Bottom-Up): A standard attention layer captures fine-grained features from neighbor embeddings that might be missed by global symbolic rules.
Experimental Results
The model was evaluated on Triplet Classification and Link Prediction using WordNet11 and FB15K. To test inductive capabilities, 5% to 25% of entities were held out during training to serve as "unseen" entities during testing.
- Superior Performance: LAN consistently outperformed standard aggregators like MEAN (equal weighting) and LSTM (sequential processing). In Subject-10 link prediction, LAN achieved a Mean Reciprocal Rank (MRR) of 0.394, significantly higher than the MEAN aggregator's 0.310.
- Robustness to Sparsity: As the percentage of unseen entities increased—making the graph sparser—LAN’s performance remained more stable than its competitors.
- The Power of Logic: Interestingly, the "Logic Rules Only" version of the model often outperformed pure neural aggregators, suggesting that the structured nature of KGs is a critical resource for effective embedding.
Conclusion and Future Work
LAN demonstrates that combining symbolic logic with neural attention creates a more robust and future-proof embedding model for dynamic KGs. Future research will focus on the "cold start" problem—where new entities have zero initial connections—and the integration of multi-hop logic chains to further refine neighborhood aggregation.
Summary updated