Editing Knowledge Representation of Language Model via Rephrased Prefix Prompts
Not on the map. Why?
Abstract (arXiv)
Neural language models (LMs) have been extensively trained on vast corpora to store factual knowledge about various aspects of the world described in texts. Current technologies typically employ knowledge editing methods or specific prompts to modify LM outputs. However, existing knowledge editing methods are costly and inefficient, struggling to produce appropriate text. Additionally, prompt engineering is opaque and requires significant effort to find suitable prompts. To address these issues, we introduce a new method called PSPEM (Prefix Soft Prompt Editing Method), that can be used for a lifetime with just one training. It resolves the inefficiencies and generalizability issues in knowledge editing methods and overcomes the opacity of prompt engineering by automatically seeking optimal soft prompts. Specifically, PSPEM utilizes a prompt encoder and an encoding converter to refine key information in prompts and uses prompt alignment techniques to guide model generation, ensuring text consistency and adherence to the intended structure and content, thereby maintaining an optimal balance between efficiency and accuracy. We have validated the effectiveness of PSPEM through knowledge editing and attribute inserting. On the COUNTERFACT dataset, PSPEM achieved nearly 100% editing accuracy and demonstrated the highest level of fluency. We further analyzed the similarities between PSPEM and original prompts and their impact on the model's internals. The results indicate that PSPEM can serve as an alternative to original prompts, supporting the model in effective editing.
Key facts. Cited by 4 papers in the map (data through 7 Oct 2026). Builds on 28 of its 32 references that are in the map. First posted on arXiv 21 Mar 2024.
Builds on
28 of 32 references.
References · 28
- 2017Attention Is All You Needcited by 59,932
- 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,204
- 2020Language Models are Few-Shot Learnerscited by 32,199
- 2022Locating and Editing Factual Associations in GPTcited by 2,609
- 2021Pre-train, Prompt, and Predict: A Systematic Survey of Prompting Methods in Natural Language Processingcited by 2,222
- 2021SimCSE: Simple Contrastive Learning of Sentence Embeddingscited by 2,168
- 2020Transformer Feed-Forward Layers Are Key-Value Memoriescited by 1,307
- 2022Mass-Editing Memory in a Transformercited by 976
- 2023A Multitask, Multilingual, Multimodal Evaluation of ChatGPT on Reasoning, Hallucination, and Interactivitycited by 888
- 2021GPT Understands, Toocited by 715
- 2021Editing Factual Knowledge in Language Modelscited by 548
- 2022Transformer Feed-Forward Layers Build Predictions by Promoting Concepts in the Vocabulary Spacecited by 522
16 more
- 2023Dissecting Recall of Factual Associations in Auto-Regressive Language Modelscited by 512
- 2021Fast Model Editing at Scalecited by 491
- 2023Editing Large Language Models: Problems, Methods, and Opportunitiescited by 367
- 2019Bias in Bios: A Case Study of Semantic Representation Bias in a High-Stakes Settingcited by 346
- 2023Can We Edit Factual Knowledge by In-Context Learning?cited by 284
- 2022Black-Box Tuning for Language-Model-as-a-Servicecited by 254
- 2020Modifying Memories in Transformer Modelscited by 222
- 2022Why Can GPT Learn In-Context? Language Models Implicitly Perform Gradient Descent as Meta-Optimizerscited by 204
- 2023Knowledge Editing for Large Language Models: A Surveycited by 189
- 2023PMET: Precise Model Editing in a Transformercited by 170
- 2023Self-contradictory Hallucinations of Large Language Models: Evaluation, Detection and Mitigationcited by 123
- 2023Scaling Sentence Embeddings with Large Language Modelscited by 83
- 2023Can LMs Learn New Entities from Descriptions? Challenges in Propagating Injected Knowledgecited by 66
- 2023Massive Editing for Large Language Models via Meta Learningcited by 62
- 2023Can We Edit Multimodal Large Language Models?cited by 44
- 2023Editing Language Model-based Knowledge Graph Embeddingscited by 23
Built on by
Citing papers per year: 2024: 3; 2025: 1.
4 papers.
- 2024Can Knowledge Editing Really Correct Hallucinations?cited by 28
- 2024Can Editing LLMs Inject Harm?cited by 22
- 2024O-Edit: Orthogonal Subspace Editing for Language Model Sequential Editingcited by 8
- 2025COMPKE: Complex Question Answering under Knowledge Editingcited by 6
- 2025COMPKE: Complex Question Answering under Knowledge Editing1 Jun 2025
- 2024Can Knowledge Editing Really Correct Hallucinations?21 Oct 2024
- 2024O-Edit: Orthogonal Subspace Editing for Language Model Sequential Editing15 Oct 2024
- 2024Can Editing LLMs Inject Harm?29 Jul 2024