Massive Editing for Large Language Models Based on Dynamic Weight Generation

Fuente: arXiv
Salvato in:
Dettagli Bibliografici
Autori principali: Wan, Wentao, Lao, Qiqing, Xie, Zhiwei, Wu, Hefeng, Lin, Runnan, Lin, Liang, Wang, Keze
Natura: Preprint
Pubblicazione: 2025
Soggetti:
Accesso online:
Tags: Aggiungi Tag
Nessun Tag, puoi essere il primo ad aggiungerne!!
_version_ 1866918400922484736
author Wan, Wentao
Lao, Qiqing
Xie, Zhiwei
Wu, Hefeng
Lin, Runnan
Lin, Liang
Wang, Keze
author_facet Wan, Wentao
Lao, Qiqing
Xie, Zhiwei
Wu, Hefeng
Lin, Runnan
Lin, Liang
Wang, Keze
contents Knowledge Editing (KE) is a field that studies how to modify some knowledge in Large Language Models (LLMs) at a low cost (compared to pre-training). Currently, performing large-scale edits on LLMs while ensuring the Reliability, Generality, and Locality metrics of the edits remain a challenge. This paper proposes a Massive editing approach for LLMs based on dynamic weight Generation (MeG). Our MeG involves attaching a dynamic weight neuron to specific layers of the LLMs and using a diffusion model to conditionally generate the weights of this neuron based on the input query required for the knowledge. This allows the use of adding a single dynamic weight neuron to achieve the goal of large-scale knowledge editing. Experiments show that our MeG can significantly improve the performance of large-scale KE in terms of Reliability, Generality, and Locality metrics compared to existing knowledge editing methods, particularly with a high percentage point increase in the absolute value index for the Locality metric, demonstrating the advantages of our proposed method. Code is available at https://github.com/RodeWayne/MeG-for-Knowledge-Editing.
format Preprint
id arxiv_https___arxiv_org_abs_2512_14395
institution arXiv
publishDate 2025
record_format arxiv
spellingShingle Massive Editing for Large Language Models Based on Dynamic Weight Generation
Wan, Wentao
Lao, Qiqing
Xie, Zhiwei
Wu, Hefeng
Lin, Runnan
Lin, Liang
Wang, Keze
Artificial Intelligence
Knowledge Editing (KE) is a field that studies how to modify some knowledge in Large Language Models (LLMs) at a low cost (compared to pre-training). Currently, performing large-scale edits on LLMs while ensuring the Reliability, Generality, and Locality metrics of the edits remain a challenge. This paper proposes a Massive editing approach for LLMs based on dynamic weight Generation (MeG). Our MeG involves attaching a dynamic weight neuron to specific layers of the LLMs and using a diffusion model to conditionally generate the weights of this neuron based on the input query required for the knowledge. This allows the use of adding a single dynamic weight neuron to achieve the goal of large-scale knowledge editing. Experiments show that our MeG can significantly improve the performance of large-scale KE in terms of Reliability, Generality, and Locality metrics compared to existing knowledge editing methods, particularly with a high percentage point increase in the absolute value index for the Locality metric, demonstrating the advantages of our proposed method. Code is available at https://github.com/RodeWayne/MeG-for-Knowledge-Editing.
title Massive Editing for Large Language Models Based on Dynamic Weight Generation
topic Artificial Intelligence
url https://arxiv.org/abs/2512.14395