Dynamic routing networks, aimed at finding the best routing paths in the networks, have achieved significant improvements to neural networks in terms of accuracy and efficiency. In this paper, we see dynamic routing networks in a fresh light, formulating a routing method as a mapping from a sample space to a routing space. From the perspective of space mapping, prevalent methods of dynamic routing didn't consider how inference paths would be distributed in the routing space. Thus, we propose a novel method, termed CoDiNet, to model the relationship between a sample space and a routing space by regularizing the distribution of routing paths with the properties of consistency and diversity. Specifically, samples with similar semantics should be mapped into the same area in routing space, while those with dissimilar semantics should be mapped into different areas. Moreover, we design a customizable dynamic routing module, which can strike a balance between accuracy and efficiency. When deployed upon ResNet models, our method achieves higher performance and effectively reduces average computational cost on four widely used datasets.
翻译:动态路由网络旨在寻找网络中的最佳路由路径,在准确性和效率方面对神经网络有了显著改进。 在本文中,我们看到了以新光线显示的动态路由网络,将路径性网络设计成从样本空间到路由空间的绘图。从空间绘图的角度来看,动态路由的常用方法并未考虑如何在路径空间中分配推导路径。因此,我们提出了一个名为 CoDiNet的新颖方法,通过将路径性分布与一致性和多样性的特性正规化来模拟样源空间和路由空间之间的关系。具体地说,具有类似语义的样本应绘制到路线空间的同一区域,而具有不同语义的样本则应绘制到不同的区域。此外,我们设计了一个可定制的动态路由模块,能够在路径性和效率之间取得平衡。在ResNet模型上部署时,我们的方法取得了更高的性能,并有效地降低了四个广泛使用的数据集的平均计算成本。