Research map / Architectures and efficiency / Attention and transformers
PolaFormer: Polarity-aware Linear Attention for Vision Transformers
Read the paperCheck your idea against 108,967 papers
AI-extracted summary. Written by AI from the paper's full text. Numbers and claims can be wrong or missing context, so check the paper before you cite or build on it.
Proposes PolaFormer, a linear attention for vision transformers that splits query-key interactions by polarity (same- vs opposite-signed) and rescales with a learnable power function to lower attention entropy.
Problem
Linear attention approximations of softmax lose negative query-key interactions (due to non-negative feature maps) and produce high-entropy, uniform attention maps, reducing expressiveness on vision tasks.
Approach
Decompose q and k into positive and negative parts, compute same-signed and opposite-signed interactions in two value half-streams with learnable sign-aware coefficient matrices G^s and G^o, and apply a learnable channel-wise power function (exponent >1) that provably reduces positive sequence entropy.
Key results
- DeiT-T-PolaFormer reaches 74.6% top-1 on ImageNet-1K, +2.4 over DeiT-T (72.2%), and Swin-T-PolaFormer reaches 82.6% vs 81.2% for Swin-T.
- PVT-T-PolaFormer gains +3.7 top-1 on ImageNet and +4.6 AP^b_75 on COCO with Mask R-CNN over PVT-T baseline.
- PolaFormer_alpha=3 achieves 60.72% average on Long Range Arena, the highest among listed linear attention models (Hedgehog 59.66%).
Measured effects reported in the paper
| What was changed | Where | Measured | Effect |
|---|---|---|---|
| Replace DeiT-T self-attention with PolaFormer | DeiT-T · ImageNet-1K | Top-1 accuracy (%): 72.2 -> 74.6 | Helped |
| Replace Swin-T self-attention with PolaFormer | Swin-T · ImageNet-1K | Top-1 accuracy (%): 81.2 -> 82.6 | Helped |
| Replace PVT-T self-attention with PolaFormer | PVT-T · ImageNet-1K | Top-1 accuracy (%): 75.1 -> 78.8 (+3.7) | Helped |
| Replace PVT-S self-attention with PolaFormer | PVT-S · ImageNet-1K | Top-1 accuracy (%): 79.8 -> 81.9 (+2.1) | Helped |
| Replace PVTv2-b0 self-attention with PolaFormer | PVTv2-b0 · ImageNet-1K | Top-1 accuracy (%): 70.5 -> 72.3 (+1.8) | Helped |
| Replace PVTv2-b1 self-attention with PolaFormer | PVTv2-b1 · ImageNet-1K | Top-1 accuracy (%): 78.7 -> 80.2 (+1.5) | Helped |
| Replace Swin-S self-attention with PolaFormer | Swin-S · ImageNet-1K | Top-1 accuracy (%): 83.0 -> 83.6 (+0.6) | Helped |
| Replace Swin-B self-attention with PolaFormer | Swin-B · ImageNet-1K | Top-1 accuracy (%): 83.5 -> 83.8 (+0.3) | Helped |
| Replace PVT-T self-attention with PolaFormer | PVT-T with RetinaNet · COCO, 1× | APᵇ: 36.7 -> 39.5 (+2.8) | Helped |
| Replace PVT-T self-attention with PolaFormer | PVT-T with SemanticFPN · ADE20K | mIoU (%): 35.7 -> 38.3 (+2.6) | Helped |
| Replace Swin-T self-attention with PolaFormer | Swin-T with UperNet · ADE20K | mIoU (%): 44.5 -> 45.8 (+1.3) | Helped |
| Vary the power-function scaling factor α across 3, 5, and 7 (ablation) | PolaFormer · LRA | Accuracy (%): 60.72; 60.47; 60.57 | Mixed |
Surprising findings
- Replacing ReLU-style feature maps with the learnable power function does not uniformly help; the paper reports results are relatively insensitive to alpha (within 2%) on LRA classification.
- Detection gains (up to +4.6 AP) are larger than classification gains, which the authors attribute to needs for fine-grained attention maps.
Limitations
- Gains on classification with larger models are small (e.g., Swin-B +0.3).
- Requires depthwise convolution to resolve low-rank degeneracy; the rank analysis is motivational rather than fully quantified.
- Theorem uses an independence assumption across dimensions and only shows existence of an entropy-reducing function class, with power function chosen for simplicity.
Experimental setup
Datasets: ImageNet-1K COCO ADE20K Long Range Arena
Benchmarks: ImageNet-1K COCO ADE20K Long Range Arena
Metrics: Top-1 accuracy box AP mask AP mIoU accuracy throughput peak memory
Baselines: DeiT Swin Transformer PVT PVTv2 FLatten Transformer Hydra Attention Efficient Attention Skyformer Hedgehog Performer Cosformer
Builds on: linear attention FLatten Transformer Skyformer Swin Transformer PVT
Closest papers by meaning
- Bridging the Divide: Reconsidering Softmax and Linear Attention (NeurIPS 2024 · similarity 0.88)
- ZeroS: Zero‑Sum Linear Attention for Efficient Transformers (NeurIPS 2025 · similarity 0.87)
- Degrees of Freedom for Linear Attention: Distilling Softmax Attention with Optimal Feature Efficiency (NeurIPS 2025 · similarity 0.86)
- Breaking the Low-Rank Dilemma of Linear Attention (CVPR 2025 · similarity 0.86)
- MLP Can Be A Good Transformer Learner (CVPR 2024 · similarity 0.86)
- Mixture-of-Top-$k$ Attention: Efficient Attention as Scalable Fast Weights (NeurIPS 2026 · similarity 0.85)
Writing a paper in this area? scime draft is a free LaTeX editor with AI included, real-time co-authors and a check of your references and venue rules before you submit. It also imports OpenAI Prism projects.
