我们提出了焦点调制网络(简称FocalNets),其中自我注意力(SA)完全被焦点调制机制所取代,用于对视觉中的令牌交互进行建模。焦点调制包括三个组件:(i)使用深度卷积层的堆栈实现的分层上下文化,以从短到长范围编码视觉上下文,(ii)门控聚合,以基于其内容选择性地收集每个查询令牌的上下文,以及(iii)元素调制或仿射变换,以将聚合的上下文注入查询。广泛的实验表明,FocalNets的性能优于最先进的SA对应物(例如,Swin和Focal Transformers)在图像分类、目标检测和分割任务上具有相似的计算成本。具体来说,具有微小和基本尺寸的FocalNets在ImageNet-1 K上实现了82.3%和83.9%的top-1准确率。在ImageNet-22 K上以224分辨率进行预训练后,当以224和384分辨率进行微调时,它分别达到了86.5%和87.3%的top-1准确率。当转移到下游任务时,FocalNets表现出明显的优势。对于使用Mask R-CNN的目标检测,使用1个\times训练的FocalNet基础比Swin对手高出2.1个点,并且已经超过了使用3个\times时间表训练的Swin(49.0 vs. 48.5)。对于使用UPerNet的语义分割,FocalNet在单尺度下的性能优于Swin 2.4,在多尺度下优于Swin(50.5 vs. 49.7)。使用大型FocalNet和Mask 2former,我们为ADE 20 K语义分割实现了58.5 mIoU,为COCO全景分割实现了57.9 PQ。使用巨大的FocalNet和DINO,我们在COCO minival和test-dev上分别实现了64.3和64.4 mAP,在更大的基于注意力的模型(如Swinv 2-G和BEIT-3)之上建立了新的SoTA。代码和检查点可在https://github.com/microsoft/FocalNet上获得。
英文摘要:
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.
Video-FocalNets: Spatio-Temporal Focal Modulation for Video Action Recognition
Mohamed bin Zayed University of AI(穆罕默德·本·扎耶德人工智能大学);Australian National University(澳大利亚国立大学);University of Central Florida(中佛罗里达大学);Linköping University(林雪平大学)
FoCal: Frequency-Oriented Cross-Modal Interaction and Spectral Calibration for Aerial Visible-Infrared Object Detection
Nanjing University of Science and Technology(南京理工大学);Shanghai Institute of Technical Physics, Chinese Academy of Sciences(中国科学院上海技术物理研究所);China Electronics Technology Group Corporation(中国电子科技集团公司)
FUN: A Focal U-Net Combining Reconstruction and Object Detection for Snapshot Spectral Imaging
School of Artificial Intelligence, Xidian University(西安电子科技大学人工智能学院);Changzhi Medical College(长治医学院);the Engineering Research Centre for Intelligent Data Assisted Diagnosis and Treatment in Shanxi Province(山西省智能数据辅助诊断与治疗工程研究中心);Uniwave Artificial Intelligence Technology Co., Ltd.(Uniwave人工智能科技有限公司)
Video Capsule Endoscopy Classification using Focal Modulation Guided Convolutional Neural Network
Indian Statistical Institute(印度统计研究所);Indira Gandhi National Open University(英迪拉·甘地国立开放大学);Feinberg School of Medicine, Northwestern University(西北大学范伯格医学院)
Focal Modulation and Bidirectional Feature Fusion Network for Medical Image Segmentation
Department of Computing, Abasyn University Islamabad Campus (AUIC)(阿巴斯扬大学伊斯兰堡校区计算机系);School of Computer Science and Informatics, De Montfort University(德蒙福特大学计算机科学与信息学学院);Naif Arab University for Security Sciences(纳夫阿拉伯安全科学大学);School of Computer Science and Engineering, University of New South Wales(新南威尔士大学计算机科学与工程学院);Center of Excellence in Precision Medicine and Digital Health, Chulalongkorn University(朱拉隆功大学精准医学与数字健康卓越中心);School of Biomedical Engineering, UNSW Sydney(新南威尔士大学悉尼分校生物医学工程学院)
DVFL-Net: A Lightweight Distilled Video Focal Modulation Network for Spatio-Temporal Action Recognition
Intelligent Systems, Computer Architecture, Analytics, and Security Laboratory (ISCAAS Lab), Department of Electrical Engineering and Computer Science, Florida Atlantic University(智能系统、计算机架构、分析与安全实验室(ISCAAS实验室),电气工程与计算机科学系,佛罗里达 Atlantic 大学);Intelligent Systems, Computer Architecture, Analytics, and Security Laboratory (ISCAAS Lab), Department of Electrical and Computer Engineering, Kansas State University(智能系统、计算机架构、分析与安全实验室(ISCAAS实验室),电气与计算机工程系,堪萨斯州立大学)
LSSF-Net: Lightweight Segmentation with Self-Awareness, Spatial Attention, and Focal Modulation
School of Electrical Engineering and Computer Science (SEECS), National University of Sciences & Technology (NUST)(国家科学技术大学电气与计算机科学学院);Department of Electrical Engineering, Abasyn University Islamabad Campus(阿巴辛大学伊斯兰堡校区电气工程系);School of Computer Science and Engineering, UNSW(新南威尔士大学计算机科学与工程学院)
TAFM-Net: A Novel Approach to Skin Lesion Segmentation Using Transformer Attention and Focal Modulation
School of Computer Science and Engineering, UNSW(新南威尔士大学计算机科学与工程学院);Abasyn University Islamabad Campus(阿巴辛大学伊斯兰堡校区);School of Computer Science(计算机学院);Department of Computing, Abasyn University Islamabad Campus(阿巴辛大学伊斯兰堡校区计算机系)
Learning Depth from Single Images with Deep Neural Network Embedding Focal Length
University of Chinese Academy of Sciences(中国科学院大学);Institute of Automation, Chinese Academy of Sciences(中国科学院自动化研究所);CAS Center for Excellence in Brain Science and Intelligence Technology, Chinese Academy of Sciences(中国科学院脑科学与智能技术卓越创新中心);University of Kansas(堪萨斯大学)
Enhancing Multi-view Stereo with Contrastive Matching and Weighted Focal Loss
Shenzhen International Graduate School, Tsinghua University(清华大学深圳国际研究生院);Research Institute of Tsinghua, Pearl River Delta(清华大学珠三角研究院)
近年来,基于学习的多视图立体视觉(MVS)方法取得了令人瞩目的进展,并超越了传统方法。然而,其准确性和完整性仍在努力。在本文中,我们提出了一种新的方法,以提高现有的网络的性能启发对比学习和特征匹配。首先,提出了一种对比度匹配损失(CML)算法,将深度维上正确匹配的点作为正样本,其他点作为负样本,根据特征的相似性计算对比度损失。我们进一步提出了一个加权焦点损失(WFL)更好的分类能力,这削弱了低置信度像素在不重要的地区的损失,根据预测的信心的贡献。在DTU,Tanks and Temples和BlendedMVS数据集上进行的大量实验表明,我们的方法实现了最先进的性能,并在基线网络上有显着的改进。
LFRA-Net: A Lightweight Focal and Region-Aware Attention Network for Retinal Vessel Segmentatio
School of Electronics, Electrical Engineering and Computer Science, Queen's University Belfast, United Kingdom(女王大学贝尔法斯特电子、电气工程与计算机科学学院);Department of Electrical Engineering, Abasyn University Islamabad Campus (AUIC), Islamabad, Pakistan(阿巴斯扬大学伊斯兰堡校区(AUIC)电子工程系)
Towards Automatic 3D Shape Instantiation for Deployed Stent Grafts: 2D Multiple-class and Class-imbalance Marker Segmentation with Equally-weighted Focal U-Net
Imperial College London(帝国理工学院);St Mary’s Hospital(圣玛丽医院)
Benchmarking MRI Representations for Deep Learning-Based Focal Cortical Dysplasia Segmentation
The University of Queensland(昆士兰大学);I-MED Radiology(I-MED放射学);Bennett University(贝内特大学);Indian Institute of Technology Madras(印度马德拉斯理工学院);University College of Engineering, Osmania University(奥斯曼尼亚大学工程学院);Mater Hospital(玛特医院);Royal Brisbane and Women’s Hospital(皇家布里斯班和妇女医院)