Skip to main content
QUICK REVIEW

[Paper Review] Visual Parser: Representing Part-whole Hierarchies with Transformers

Shuyang Sun, Xiaoyu Yue|arXiv (Cornell University)|Jul 13, 2021
Advanced Neural Network ApplicationsComputer Science67 references18 citations
TL;DR

This paper introduces Visual Parser (ViP), a Transformer-based architecture that explicitly models part-whole hierarchies in visual representations by iteratively refining features across two levels: parts (compact, semantic vectors) and the whole (spatial feature maps). ViP achieves state-of-the-art performance on object detection and instance segmentation, surpassing ResNeXt-101-64×4 with 7.2× fewer parameters and 10.9× fewer FLOPS, while producing highly interpretable, class-informative part features.

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.

Motivation & Objective

  • To explicitly model part-whole hierarchical structures in visual representations, mimicking human visual perception.
  • To overcome the limitation of conventional neural networks in dynamically representing compositional features across multiple levels.
  • To improve model explainability by learning semantically meaningful, class-discriminative part representations.
  • To develop a versatile backbone that performs competitively across classification, detection, and instance segmentation tasks.

Proposed method

  • ViP constructs a two-level hierarchy: part-level representations (N vectors) and whole-level feature maps (H×W spatial grid), with learnable part prototypes as initial cues.
  • An attention-based encoder maps global whole-level features into localized part representations, capturing semantically relevant context from the whole.
  • A transformer-based decoder reconstructs refined global features from the encoded part representations, enabling bidirectional cross-level interaction.
  • The encoder-decoder process is stacked across multiple blocks to iteratively refine features at both levels, forming a bi-directional pathway.
  • The architecture uses patch embedding and multi-head self-attention with grouped attention (G) to efficiently model long-range dependencies.
  • Different ViP variants (Mobile, Tiny, Small, etc.) are designed with varying depth, width, and head counts, with final prediction heads adapted per model size.

Experimental results

Research questions

  • RQ1Can a neural network explicitly learn and utilize part-whole hierarchical representations in visual inputs, similar to human perception?
  • RQ2How does modeling part-whole hierarchies improve feature quality and model performance across vision tasks?
  • RQ3Can a Transformer-based architecture outperform CNN backbones in object detection while using significantly fewer parameters and FLOPS?
  • RQ4To what extent are the learned part representations interpretable and class-discriminative?
  • RQ5Can the proposed architecture serve as a strong, general-purpose backbone across diverse vision tasks?

Key findings

  • ViP outperforms all state-of-the-art CNN backbones on object detection in the Cascade Mask-RCNN 1× training regime, achieving superior AP and AP<sub>50</sub>.
  • The ViP-Tiny variant achieves comparable performance to the largest ResNeXt-101-64×4 backbone while using 7.2× fewer parameters and 10.9× fewer FLOPS.
  • Visualization results show that the learned part representations are highly informative for the predicted class, enhancing model interpretability.
  • The part-level features in ViP are more discriminative and semantically meaningful than those in standard CNNs, as evidenced by attention maps and feature clustering.
  • ViP generalizes well across tasks, achieving competitive results on image classification, object detection, and instance segmentation.
  • The model maintains strong performance even in small-scale variants (e.g., ViP-Mobile, ViP-Tiny), demonstrating efficiency and scalability.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.