Skip to main content
QUICK REVIEW

[论文解读] Local-Global Attention: An Adaptive Mechanism for Multi-Scale Feature Integration

Yifan Shao|arXiv (Cornell University)|Nov 14, 2024
Image Retrieval and Classification TechniquesComputer Science被引用 3
一句话总结

本文提出了一种新颖的注意力机制——局部-全局注意力(Local-Global Attention),通过多尺度卷积、位置编码和可学习的 $α$ 参数,动态平衡局部与全局特征表示。该方法在多个目标检测基准上实现了最先进性能,尤其在小目标和多类别检测任务中表现优异,且计算开销极低。

ABSTRACT

In recent years, attention mechanisms have significantly enhanced the performance of object detection by focusing on key feature information. However, prevalent methods still encounter difficulties in effectively balancing local and global features. This imbalance hampers their ability to capture both fine-grained details and broader contextual information-two critical elements for achieving accurate object detection.To address these challenges, we propose a novel attention mechanism, termed Local-Global Attention, which is designed to better integrate both local and global contextual features. Specifically, our approach combines multi-scale convolutions with positional encoding, enabling the model to focus on local details while concurrently considering the broader global context. Additionally, we introduce a learnable parameters, which allow the model to dynamically adjust the relative importance of local and global attention, depending on the specific requirements of the task, thereby optimizing feature representations across multiple scales.We have thoroughly evaluated the Local-Global Attention mechanism on several widely used object detection and classification datasets. Our experimental results demonstrate that this approach significantly enhances the detection of objects at various scales, with particularly strong performance on multi-class and small object detection tasks. In comparison to existing attention mechanisms, Local-Global Attention consistently outperforms them across several key metrics, all while maintaining computational efficiency.

研究动机与目标

  • 解决现有目标检测注意力机制中局部与全局特征表示失衡的问题。
  • 通过增强细粒度细节和上下文理解,提升小目标和多类别目标的检测性能。
  • 开发一种计算效率高的注意力机制,可轻松集成到 MobileNetV3 和 ResNet 等现有架构中。
  • 通过自适应的 $α$ 参数实现局部与全局特征的动态、可学习加权,以适应不同任务需求。
  • 确保在 COCO、VOC、VisDrone、DOTA 和 GWHD 等多样化数据集上的鲁棒性与可迁移性。

提出的方法

  • 使用小卷积核的多尺度卷积,提取用于局部注意力的局部化、高分辨率特征。
  • 结合大卷积核与位置编码,捕获更广泛的全局上下文,用于全局注意力。
  • 通过独立的卷积路径分别生成局部和全局注意力图。
  • 利用可学习的 $α$ 参数融合两种注意力图,动态调节局部与全局特征的贡献。
  • 将统一的注意力图集成到网络中进行特征优化,实现对信息性特征的选择性关注。
  • 设计模块化且轻量化的机制,支持与 YOLOv8 等模型中 MobileNetV3 主干网络的即插即用式集成。
Figure 1 : The mAP@50 and mAP@50:95 results on the COCO2017 [ 16 ] and VOC2007 [ 6 ] datasets compare the performance of MobileNetV3 [ 10 ] with its enhanced version using the Local-Global Attention mechanism. On COCO2017 [ 16 ] , all models were trained for 20 epochs using the Adam optimizer, while
Figure 1 : The mAP@50 and mAP@50:95 results on the COCO2017 [ 16 ] and VOC2007 [ 6 ] datasets compare the performance of MobileNetV3 [ 10 ] with its enhanced version using the Local-Global Attention mechanism. On COCO2017 [ 16 ] , all models were trained for 20 epochs using the Adam optimizer, while

实验结果

研究问题

  • RQ1统一的注意力机制是否能在不牺牲计算效率的前提下,有效平衡局部与全局特征表示?
  • RQ2位置编码的引入在多尺度特征学习中如何增强模型的空间理解能力?
  • RQ3可学习的 $α$ 参数在多样化检测任务与数据集上能将性能提升到何种程度?
  • RQ4局部-全局注意力机制是否在小目标和多类别检测基准上持续优于 SE、CBAM 和 MHSA 等现有注意力模块?
  • RQ5在复杂、高分辨率场景(如航空图像检测的 DOTA、GWHDD 和细粒度数据集 TinyPerson、Fashion-MNIST)中,该机制的鲁棒性如何?

主要发现

  • 在 COCO2017 上,与 MobileNetV3 基线相比,局部-全局注意力将 mAP@50 提升 0.1,mAP@50-95 提升 0.7。
  • 在 VisDrone2019-DET 数据集上,其 mAP@50 相比基线绝对提升 0.4%,mAP@50-95 提升 0.3%。
  • 在 COCOminitrain 数据集上,其 mAP@50 达到 15.1,mAP@50-95 达到 9.08,优于所有基线模型,包括 MHSA 和 CBAM。
  • 在 DOTAv1.0 上,局部-全局注意力取得最高的 mAP@50-95 得分 32.8,较基线提升 0.4%。
  • 在 GWHD2020 上,其 mAP@50 达到 95.8,mAP@50-95 达到 60.1,分别较基线提升 0.3% 和 0.1%。
  • 该机制保持了极低的计算成本,参数量和 GFLOPs 增量微小,证实了其高效性与实际部署可行性。
Figure 2 : Local-global attention structure diagram
Figure 2 : Local-global attention structure diagram

阅读本论文

在 Nubint 阅读器中打开原文,边读边就任意段落提问。

在 Nubint 中阅读本论文

本解读由 AI 根据论文原文生成,引用前请核对原文。