Skip to main content
QUICK REVIEW

[Paper Review] S4ND: Modeling Images and Videos as Multidimensional Signals Using State Spaces

Éric Nguyen, Karan Goel|arXiv (Cornell University)|Oct 12, 2022
Domain Adaptation and Few-Shot LearningComputer Science8 citations
TL;DR

S4ND introduces a multidimensional state space model that treats images and videos as continuous, multidimensional signals, extending the S4 framework to 1D, 2D, and 3D data. It achieves state-of-the-art performance on ImageNet-1k and HMDB-51 by replacing attention or convolution layers with S4ND, enabling resolution-invariant, globally receptive, bandlimited kernels with strong zero-shot generalization across resolutions.

ABSTRACT

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 imes 8$ and tested on $32 imes 32$ images. When trained with progressive resizing, S4ND comes within $\sim 1\%$ of a high-resolution model while training $22\%$ faster.

Motivation & Objective

  • To develop a continuous-signal modeling approach for visual data that treats images and videos as inherently continuous, multidimensional signals rather than discrete pixels.
  • To extend the success of 1D state space models (S4) to 2D and 3D visual data, enabling global, resolution-invariant modeling of spatial and temporal dependencies.
  • To overcome aliasing artifacts in cross-resolution generalization by introducing a bandlimiting mechanism that masks high-frequency components in learned kernels.
  • To enable efficient, drop-in replacement of convolutional and self-attention layers in modern vision architectures with minimal training changes.
  • To demonstrate strong performance on large-scale vision benchmarks, including ImageNet-1k and HMDB-51, under zero-shot and progressive resizing settings.

Proposed method

  • S4ND extends 1D SSMs by applying independent SSMs along each spatial or temporal dimension, forming a multidimensional PDE governed by a tensor product of 1D state space systems.
  • The model uses a structured parameterization of the state space matrix C to factorize the kernel into low-rank tensor products of 1D kernels, enabling efficient computation and interpretation as independent S4 operations per dimension.
  • It employs a continuous convolutional kernel derived from S4’s parameterization, where the kernel is a linear combination of basis functions (e.g., Fourier modes) controlled by matrices A, B, and Δ (step size).
  • A bandlimiting mechanism is introduced by masking high-frequency coefficients in the kernel response, ensuring smoothness and preventing aliasing during resolution changes.
  • The model supports both global context (kernel spans full input) and local inductive bias (via learnable window size), enabling flexible modeling of long-range and local dependencies.
  • S4ND is deployed as a drop-in replacement for Conv2D or self-attention layers in ViT and ConvNeXt, with minimal architectural or training procedure changes.

Experimental results

Research questions

  • RQ1Can a continuous-signal modeling approach based on state space models achieve competitive performance on large-scale image and video classification benchmarks?
  • RQ2How does S4ND generalize to unseen resolutions without fine-tuning, and what mechanisms enable this zero-shot resolution generalization?
  • RQ3What is the impact of bandlimiting on kernel smoothness and cross-resolution performance in visual models?
  • RQ4Can S4ND effectively replace both convolutional and attention layers in modern vision architectures while maintaining or improving performance?
  • RQ5How does progressive resizing training affect S4ND’s performance and training speed compared to high-resolution baselines?

Key findings

  • On ImageNet-1k, S4ND exceeds Vision Transformer by 1.5% top-1 accuracy when using a 1D sequence of patches, and matches ConvNeXt performance in 2D image modeling.
  • For video activity classification on HMDB-51, S4ND improves performance by 4% over an inflated 3D ConvNeXt baseline when using a pretrained S4-2D-ConvNeXt backbone.
  • With bandlimiting, S4ND achieves 40% higher zero-shot resolution generalization on CIFAR-10 when training on 8×8 and testing on 32×32 images, outperforming Conv2D.
  • When trained with progressive resizing, S4ND achieves within ~1% of a high-resolution model while training 22% faster than a standard high-res baseline.
  • S4ND’s implicit continuous convolutional kernels are resolution-invariant by construction, enabling global context and smooth, generalized feature learning across scales.
  • The model’s core computational operations (FFT, pointwise, inverse FFT) account for 65% of runtime, suggesting significant speedups are possible with memory-optimized, fused implementations.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.