[Paper Review] MPViT: Multi-Path Vision Transformer for Dense Prediction
MPViT proposes a multi-path Vision Transformer with multi-scale patch embedding that simultaneously processes fine and coarse visual features via parallel Transformer encoders, achieving state-of-the-art performance on ImageNet, COCO, and ADE20K with fewer parameters and FLOPs than prior SOTA ViTs.
Dense computer vision tasks such as object detection and segmentation require effective multi-scale feature representation for detecting or classifying objects or regions with varying sizes. While Convolutional Neural Networks (CNNs) have been the dominant architectures for such tasks, recently introduced Vision Transformers (ViTs) aim to replace them as a backbone. Similar to CNNs, ViTs build a simple multi-stage structure (i.e., fine-to-coarse) for multi-scale representation with single-scale patches. In this work, with a different perspective from existing Transformers, we explore multi-scale patch embedding and multi-path structure, constructing the Multi-Path Vision Transformer (MPViT). MPViT embeds features of the same size~(i.e., sequence length) with patches of different scales simultaneously by using overlapping convolutional patch embedding. Tokens of different scales are then independently fed into the Transformer encoders via multiple paths and the resulting features are aggregated, enabling both fine and coarse feature representations at the same feature level. Thanks to the diverse, multi-scale feature representations, our MPViTs scaling from tiny~(5M) to base~(73M) consistently achieve superior performance over state-of-the-art Vision Transformers on ImageNet classification, object detection, instance segmentation, and semantic segmentation. These extensive results demonstrate that MPViT can serve as a versatile backbone network for various vision tasks. Code will be made publicly available at \url{https://git.io/MPViT}.
Motivation & Objective
- Address the limitation of single-scale patch representation in Vision Transformers for dense prediction tasks requiring multi-scale feature understanding.
- Overcome the computational and memory overhead of existing co-scale mechanisms like CoaT by enabling parallel, independent processing of multi-scale features.
- Improve feature representation diversity by integrating overlapping convolutional patch embedding with multiple parallel Transformer paths.
- Enable effective global-to-local feature interaction to combine local inductive bias of convolutions with global context from self-attention.
- Develop a versatile backbone that consistently outperforms SOTA Vision Transformers across multiple vision benchmarks with reduced model complexity.
Proposed method
- Apply overlapping convolutional patch embedding with varying kernel sizes (e.g., 3×3, 5×5, 7×7) to extract multi-scale patches from the same input image, maintaining consistent sequence length.
- Feed tokens from different patch scales into separate, parallel Transformer encoder paths to enable independent global self-attention computation on each scale.
- Aggregate features from multiple paths using a global-to-local feature interaction (GLI) mechanism that concatenates local convolutional features with global transformer features.
- Use a multi-path architecture where each path specializes in a specific receptive field range—path-1 for fine details, path-3 for coarse semantics, and path-2 for intermediate scales.
- Train the model using standard DeiT-style recipes on ImageNet-1K, then fine-tune on COCO and ADE20K for detection, segmentation, and classification.
- Visualize attention maps from each path to analyze scale-specific attention behavior and validate complementary feature learning.
Experimental results
Research questions
- RQ1Can multi-scale patch embedding in a multi-path Transformer architecture improve feature representation diversity for dense prediction tasks?
- RQ2How does the performance of MPViT compare to state-of-the-art Vision Transformers in terms of accuracy, parameter count, and FLOPs across multiple benchmarks?
- RQ3To what extent do individual paths in MPViT specialize in attending to objects of different sizes or semantic levels?
- RQ4Does the global-to-local feature interaction mechanism effectively combine local inductive bias with global self-attention in a multi-path setting?
- RQ5What are the failure modes of MPViT, and how do attention maps correlate with misclassification cases?
Key findings
- MPViT-Small (22M parameters, 4 GFLOPs) achieves a COCO mask AP of 43.9, surpassing the larger Focal-Base model (89M parameters, 16 GFLOPs) which achieves 43.7 AP.
- On ImageNet-1K, MPViT-Tiny (5M parameters) achieves 83.5% top-1 accuracy, outperforming SOTA ViTs like Swin-B and CoaT-Lite-S.
- The global-to-local feature interaction mechanism improves feature quality by combining local details from convolutions with global context from self-attention.
- Visual analysis confirms that path-1 focuses on small objects and textures, path-3 emphasizes large objects and semantic concepts, and path-2 shows intermediate behavior.
- Failure analysis reveals that attention maps often mislead predictions when semantically similar objects (e.g., forklift vs. trailer truck) receive strong attention, indicating attention correlation with model predictions.
- MPViT achieves state-of-the-art performance on instance segmentation (COCO), semantic segmentation (ADE20K), and object detection (COCO), demonstrating its versatility as a backbone.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.