arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2403.18063cs.CVcs.AIcs.CLcs.LGcs.MM
收藏

Heracles:用于高分辨率图像与时间序列分析的混合SSM-Transformer模型

Heracles: A Hybrid SSM-Transformer Model for High-Resolution Image and Time-Series Analysis

Microsoft(微软公司);University of Bath(巴斯大学)

Badri N. Patro, Suhas Ranganath, Vinay P. Namboodiri, Vijay S. Agneeswaran

AI总结:

针对Transformer处理高分辨率图像效率低及SSM扩展不稳定且难捕捉局部信息的问题,提出混合模型Heracles,结合局部与全局SSM及注意力机制,在图像分类、迁移学习、实例分割和时间序列任务上均达到SOTA。

摘要:

Transformers通过DeIT、Swin、SVT、Biformer、STVit和FDVIT等改进彻底改变了图像建模任务。然而,这些模型通常面临归纳偏置和高二次复杂度的挑战,使其在处理高分辨率图像时效率较低。状态空间模型(SSM)如Mamba、V-Mamba、ViM和SiMBA为在计算机视觉任务中处理高分辨率图像提供了一种替代方案。这些SSM遇到两个主要问题。首先,当扩展到大型网络规模时,它们会变得不稳定。其次,尽管它们能高效捕捉图像中的全局信息,但在处理局部信息方面存在固有的困难。为了应对这些挑战,我们引入了Heracles,这是一种新颖的SSM,它集成了局部SSM、全局SSM和基于注意力的token交互模块。Heracles利用基于Hartely核的状态空间模型处理全局图像信息,利用局部卷积网络处理局部细节,并在深层利用注意力机制进行token交互。我们广泛的实验表明,Heracles-C-small在ImageNet数据集上取得了最先进的性能,top-1准确率达到84.5%。Heracles-C-Large和Heracles-C-Huge进一步将准确率分别提升至85.9%和86.4%。此外,Heracles在CIFAR-10、CIFAR-100、Oxford Flowers和Stanford Cars等数据集的迁移学习任务中,以及在MSCOCO数据集上的实例分割中表现出色。Heracles还在七个时间序列数据集上取得了最先进的结果,证明了其跨领域泛化处理频谱数据的能力,能够同时捕捉局部和全局信息,从而展现了其多功能性。项目页面可在此链接获取:https://github.com/badripatro/heracles

英文摘要:

Transformers have revolutionized image modeling tasks with adaptations like DeIT, Swin, SVT, Biformer, STVit, and FDVIT. However, these models often face challenges with inductive bias and high quadratic complexity, making them less efficient for high-resolution images. State space models (SSMs) such as Mamba, V-Mamba, ViM, and SiMBA offer an alternative to handle high resolution images in computer vision tasks. These SSMs encounter two major issues. First, they become unstable when scaled to large network sizes. Second, although they efficiently capture global information in images, they inherently struggle with handling local information. To address these challenges, we introduce Heracles, a novel SSM that integrates a local SSM, a global SSM, and an attention-based token interaction module. Heracles leverages a Hartely kernel-based state space model for global image information, a localized convolutional network for local details, and attention mechanisms in deeper layers for token interactions. Our extensive experiments demonstrate that Heracles-C-small achieves state-of-the-art performance on the ImageNet dataset with 84.5\% top-1 accuracy. Heracles-C-Large and Heracles-C-Huge further improve accuracy to 85.9\% and 86.4\%, respectively. Additionally, Heracles excels in transfer learning tasks on datasets such as CIFAR-10, CIFAR-100, Oxford Flowers, and Stanford Cars, and in instance segmentation on the MSCOCO dataset. Heracles also proves its versatility by achieving state-of-the-art results on seven time-series datasets, showcasing its ability to generalize across domains with spectral data, capturing both local and global information. The project page is available at this link.\url{https://github.com/badripatro/heracles}

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

↑