Abstract
Knowledge Graph (KG) completion is a critical task for maintaining the integrity of large-scale information systems. This paper introduces LASS (Joint Language Semantic and Structure Embedding), a framework that fine-tunes pre-trained language models (LMs) using a probabilistic structured loss. By enforcing the geometric translation property ($h + r \approx t$) within the LM's embedding space, LASS effectively bridges the gap between semantic textual information and structural graph patterns. Experimental results demonstrate state-of-the-art performance and exceptional data efficiency, particularly in low-resource scenarios.
Introduction
Knowledge Graphs like Wikidata and Freebase serve as the backbone for modern search engines and question-answering systems. However, these graphs are often incomplete. Predicting missing links requires a dual understanding of structural patterns (e.g., transitivity in family relations) and semantic relatedness (e.g., similarity between "CEO of" and "employee of").
Existing approaches typically fall into two categories: structure-based methods (like TransE), which treat entities as abstract nodes and ignore textual descriptions, and semantic-based methods (like KG-BERT), which treat triplets as sentences but often fail to capture rigorous geometric dependencies. LASS aims to unify these paradigms by jointly embedding both semantics and structure.
Methodology
The LASS framework integrates the semantic representational power of LMs with structural graph constraints through a unified training objective.
Semantic and Structure Embedding
LASS processes natural language descriptions of a triplet—comprising a head entity ($h$), a relation ($r$), and a tail entity ($t$)—through a pre-trained language model such as BERT or RoBERTa. Mean pooling is applied to the output tokens to generate vector representations $\mathbf{h, r,}$ and $\mathbf{t}$.
Instead of a standard classification loss, LASS employs a probabilistic structured loss based on the translation principle. In this space, the vector sum of the head entity and the relation should approximately equal the tail entity vector ($\mathbf{h} + \mathbf{r} \approx \mathbf{t}$).
Joint Fine-tuning
During training, the model is fine-tuned via backpropagation. This process forces the LM to adjust its internal representations so that the resulting vectors satisfy the graph's structural requirements while preserving their inherent semantic meaning.
Experimental Results
LASS was evaluated across five standard benchmarks: FB15k-237, FB13, WN18RR, WN11, and UMLS.
Performance and Data Efficiency
LASS achieved state-of-the-art results on triplet classification for WN11 and FB13. In link prediction on WN18RR, LASS-RoBERTa-Large outperformed previous semantic methods like StAR, improving the Mean Rank (MR) by 11 units.
A key finding is LASS's remarkable performance in low-resource settings. By leveraging the pre-trained LM's deep linguistic understanding, the model requires significantly fewer graph triplets to learn the underlying structure compared to models trained from scratch.
Structural Attention
Visualization of the model's attention mechanisms reveals that LASS learns to attend to words fulfilling specific structural roles. For example, the model creates strong links between relation terms (e.g., "hypernym") and structural components of entity descriptions (e.g., "condition" or "state"), even when they lack direct semantic identity.
Conclusion
LASS demonstrates that the translation constraint acts as a powerful regularizer for language models in the context of Knowledge Graphs. While the current implementation uses a simple translation-based loss, future work could explore more complex geometric models like rotations or hyperbolic embeddings. Additionally, investigating lighter LM architectures could address the computational costs associated with large-scale link prediction.
Summary updated