Hopfield Network AKonjac_ 2025-03-21 (Updated: 2025-03-21) 最初的 Hopfield Network 的能量函数长成这样 其中 是询问 这个函数正是 Ising Model 中的自旋自由能 [1] 中提出使用其新定义的能量函数的现代连续 Hopfield Network 的更新方式与 Attention 是等价的 而它定义的新能量函数正是一个基于自旋系统的能量函数 在 [2] 中也解释了除了 Attention 本身之外, Trasnsformer 自身结构如何对应于自旋系统 参考: HOPFIELD NETWORKS IS ALL YOU NEED Transformers Are Secretly Collectives of Spin Systems Neural networks and physical systems with emergent collective computational abilities An Energy-Based Perspective on Attention Mechanisms in Transformers