TL;DR
KnowledgeEditor is a novel, efficient method for editing specific factual knowledge in language models without retraining, using a hyper-network to selectively modify model weights while preserving overall knowledge.
Contribution
The paper introduces KnowledgeEditor, a hyper-network-based approach that enables targeted factual knowledge editing in language models without retraining or fine-tuning.
Findings
Effective in changing specific facts in BERT and BART models
Maintains consistency across paraphrased queries
Updates are concentrated on a small subset of model components
Abstract
The factual knowledge acquired during pre-training and stored in the parameters of Language Models (LMs) can be useful in downstream tasks (e.g., question answering or textual inference). However, some facts can be incorrectly induced or become obsolete over time. We present KnowledgeEditor, a method which can be used to edit this knowledge and, thus, fix 'bugs' or unexpected predictions without the need for expensive re-training or fine-tuning. Besides being computationally efficient, KnowledgeEditordoes not require any modifications in LM pre-training (e.g., the use of meta-learning). In our approach, we train a hyper-network with constrained optimization to modify a fact without affecting the rest of the knowledge; the trained hyper-network is then used to predict the weight update at test time. We show KnowledgeEditor's efficacy with two popular architectures and knowledge-intensive…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Code & Models
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Taxonomy
MethodsMulti-Head Attention · Attention Is All You Need · Linear Layer · Refunds@Expedia|||How do I get a full refund from Expedia? · Byte Pair Encoding · Dropout · Adam · Dense Connections · Softmax · BART
