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

连接联想记忆与概率建模

Bridging Associative Memory and Probabilistic Modeling

Stanford(斯坦福大学);MIT(麻省理工学院);UMD(马里兰大学)

Rylan Schaeffer, Nika Zahedi, Mikail Khona, Dhruv Pai, Sang Truong, Yilun Du, Mitchell Ostrow, Sarthak Chandra, Andres Carranza, Ila Rani Fiete, Andrey Gromov, Sanmi Koyejo

AI总结:

本文基于能量函数等价于负对数似然的观察,打通联想记忆与概率建模,并通过新型能量模型、记忆模型、容量分析及 transformer 机制研究展示双向迁移价值。

摘要:

联想记忆和概率建模是人工智能中的两个基础主题。前者研究旨在对数据进行去噪、补全和检索的循环神经网络,而后者研究概率分布的学习与采样。基于联想记忆的能量函数可被视为概率建模中的负对数似然这一观察,我们在二者之间建立了一座桥梁,使有益的思想能够双向流动。我们展示了四个示例:第一,我们提出了新的基于能量的模型,这些模型能够灵活地使其能量函数适应新的上下文内数据集,我们将这种方法称为能量函数的上下文内学习。第二,我们提出了两个新的联想记忆模型:一个使用贝叶斯非参数方法,根据训练数据的需要动态创建新记忆;另一个使用证据下界显式计算成比例的记忆分配。第三,借助联想记忆的工具,我们在解析和数值上刻画了高斯核密度估计器的记忆容量,后者是概率建模中广泛使用的工具。第四,我们研究了 transformers 中一种普遍的实现选择——归一化后接自注意力——以表明它在超球面上执行聚类。总而言之,本工作呼吁在人工智能的这两片大陆之间进一步交流有益思想。

英文摘要:

Associative memory and probabilistic modeling are two fundamental topics in artificial intelligence. The first studies recurrent neural networks designed to denoise, complete and retrieve data, whereas the second studies learning and sampling from probability distributions. Based on the observation that associative memory's energy functions can be seen as probabilistic modeling's negative log likelihoods, we build a bridge between the two that enables useful flow of ideas in both directions. We showcase four examples: First, we propose new energy-based models that flexibly adapt their energy functions to new in-context datasets, an approach we term \textit{in-context learning of energy functions}. Second, we propose two new associative memory models: one that dynamically creates new memories as necessitated by the training data using Bayesian nonparametrics, and another that explicitly computes proportional memory assignments using the evidence lower bound. Third, using tools from associative memory, we analytically and numerically characterize the memory capacity of Gaussian kernel density estimators, a widespread tool in probababilistic modeling. Fourth, we study a widespread implementation choice in transformers -- normalization followed by self attention -- to show it performs clustering on the hypersphere. Altogether, this work urges further exchange of useful ideas between these two continents of artificial intelligence.

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

↑