Abstract
Knowledge Graph Completion (KGC) is critical for addressing the inherent incompleteness of large-scale Knowledge Graphs. Existing methods generally face a trade-off between the computational efficiency of Graph Embedding (GE) techniques and the semantic generalization of Textual Encoding (TE) models. We introduce StAR (Structure-Augmented Text Representation), which utilizes a Siamese-style architecture to encode head-relation pairs and tail entities independently. By combining a deterministic classification objective with a spatial structure learning objective, StAR achieves state-of-the-art performance while significantly reducing inference latency compared to cross-encoder models like KG-BERT.
1. Introduction
Knowledge Graphs (KGs) such as Freebase and WordNet serve as foundational components for various NLP tasks. However, their utility is often limited by missing links. Knowledge Graph Completion (KGC) aims to predict these missing triples $(h, r, t)$.
Current methodologies are divided into two paradigms:
- Graph Embedding (GE): Methods like RotatE map entities to a vector space. They are efficient but struggle with unseen entities (inductive setting) as they ignore textual descriptions.
- Textual Encoding (TE): Models like KG-BERT leverage Transformers to process entity text. While they generalize well, they suffer from high inference costs due to the combinatorial explosion of head-tail pairs during link prediction.
StAR addresses these limitations by seeking a middle ground: the deep semantic understanding of BERT combined with the efficiency and structural logic of graph embeddings.
2. Methodology
The StAR architecture introduces three primary innovations to balance performance and efficiency.
2.1 Siamese Triple Encoding
Unlike cross-encoders that process a full triple simultaneously, StAR employs a Siamese-style encoder. It encodes the $(head, relation)$ pair as a single representation $u$ and the $(tail)$ entity as a separate representation $v$. This separation allows tail embeddings to be pre-computed and cached, enabling efficient ranking of thousands of candidates in a single pass.
2.2 Dual Scoring Modules
StAR utilizes two complementary scoring mechanisms:
- Deterministic Classifier: An MLP that takes the interaction of $u$ and $v$ to predict triple plausibility using Binary Cross-Entropy (BCE) loss.
- Spatial Structure Learning: This module treats the $(head, relation)$ encoding as a point in space and measures its distance to the $(tail)$ encoding, mimicking translation-based GE logic (e.g., $s^d = -||u - v||$). This helps the model learn the underlying graph structure.
2.3 Self-Adaptive Ensemble
To mitigate entity ambiguity—where distinct entities share similar textual descriptions—StAR can be ensembled with traditional GE models like RotatE. This hybrid approach leverages the high recall of text-based models and the high precision of structural models.
3. Evaluation
3.1 Experimental Setup
StAR was evaluated on four benchmarks: WN18RR (WordNet-based), FB15k-237 (Freebase-based), UMLS (medical), and NELL-One (for zero-shot evaluation).
3.2 Results and Efficiency
StAR demonstrates a significant improvement in inference speed. On FB15k-237, StAR completed inference in 6.5 hours, a massive reduction from the 30 days required by KG-BERT.
Key findings include:
- SOTA Performance: StAR (Self-Adp) achieved top-tier results on WN18RR and FB15k-237.
- Zero-Shot Generalization: On NELL-One, StAR outperformed specialized few-shot models, indicating superior generalization to unseen relations.
- Robustness: Probing tasks confirmed that StAR maintains high effectiveness even when entities are removed from the training set, unlike traditional GE models.
4. Conclusion
StAR successfully bridges the gap between text-based and graph-based KGC methods. By adopting a Siamese architecture and dual objectives, it provides a scalable solution for large-scale knowledge graphs. Future work includes addressing persistent polysemy challenges and exploring multi-hop reasoning within the Siamese framework.
Summary updated