arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2409.09649cs.CV
收藏

SparX:一种用于分层视觉Mamba和Transformer网络的稀疏跨层连接机制

SparX: A Sparse Cross-Layer Connection Mechanism for Hierarchical Vision Mamba and Transformer Networks

School of Computing and Data Science, The University of Hong Kong(香港大学计算与数据科学学院)

Meng Lou, Yunxiang Fu, Yizhou Yu

AI总结:

本文提出了一种受视网膜神经节细胞启发的稀疏跨层连接机制SparX,通过交替使用神经节层和普通层实现高效的跨层特征聚合与交互,显著提升了视觉Mamba和Transformer网络的性能并降低了计算成本。

摘要:

由于动态状态空间模型(SSMs)在以线性时间计算复杂度捕获长距离依赖方面的能力,Mamba在NLP任务中展现出显著性能。这启发了基于Mamba的视觉模型的快速发展,在视觉识别任务中取得了可喜的成果。然而,此类模型无法通过特征聚合、交互和选择来跨层提炼特征。此外,由于计算成本高昂,为CNN或ViT设计的现有跨层特征聚合方法在基于Mamba的模型中并不实用。因此,本文旨在为视觉骨干网络引入一种高效的跨层特征聚合机制。受人类视觉系统中视网膜神经节细胞的启发,我们提出了一种新的稀疏跨层连接机制,称为SparX,以有效改善跨层特征交互和重用。具体而言,我们构建了两种不同类型的网络层:神经节层和普通层。前者具有更高的连接性和复杂度,能够以依赖于输入的方式实现多层特征聚合和交互。相比之下,后者具有较低的连接性和复杂度。通过交错这两种类型的层,我们设计了一系列具有稀疏跨连接层的新型视觉骨干网络,与同类网络相比,在模型大小、计算成本、内存成本和准确性之间实现了出色的权衡。例如,在参数更少的情况下,SparX-Mamba-T将VMamba-T的top-1准确率从82.5%提升至83.5%,而SparX-Swin-T的top-1准确率比Swin-T提高了1.3%。广泛的实验结果表明,我们的新连接机制在各种视觉任务上均具有卓越的性能和泛化能力。

英文摘要:

Due to the capability of dynamic state space models (SSMs) in capturing long-range dependencies with linear-time computational complexity, Mamba has shown notable performance in NLP tasks. This has inspired the rapid development of Mamba-based vision models, resulting in promising results in visual recognition tasks. However, such models are not capable of distilling features across layers through feature aggregation, interaction, and selection. Moreover, existing cross-layer feature aggregation methods designed for CNNs or ViTs are not practical in Mamba-based models due to high computational costs. Therefore, this paper aims to introduce an efficient cross-layer feature aggregation mechanism for vision backbone networks. Inspired by the Retinal Ganglion Cells (RGCs) in the human visual system, we propose a new sparse cross-layer connection mechanism termed SparX to effectively improve cross-layer feature interaction and reuse. Specifically, we build two different types of network layers: ganglion layers and normal layers. The former has higher connectivity and complexity, enabling multi-layer feature aggregation and interaction in an input-dependent manner. In contrast, the latter has lower connectivity and complexity. By interleaving these two types of layers, we design a new family of vision backbone networks with sparsely cross-connected layers, achieving an excellent trade-off among model size, computational cost, memory cost, and accuracy in comparison to its counterparts. For instance, with fewer parameters, SparX-Mamba-T improves the top-1 accuracy of VMamba-T from 82.5\% to 83.5\%, while SparX-Swin-T achieves a 1.3\% increase in top-1 accuracy compared to Swin-T. Extensive experimental results demonstrate that our new connection mechanism possesses both superior performance and generalization capabilities on various vision tasks.

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

↑