[Paper Review] AxWin Transformer: A Context-Aware Vision Transformer Backbone with Axial Windows
AxWin Transformer introduces AxWin Attention, a novel self-attention mechanism that combines local window-based and axial (row/column) attention to simultaneously capture fine-grained local features and long-range global context. This design enables state-of-the-art performance on ImageNet-1K classification and SOTA results on COCO object detection and instance segmentation, outperforming prior methods like Swin, CSWin, and Pale Transformers while reducing FLOPs.
Recently Transformer has shown good performance in several vision tasks due to its powerful modeling capabilities. To reduce the quadratic complexity caused by the attention, some outstanding work restricts attention to local regions or extends axial interactions. However, these methos often lack the interaction of local and global information, balancing coarse and fine-grained information. To address this problem, we propose AxWin Attention, which models context information in both local windows and axial views. Based on the AxWin Attention, we develop a context-aware vision transformer backbone, named AxWin Transformer, which outperforming the state-of-the-art methods in both classification and downstream segmentation and detection tasks.
Motivation & Objective
- To address the limitation of existing vision transformers in balancing local feature extraction and global context modeling.
- To reduce the quadratic complexity of global self-attention while preserving rich contextual and shape bias information.
- To improve performance on dense prediction tasks such as instance segmentation and object detection by enhancing both local and global receptive fields.
- To develop a more efficient and effective backbone architecture that maintains high accuracy with lower computational cost.
Proposed method
- Proposes AxWin Attention, which computes self-attention within local windows and across axial directions (rows and columns) to model both local and global context.
- Introduces Multi-Scale Patch Embedding (MSPE), using depth-wise convolutions and top-down feature fusion to enrich multi-scale context at high-resolution feature maps.
- Employs a modified MLP block with an internal depth-wise convolution to enhance local inductive bias and feature representation.
- Uses a hierarchical architecture with four stages, where each stage applies AxWin Attention with increasing window and split sizes.
- Applies a split-size strategy across stages (7, 7, 7, 7 for Tiny; 12, 12, 12, 12 for Base) to balance local and global modeling.
- Adopts a 1×1 convolution and bilinear upsampling for feature fusion in MSPE to preserve spatial resolution and context.
Experimental results
Research questions
- RQ1Can a vision transformer backbone effectively balance local feature extraction and global context modeling without sacrificing computational efficiency?
- RQ2How does combining local window attention with axial attention improve performance on dense prediction tasks compared to pure window or axial methods?
- RQ3To what extent does the proposed Multi-Scale Patch Embedding (MSPE) module enhance feature representation in high-resolution feature maps?
- RQ4Does integrating local and global attention mechanisms lead to better shape bias and improved performance on instance segmentation and object detection?
- RQ5How does the choice of split size in AxWin Attention affect model accuracy and efficiency across different model scales?
Key findings
- AxWin-T achieves 48.2 box AP and 43.4 mask AP on COCO, outperforming Swin-T (43.7 and 39.8) and CSWin-T (46.7 and 42.2) with 236G FLOPs.
- AxWin-S achieves 49.1 box AP and 47.5 mask AP on COCO, surpassing Pale-S (48.4 and 47.1) and CSWin-S (47.9 and 46.2) with lower FLOPs (318G).
- AxWin-B achieves 50.0 box AP and 48.3 mask AP on COCO, exceeding Pale-B (49.3 and 47.8) and CSWin-B (48.7 and 47.3) with 370G FLOPs.
- On ADE20K semantic segmentation, AxWin-B achieves 52.8% mIoU (single-scale) and 53.7% (multi-scale), outperforming Swin-B (48.1% and 49.7%) and Pale-B (52.2% and 53.0%).
- The MSPE module improves ImageNet-1K top-1 accuracy to 83.9% and ADE20K SS mIoU to 51.3%, with only a 1.1 GFLOP increase over standard patch merging.
- Ablation studies confirm that AxWin Attention (83.9% top-1) outperforms pure axial (83.0%) or window-only (82.6%) attention, validating the synergy of local and global modeling.
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.