Capsule Networks胶囊网络(二)

Dynamic Routing

Conventional net: 层之间完全连接

  • 任何两个神经元之间的加权都是可以训练的
  • 训练之后,这些权重是固定的,与输入无关
    CapsNet 也有这些权重
  • 但是additional routing coefficients 用于训练权重(coefficient value 由输入决定,因此是动态的)
  • 没有动态路由的CapsNet和常规网络一样

CNN中类似动态路由的成分是max pooling
Max pooling是从前一层到后一层选择路由信息的粗糙方法。

Coefficients operate on capsule level

在这里插入图片描述
在这里插入图片描述

  • The contribution of a capsule to another capsule in the next layer is determined by the weight matrix and a single scalar coefficient
  • The first capsule u∈R3 contributes to the capsule s∈R2 in the next layer by 0.1⋅W1,2⋅u where
    0.1 is the routing coefficient and W1,2 is a 2x3 matrix whose subscript denotes the indices of capsules in the two layers.
  • The total contribution of a capsule is exactly 1.Capsule u route to capsule v with routing coefficient 0.9 and to capsule s with 0.1.
  • This is a voting scheme where each capsule in layer before vote for each capsule in layer after.
    (前面对后面投票)

Dynamic Routing: Routing by Agreement

在这里插入图片描述
Updating the coefficients.
Idea: a capsule votes more if its transformation agrees with the majority of other capsules
Shows routing coefficients to the first capsule in second layer denoted by ci1 for capsule ui
In the beginning all ci1 initialized to 1⁄2 since each capsule routes to all two capsules in the next layer The activation of the first capsule s1 in the next layer is the sum of all transformed and scaled vectors ci1Wi1ui from the left layer
The amount of change in coefficient (i.e. vote) is determined by the dot product between s_i and each summand ci1Wi1ui

Comparison to fully connected neural network

全连接网络
在这里插入图片描述
胶囊网络
在这里插入图片描述
在这里插入图片描述
在这里插入图片描述

front-up content

Computing input/output vectors of a capsule

Routing by Agreement

CapsNet Architecture

Performance of Capsule Networks

Matrix capsules with EM routing

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

_Summer tree

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

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

余额充值