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

用于现代 Hopfield 网络中分布外检测的校正拉格朗日量

Rectified Lagrangian for Out-of-Distribution Detection in Modern Hopfield Networks

Institute of Science Tokyo(东京科学大学);Denso IT Laboratory, Inc.(电装IT实验室);National Institute of Informatics(信息学研究所)

Ryo Moriai, Nakamasa Inoue, Masayuki Tanaka, Rei Kawakami, Satoshi Ikehata, Ikuro Sato

AI总结:

针对现代 Hopfield 网络难以处理分布外样本的问题,提出为记忆神经元引入显式 OOD 吸引子的校正拉格朗日量 RecLag,并在九个图像数据集上验证其优于多种基于能量的方法。

摘要:

现代 Hopfield 网络(MHN)最近在人工智能领域受到广泛关注,因为它们能够以指数级大的记忆容量存储和检索大量模式。MHN 通常是一个由记忆神经元和特征神经元的拉格朗日量定义的动力系统,其中与分布内(ID)样本相关的记忆由特征空间中的吸引子表示。现有 MHN 的一个主要问题在于处理分布外(OOD)样本,因为其最初假设所有样本都是 ID 样本。为解决这一问题,我们提出了校正拉格朗日量(RecLag),这是一种用于记忆神经元的新型拉格朗日量,在 MHN 的动力系统中显式纳入了一个用于 OOD 样本的吸引子。RecLag 可为任意交互矩阵创建一个平凡点吸引子,从而通过将落入该吸引子的样本识别为 OOD 来实现 OOD 检测。交互矩阵经过优化,以便能够估计概率密度,从而识别 ID/OOD。我们在九个图像数据集上证明了基于 RecLag 的 MHN 相比基于能量的 OOD 检测方法(包括使用最先进 Hopfield 能量的方法)的有效性。

英文摘要:

Modern Hopfield networks (MHNs) have recently gained significant attention in the field of artificial intelligence because they can store and retrieve a large set of patterns with an exponentially large memory capacity. A MHN is generally a dynamical system defined with Lagrangians of memory and feature neurons, where memories associated with in-distribution (ID) samples are represented by attractors in the feature space. One major problem in existing MHNs lies in managing out-of-distribution (OOD) samples because it was originally assumed that all samples are ID samples. To address this, we propose the rectified Lagrangian (RegLag), a new Lagrangian for memory neurons that explicitly incorporates an attractor for OOD samples in the dynamical system of MHNs. RecLag creates a trivial point attractor for any interaction matrix, enabling OOD detection by identifying samples that fall into this attractor as OOD. The interaction matrix is optimized so that the probability densities can be estimated to identify ID/OOD. We demonstrate the effectiveness of RecLag-based MHNs compared to energy-based OOD detection methods, including those using state-of-the-art Hopfield energies, across nine image datasets.

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

↑