Skip to main content
QUICK REVIEW

[Paper Review] Multi-Scale Vision Longformer: A New Vision Transformer for High-Resolution Image Encoding

Pengchuan Zhang, Xiyang Dai|arXiv (Cornell University)|Mar 29, 2021
Advanced Neural Network ApplicationsComputer Science6 citations
TL;DR

This paper proposes Multi-Scale Vision Longformer (ViL), a Vision Transformer architecture that combines a multi-scale hierarchical design with a 2D variant of Longformer's local+global attention mechanism to enable efficient, high-resolution image encoding. The method achieves linear computational complexity and outperforms strong baselines—including ResNets, PVT, and Swin Transformers—on image classification, object detection, and instance segmentation with fewer parameters and FLOPs.

ABSTRACT

This paper presents a new Vision Transformer (ViT) architecture Multi-Scale Vision Longformer, which significantly enhances the ViT of \cite{dosovitskiy2020image} for encoding high-resolution images using two techniques. The first is the multi-scale model structure, which provides image encodings at multiple scales with manageable computational cost. The second is the attention mechanism of vision Longformer, which is a variant of Longformer \cite{beltagy2020longformer}, originally developed for natural language processing, and achieves a linear complexity w.r.t. the number of input tokens. A comprehensive empirical study shows that the new ViT significantly outperforms several strong baselines, including the existing ViT models and their ResNet counterparts, and the Pyramid Vision Transformer from a concurrent work \cite{wang2021pyramid}, on a range of vision tasks, including image classification, object detection, and segmentation. The models and source code are released at \url{https://github.com/microsoft/vision-longformer}.

Motivation & Objective

  • Address the quadratic computational and memory complexity of standard Vision Transformers (ViT) when processing high-resolution images.
  • Enable efficient encoding of high-resolution feature maps required for dense prediction tasks like object detection and segmentation.
  • Unify vision and language model architectures by developing a ViT that matches or exceeds CNN performance on multi-scale vision tasks.
  • Design a vision-specific, efficient attention mechanism that maintains performance while reducing computational cost.
  • Demonstrate the effectiveness of the proposed architecture across diverse vision benchmarks, including classification, detection, and segmentation.

Proposed method

  • Implement a multi-scale model structure by stacking multiple Vision Transformer stages, each with reduced spatial resolution and increased hidden dimension, mimicking ResNet-style hierarchical feature learning.
  • Apply patch embedding at each stage to progressively downsample the feature map while increasing representational capacity.
  • Introduce a 2D variant of the Longformer attention mechanism, using local window attention and a fixed number of global tokens to achieve linear complexity with respect to sequence length.
  • Use relative positional bias (RPB) to enhance attention learning without relying on absolute positional embeddings.
  • Train the model using a 3x+ training schedule for small and medium variants to improve convergence and performance.
  • Integrate the architecture into standard detection and segmentation pipelines (e.g., RetinaNet, Mask R-CNN) for end-to-end evaluation.

Experimental results

Research questions

  • RQ1Can a multi-scale Vision Transformer architecture achieve better accuracy and efficiency than standard ViT and ResNet on high-resolution image tasks?
  • RQ2Does the 2D Longformer attention mechanism maintain performance while reducing computational and memory costs in vision tasks compared to standard self-attention?
  • RQ3How does the combination of multi-scale design and efficient attention affect performance on dense prediction tasks like object detection and instance segmentation?
  • RQ4How do hyperparameters such as window size and number of global tokens impact model performance in high-resolution settings?
  • RQ5Can the proposed architecture outperform concurrent models like Swin Transformer and Pyramid Vision Transformer in terms of accuracy, FLOPs, and parameter count?

Key findings

  • ViL-Tiny with the 3x+MS training schedule outperforms ResNeXt101-64x4d and PVT-Large on ImageNet-1K classification, achieving higher top-1 accuracy with fewer parameters.
  • On COCO object detection with RetinaNet, ViL-Small achieves 47.1 AP^b with 45M parameters, surpassing Swin-Tiny (46.0 AP^b, 48M parameters).
  • In Mask R-CNN-based instance segmentation, ViL-Small achieves 42.9 AP^b, significantly outperforming other efficient attention mechanisms like SRA, Performer, and Global attention.
  • The ablation study shows that window size 15 yields optimal performance in object detection, while adding more than one global token provides no further benefit.
  • The ViL model maintains strong performance even when using partial attention (e.g., in first two stages), with only a 0.4 AP^b gap from full-attention variants.
  • The multi-scale structure improves accuracy by a significant margin compared to vanilla ViT under the same FLOPs and parameter budget, demonstrating its effectiveness in hierarchical feature learning.

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.