胶囊网络是 2017 年提出的新型视觉网络架构,核心是用向量形式的胶囊替代标量神经元,让向量方向编码实体的姿态而向量长度编码存在概率,能力包括胶囊化特征提取、预测向量计算、动态路由、压缩激活与联合损失训练。它解决的是卷积网络因池化丢失空间层级信息、对视角变化与形变不敏感的问题,并不解决大规模图像分类上效果不及主流网络的问题。
胶囊网络的核心是让网络显式表达空间关系,它可以帮助企业实现以下目标:
让姿态信息被保留。实体的位置、方向、比例与形变被编码在向量里,池化造成的空间信息丢失不再发生。
让视角变化不再脆弱。通过等变性约束,旋转与缩放下的识别结果更加稳定,识别逻辑贴近人类先验。
让小样本场景表现更好。动态路由让特征按一致性聚合,参数规模较小时仍能保持可用的识别精度。
让决策可以被解释。向量方向与几何属性一一对应,模型关注什么可以被直接可视化,审核与调试有了抓手。
总之,胶囊网络可以帮助企业在小样本、视角变化与对抗扰动等几何敏感场景中获得卷积网络不具备的差异化能力,并为可解释视觉提供新路径,但动态路由迭代带来训练开销,大规模分类任务上仍落后于主流架构,开源实现与预训练模型生态薄弱,落地前需要评估场景适配度。
翻译
The capsule network is a visual architecture proposed in 2017. Its core is replacing scalar neurons with vector-shaped capsules, so that the direction of a vector encodes the pose of an entity while its length encodes the probability that the entity exists, with capabilities covering capsule feature extraction, prediction vectors, dynamic routing, the squash activation and joint margin and reconstruction loss. It solves the problem of convolutional networks losing spatial hierarchy through pooling and staying insensitive to viewpoint change and deformation, but it does not solve the problem of trailing mainstream architectures on large-scale image classification.
At the heart of the capsule network is making spatial relationships explicit in the model, which can help companies achieve the following:
Keep pose information. Position, orientation, scale and deformation of an entity are encoded in the vectors, so the spatial information lost to pooling is no longer discarded.
Make viewpoint change less brittle. Equivariance constraints stabilize recognition under rotation and scaling, and the recognition logic moves closer to human priors.
Perform better with few examples. Dynamic routing aggregates features by agreement, so usable accuracy survives even at small parameter scale.
Make decisions interpretable. Vector directions map to geometric attributes, so what the model attends to can be visualized directly and review and debugging gain a handle.
In short, the capsule network can help enterprises gain a differentiated edge on geometry-sensitive scenarios such as few-shot learning, viewpoint change and adversarial perturbation, and it offers a new path toward interpretable vision, while routing iterations add training cost, the architecture still lags mainstream models on large classification tasks, and the ecosystem of open implementations and pretrained models is thin, so fit with the target scenario must be assessed first.