paper-with-me

Papers

Focal Attention for Long-Range Interactions in Vision Transformers

2021-12-01 · NeurIPS 2021 12 · Jianwei Yang, Chunyuan Li, Pengchuan Zhang, Xiyang Dai, Bin Xiao, Lu Yuan, Jianfeng Gao

Recently, Vision Transformer and its variants have shown great promise on various computer vision tasks. The ability to capture local and global visual dependencies through self-attention is the key to its success. But it also brings challenges due to quadratic computational overhead, especially for the high-resolution vision tasks(e.g., object detection). Many recent works have attempted to reduce the cost and improve model performance by applying either coarse-grained global attention or fine-grained local attention. However, both approaches cripple the modeling power of the original self-attention mechanism of multi-layer Transformers, leading to sub-optimal solutions. In this paper, we present focal attention, a new attention mechanism that incorporates both fine-grained local and coarse-grained global interactions. In this new mechanism, each token attends its closest surrounding tokens at the fine granularity and the tokens far away at a coarse granularity and thus can capture both short- and long-range visual dependencies efficiently and effectively. With focal attention, we propose a new variant of Vision Transformer models, called Focal Transformers, which achieve superior performance over the state-of-the-art (SoTA) Vision Transformers on a range of public image classification and object detection benchmarks. In particular, our Focal Transformer models with a moderate size of 51.1M and a large size of 89.8M achieve 83.6% and 84.0%Top-1 accuracy, respectively, on ImageNet classification at 224×224. When employed as the backbones, Focal Transformers achieve consistent and substantial improvements over the current SoTA Swin Transformers [44] across 6 different object detection methods. Our largest Focal Transformer yields58.7/59.0boxmAPs and50.9/51.3mask mAPs on COCO mini-val/test-dev, and55.4mIoU onADE20K for semantic segmentation, creating new SoTA on three of the most challenging computer vision tasks.

📄 PDF Abstract BibTeX

Code (1)

microsoft/Focal-Transformer pytorch

Tasks

image-classificationImage Classificationobject-detectionObject DetectionSemantic Segmentation

Methods 이 논문이 사용한 방법론

Multi-Head Attention 설명 없음
Attention 설명 없음
Linear Layer A Linear Layer is a projection $\mathbf{XW + b}$.
Focal Transformers The focal self-attention is built to make Transformer layers scalable to high-resolution inputs. Instead of attending all tokens at fine-grain, the approach attends the…
Adam 설명 없음
Position-Wise Feed-Forward Layer 설명 없음
Absolute Position Encodings Absolute Position Encodings are a type of position embeddings for [Transformer-based models] where positional encodings are…
Label Smoothing Label Smoothing is a regularization technique that introduces noise for the labels. This accounts for the fact that datasets may have mistakes in them, so maximizing the…

Similar Papers 제목 키워드 기반

Focal Self-attention for Local-Global Interactions in Vision Transformers

2021-07-01 · Jianwei Yang, Chunyuan Li, Pengchuan Zhang, Xiyang Dai 외

Recently, Vision Transformer and its variants have shown great promise on various computer vision tasks. The ability of capturing short- and long-range visual dependencies through self-attention is arguably the main sour…

image-classificationImage ClassificationInstance Segmentationobject-detection+2

Focal Modulation Networks

2022-03-22 · Jianwei Yang, Chunyuan Li, Xiyang Dai, Lu Yuan 외

We propose focal modulation networks (FocalNets in short), where self-attention (SA) is completely replaced by a focal modulation mechanism for modeling token interactions in vision. Focal modulation comprises three comp…

image-classificationImage ClassificationObject DetectionPanoptic Segmentation+2

Focal-WNet: An Architecture Unifying Convolution and Attention for Depth Estimation

2022-07-18 · I2CT 2022 7 · Gouthamaan Manimaran, Swaminathan J

Extracting depth information from a single RGB image is a fundamental and challenging task in computer vision with wide-ranging applications. This task cannot be solved using traditional methods like multi-view geometry …

DecoderDepth EstimationMonocular Depth Estimation

Focal and Global Spatial-Temporal Transformer for Skeleton-based Action Recognition

2022-10-06 · Zhimin Gao, Peitao Wang, Pei Lv, Xiaoheng Jiang 외

Despite great progress achieved by transformer in various vision tasks, it is still underexplored for skeleton-based action recognition with only a few attempts. Besides, these methods directly calculate the pair-wise gl…

Action RecognitionSkeleton Based Action Recognition

Hybrid Focal and Full-Range Attention Based Graph Transformers

2023-11-08 · Minhong Zhu, Zhenhao Zhao, Weiran Cai

The paradigm of Transformers using the self-attention mechanism has manifested its advantage in learning graph-structured data. Yet, Graph Transformers are capable of modeling full range dependencies but are often defici…