避免Hinton等人的“具有EM路由的矩阵胶囊”的实现陷阱
Avoiding Implementation Pitfalls of "Matrix Capsules with EM Routing" by Hinton et al
摘要:
Hinton等人最近在胶囊网络上取得的进展在机器学习社区中引起了相当大的兴奋。胶囊背后的想法受到大脑中皮质微柱的启发,其中一组垂直组织的约100个神经元接收共同的输入,具有共同的输出,相互连接,并且很可能构成大脑皮层的基本计算单元。然而,Hinton的论文“带有EM封装的矩阵胶囊”不幸的是没有伴随着源代码的发布,这使得感兴趣的研究人员试图实现该架构并自行复制基准。这无疑减缓了这项工作的研究进展。在编写我们自己的实现时,我们注意到我们遇到的其他开源实现中的几个常见错误。在本文中,我们分享了其中的一些经验,特别关注三个实现陷阱以及如何避免它们:(1)只有一个孩子的父胶囊;(2)规范化分配给父胶囊的数据量;(3)不同位置的父胶囊竞争子胶囊。虽然我们的实现比目前可用的实现有了相当大的改进,但它仍然略低于Hinton等人(2018)报告的性能。这个实现的源代码可以在GitHub上找到,网址是:https://github.com/IBM/matrix-capsules-with-em-routing。
英文摘要:
The recent progress on capsule networks by Hinton et al. has generated considerable excitement in the machine learning community. The idea behind a capsule is inspired by a cortical minicolumn in the brain, whereby a vertically organised group of around 100 neurons receive common inputs, have common outputs, are interconnected, and may well constitute a fundamental computation unit of the cerebral cortex. However, Hinton's paper on "Matrix Capsule with EM Routing'" was unfortunately not accompanied by a release of source code, which left interested researchers attempting to implement the architecture and reproduce the benchmarks on their own. This has certainly slowed the progress of research building on this work. While writing our own implementation, we noticed several common mistakes in other open source implementations that we came across. In this paper we share some of these learnings, specifically focusing on three implementation pitfalls and how to avoid them: (1) parent capsules with only one child; (2) normalising the amount of data assigned to parent capsules; (3) parent capsules at different positions compete for child capsules. While our implementation is a considerable improvement over currently available implementations, it still falls slightly short of the performance reported by Hinton et al. (2018). The source code for this implementation is available on GitHub at the following URL: https://github.com/IBM/matrix-capsules-with-em-routing.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。