[Paper Review] Editing Language Model-based Knowledge Graph Embeddings
This paper introduces a novel task of editing language model-based knowledge graph embeddings (KGEs) to enable efficient, data-efficient updates without full retraining. It proposes KGEditor, a method that uses parametric layers in a hypernetwork to edit or add facts, achieving high knowledge reliability and locality with minimal performance degradation on benchmark datasets E-FB15k237 and A-WN18RR.
Recently decades have witnessed the empirical success of framing Knowledge Graph (KG) embeddings via language models. However, language model-based KG embeddings are usually deployed as static artifacts, making them difficult to modify post-deployment without re-training after deployment. To address this issue, we propose a new task of editing language model-based KG embeddings in this paper. This task is designed to facilitate rapid, data-efficient updates to KG embeddings without compromising the performance of other aspects. We build four new datasets: E-FB15k237, A-FB15k237, E-WN18RR, and A-WN18RR, and evaluate several knowledge editing baselines demonstrating the limited ability of previous models to handle the proposed challenging task. We further propose a simple yet strong baseline dubbed KGEditor, which utilizes additional parametric layers of the hypernetwork to edit/add facts. Our comprehensive experimental results reveal that KGEditor excels in updating specific facts without impacting the overall performance, even when faced with limited training resources. Code and datasets are available in https://github.com/zjunlp/PromptKG/tree/main/deltaKG.
Motivation & Objective
- Address the challenge of updating static, pre-trained language model-based KGEs after deployment without full retraining.
- Enable fast, data-efficient updates to correct erroneous facts or add new knowledge in KGEs.
- Ensure that editing specific facts does not degrade performance on previously learned facts (knowledge locality).
- Establish a new benchmark for editing KGEs by creating four new datasets: E-FB15k237, A-FB15k237, E-WN18RR, A-WN18RR.
- Evaluate and compare existing editing methods on the new task to demonstrate their limitations in KGE editing.
Proposed method
- Propose two new tasks: EDIT (correcting incorrect facts) and ADD (adding new facts) for KGEs.
- Design KGEditor, a simple yet effective baseline that injects learnable parametric layers (via a hypernetwork) to edit knowledge in the feed-forward network (FFN) of the KGE model.
- Use prompt-based KGE models (PT-KGE) as the base architecture to improve editability and performance.
- Train KGEditor only on the target facts to minimize parameter updates and maintain efficiency.
- Apply knowledge editing as a fine-tuning-free, parameter-efficient update mechanism focused on specific knowledge neurons in the FFN.
- Evaluate performance using metrics like Succ@1 and RK@3 to measure knowledge reliability and locality.
Experimental results
Research questions
- RQ1Can existing knowledge editing methods effectively update language model-based KGEs without compromising performance on unrelated facts?
- RQ2How does the number of edits affect the reliability and locality of KGE editing methods?
- RQ3Can a parameter-efficient method like KGEditor maintain high performance while editing specific facts in KGEs?
- RQ4How do different KGE initialization methods (e.g., prompt-based vs. fine-tuned) affect editing performance?
- RQ5To what extent can editing techniques preserve knowledge locality when handling many-to-many relations in KGEs?
Key findings
- Existing methods like KE, MEND, and CALINET show limited effectiveness in editing KGEs, with significant performance drops on unrelated facts.
- KGEditor outperforms all baselines in knowledge reliability and locality, maintaining stable performance even with up to 32 edits.
- The Succ@1 score for KGEditor remains stable at ~0.85 on E-FB15k237 across varying numbers of edits, while MEND’s score drops significantly beyond 8 edits.
- Knowledge locality is preserved by KGEditor and KE due to their use of FFN-based parameter editing, unlike MEND, which suffers from interference across edits.
- Prompt-based KGE models (PT-KGE) outperform fine-tuned KGEs (FT-KGE) in editing tasks, indicating better editability and alignment with editing objectives.
- Visualizations confirm that KGEditor successfully shifts predictions toward the correct entity (golden label) after editing, while preserving the relative positions of other entities.
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.