arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 1904.07304cs.CV
收藏

基于累积路由系数的胶囊网络快速推理

Fast Inference in Capsule Networks Using Accumulated Routing Coefficients

Ford Motor Company(福特汽车公司)

Zhen Zhao, Ashley Kleinhans, Gursharan Sandhu, Ishan Patel, K. P. Unnikrishnan

摘要:

我们提出了一种快速推断胶囊网络(CapsNets)的方法,通过利用一个关键的洞察力,关于相邻网络层之间的链接胶囊的路由系数。由于路由系数负责将对象部分分配给整体,并且对象整体通常包含相似的类内部分和不相似的类间部分,因此路由系数倾向于为每个对象类形成唯一的签名。为了快速推理,首先使用训练数据集中的示例以通常的方式训练网络。之后,与训练样本相关联的路由系数被离线累积并用于创建一组“主”路由系数。在推断期间,使用这些主路由系数代替动态计算的路由系数。我们的方法有效地取代了循环迭代的动态路由过程与一个单一的矩阵乘法运算,提供了一个显着的提高推理速度。与动态路由过程相比,快速推理将MNIST、背景MNIST、时尚MNIST和旋转MNIST数据集的测试精度降低了不到0.5%,CIFAR10降低了约5%。

英文摘要:

We present a method for fast inference in Capsule Networks (CapsNets) by taking advantage of a key insight regarding the routing coefficients that link capsules between adjacent network layers. Since the routing coefficients are responsible for assigning object parts to wholes, and an object whole generally contains similar intra-class and dissimilar inter-class parts, the routing coefficients tend to form a unique signature for each object class. For fast inference, a network is first trained in the usual manner using examples from the training dataset. Afterward, the routing coefficients associated with the training examples are accumulated offline and used to create a set of "master" routing coefficients. During inference, these master routing coefficients are used in place of the dynamically calculated routing coefficients. Our method effectively replaces the for-loop iterations in the dynamic routing procedure with a single matrix multiply operation, providing a significant boost in inference speed. Compared with the dynamic routing procedure, fast inference decreases the test accuracy for the MNIST, Background MNIST, Fashion MNIST, and Rotated MNIST datasets by less than 0.5% and by approximately 5% for CIFAR10.

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

↑