arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2210.06583cs.CVcs.LGeess.IV
收藏

S4ND:使用状态空间将图像和视频建模为多维信号

S4ND: Modeling Images and Videos as Multidimensional Signals Using State Spaces

Stanford University(斯坦福大学)

Eric Nguyen, Karan Goel, Albert Gu, Gordon W. Downs, Preey Shah, Tri Dao, Stephen A. Baccus, Christopher Ré

摘要:

图像和视频等视觉数据通常被建模为固有连续的多维信号的离散化。现有的连续信号模型试图通过对视觉的潜在信号(例如,图像)数据。然而,这些模型在实际的视觉任务(如大规模图像和视频分类)上还无法实现有竞争力的性能。基于最近对深度状态空间模型(SSM)的研究,我们提出了S4 ND,这是一个新的多维SSM层,它将SSM的连续信号建模能力扩展到包括图像和视频在内的多维数据。我们表明,S4 ND可以模拟大规模的视觉数据在$1$ D,$2$ D和$3$ D连续多维信号,并通过简单地交换Conv 2D和自我注意层与S4 ND层在现有的最先进的模型表现出强大的性能。在ImageNet-1 k上,当使用$1$ D序列的补丁进行训练时,S4 ND的性能超过Vision Transformer基线的性能$1.5\%$,并且在$2$ D中建模图像时与ConvNeXt相匹配。对于视频,S4 ND通过$4\%$改进了HMDB-51上活动分类中的膨胀$3$ D ConvNeXt。S4 ND隐式地学习全局的、连续的卷积核,这些卷积核在构造时是分辨率不变的,提供了一种归纳偏差,可以在多个分辨率上进行泛化。通过对S4进行简单的限带修改以克服混叠,S4 ND实现了强大的zero-shot(在训练时不可见)分辨率性能,当在$8 \times 8$上训练并在$32 \times 32$图像上测试时,在CIFAR-10上通过$40\%$优于基线Conv 2D。当使用渐进式训练时,S4 ND在高分辨率模型的$\sim 1\%$范围内,同时训练$22\%$更快。

英文摘要:

Visual data such as images and videos are typically modeled as discretizations of inherently continuous, multidimensional signals. Existing continuous-signal models attempt to exploit this fact by modeling the underlying signals of visual (e.g., image) data directly. However, these models have not yet been able to achieve competitive performance on practical vision tasks such as large-scale image and video classification. Building on a recent line of work on deep state space models (SSMs), we propose S4ND, a new multidimensional SSM layer that extends the continuous-signal modeling ability of SSMs to multidimensional data including images and videos. We show that S4ND can model large-scale visual data in $1$D, $2$D, and $3$D as continuous multidimensional signals and demonstrates strong performance by simply swapping Conv2D and self-attention layers with S4ND layers in existing state-of-the-art models. On ImageNet-1k, S4ND exceeds the performance of a Vision Transformer baseline by $1.5\%$ when training with a $1$D sequence of patches, and matches ConvNeXt when modeling images in $2$D. For videos, S4ND improves on an inflated $3$D ConvNeXt in activity classification on HMDB-51 by $4\%$. S4ND implicitly learns global, continuous convolutional kernels that are resolution invariant by construction, providing an inductive bias that enables generalization across multiple resolutions. By developing a simple bandlimiting modification to S4 to overcome aliasing, S4ND achieves strong zero-shot (unseen at training time) resolution performance, outperforming a baseline Conv2D by $40\%$ on CIFAR-10 when trained on $8 \times 8$ and tested on $32 \times 32$ images. When trained with progressive resizing, S4ND comes within $\sim 1\%$ of a high-resolution model while training $22\%$ faster.

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

↑