CMU 11-785 L19 Hopfield network

Hopfield网络是一种循环神经网络,用于内容寻址存储和联想记忆。每个神经元与其他所有神经元都有连接,当信号相反时,神经元会翻转其状态,导致能量函数下降。该网络在每次翻转后都朝着能量最小值演化,从而稳定在存储的模式上。然而,Hopfield网络存在存储容量限制和非正交模式的问题,可能导致错误的记忆召回。
摘要由CSDN通过智能技术生成

Hopfield Net

  • So far, neural networks for computation are all feedforward structures

Loopy network

在这里插入图片描述

  • Each neuron is a perceptron with +1/-1 output
    • Every neuron receives input from every other neuron
    • Every neuron outputs signals to every other neuron

在这里插入图片描述

  • At each time each neuron receives a “field” ∑ j ≠ i w j i y j + b i \sum_{j \neq i} w_{j i} y_{j}+b_{i} j=iwjiyj+bi
    • If the sign of the field matches its own sign, it does not respond
    • If the sign of the field opposes its own sign, it “flips” to match the sign of the field

在这里插入图片描述

  • If the sign of the field at any neuron opposes its own sign, it “flips” to match the field
    • Which will change the field at other nodes
    • Which may then flip… and so on…

Filp behavior

  • Let y i − y^{-}_{i} yi be the output of the i i i-th neuron just before it responds to the current field

  • Let y i + y_{i}^{+} yi+ be the output of the i i i-th neuron just after it responds to the current field

  • if y i − = sign ⁡ ( ∑ j ≠ i w j i y j + b i ) y_{i}^{-}=\operatorname{sign}\left(\sum_{j \neq i} w_{j i} y_{j}+b_{i}\right) yi=sign(j=iwjiyj+bi), then y i + = − y i − y_{i}^{+} = -y_{i}^{-} yi+=yi

    • If the sign of the field matches its own sign, it does not flip

    • y i + ( ∑ j ≠ i w j i y j + b i ) − y i − ( ∑ j ≠ i w j i y j + b i ) = 0 y_{i}^{+}\left(\sum_{j \neq i} w_{j i} y_{j}+b_{i}\right)-y_{i}^{-}\left(\sum_{j \neq i} w_{j i} y_{j}+b_{i}\right)=0 yi+j=iwjiyj+biyij=iwjiyj+bi=0

  • if y i − ≠ sign ⁡ ( ∑ j ≠ i w j i y j + b i ) y_{i}^{-}\neq\operatorname{sign}\left(\sum_{j \neq i} w_{j i} y_{j}+b_{i}\right) yi=sign(j=iwjiyj+bi), then y i + = − y i − y_{i}^{+} = -y_{i}^{-} yi+

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值