arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2611.26797cs.AIcs.CVcs.LGstat.ML
收藏

生成式模型中的记忆与泛化:基于能量建模与联想记忆的视角

Memorization and Generalization in Generative Models: A Perspective From Energy-based Modeling and Associative Memory

IBM Research(IBM研究院);AMD Research(AMD研究院);Vanderbilt University(范德堡大学)

Bao Pham

AI总结:

本研究以联想记忆为视角,证明扩散模型等生成式模型的记忆与泛化可共存,揭示了虚假状态是生成能力的开端,为理解生成式模型的智能机制提供了框架。

摘要:

生成式模型如今可编写可运行的代码、生成逼真的图像并进行长对话,但其智能背后的机制仍未被我们理解。本论文通过联想记忆(Associative Memory, AM)探索这一谜题,其中模式被存储为能量极小值,并通过吸引子动力学进行检索。除了存储容量外,联想记忆会形成被称为虚假状态的新极小值,长期以来被视为记忆的缺陷。我们认为这种缺陷正是创造力的开端,且记忆与泛化可作为同一检索过程的结果共存。首先,我们证明扩散模型的行为如同联想记忆。在数据量较小时,扩散模型会围绕每个训练样本形成独特的吸引子 basin;随着数据量增长,这些 basin 会收缩,而虚假状态会作为融合存储样本但不匹配任何单个样本的吸引子出现,这是生成能力的首个迹象。我们通过测量不同数据集和架构(包括 Stable Diffusion)中这些 basin 的体积、能量和曲率来表征这一转变。随后,我们转向语言领域,超越联想记忆的能量视角,证明均匀状态离散扩散模型是能够检索未见过数据的联想记忆,其吸引子 basin 仅由条件似然最大化产生。随着训练集扩大,训练样本周围的 basin 收缩,而未见过样本周围的 basin 扩张,直至损坏的测试句子能像训练样本一样被可靠恢复。条件熵在单个序列内揭示了这种共存,并可廉价地诊断模型在转变过程中所处的位置。这些结果共同表明,联想记忆是由吸引子 basin 定义的通用原则,记忆与泛化可在单个模型中共存,因此联想记忆为探究生成式模型何时回忆、何时创造提供了框架。

英文摘要:

Generative models now write working code, produce realistic images, and hold long conversations, yet the mechanisms behind their intelligence still evade our understanding. This thesis explores that puzzle through Associative Memory (AM), in which patterns are stored as energy minima and retrieved through attractor dynamics. Beyond their capacity, AMs form new minima known as spurious states, long regarded as a failure of memory. We argue that this failure is where creativity begins, and that memorization and generalization can coexist as outcomes of one retrieval process. First, we show that diffusion models behave as AMs. With little data, a diffusion model forms a distinct basin of attraction around each training sample. As the data grows, these basins shrink, and spurious states emerge as attractors that blend stored samples yet match none of them. They are the first signs of generative capability. We characterize this transition by measuring the volume, energy, and curvature of these basins across datasets and architectures, including Stable Diffusion. We then turn to language and move beyond the energy-based view of AM. We show that uniform-state discrete diffusion models are AMs capable of retrieving unseen data, with basins of attraction that arise from conditional likelihood maximization alone. As the training set grows, basins around training examples contract while basins around unseen examples expand, until corrupted test sentences are recovered as reliably as training ones. Conditional entropy exposes this coexistence within a single sequence and cheaply diagnoses where a model lies along the transition. Together, these results suggest that AM is a general principle defined by basins of attraction, and that memorization and generalization can coexist within one model. AM thus offers a framework for asking when a generative model recalls and when it creates.

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

↑