原文链接:小样本学习与智能前沿

author: Sargur Srihari srihari@buffalo.edu

This is part of lecture slides on Deep Learning: http://www.cedar.buffalo.edu/~srihari/CSE676

文章目录

  • Limitations of Convolutional Networks
    • ConvolutionalNeuralNetworks
    • Processing Steps and Training for ConvNets
    • Pooling and Invariance
    • Example of CNN Limitation
      • CNN to recognize faces extracts features from image
    • Motivation for CapsNets
    • Solution offered by CapsNets
    • Visual Fixation
      • Human vision uses saccades
      • Parse Tree of a Fixation
      • Activation is a likelihood
    • CNN versus CapsNets
  • Definition of Capsule
      • Example
    • Representing Entity in Input
    • Capsule Networks perform inverse Computer Graphics
    • Pooling and Equivariance
      • Example of equivariance with Capsnet
    • From Convolution to Capsule
  • Follow-up content

Limitations of Convolutional Networks

ConvolutionalNeuralNetworks

Source: https://hackernoon.com/ what-is-a-capsnet-or-capsule- network-2bfbe48769cc

  • 与常规神经网络相比,将计算量最小化
  • 卷积极大地简化了计算,而不会丢失数据的本质
  • 擅长处理图像分类
  • 在所有图像位置使用相同的知识

Processing Steps and Training for ConvNets

  1. Givenaninputimage,asetofkernelsorfiltersscan it and perform the convolution operation.
  2. This creates a feature map inside the network.
    These features next pass via activation and pooling layers
    • Activation layers, e.g., ReLU, induce nonlinearity
    • Pooling (eg: max pooling) helps in reducing the training time.
    (pooling实现子区域的摘要,实现不变性)
  3. At the end, it will pass via a classifier sigmoid/softmax
    Training is based on back propagation(反向传播) of error matched against labeled data.
    (非线性也有助于解决消失的梯度问题)

Pooling and Invariance

(池化和不变性)
Pooling应该获得位置,方向,比例或旋转不变性。

Every input value changed, but only half the output values have changed because maxpool is only sensitive to max value in neighborhood not exact value.

Example of CNN Limitation

CNN to recognize faces extracts features from image


与顺序无关,位置不对CNN也能进行识别

Motivation for CapsNets

Caps nets are an improvement on CNNs

  • They are the next version of CNNs
  • Solve problems due to max pooling and deep nets
    Loss of information regarding order and feature orientation
  • Hinton: “The pooling operation used in CNNs is a big mistake and the fact that it works so well is a disaster”

Solution offered by CapsNets

  • Low level features should also be arranged in a certain order for the object to be classified as a face
    (排序低级特征)
  • Order is determined during training when the network learns not only what features to look for but also what their relationships to one another should be (顺利由训练决定,不仅学习特征,还要学习特征之间的关系)
    具有特征顺序特征的图像才会被识别为人脸。

Visual Fixation

(视觉固定)

Human vision uses saccades

(人类视觉使用扫视)

  • 通过仔细的固定顺序忽略无关的细节
  • 确保仅以最高的分辨率处理光学阵列的一小部分

We assume a single fixation will give us
• Much more than a single identified object and its properties
• Assume our multi layer visual system creates a parse tree on each fixation
• We ignore coordination of parse trees(解析树) over multiple fixations

Parse Tree of a Fixation

  • 对于单个注视,
    从固定的多层神经网络中刻出一个分析树
    像岩石上的雕塑
  • 每层将被分成许多小的神经元组,称为“胶囊”
  • 解析树中的每个节点将对应一个活动胶囊

Activation is a likelihood

神经元的激活水平可以解释为检测到特定特征的可能性

胶囊是一组神经元,不仅捕获可能性,而且捕获特定特征的参数。

CNN versus CapsNets

max pooling layers 获取图片的重要特征,但丢失了特征的结构取向
CNN 只检测特征是否存在,而不考虑位置

Capsnets replace scalar-output feature detectors with vector-output capsules and max-pooling with routing- by-agreement.
Capsnet用向量输出封装代替标量输出特征检测器,用按协议路代替最大池化。

Definition of Capsule

胶囊是一组神经元,其输出表示同一实体的不同属性。
胶囊是一组神经元,其激活向量代表特定类型的实体(例如对象或对象部分)的实例化参数

Example



2个神经元表示输出为二维向量,前项表方向,后向表大小。

Representing Entity in Input

within an active capsule
神经元表示实体的各种属性

  • 姿势,变形,颜色,速度
  • 实体在图像中是否存在是一个特殊的属性。

representing existence of entity
一个独立的logistic unit

  • 输出表示实体存在的概率
  • 向量的长度表示实体的存在,方向表示实体的属性

应用非线性使方向保持不变但减小其大小,保证胶囊的输出的向量长度不超过1

(数值大小,方向,实体大小,粗细程度)

Capsule Networks perform inverse Computer Graphics

Computer graphics generates images based on descriptions

Pooling and Equivariance

  • CNN中的Pooling是一个非常粗糙的方法
    实际上,它消除了各种位置不变性
    导致将图1中的右侧图像检测为正确的船

    Equivariance 使网络了解旋转或比例的变化,并据此进行自适应,以使图像内部的空间定位不会丢失。

Example of equivariance with Capsnet


CNN会正确提取下层的特征,但会错误地激活上层的神经元以进行面部识别

CapsNet:神经元包含可能性以及特征的属性,例如包含[可能性,方向,大小]的向量

一旦模型认识到对该父神经元贡献最大信号的神经元在大小和方向上不一致,则用于面部检测的神经元的激活率将低得多。

From Convolution to Capsule

CNN基于简单的机制

  • 视觉系统需要在所有图像位置使用相同的知识
  • 这可以通过绑定特征检测器的权重来实现,以便在一个位置学习的特征在其他位置可用。
  • CNN使用学习过的特征检测器的翻译后的副本,这使它们可以将关于在图像中一个位置处获取的良好权重值的知识转换为其他位置。
  • 卷积胶囊扩展了跨位置的知识共享,以包括关于表征熟悉形状的部分-整体关系的知识。

Follow-up content

  • Dynamic Routing
  • Computing input/output vectors of capsule
  • Routing by Agreement
  • CapsNet Architecture
  • Performance of Capsule Networks
  • Matrix capsules with EM routing

Capsule Networks胶囊网络(一)相关推荐

  1. Capsule Networks胶囊网络(二)

    文章目录 Dynamic Routing Coefficients operate on capsule level Dynamic Routing: Routing by Agreement Com ...

  2. Capsule Networks 胶囊网络

    胶囊网络是Hinton老爷子近几年提出的一种新型的神经网络,他认为胶囊网络的设计更加符合人类神经元的原理,是未来可以替代传统神经网络的一种新的神经网络. 提出背景 提出背景其实就是现有某种算法出现了一 ...

  3. CapsNet(Capsule Network)——胶囊网络原理

    在讲胶囊网络之前,首先我们回顾一下我们熟悉的CNN. CNN做了什么事情呢? 假设这里有一个卷积核(左图),除了曲线轨迹上的值很大,其他的值都是零,所以这个卷积核对旁边这种曲线(右图)就有很高的输出, ...

  4. python实现胶囊网络_深度学习精要之CapsuleNets理论与实践(附Python代码)

    摘要: 本文对胶囊网络进行了非技术性的简要概括,分析了其两个重要属性,之后针对MNIST手写体数据集上验证多层感知机.卷积神经网络以及胶囊网络的性能. 神经网络于上世纪50年代提出,直到最近十年里才得 ...

  5. 胶囊网络是什么及其应用

    In 1998, Yann LeCun and Yoshua Bengio introduced what is now one of the most popular models in Deep ...

  6. 介绍胶囊网络 capsule networks

    读到一篇文章,介绍capsule networks,特此记录笔记. 原始链接: https://www.oreilly.com/ideas/introducing-capsule-networks?u ...

  7. Siamese Capsule Networks 翻译 (孪生胶囊网络)

    摘要 胶囊网络在事实上的基准计算机视觉数据集(例如MNIST,CIFAR和smallNORB)上显示出令人鼓舞的结果. 虽然,它们尚未在以下任务上进行测试:(1)所检测到的实体固有地具有更复杂的内部表 ...

  8. python实现胶囊网络_胶囊网络 -- Capsule Networks

    胶囊网络是 vector in vector out的结构,最后对每个不同的类别,输出不一个向量,向量的模长表示属于该类别的概率. 例如,在数字识别中,两个数字虽然重叠在一起,Capsule中的两个向 ...

  9. Group equivariant capsule networks(组等变胶囊网络) 论文翻译

    摘要 我们提出了组等变胶囊网络,这是一个向胶囊网络概念引入保证的等方差和不变性的框架.我们的工作可以分为两部分.首先,我们介绍了一种在组的元素上定义的通过协议算法的通用路由,并证明了输出姿势向量的等方 ...

最新文章

  1. 【响应式Web前端设计】CSS浮动(float,clear)讲解
  2. 网络推广网站浅析如何做好关键词布局优化?
  3. 2.5亿被腰围改变的中国人,哪个省胖子最多?
  4. Gartner:新安全环境对虚拟化和云计算提出更高要求
  5. Spring Cloud综合实战 - 基于TCC补偿模式的分布式事务
  6. Service Fabric下删除实例并注销应用
  7. Luogu 4721 【模板】分治 FFT
  8. win10如何远程连接BCC云服务器?
  9. Bootstrap3 屏幕阅读器和键盘导航
  10. 查看目录是否为内存盘_CentOS系列002:挂载数据盘
  11. 如何关闭/删除vs2005的实时调试器?
  12. MySQL8的新特性ROLE
  13. tinycc update VERSION to 0.9.27
  14. wince怎么刷carplay_carplay wince安装版
  15. 论文查重没通过怎么办?
  16. 演示文稿 Beamer 入门
  17. 调焦、变焦的原理和清晰度的关系
  18. 怎样开发微信小程序(最初的页面)
  19. 演讲实录(文字+视频)丨基于DevOps的质量左移与右移思考
  20. 三菱FX系列PLC简单总结

热门文章

  1. FreeModbus RTU 移植指南
  2. QTP脚本运行次数的设置
  3. 正大国际期货:2022正大期货在国际市场热度不减的几点原因
  4. Utils(一) 介绍
  5. Oracle数据库定时备份
  6. “羊了个羊”Java版本实现
  7. 一幅图弄清DFT与DTFT,FFT的关系
  8. jsp_java毕业设计家用电器维修进销存系统
  9. void函数为什么还能返回(不能返回前面理解错误)
  10. 东营市西城区小吃大全