EMSEdit: Efficient Multi-Step Meta-Learning-based Model Editing

Xiaopeng Li, Shasha Li, Xi Wang, Shezheng Song, Bin Ji +5 more
8/6/2025
cs.CLcs.AIcs.LG

Official code: xpq-tech/emsedit (0 stars, MIT, last commit 2026-01-21).

Abstract

Large Language Models (LLMs) power numerous AI applications, yet updating their knowledge remains costly. Model editing provides a lightweight alternative through targeted parameter modifications, with meta-learning-based model editing (MLME) demonstrating strong effectiveness and efficiency. However, we find that MLME struggles in low-data regimes and incurs high training costs due to the use of KL divergence. To address these issues, we propose $\textbf{E}$fficient $\textbf{M}$ulti-$\textbf{S}$tep $\textbf{Edit (EMSEdit)}$, which leverages multi-step backpropagation (MSBP) to effectively capture gradient-activation mapping patterns within editing samples, performs multi-step edits per sample to enhance editing performance under limited data, and introduces norm-based regularization to preserve unedited knowledge while improving training efficiency. Experiments on two datasets and three LLMs show that EMSEdit consistently outperforms state-of-the-art methods in both sequential and batch editing. Moreover, MSBP can be seamlessly integrated into existing approaches to yield additional performance gains. Further experiments on a multi-hop reasoning editing task demonstrate EMSEdit's robustness in handling complex edits, while ablation studies validate the contribution of each design component. Our code is available at https://github.com/xpq-tech/emsedit.

View on arXivView PDF

Code Implementations(1)

xpq-tech/emseditOfficial100%
MIT
00Python, Jupyter NotebookOct 14, 20259 months agoMIT

Similar Papers

Cite this paper

@article{li2025emsedit,
  title  = {EMSEdit: Efficient Multi-Step Meta-Learning-based Model Editing},
  author = {Xiaopeng Li and Shasha Li and Xi Wang and Shezheng Song and Bin Ji and Shangwen Wang and Jun Ma and Xiaodong Liu and Mina Liu and Jie Yu},
  year   = {2025},
  eprint = {2508.04012},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2508.04012v3}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2508.04012.svg)](https://codeofpaper.com/paper/2508.04012)

Discussion