EAMET: Robust Massive Model Editing via Embedding Alignment Optimization
Yanbo Dai, Zhenlan Ji, Zongjie Li, Shuai Wang
TL;DR
This work tackles the robustness gap in massive model editing by identifying embedding misalignment between key and residual spaces as the fundamental bottleneck. It introduces EAMET, a memory-editing framework that progressively aligns residual embeddings with the key space via KL-divergence and top-$M$ cosine-similarity-based MSE losses, while preserving preserved knowledge. Across six LLMs and three datasets, EAMET achieves high editing efficacy (around 90% for 10k edits) and demonstrates strong robustness to long prefixes and multiple edits of the same subject, outperforming prior methods like MEMIT, PMET, and ROME. The approach preserves general model capabilities, scales to large edit sets, and integrates with sequential editing to enable larger batch edits per step, offering a practical pathway for up-to-date knowledge in real-world AI systems.
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. Codes and datasets are publicly available at https://ybdai7.github.io/eamet-page/.
