PMET: Precise Model Editing in a Transformer
Proceedings of the AAAI Conference on Artificial Intelligence · 24.03.2024 · 38 (17) · 18564-18572
DOI: 10.1609/aaai.v38i17.29818 ↗Kurz gefasst
Fachartikel in der Zeitschrift Proceedings of the AAAI Conference on Artificial Intelligence, online erschienen am 24.03.2024. Verfasst von Xiaopeng Li und 5 weiteren Autor:innen. Die Arbeit wurde bisher 42-mal zitiert (Crossref).
Abstract (Originalsprache)
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}.
Zitieren
APA
Li, X., Li, S., Song, S., Yang, J., Ma, J., & Yu, J. (2024). PMET: Precise Model Editing in a Transformer. Proceedings of the AAAI Conference on Artificial Intelligence, 38(17), 18564-18572. https://doi.org/10.1609/aaai.v38i17.29818
Vancouver
Li X, Li S, Song S, Yang J, Ma J, Yu J. PMET: Precise Model Editing in a Transformer. Proceedings of the AAAI Conference on Artificial Intelligence. 2024;38(17):18564-18572. doi:10.1609/aaai.v38i17.29818
BibTeX
@article{Li2024,
author = {Li, Xiaopeng and Li, Shasha and Song, Shezheng and Yang, Jing and Ma, Jun and Yu, Jie},
title = {PMET: Precise Model Editing in a Transformer},
journal = {Proceedings of the AAAI Conference on Artificial Intelligence},
year = {2024},
volume = {38},
number = {17},
pages = {18564--18572},
doi = {10.1609/aaai.v38i17.29818}
}
EUVIMED