Abstract
Knowledge Graph Embedding (KGE) is a fundamental task for predicting missing links in incomplete Knowledge Graphs. While traditional structure-based models excel at capturing graph topology, they often struggle with data sparsity. Conversely, Pre-trained Language Model (PLM)-based models leverage rich textual information but are frequently hindered by entity ambiguity and complex relational mappings. This paper introduces CoLE (Co-distillation Learning for Embedding), a framework that harmonizes these two paradigms through a bidirectional co-distillation strategy. By employing a neighborhood-aware Transformer (N-Former) and a neighborhood-aware BERT (N-BERT), CoLE allows each model to act as both teacher and student, effectively bridging the "complementarity gap." Experimental results on FB15K-237 and WN18RR demonstrate that CoLE achieves state-of-the-art performance, proving that mutual learning between structural and textual experts significantly enhances link prediction accuracy.
Introduction
Knowledge Graphs (KGs), such as Freebase and WordNet, serve as structured repositories of human knowledge, yet they are inherently incomplete. The task of Link Prediction aims to infer missing triplets $(h, r, t)$ to enhance the utility of these graphs. Historically, research has diverged into two primary methodologies: structure-based models and PLM-based models.
Structure-based models focus on the geometric properties and connectivity of the graph. While effective for entities with high degrees of connectivity, these models suffer significantly when faced with "long-tail" entities—those with few edges—due to the lack of sufficient structural signals. On the other hand, PLM-based models utilize the semantic power of models like BERT to interpret entity names and descriptions. While these models can generalize to rare entities using external linguistic knowledge, they often falter when dealing with "popular" entities that possess ambiguous names or participate in complex, many-to-many relations.
The CoLE Framework
The CoLE framework addresses this dichotomy by facilitating a collaborative learning environment where structural and textual models compensate for each other's weaknesses.
1. N-Former: The Structural Expert
N-Former is a neighborhood-aware Transformer designed to capture deep graph topology. Unlike traditional models that analyze triplets in isolation, N-Former recursively reconstructs an entity’s representation from its surrounding subgraph. This recursive approach ensures that the model learns a robust structural context, making it more resilient to missing edges by leveraging the information present in an entity's broader neighborhood.
2. N-BERT: The Textual Expert
N-BERT adapts the BERT architecture to the KG domain by incorporating neighborhood information. It utilizes "soft prompts"—trainable vector placeholders—alongside entity descriptions and the names of neighboring entities. This configuration allows N-BERT to probe its internal "encyclopedic" memory more effectively, using the local graph context to disambiguate entity meanings and retrieve relevant factual knowledge.
3. Co-distillation via Decoupled Knowledge Distillation
The centerpiece of CoLE is its co-distillation mechanism. Unlike standard knowledge distillation, where a static teacher guides a student, CoLE employs a bidirectional setup where both N-Former and N-BERT learn from each other simultaneously.
To prevent "negative transfer"—where one model's errors are passed to the other—the authors utilize Decoupled Knowledge Distillation (DKD). DKD separates prediction logits into "target" (the correct entity) and "non-target" (all other entities) components. This allows the models to focus on transferring high-confidence rankings and internal logic regarding the "wrong" answers, which often contain valuable information about entity similarities and relational patterns.
Key Insights: The Popularity Paradox
A significant finding of this research is the "Popularity Paradox." Empirical analysis reveals that PLMs often struggle with popular entities because their names appear in a wide variety of noisy and ambiguous contexts within the PLM's original pre-training corpus. In contrast, structure-based models thrive on these popular entities because the high density of edges provides a rich signal for learning embeddings. By recognizing this complementarity, CoLE ensures that the structural expert teaches the textual expert about popular entities, while the textual expert provides guidance on the long-tail entities where structural data is sparse.
Experimental Evaluation
The authors evaluated CoLE on two gold-standard benchmarks for link prediction:
- FB15K-237: A subset of Freebase containing real-world facts. It is challenging because inverse relations have been removed to prevent simple pattern leakage.
- WN18RR: A subset of WordNet featuring a hierarchical structure and a large number of entities relative to relations.
CoLE achieved state-of-the-art (SOTA) performance across both datasets:
- FB15K-237: Achieved a Hits@1 of 0.294, outperforming previous SOTA models like HittER and kNN-KGE.
- WN18RR: Achieved a Hits@1 of 0.532.
Crucially, the co-distillation process resulted in mutual improvement. On FB15K-237, N-BERT’s standalone performance improved from 0.287 to 0.293 Hits@1 after participating in the co-distillation loop, proving that the structural insights from N-Former were successfully integrated into the language model.
Conclusion and Future Work
CoLE represents a significant step forward in Knowledge Graph Embedding by formalizing the collaboration between structural and linguistic models. By leveraging the strengths of both N-Former and N-BERT through decoupled co-distillation, the framework overcomes the limitations of data sparsity and entity ambiguity.
While the computational cost of training two large-scale models simultaneously is a notable limitation, the performance gains suggest that the synergy between graph topology and language modeling is a fertile ground for future research. Potential extensions include applying CoLE to multi-source KGs and entity alignment tasks, where the integration of diverse information sources is paramount.
Summary updated