Proceedings of the AAAI Conference on Artificial Intelligence · 2024 · 31 citations · 30 references
ComputingComputer EngineeringComputer ScienceKnowledge RepresentationMachine LearningNatural Language ProcessingLanguage ModelingModel TransformationDomain Knowledge ExtractionKey-value StoresLanguage Model Fine-tuningLanguage Model PretrainingLarge Language ModelsTransformer Language ModelsTransformer ModelsTransformer Theory
Model editing techniques modify a minor proportion of knowledge in Large Language Models (LLMs) at a relatively low cost, which have demonstrated notable success. Existing methods assume Transformer Layer (TL) hidden states are values of key-value memories of the Feed-Forward Network (FFN). They usually optimize the TL hidden states to memorize target knowledge and use it to update the weights of the FFN in LLMs. However, the information flow of TL hidden states comes from three parts: Multi-Head Self-Attention (MHSA), FFN, and residual connections. Existing methods neglect the fact that the TL hidden states contains information not specifically required for FFN. Consequently, the performance of model editing decreases. To achieve more precise model editing, we analyze hidden states of MHSA and FFN, finding that MHSA encodes certain general knowledge extraction patterns. This implies that MHSA weights do not require updating when new knowledge is introduced. Based on above findings, we introduce PMET, which simultaneously optimizes Transformer Component (TC, namely MHSA and FFN) hidden states, while only using the optimized TC hidden states of FFN to precisely update FFN weights. Our experiments demonstrate that PMET exhibits state-of-the-art performance on both the \textsc{counterfact} and zsRE datasets. Our ablation experiments substantiate the effectiveness of our enhancements, further reinforcing the finding that the MHSA encodes certain general knowledge extraction patterns and indicating its storage of a small amount of factual knowledge. Our code is available at \url{https://github.com/xpq-tech/PMET}.
30
Language Models as Knowledge Bases?
Fabio Petroni, Tim Rocktäschel, Sebastian Riedel et al. · 2019 · 1.8K citations · Full text
A Survey of Large Language Models
Wayne Xin Zhao, Kun Zhou, Junyi Li et al. · Frontiers of Computer Science · 2026 · 1.4K citations · Full text
GPT-NeoX-20B: An Open-Source Autoregressive Language Model
Sidney Black, Stella Biderman, Eric Hallahan et al. · 2022 · 391 citations · Full text
Locating and Editing Factual Associations in GPT
Kevin Meng, David Bau, Alex Andonian et al. · arXiv (Cornell University) · 2022 · 175 citations · Full text