Gespeichert in:
Bibliographische Detailangaben
Hauptverfasser: Yang, Wanli, Sun, Fei, Tan, Jiajun, Ma, Xinyu, Su, Du, Yin, Dawei, Shen, Huawei
Format: Preprint
Veröffentlicht: 2024
Schlagworte:
Online-Zugang:https://arxiv.org/abs/2406.11263
Tags: Tag hinzufügen
Keine Tags, Fügen Sie den ersten Tag hinzu!
_version_ 1866929521390780416
author Yang, Wanli
Sun, Fei
Tan, Jiajun
Ma, Xinyu
Su, Du
Yin, Dawei
Shen, Huawei
author_facet Yang, Wanli
Sun, Fei
Tan, Jiajun
Ma, Xinyu
Su, Du
Yin, Dawei
Shen, Huawei
contents Despite significant progress in model editing methods, their application in real-world scenarios remains challenging as they often cause large language models (LLMs) to collapse. Among them, ROME is particularly concerning, as it could disrupt LLMs with only a single edit. In this paper, we study the root causes of such collapse. Through extensive analysis, we identify two primary factors that contribute to the collapse: i) inconsistent handling of prefixed and unprefixed keys in the parameter update equation may result in very small denominators, causing excessively large parameter updates; ii) the subject of collapse cases is usually the first token, whose unprefixed key distribution significantly differs from the prefixed key distribution in autoregressive transformers, causing the aforementioned issue to materialize. To validate our findings, we propose a simple yet effective approach: uniformly using prefixed keys during editing phase and adding prefixes during testing phase to ensure the consistency between training and testing. The experimental results show that the proposed solution can prevent model collapse while maintaining the effectiveness of the edits.
format Preprint
id arxiv_https___arxiv_org_abs_2406_11263
institution arXiv
publishDate 2024
record_format arxiv
spellingShingle Understanding the Collapse of LLMs in Model Editing
Yang, Wanli
Sun, Fei
Tan, Jiajun
Ma, Xinyu
Su, Du
Yin, Dawei
Shen, Huawei
Computation and Language
Artificial Intelligence
Despite significant progress in model editing methods, their application in real-world scenarios remains challenging as they often cause large language models (LLMs) to collapse. Among them, ROME is particularly concerning, as it could disrupt LLMs with only a single edit. In this paper, we study the root causes of such collapse. Through extensive analysis, we identify two primary factors that contribute to the collapse: i) inconsistent handling of prefixed and unprefixed keys in the parameter update equation may result in very small denominators, causing excessively large parameter updates; ii) the subject of collapse cases is usually the first token, whose unprefixed key distribution significantly differs from the prefixed key distribution in autoregressive transformers, causing the aforementioned issue to materialize. To validate our findings, we propose a simple yet effective approach: uniformly using prefixed keys during editing phase and adding prefixes during testing phase to ensure the consistency between training and testing. The experimental results show that the proposed solution can prevent model collapse while maintaining the effectiveness of the edits.
title Understanding the Collapse of LLMs in Model Editing
topic Computation and Language
Artificial Intelligence
url https://arxiv.org/abs/2406.11263