Everything is Editable: Extend Knowledge Editing to Unstructured Data in Large Language Models

Fuente: arXiv
Salvato in:
Dettagli Bibliografici
Autori principali: Deng, Jingcheng, Wei, Zihao, Pang, Liang, Ding, Hanxing, Shen, Huawei, Cheng, Xueqi
Natura: Preprint
Pubblicazione: 2024
Soggetti:
Accesso online:
Tags: Aggiungi Tag
Nessun Tag, puoi essere il primo ad aggiungerne!!
_version_ 1866910842953400320
author Deng, Jingcheng
Wei, Zihao
Pang, Liang
Ding, Hanxing
Shen, Huawei
Cheng, Xueqi
author_facet Deng, Jingcheng
Wei, Zihao
Pang, Liang
Ding, Hanxing
Shen, Huawei
Cheng, Xueqi
contents Recent knowledge editing methods have primarily focused on modifying structured knowledge in large language models. However, this task setting overlooks the fact that a significant portion of real-world knowledge is stored in an unstructured format, characterized by long-form content, noise, and a complex yet comprehensive nature. Techniques like "local layer key-value storage" and "term-driven optimization", as used in previous methods like MEMIT, are not effective for handling unstructured knowledge. To address these challenges, we propose a novel Unstructured Knowledge Editing method, namely UnKE, which extends previous assumptions in the layer dimension and token dimension. Firstly, in the layer dimension, we propose non-local block key-value storage to replace local layer key-value storage, increasing the representation ability of key-value pairs and incorporating attention layer knowledge. Secondly, in the token dimension, we replace "term-driven optimization" with "cause-driven optimization", which edits the last token directly while preserving context, avoiding the need to locate terms and preventing the loss of context information. Results on newly proposed unstructured knowledge editing dataset (UnKEBench) and traditional structured datasets demonstrate that UnKE achieves remarkable performance, surpassing strong baselines. In addition, UnKE has robust batch editing and sequential editing capabilities.
format Preprint
id arxiv_https___arxiv_org_abs_2405_15349
institution arXiv
publishDate 2024
record_format arxiv
spellingShingle Everything is Editable: Extend Knowledge Editing to Unstructured Data in Large Language Models
Deng, Jingcheng
Wei, Zihao
Pang, Liang
Ding, Hanxing
Shen, Huawei
Cheng, Xueqi
Computation and Language
Recent knowledge editing methods have primarily focused on modifying structured knowledge in large language models. However, this task setting overlooks the fact that a significant portion of real-world knowledge is stored in an unstructured format, characterized by long-form content, noise, and a complex yet comprehensive nature. Techniques like "local layer key-value storage" and "term-driven optimization", as used in previous methods like MEMIT, are not effective for handling unstructured knowledge. To address these challenges, we propose a novel Unstructured Knowledge Editing method, namely UnKE, which extends previous assumptions in the layer dimension and token dimension. Firstly, in the layer dimension, we propose non-local block key-value storage to replace local layer key-value storage, increasing the representation ability of key-value pairs and incorporating attention layer knowledge. Secondly, in the token dimension, we replace "term-driven optimization" with "cause-driven optimization", which edits the last token directly while preserving context, avoiding the need to locate terms and preventing the loss of context information. Results on newly proposed unstructured knowledge editing dataset (UnKEBench) and traditional structured datasets demonstrate that UnKE achieves remarkable performance, surpassing strong baselines. In addition, UnKE has robust batch editing and sequential editing capabilities.
title Everything is Editable: Extend Knowledge Editing to Unstructured Data in Large Language Models
topic Computation and Language
url https://arxiv.org/abs/2405.15349