arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2611.06185cs.CLcs.AI
收藏

基于几何感知正则化的大语言模型编辑

Editing Large Language Models with Geometry-Aware Regularization

School of Computer Science and Technology, Huazhong University of Science and Technology(华中科技大学计算机科学与技术学院);iWudao Tech(悟道科技);School of Medicine, Emory University(埃默里大学医学院)

Bingqing Liu, Wei Liu, Jun Wang, Xiaobo Sun, Yuhua Li, Ruixuan Li

AI总结:

针对现有大语言模型知识编辑忽略几何结构的局限,提出几何感知框架GEdit,通过低秩与自适应正则化机制,在大规模编辑场景下显著优于现有方法。

摘要:

知识编辑已成为更新大语言模型中知识的关键技术。然而,现有方法忽略了知识表示空间的几何结构,导致两个关键局限:它们无法区分哪些预训练知识应优先保留(核心知识与非核心知识),也无法区分哪些新编辑本质上难以实现(难编辑与易编辑)。为解决这一问题,我们提出GEdit,这是一个基于低秩加对角(LR+D)因子模型的几何感知框架,该模型可捕捉Transformer前馈网络(FFN)隐藏表示的固有低秩结构。GEdit具有两种互补机制:第一,低秩正则化对低秩核心知识子空间施加针对性保护;第二,自适应正则化根据每个编辑请求的可编辑性动态调整正则化强度:对难编辑放宽约束以确保成功,对易编辑收紧约束以更好地保留预训练知识。在GPT2-XL、GPT-J和LLaMA-3-8B上进行的大规模编辑场景实验,包括小批量和完全顺序编辑设置(最多10000次连续更新)表明,GEdit在编辑成功率和知识保留方面始终显著优于最先进的基线方法。

英文摘要:

Knowledge editing has become a key technique for updating knowledge in large language models. However, existing methods neglect the geometric structure of the knowledge representation space, leading to two key limitations: they cannot distinguish which pre-trained knowledge should be preferentially preserved (core vs. non-core) nor which new edits are inherently difficult (hard vs. easy). To address this, we propose GEdit, a geometry-aware framework built on a Low-Rank Plus Diagonal (LR+D) factor model that captures the intrinsic low-rank structure of Transformer FFN hidden representations. GEdit features two complementary mechanisms. First, the low-rank regularization applies targeted protection on a low-rank core knowledge subspace. Second, the adaptive regularization dynamically adjusts the regularization strength based on each edit request's editability: relaxing constraints for hard edits to ensure success, and tightening them for easy edits to better preserve pretrained knowledge. Extensive experiments on GPT2-XL, GPT-J, and LLaMA-3-8B under large-scale editing scenarios, including both mini-batch and fully sequential editing settings with up to 10,000 continuous updates, show that GEdit consistently and significantly outperforms state-of-the-art baselines in both editing success and knowledge preservation.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑