Skip to main content
QUICK REVIEW

[论文解读] Visual Parser: Representing Part-whole Hierarchies with Transformers

Shuyang Sun, Xiaoyu Yue|arXiv (Cornell University)|Jul 13, 2021
Advanced Neural Network ApplicationsComputer Science参考文献 67被引用 18
一句话总结

本文提出视觉解析器(ViP),一种基于Transformer的架构,通过在两层上迭代优化特征,显式建模视觉表征中的整体-部分层次结构:部分(紧凑的语义向量)和整体(空间特征图)。ViP在目标检测与实例分割任务上达到最先进性能,相比ResNeXt-101-64×4,模型参数减少7.2倍、FLOPS减少10.9倍,同时生成高度可解释、具有类别信息的部件特征。

ABSTRACT

Human vision is able to capture the part-whole hierarchical information from the entire scene. This paper presents the Visual Parser (ViP) that explicitly constructs such a hierarchy with transformers. ViP divides visual representations into two levels, the part level and the whole level. Information of each part represents a combination of several independent vectors within the whole. To model the representations of the two levels, we first encode the information from the whole into part vectors through an attention mechanism, then decode the global information within the part vectors back into the whole representation. By iteratively parsing the two levels with the proposed encoder-decoder interaction, the model can gradually refine the features on both levels. Experimental results demonstrate that ViP can achieve very competitive performance on three major tasks e.g. classification, detection and instance segmentation. In particular, it can surpass the previous state-of-the-art CNN backbones by a large margin on object detection. The tiny model of the ViP family with $7.2 imes$ fewer parameters and $10.9 imes$ fewer FLOPS can perform comparably with the largest model ResNeXt-101-64$ imes$4d of ResNe(X)t family. Visualization results also demonstrate that the learnt parts are highly informative of the predicting class, making ViP more explainable than previous fundamental architectures. Code is available at https://github.com/kevin-ssy/ViP.

研究动机与目标

  • 显式建模视觉表征中的整体-部分层次结构,模仿人类视觉感知。
  • 克服传统神经网络在动态表征多层级组合特征方面的局限性。
  • 通过学习语义有意义且具有类别判别力的部件表征,提升模型可解释性。
  • 开发一种在分类、检测与实例分割任务中均表现优异的通用主干网络。

提出的方法

  • ViP构建两级层次结构:部件级表征(N个向量)与整体级特征图(H×W空间网格),并以可学习的部件原型作为初始提示。
  • 基于注意力的编码器将全局整体级特征映射为局部部件表征,从整体中捕捉语义相关的上下文信息。
  • 基于Transformer的解码器从编码后的部件表征中重建优化后的全局特征,实现双向跨层级交互。
  • 编码-解码过程在多个模块中堆叠,实现对两级特征的迭代优化,形成双向路径。
  • 该架构采用图像块嵌入与分组注意力(G)的多头自注意力机制,高效建模长距离依赖。
  • 根据不同深度、宽度与头数设计了多种ViP变体(如Mobile、Tiny、Small等),并根据模型尺寸调整最终预测头。

实验结果

研究问题

  • RQ1神经网络能否显式学习并利用视觉输入中的整体-部分层次表征,类似人类感知?
  • RQ2建模整体-部分层次结构在多类视觉任务中如何提升特征质量与模型性能?
  • RQ3基于Transformer的架构能否在目标检测任务中超越CNN主干网络,同时显著减少参数量与FLOPS?
  • RQ4所学习的部件表征在多大程度上具备可解释性与类别判别力?
  • RQ5所提出的架构能否作为强大且通用的主干网络,适用于多样化视觉任务?

主要发现

  • 在Cascade Mask-RCNN 1×训练设置下,ViP在目标检测任务中超越所有最先进CNN主干网络,取得更优的AP与AP<sub>50</sub>。
  • ViP-Tiny变体在性能上与最大规模的ResNeXt-101-64×4主干网络相当,但参数量减少7.2倍、FLOPS减少10.9倍。
  • 可视化结果表明,所学习的部件表征对预测类别具有高度信息量,显著增强模型可解释性。
  • ViP中的部件级特征相比标准CNN更具判别力与语义意义,注意力图与特征聚类结果均证实此点。
  • ViP在各类任务中泛化能力强,在图像分类、目标检测与实例分割任务中均取得具有竞争力的结果。
  • 即使在小规模变体(如ViP-Mobile、ViP-Tiny)中,模型仍保持强劲性能,展现出优异的效率与可扩展性。

阅读本论文

在 Nubint 阅读器中打开原文,边读边就任意段落提问。

在 Nubint 中阅读本论文

本解读由 AI 根据论文原文生成,引用前请核对原文。