paper-with-me

Papers

Focal Modulation Networks

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

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 components: (i) hierarchical contextualization, implemented using a stack of depth-wise convolutional layers, to encode visual contexts from short to long ranges, (ii) gated aggregation to selectively gather contexts for each query token based on its content, and (iii) element-wise modulation or affine transformation to inject the aggregated context into the query. Extensive experiments show FocalNets outperform the state-of-the-art SA counterparts (e.g., Swin and Focal Transformers) with similar computational costs on the tasks of image classification, object detection, and segmentation. Specifically, FocalNets with tiny and base size achieve 82.3% and 83.9% top-1 accuracy on ImageNet-1K. After pretrained on ImageNet-22K in 224 resolution, it attains 86.5% and 87.3% top-1 accuracy when finetuned with resolution 224 and 384, respectively. When transferred to downstream tasks, FocalNets exhibit clear superiority. For object detection with Mask R-CNN, FocalNet base trained with 1\times outperforms the Swin counterpart by 2.1 points and already surpasses Swin trained with 3\times schedule (49.0 v.s. 48.5). For semantic segmentation with UPerNet, FocalNet base at single-scale outperforms Swin by 2.4, and beats Swin at multi-scale (50.5 v.s. 49.7). Using large FocalNet and Mask2former, we achieve 58.5 mIoU for ADE20K semantic segmentation, and 57.9 PQ for COCO Panoptic Segmentation. Using huge FocalNet and DINO, we achieved 64.3 and 64.4 mAP on COCO minival and test-dev, respectively, establishing new SoTA on top of much larger attention-based models like Swinv2-G and BEIT-3. Code and checkpoints are available at https://github.com/microsoft/FocalNet.

📄 PDF Abstract BibTeX arXiv:2203.11926

Code (9)

microsoft/FocalNet 공식 구현 pytorch
2024-MindSpore-1/Code2/tree/main/model-1/fnet mindspore
MindCode-4/code-3/tree/main/focalnet mindspore
PaddlePaddle/PaddleDetection paddle
PaddlePaddle/PaddleYOLO paddle
Shiro-LK/focalnet-tf tf
keras-team/keras-io/blob/master/examples/vision/focal_modulation_network.py tf
shinya7y/UniverseNet pytorch
https://gitlab.com/birder/birder pytorch

Tasks

image-classificationImage ClassificationObject DetectionPanoptic SegmentationSegmentationSemantic Segmentation

Methods 이 논문이 사용한 방법론

Multi-Head Attention 설명 없음
Attention 설명 없음
Layer Normalization Unlike batch normalization, Layer Normalization directly estimates the normalization statistics from the summed inputs…
Linear Layer A Linear Layer is a projection $\mathbf{XW + b}$.
Dense Connections Dense Connections, or Fully Connected Connections, are a type of layer in a deep neural network that use a linear operation where every input is connected to every output…
Residual Connection 설명 없음
Vision Transformer The Vision Transformer, or ViT, is a model for image classification that employs a Transformer-like architecture over…
RPN A Region Proposal Network, or RPN, is a fully convolutional network that simultaneously predicts object bounds and objectness scores at each position. The RPN is trained…

Similar Papers 제목 키워드 기반

Video-FocalNets: Spatio-Temporal Focal Modulation for Video Action Recognition

2023-07-13 · ICCV 2023 1 · Syed Talal Wasim, Muhammad Uzair Khattak, Muzammal Naseer, Salman Khan 외

Recent video recognition models utilize Transformer models for long-range spatio-temporal context modeling. Video transformer designs are based on self-attention that can model global context at a high computational cost…

Action RecognitionTemporal Action LocalizationVideo Recognition

Video Capsule Endoscopy Classification using Focal Modulation Guided Convolutional Neural Network

2022-06-16 · Abhishek Srivastava, Nikhil Kumar Tomar, Ulas Bagci, Debesh Jha

Video capsule endoscopy is a hot topic in computer vision and medicine. Deep learning can have a positive impact on the future of video capsule endoscopy technology. It can improve the anomaly detection rate, reduce phys…

Inductive LearningMedical Image Classification

Generalizable Federated Learning using Client Adaptive Focal Modulation

2025-08-14 · Tajamul Ashraf, Iqra Altaf Gillani arxiv

Federated learning (FL) has proven essential for privacy-preserving, collaborative training across distributed clients. Our prior work, TransFed, introduced a robust transformer-based FL framework that leverages a learn-…

Federated Learning

FocalCodec: Low-Bitrate Speech Coding via Focal Modulation Networks

2025-02-06 · Luca Della Libera, Francesco Paissan, Cem Subakan, Mirco Ravanelli

Large language models have revolutionized natural language processing through self-supervised pretraining on massive datasets. Inspired by this success, researchers have explored adapting these methods to speech by discr…

ResynthesisVoice Conversion

Weakly supervised segmentation of intracranial aneurysms using a novel 3D focal modulation UNet

2023-08-06 · Amirhossein Rasoulian, Arash Harirpoush, Soorena Salari, Yiming Xiao

Accurate identification and quantification of unruptured intracranial aneurysms (UIAs) is crucial for the risk assessment and treatment of this cerebrovascular disorder. Current 2D manual assessment on 3D magnetic resona…

Image SegmentationLearning with coarse labelsMedical Image SegmentationSegmentation+3