一种用于模型编辑的统一框架
A Unified Framework for Model Editing
AI总结:
本研究提出保留-记忆目标统一ROME与MEMIT两种模型编辑算法,推出支持等式约束的批量编辑算法EMMET,验证其与MEMIT性能相近,证明二者在多维度等价。
摘要:
ROME和MEMIT被广泛认为是两种不同的模型编辑算法,二者的主要差异在于执行批量编辑的能力。本文将这两种算法统一在同一概念框架下,优化同一个目标,我们称之为“保留-记忆目标”。ROME采用等式约束优化该目标,每次执行单次编辑,而MEMIT使用更灵活的最小二乘约束,支持批量编辑。我们对ROME进行推广,提出了等式约束下的批量编辑形式EMMET——即面向Transformer的等式约束大规模模型编辑算法,这是一种新型批量记忆编辑算法。EMMET可执行批量大小最高达10000的批量编辑,在多个维度上的性能与MEMIT非常接近。通过提出EMMET,我们真正实现了ROME与MEMIT的统一,并证明两种算法在优化目标、能力(单次与批量编辑)、模型编辑性能及局限性方面均是等价的。
英文摘要:
ROME and MEMIT are largely believed to be two different model editing algorithms, with the major difference between them being the ability to perform batched edits. In this paper, we unify these two algorithms under a single conceptual umbrella, optimizing for the same goal, which we call the preservation-memorization objective. ROME uses an equality constraint to optimize this objective to perform one edit at a time, whereas MEMIT employs a more flexible least-square constraint that allows for batched edits. We generalize ROME and enable batched editing with equality constraint in the form of EMMET - an Equality-constrained Mass Model Editing algorithm for Transformers, a new batched memory-editing algorithm. EMMET can perform batched-edits up to a batch-size of 10,000, with very similar performance to MEMIT across multiple dimensions. With the introduction of EMMET, we truly unify ROME and MEMIT and show that both algorithms are equivalent in terms of their optimization objective, their abilities (singular and batched editing), their model editing performance and their limitations.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。