TL;DR
This paper introduces Convolutional State Space Models (ConvSSM) and an efficient variant, ConvS5, which combine the spatial modeling strengths of Convolutional RNNs with the long-range temporal capabilities of State Space Models (SSMs). ConvS5 achieves linear scaling with sequence length and subquadratic parallelization, allowing it to train $3\times$ faster than ConvLSTMs and generate samples over $400\times$ faster than Transformers on long-horizon video tasks.
What Problem Does This Paper Address?
Modeling long spatiotemporal sequences—like high-resolution video over hundreds or thousands of frames—is typically a "pick two" struggle between spatial detail, long-range memory, and computational efficiency.
- ConvRNNs (e.g., ConvLSTM): These excel at maintaining spatial structure using tensor-valued states and convolutions. However, they are inherently sequential, making them slow to train on long sequences, and they struggle with vanishing gradients over extended horizons.
- Transformers: These offer excellent parallelization during training. However, their self-attention mechanism scales quadratically ($O(L^2)$) with sequence length $L$. To handle video, they often require heavy compression into "tokens," which sacrifices spatial resolution.
- State Space Models (SSMs): Recent models like S4 and S5 have revolutionized 1D sequence modeling by capturing dependencies across thousands of steps with linear scaling. However, adapting them to high-dimensional spatiotemporal data while preserving the intuitive "convolutional" nature of video processing has remained an open challenge.
The authors bridge these gaps by creating a framework that is as spatially aware as a ConvRNN but as efficient and capable of long-term memory as a deep SSM.
Methods
The core innovation is the Convolutional State Space Model (ConvSSM). Instead of the matrix-vector multiplications used in standard SSMs, ConvSSMs use spatial convolutions to update tensor-valued states.
Key Technical Components:
- Parallelizable Recurrence: The authors prove that linear convolutional recurrences can be computed in parallel using parallel scans. By defining a binary associative operator for convolutions, they reduce the sequential training bottleneck from $O(L)$ to $O(\log L)$ parallel depth.
- Pointwise State Kernels: To prevent convolutional kernels from growing uncontrollably during the parallel scan, the authors use $1 \times 1$ kernels for the state-to-state transition. This keeps the math tractable while allowing the receptive field to grow in "depth" as layers are stacked.
- The SSM Equivalence: A major theoretical contribution is proving that a ConvSSM with pointwise kernels is mathematically equivalent to a large, structured SSM.
This equivalence allows the authors to "import" successful initialization strategies (like HiPPO) and discretization techniques from the SSM literature, which are essential for stable training and capturing long-range dependencies.
Key Insights and Ideas
- Associativity is the Key to Speed: The breakthrough realization is that because convolutions are associative, the temporal dimension of a video can be processed using the same parallel prefix sum (scan) algorithms used for simple addition.
- Inheriting "Memory" via Math: By proving the equivalence to SSMs, the authors show that ConvS5 doesn't just happen to work; it inherits the rigorous mathematical foundations of models designed specifically to solve the "vanishing gradient" problem in long sequences.
- Efficiency without Tokenization: Unlike Transformers, ConvS5 can process frames without necessarily compressing them into a small number of discrete tokens, preserving more spatial nuance for the dynamical system to work with.
Key Results
ConvS5 demonstrates a superior balance of speed and performance across the board. Theoretically, ConvS5 matches the $O(1)$ inference cost and $O(L)$ training cost of RNNs while regaining the parallelizability of Transformers.
- Moving-MNIST: ConvS5 significantly outperformed both ConvLSTM and Transformers. On the extended 600-frame task, it achieved the best scores in FVD (Fréchet Video Distance) and PSNR.
- Empirical Speedups: In head-to-head tests, ConvS5 trained $3\times$ faster than ConvLSTM. Most impressively, it generated samples over $400\times$ faster than the Transformer baseline, which inherently slows down as the generated sequence grows.
- 3D Environments: ConvS5 matched or exceeded state-of-the-art results (like the TECO model) on challenging video prediction tasks from DMLab, Minecraft, and Habitat, proving it can handle complex, realistic visual dynamics.
Limitations and Future Work
- Implementation Overhead: While ConvS5 has better theoretical scaling, current highly-optimized Transformer implementations (like FlashAttention) mean that ConvS5 doesn't show massive speedups at shorter sequence lengths (300-600 frames). The benefits will become more dominant as researchers push toward tens of thousands of frames.
- Activation Blocks: The current model uses standard ResNet blocks for non-linearity. Swapping these for more modern blocks (like ConvNeXt or S4ND) could further boost performance.
- Irregular Sampling: A unique property of SSMs is their continuous-time formulation. Future work could leverage this to handle videos with variable frame rates or missing frames without retraining.
Summary updated