Papers › Massive Editing for Large Language Models Based on Dynamic Weight Generation

Massive Editing for Large Language Models Based on Dynamic Weight Generation

16 Dec 2025ICLRarXiv:2512.14395added by Syntology

Wentao Wan, Qiqing Lao, Zhiwei Xie, Hefeng Wu, Runnan Lin, Liang Lin, Keze Wang

Title, abstract, authors and date from arXiv's metadata (CC0); this paper is not in the Papers with Code archive (frozen 2025-07-28).

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.

PaperPDFCode Syntology ran

In Syntology View this paper on Syntology: its repositories, every harvested function with whether it ran, its licence and the call to fetch it.

Open this paper in Syntology's Atlas, the map of the papers in Syntology's graph and their citations.

For agents, Syntology's MCP tool lists every function and class Syntology harvested from this paper and whether it ran (how to connect): get_harvested_code_for_paper(arxiv_id="2512.14395")

Code

Syntology Ran 2 of 17 code samples harvested from 1 repository linked to this paper; 15 have no recorded run. Of those that ran: 1 ran · honoured contract; 1 ran · our draft was wrong.

By repository: found in paper text by Syntology: 17 samples from 1 repository, 2 ran. The run record, sample by sample. “Ran” means executed on a synthesized input, not that the code is correct or reproduces the paper.

RodeWayne/MeG-for-Knowledge-Editing found in paper text by Syntology report

Reachability, where shown, is from one Syntology probe window (2026-09-16 to 2026-09-18); repositories not probed show nothing. GitHub stars are not tracked.

Code Syntology ran Syntology

17 samples harvested; 2 ran; 1 honoured the contract we drafted; 15 have no recorded run. Read from Syntology's graph 2026-09-25; that is when this build read the record, not when the samples ran.

1ran · honoured contract
1ran · our draft was wrong
15unverified

Licence: 17 of the 17 samples are pointer only, meaning Syntology does not serve that copy's text. This page shows no code text for any sample; each one links to its file in the repository.

Harvested from RodeWayne/MeG-for-Knowledge-Editing. “Ran” means the sample executed on a synthesized input. It does not mean the output is correct, and nothing here reproduces the paper's results. “Honoured” and “violated” refer to a contract Syntology drafted from the code itself; “our draft was wrong” and “fixture could not drive it” are failures of Syntology's instrument, not of the code.

Each sample ends with its code_sha256, Syntology's identity for that exact code. An agent fetches the stored sample with Syntology's MCP tool get_code(code_sha256="…") (how to connect); click an identity to copy that call.

Repository labels, per sample. official repository: The archive marks this repository official for the paper. named in the paper: The archive records that the paper mentions this repository; it is not marked official. community (archive-listed): In the archive's code links for this paper, not marked official and not recorded as mentioned in the paper. found in paper text by Syntology: Syntology found this repository in the paper's own text; whether it is the authors' implementation is not asserted. community: Not in the archive's code links for this paper; a community repository Syntology harvested. Samples from a repository marked official are listed first. Licence labels name the repository's licence as recorded at harvest. “Pointer only” means Syntology does not serve that copy's text, for one of four reasons: no licence file was found; the licence was not identified; the licence is recorded as permissive but that copy's record is not marked cleared; or the licence is outside the permissive list Syntology serves text under (MIT, Apache-2.0, BSD and similar). Some licences outside that list permit redistribution, such as WTFPL, and GPL-3.0 under its conditions; they are simply not on the list. Hover a licence label for the reason. File links open the file on GitHub at the default branch, which may have changed since the harvest.

get_2d_sincos_pos_embed RodeWayne/MeG-for-Knowledge-Editing/my_model_five_bert_text.py found in paper text by Syntology ran · honoured contract no licence file found · pointer only · c92c27c924b517e8 · report
modulate RodeWayne/MeG-for-Knowledge-Editing/my_model_five_bert_text.py found in paper text by Syntology ran · our draft was wrong fingerprinted no licence file found · pointer only · 03310bba324ae4fb · report
add_neuron_for_phi2 RodeWayne/MeG-for-Knowledge-Editing/util.py found in paper text by Syntology unverified no licence file found · pointer only · dcbd23023c3da46b · report
adjust_dots RodeWayne/MeG-for-Knowledge-Editing/util.py found in paper text by Syntology unverified no licence file found · pointer only · bfbaec02d9d18c4d · report
create_logger RodeWayne/MeG-for-Knowledge-Editing/train_ddp.py found in paper text by Syntology unverified no licence file found · pointer only · 8382f7e48cc8a309 · report
get_2d_sincos_pos_embed_from_grid RodeWayne/MeG-for-Knowledge-Editing/my_model_five_bert_text.py found in paper text by Syntology unverified no licence file found · pointer only · 665d8a4e8f673a4c · report
get_config RodeWayne/MeG-for-Knowledge-Editing/train_neuron.py found in paper text by Syntology unverified no licence file found · pointer only · 20ab2d83f9eb2816 · report
get_llm_response RodeWayne/MeG-for-Knowledge-Editing/get_edit_and_loc_data.py found in paper text by Syntology unverified no licence file found · pointer only · db1b92e53aaafcee · report
info_nce_loss RodeWayne/MeG-for-Knowledge-Editing/train_bert.py found in paper text by Syntology unverified no licence file found · pointer only · 288bee548024f0bc · report
initial_llama_model RodeWayne/MeG-for-Knowledge-Editing/util.py found in paper text by Syntology unverified no licence file found · pointer only · 5fbc5400f0375e4d · report
load_json_data RodeWayne/MeG-for-Knowledge-Editing/merge_results.py found in paper text by Syntology unverified no licence file found · pointer only · 0c46563c5bb7d9e3 · report
load_model RodeWayne/MeG-for-Knowledge-Editing/myDataloader_bert_text_add_nq_lr.py found in paper text by Syntology unverified no licence file found · pointer only · 5f81834e47a60a64 · report
load_model RodeWayne/MeG-for-Knowledge-Editing/myDataloader_cf_bert_text_add_nq_lr.py found in paper text by Syntology unverified no licence file found · pointer only · 4a80e760cc60c9b9 · report
main RodeWayne/MeG-for-Knowledge-Editing/merge_results.py found in paper text by Syntology unverified no licence file found · pointer only · a5a29951e70ee65e · report
test RodeWayne/MeG-for-Knowledge-Editing/train_neuron.py found in paper text by Syntology unverified no licence file found · pointer only · 22698492eed06605 · report
train_model RodeWayne/MeG-for-Knowledge-Editing/train_bert.py found in paper text by Syntology unverified no licence file found · pointer only · 6abbca9a6f12ddc0 · report
train_once RodeWayne/MeG-for-Knowledge-Editing/train_neuron.py found in paper text by Syntology unverified no licence file found · pointer only · 06c173059754daf6 · report

Results from the paper

The Papers with Code archive ends with its 2025-07-28 snapshot. This paper's arXiv identifier, 2512.14395, was issued in December 2025, after that date, so the archive has no leaderboard rows for it.

Report a problem or propose a change · a person checks every report against the paper or source before anything changes; decisions are listed on /corrections