Abstract
Knowledge base embedding (KBE) typically treats facts as isolated triples, failing to capture the rich structural dependencies inherent in large-scale knowledge graphs. We present GAKE (Graph Aware Knowledge Embedding), a framework that models knowledge bases as unified directed graphs. By integrating neighbor, path, and edge contexts through an attention mechanism, GAKE effectively captures multi-hop structural information and identifies the relative importance of different relationships. Experimental results on the FB15K dataset demonstrate that GAKE significantly outperforms traditional translation-based models in triple classification and link prediction tasks.
Introduction
Most traditional knowledge base embedding models, such as the TransE family, operate on a "triple-by-triple" basis. They represent facts as $(head\ entity, relation, tail\ entity)$ and attempt to learn a vector space where $h + r \approx t$. However, this approach treats every fact as an independent island, ignoring the global context of entities within massive, interconnected graphs like Freebase or DBpedia.
A single triple cannot capture the varying information density of relationships—for instance, a singer's "nationality" is a common attribute, while their "discography" is a highly specific, identifying feature. Existing models often struggle with these complex, multi-step dependencies and the varying importance of different relationships.
Methodology
GAKE treats the knowledge base as a directed graph and introduces the concept of Graph Context, inspired by the textual context used in word embedding models like Word2Vec. The model utilizes three specific types of context to capture structural information:
- Neighbor Context: Focuses on immediate "one-hop" neighbors and their relations.
- Path Context: Captures multi-step relationships using random walks to find sequences of entities and relations (e.g., Person → BornIn → City → LocatedIn → Country).
- Edge Context: Considers the set of all relations connected to a specific entity to identify its functional "role" in the graph.
The Attention Mechanism
A key innovation in GAKE is the use of an attention mechanism. Not all neighbors or paths are equally informative. GAKE learns to assign higher weights (attention) to more representative or unique structural features. This allows the model to filter out "noise" from common, generic relations (like "Gender") and prioritize niche relations that define specific entity clusters.
Experimental Results
The researchers evaluated GAKE using the FB15K dataset, a standard benchmark derived from Freebase containing approximately 15,000 entities and 1,345 relations. GAKE was tested on two primary tasks: Triple Classification and Link Prediction.
Triple Classification
GAKE outperformed state-of-the-art baselines, including TransE, TransH, TransR, and TransD. As shown in the performance comparison, GAKE achieved a significant lead in accuracy, improving upon previous models by an average of 11.04%.
Link Prediction
On the FB15K dataset, GAKE achieved a Mean Rank of 119 (Filter) and a Hits@10 of 64.8% (Filter). This significantly betters the performance of TransE, which scored 125 and 47.1% respectively. Qualitative analysis further confirmed that the attention mechanism correctly identifies relevant contexts; for a movie entity, relations like "Action" and "Sequel" received high attention, while generic relations like "Genre" were down-weighted.
Conclusion
GAKE represents a fundamental shift in KBE by viewing the problem as graph representation rather than simple translation. By defining context for graph nodes and employing attention, GAKE captures global information invisible to triple-only models. Future work may involve incorporating external knowledge, such as Wikipedia descriptions, and exploring more complex sub-graph patterns to further enhance embedding quality while maintaining scalability.
Summary updated