arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2506.09591cs.CL
收藏

从内在维度视角看语言模型中的记忆现象

Memorization in Language Models through the Lens of Intrinsic Dimension

Friedrich-Alexander-Universität Erlangen-Nürnberg(埃朗根-纽伦堡弗里德里希-亚历山大大学)

Stefan Arnold

AI总结:

本文研究语言模型非预期记忆的潜在结构机制,提出用内在维度衡量序列复杂度,并发现高ID序列更难被记忆,尤其在过参数化模型和稀疏暴露条件下。

摘要:

语言模型(LMs)在训练过程中容易记忆其数据的部分内容,并在生成时无意中输出这些内容,这引发了人们对隐私泄露和知识产权披露的担忧。尽管先前研究已将上下文长度、参数规模和重复频率等属性确定为非预期记忆的关键驱动因素,但人们对潜在结构如何调节这种记忆速率仍知之甚少。我们研究了内在维度(ID)在调节记忆方面的作用;ID是序列在潜在空间中结构复杂度的一种几何代理指标。研究结果表明,ID对记忆起到抑制信号的作用:与低ID序列相比,高ID序列更不容易被记忆,尤其是在过参数化模型中以及稀疏暴露条件下。这些发现凸显了规模、暴露程度和复杂度在塑造记忆现象过程中的相互作用。

英文摘要:

Language Models (LMs) are prone to memorizing parts of their data during training and unintentionally emitting them at generation time, raising concerns about privacy leakage and disclosure of intellectual property. While previous research has identified properties such as context length, parameter size, and duplication frequency, as key drivers of unintended memorization, little is known about how the latent structure modulates this rate of memorization. We investigate the role of Intrinsic Dimension (ID), a geometric proxy for the structural complexity of a sequence in latent space, in modulating memorization. Our findings suggest that ID acts as a suppressive signal for memorization: compared to low-ID sequences, high-ID sequences are less likely to be memorized, particularly in overparameterized models and under sparse exposure. These findings highlight the interaction between scale, exposure, and complexity in shaping memorization.

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

↑