EAMET: ROBUST MASSIVE MODEL EDITING VIA EMBEDDING ALIGNMENT OPTIMIZATION

The Hong Kong University of Science and Technology
Preprint,2025
Introduction Figure

EAMET aligns key and residual (memory) embedding spaces to enable effective and robust massive model editing: ~90% efficacy at the 10k-15k scale across six LLMs and three datasets, with strong robustness under long prefixes and multiple facts per subject.

Abstract

Model editing techniques are essential for efficiently updating knowledge in large language models (LLMs). However, the effectiveness of existing approaches degrades in massive editing scenarios, particularly when evaluated with practical metrics. Their robustness is also limited in context-rich settings or when editing multiple facts of the same subject simultaneously. We attribute these failures to the embedding misalignment among knowledge items, which undermines editing reliability at scale. To address this, we propose EAMET (Embedding Alignment Model Editing in Transformers), which addresses this issue by aligning the space of key and residual embeddings. Extensive experiments across six LLMs and three datasets demonstrate that EAMET consistently outperforms existing methods, achieving about 90\% editing efficacy when editing 10k facts.

Method at a Glance

Method Overview

EAMET mitigates misalignment by encouraging the structural similarity between key and residual spaces.

  • Compute key-key cosine similarities to form Pk(i).
  • During sequential optimization, save each optimized residual and form Pr(i) for earlier items.
  • Minimize LKL = KL(Pr(i) || Pk(i)) and top-M LMSE between corresponding pairs.
  • Jointly optimize the target residual ri to maximize the model's confidence on the target object under random-prefix prompts.

Key Findings

BibTeX

@misc{dai2025eamethrobustmassivemodel,
        title={EAMET: Robust Massive Model Editing via Embedding Alignment Optimization}, 
        author={Yanbo Dai and Zhenlan Ji and Zongjie Li and Shuai Wang},
        year={2025},
        eprint={2505.11876},
        archivePrefix={arXiv},
        primaryClass={cs.CL},
        url={https://arxiv.org/abs/2505.11876}, 
  }