[Paper Review] Dipping PLMs Sauce: Bridging Structure and Text for Effective Knowledge Graph Completion via Conditional Soft Prompting
This paper proposes CSProm-KG, a novel framework that bridges knowledge graph (KG) structural information and pre-trained language model (PLM) textual knowledge via conditional soft prompts. By generating prompts conditioned on entity and relation embeddings, CSProm-KG effectively fuses both modalities without fine-tuning the PLM, achieving state-of-the-art performance on multiple static and temporal KGC benchmarks, including new SOTA on WN18RR, FB15K-237, Wikidata5M, ICEWS14, and ICEWS05-15.
Knowledge Graph Completion (KGC) often requires both KG structural and textual information to be effective. Pre-trained Language Models (PLMs) have been used to learn the textual information, usually under the fine-tune paradigm for the KGC task. However, the fine-tuned PLMs often overwhelmingly focus on the textual information and overlook structural knowledge. To tackle this issue, this paper proposes CSProm-KG (Conditional Soft Prompts for KGC) which maintains a balance between structural information and textual knowledge. CSProm-KG only tunes the parameters of Conditional Soft Prompts that are generated by the entities and relations representations. We verify the effectiveness of CSProm-KG on three popular static KGC benchmarks WN18RR, FB15K-237 and Wikidata5M, and two temporal KGC benchmarks ICEWS14 and ICEWS05-15. CSProm-KG outperforms competitive baseline models and sets new state-of-the-art on these benchmarks. We conduct further analysis to show (i) the effectiveness of our proposed components, (ii) the efficiency of CSProm-KG, and (iii) the flexibility of CSProm-KG.
Motivation & Objective
- Address the imbalance in PLM-based KGC models that overfit to textual information while neglecting structural knowledge in knowledge graphs.
- Develop a method that effectively integrates structural information from KGs into frozen PLMs without full fine-tuning.
- Maintain high performance and efficiency while preventing over-reliance on surface-level textual similarity in entity prediction.
- Enable flexible integration with various graph-based KGC models through a modular prompt mechanism.
- Demonstrate effectiveness across diverse benchmarks, including static (WN18RR, FB15K-237, Wikidata5M) and temporal (ICEWS14, ICEWS05-15) KGC tasks.
Proposed method
- Introduce Conditional Soft Prompts (CSProm) that are dynamically generated from entity and relation embeddings, enabling structure-aware conditioning on the PLM input.
- Use a frozen PLM to encode textual descriptions of entities and relations, while only tuning the soft prompt parameters to avoid overfitting to text.
- Feed the generated conditional soft prompts into the frozen PLM to produce contextualized representations that fuse textual and structural knowledge.
- Combine the fused representation with a graph-based KGC model (e.g., TransE, DistMult, ConvE) for final entity scoring and ranking.
- Apply Local Adversarial Regularization to improve discrimination between textually similar entities by enhancing robustness to adversarial perturbations.
- Train the model end-to-end with only the soft prompt parameters updated, preserving the PLM’s pre-trained knowledge while adapting to the KGC task.
Experimental results
Research questions
- RQ1Can we effectively balance textual and structural knowledge in PLM-based KGC without fine-tuning the PLM?
- RQ2Does conditioning soft prompts on entity and relation embeddings improve performance and robustness compared to unconditional soft prompts?
- RQ3Can the proposed method generalize across different graph-based KGC models and remain efficient?
- RQ4How does CSProm-KG perform on both static and temporal KGC benchmarks compared to strong baselines?
- RQ5To what extent does the model avoid overfitting to textual similarity, especially in ambiguous cases?
Key findings
- CSProm-KG achieves new state-of-the-art performance on all five benchmarks: WN18RR, FB15K-237, Wikidata5M, ICEWS14, and ICEWS05-15.
- On WN18RR, CSProm-KG improves MRR from 0.243 (TransE) to 0.499 and H@1 from 0.043 to 0.462 when combined with TransE.
- With DistMult, CSProm-KG increases MRR from 0.444 to 0.543 and H@1 from 0.412 to 0.494, demonstrating consistent gains across models.
- On ConvE, CSProm-KG achieves an MRR of 0.575 and H@1 of 0.522, showing a significant 0.119 and 0.103 improvement over the base model.
- Case studies confirm that CSProm-KG correctly identifies structurally relevant entities (e.g., Grammy Award) while avoiding textually similar distractors (e.g., Razzie Award), unlike models without conditional prompts.
- Ablation studies show that conditional soft prompts significantly outperform standard soft prompts and fine-tuned baselines in balancing textual and structural knowledge.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.