arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2601.07310cs.CV
收藏

重新审视通道和空间注意力的顺序:对顺序和并行设计的全面研究

Revisiting the Ordering of Channel and Spatial Attention: A Comprehensive Study on Sequential and Parallel Designs

Zhongming Liu, Bingbing Jiang

AI总结:

本文通过系统比较通道和空间注意力组合,揭示了不同数据规模下注意力设计的最优策略,并提出了基于场景的注意力模块构建指南。

摘要:

注意力机制已成为深度学习模型的核心组成部分,通道注意力和空间注意力是两种最具有代表性的架构。当前对其融合策略的研究主要分为顺序和并行两种范式,但选择过程仍主要依赖经验,缺乏系统分析和统一原则。我们系统地在统一框架下比较通道-空间注意力组合,构建了涵盖四个类别(顺序、并行、多尺度和残差)的18种拓扑结构评估套件。在两个视觉和九个医学数据集中,我们揭示了一个“数据规模-方法-性能”耦合定律:(1)在小样本任务中,“通道-多尺度空间”级联结构达到最佳性能;(2)在中等规模任务中,并行可学习融合架构表现出更优结果;(3)在大规模任务中,并行结构带有动态门控取得最佳性能。此外,实验表明,“空间-通道”顺序在细粒度分类中更稳定且有效,而残差连接在不同数据规模下缓解了消失梯度问题。因此,我们提出了基于场景的指南以构建未来的注意力模块。代码已开源于https://github.com/DWlzm。

英文摘要:

Attention mechanisms have become a core component of deep learning models, with Channel Attention and Spatial Attention being the two most representative architectures. Current research on their fusion strategies primarily bifurcates into sequential and parallel paradigms, yet the selection process remains largely empirical, lacking systematic analysis and unified principles. We systematically compare channel-spatial attention combinations under a unified framework, building an evaluation suite of 18 topologies across four classes: sequential, parallel, multi-scale, and residual. Across two vision and nine medical datasets, we uncover a "data scale-method-performance" coupling law: (1) in few-shot tasks, the "Channel-Multi-scale Spatial" cascaded structure achieves optimal performance; (2) in medium-scale tasks, parallel learnable fusion architectures demonstrate superior results; (3) in large-scale tasks, parallel structures with dynamic gating yield the best performance. Additionally, experiments indicate that the "Spatial-Channel" order is more stable and effective for fine-grained classification, while residual connections mitigate vanishing gradient problems across varying data scales. We thus propose scenario-based guidelines for building future attention modules. Code is open-sourced at https://github.com/DWlzm.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑