Polyline Path Masked Attention for Vision Transformer
Not on the map. Why?
Abstract (arXiv)
Global dependency modeling and spatial position modeling are two core issues of the foundational architecture design in current deep learning frameworks. Recently, Vision Transformers (ViTs) have achieved remarkable success in computer vision, leveraging the powerful global dependency modeling capability of the self-attention mechanism. Furthermore, Mamba2 has demonstrated its significant potential in natural language processing tasks by explicitly modeling the spatial adjacency prior through the structured mask. In this paper, we propose Polyline Path Masked Attention (PPMA) that integrates the self-attention mechanism of ViTs with an enhanced structured mask of Mamba2, harnessing the complementary strengths of both architectures. Specifically, we first ameliorate the traditional structured mask of Mamba2 by introducing a 2D polyline path scanning strategy and derive its corresponding structured mask, polyline path mask, which better preserves the adjacency relationships among image tokens. Notably, we conduct a thorough theoretical analysis on the structural characteristics of the proposed polyline path mask and design an efficient algorithm for the computation of the polyline path mask. Next, we embed the polyline path mask into the self-attention mechanism of ViTs, enabling explicit modeling of spatial adjacency prior. Extensive experiments on standard benchmarks, including image classification, object detection, and segmentation, demonstrate that our model outperforms previous state-of-the-art approaches based on both state-space models and Transformers. For example, our proposed PPMA-T/S/B models achieve 48.7%/51.1%/52.3% mIoU on the ADE20K semantic segmentation task, surpassing RMT-T/S/B by 0.7%/1.3%/0.3%, respectively. Code is available at https://github.com/zhongchenzhao/PPMA.
Key facts. Cited by 1 paper in the map (data through 14 Oct 2026). Builds on 55 of its 61 references that are in the map. First posted on arXiv 19 Jun 2025.
Builds on
55 of 61 references.
References · 55
- 2017Attention Is All You Needcited by 60,361
- 2015Deep Residual Learning for Image Recognitioncited by 52,096
- 2020An Image is Worth 16x16 Words: Transformers for Image Recognition at Scalecited by 30,186
- 2014Microsoft COCO: Common Objects in Contextcited by 17,608
- 2021Swin Transformer: Hierarchical Vision Transformer using Shifted Windowscited by 12,139
- 2023Segment Anythingcited by 8,234
- 2017Mask R-CNNcited by 7,277
- 2016Densely Connected Convolutional Networkscited by 6,720
- 2019EfficientNet: Rethinking Model Scaling for Convolutional Neural Networkscited by 6,442
- 2015Rethinking the Inception Architecture for Computer Visioncited by 5,475
- 2017mixup: Beyond Empirical Risk Minimizationcited by 5,183
- 2023Mamba: Linear-Time Sequence Modeling with Selective State Spacescited by 4,718
38 more
- 2021RoFormer: Enhanced Transformer with Rotary Position Embeddingcited by 4,703
- 2020Training data-efficient image transformers & distillation through attentioncited by 4,586
- 2022A ConvNet for the 2020scited by 3,579
- 2019CutMix: Regularization Strategy to Train Strong Classifiers with Localizable Featurescited by 2,884
- 2019RandAugment: Practical automated data augmentation with a reduced search spacecited by 2,269
- 2020Transformers are RNNs: Fast Autoregressive Transformers with Linear Attentioncited by 2,022
- 2019MMDetection: Open MMLab Detection Toolbox and Benchmarkcited by 1,385
- 2024Transformers are SSMs: Generalized Models and Efficient Algorithms Through Structured State Space Dualitycited by 1,336
- 2018Unified Perceptual Parsing for Scene Understandingcited by 1,271
- 2017Random Erasing Data Augmentationcited by 1,239
- 2024Vision Mamba: Efficient Visual Representation Learning with Bidirectional State Space Modelcited by 1,056
- 2024VMamba: Visual State Space Modelcited by 969
- 2020Designing Network Design Spacescited by 960
- 2024WorldSimBench: Towards Video Generation Models as World Simulatorscited by 881
- 2018CCNet: Criss-Cross Attention for Semantic Segmentationcited by 718
- 2023Retentive Network: A Successor to Transformer for Large Language Modelscited by 613
- 2021CSWin Transformer: A General Vision Transformer Backbone with Cross-Shaped Windowscited by 527
- 2022MaxViT: Multi-Axis Vision Transformercited by 476
- 2021Conditional Positional Encodings for Vision Transformerscited by 406
- 2024MambaIR: A Simple Baseline for Image Restoration with State-Space Modelcited by 352
- 2024VideoMamba: State Space Model for Efficient Video Understandingcited by 328
- 2021CMT: Convolutional Neural Networks Meet Vision Transformerscited by 310
- 2022Neighborhood Attention Transformercited by 239
- 2024LocalMamba: Visual State Space Model with Windowed Selective Scancited by 236
- 2024MambaVision: A Hybrid Mamba-Transformer Vision Backbonecited by 224
- 2024PointMamba: A Simple State Space Model for Point Cloud Analysiscited by 167
- 2023BiFormer: Vision Transformer with Bi-Level Routing Attentioncited by 151
- 2021MPViT: Multi-Path Vision Transformer for Dense Predictioncited by 122
- 2024Demystify Mamba in Vision: A Linear Attention Perspectivecited by 102
- 2022Inception Transformercited by 99
- 2024MambaIRv2: Attentive State Space Restorationcited by 94
- 2024RS-Mamba for Large Remote Sensing Image Dense Predictioncited by 81
- 2024DiM: Diffusion Mamba for Efficient High-Resolution Image Synthesiscited by 72
- 2023RMT: Retentive Networks Meet Vision Transformerscited by 68
- 2024Voxel Mamba: Group-Free State Space Models for Point Cloud based 3D Object Detectioncited by 66
- 2024Multi-Scale VMamba: Hierarchy in Hierarchy Visual State Space Modelcited by 62
- 2023TransNeXt: Robust Foveal Visual Perception for Vision Transformerscited by 61
- 2024FreqMamba: Viewing Mamba from a Frequency Perspective for Image Derainingcited by 57
50 most cited of 55 All 55 (JSON)
Built on by
Citing papers per year: 2026: 1.
1 paper.
- 2026Rotation Equivariant Mamba for Vision Taskscited by 1
- 2026Rotation Equivariant Mamba for Vision Tasks10 Mar 2026
Similar, not cited
Close in wording, no citation either way
- 2024FlashMask: Efficient and Rich Mask Extension of FlashAttention
- 2026Spatial Priors via Space Filling Curves for Small and Limited Data Vision Transformers
- 2026SAFE-DiT: Semantics-Aware Fast-path Execution for High-Resolution Diffusion Transformers
- 2025A2Mamba: Attention-augmented State Space Models for Visual Recognition
- 2025ViT-Linearizer: Distilling Quadratic Knowledge into Linear-Time Vision Models
- 2025Training-free Token Reduction for Vision Mamba
- 2026ViT-5: Vision Transformers for The Mid-2020s
- 2025MaTVLM: Hybrid Mamba-Transformer for Efficient Vision-Language Modeling