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

在损失曲率谱中从记忆到推理

From Memorization to Reasoning in the Spectrum of Loss Curvature

Jack Merullo, Srihita Vatsavaya, Lucius Bushnaq, Owen Lewis

AI总结:

本文基于损失景观曲率分解transformer模型权重以解耦记忆,提出权重编辑程序抑制非目标记忆数据复述,发现该程序特定影响事实检索和算术任务,为任务依赖权重空间特定方向提供证据。

摘要:

我们刻画了记忆在 transformer 模型中是如何表示的,并表明可以使用基于损失景观曲率的分解,在语言模型(LMs)和视觉 transformer(ViTs)的权重中将记忆解耦。这一洞察基于先前的理论和实证工作,这些工作表明记忆训练点的曲率比非记忆训练点尖锐得多,这意味着将权重分量从高曲率到低曲率排序,可以在没有显式标签的情况下揭示这种区别。这促使了一种权重编辑程序的提出,该程序在抑制非目标记忆数据的复述方面,比最近的一种遗忘方法(BalancedSubnet)更有效,同时保持了更低的困惑度。由于曲率的基础对模型权重中的共享结构具有自然的解释,我们在 LMs 中广泛分析了该编辑程序对下游任务的影响,发现事实检索和算术任务受到特定且一致的负面影响,尽管开放式书籍事实检索和一般逻辑推理得以保留。我们假设这些任务严重依赖权重空间中的特定方向,而不是通用机制,无论这些单独的数据点是否被记忆。我们通过展示任务数据与我们编辑掉的低曲率分量的激活强度之间的对应关系,以及编辑后任务性能的下降来支持这一点。我们的工作增强了对神经网络中记忆的理解,并具有将其移除的实际应用,同时提供了证据表明在解决数学和事实检索等任务时涉及特殊的、狭窄使用的结构。

英文摘要:

We characterize how memorization is represented in transformer models and show that it can be disentangled in the weights of both language models (LMs) and vision transformers (ViTs) using a decomposition based on the loss landscape curvature. This insight is based on prior theoretical and empirical work showing that the curvature for memorized training points is much sharper than non memorized, meaning ordering weight components from high to low curvature can reveal a distinction without explicit labels. This motivates a weight editing procedure that suppresses far more recitation of untargeted memorized data more effectively than a recent unlearning method (BalancedSubnet), while maintaining lower perplexity. Since the basis of curvature has a natural interpretation for shared structure in model weights, we analyze the editing procedure extensively on its effect on downstream tasks in LMs, and find that fact retrieval and arithmetic are specifically and consistently negatively affected, even though open book fact retrieval and general logical reasoning is conserved. We posit these tasks rely heavily on specialized directions in weight space rather than general purpose mechanisms, regardless of whether those individual datapoints are memorized. We support this by showing a correspondence between task data's activation strength with low curvature components that we edit out, and the drop in task performance after the edit. Our work enhances the understanding of memorization in neural networks with practical applications towards removing it, and provides evidence for idiosyncratic, narrowly-used structures involved in solving tasks like math and fact retrieval.

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

↑