Abstract
State space models (SSMs) have emerged as a competitive alternative to transformers in various tasks. Their linear complexity and hidden-state recurrence make them particularly attractive for modeling long sequences, whereas attention becomes quadratically expensive. However, current training methods for video understanding are tailored towards transformers and fail to fully leverage the unique attributes of SSMs. For example, video models are often trained at a fixed resolution and video length to balance the quadratic scaling of attention cost against performance. Consequently, these models suffer from degraded performance when evaluated on videos with spatial and temporal resolutions unseen during training; a property we call spatio-temporal inflexibility. In the context of action recognition, this severely limits a model's ability to retain performance across both short- and long-form videos. Therefore, we propose a flexible training method that leverages and improves the inherent adaptability of SSMs. Our method samples videos at varying temporal and spatial resolutions during training and dynamically interpolates model weights to accommodate any spatio-temporal scale. This instills our SSM, which we call StretchySnake, with spatio-temporal flexibility and enables it to seamlessly handle videos ranging from short, fine-grained clips to long, complex activities. We introduce and compare five different variants of flexible training, and identify the most effective strategy for video SSMs. On short-action (UCF-101, HMDB-51) and long-action (COIN, Breakfast) benchmarks, StretchySnake outperforms transformer and SSM baselines alike by up to 28%, with strong adaptability to fine-grained actions (SSV2, Diving-48). Therefore, our method provides a simple drop-in training recipe that makes video SSMs more robust, resolution-agnostic, and efficient across diverse action recognition scenarios.
Abstract (translated)
状态空间模型(SSMs)在各种任务中已成为与变压器竞争的替代方案。它们具有线性复杂度和隐藏状态循环,特别适合于建模长序列,而注意力机制的成本会随着序列长度呈二次增长。然而,目前用于视频理解的训练方法大多针对变压器设计,并未能充分利用SSM的独特属性。例如,在固定分辨率和视频长度下对视频模型进行训练是为了在注意力成本的二次增长与性能之间取得平衡。因此,当这些模型在未经训练的空间和时间分辨率不同的视频上进行评估时,其性能会下降;我们称这一特性为时空灵活性不足。在动作识别的背景下,这严重限制了模型处理短片段和长活动表现的能力。 为此,我们提出了一种灵活的训练方法,利用并增强了SSM的内在适应性。我们的方法是在训练过程中以不同的时间和空间分辨率抽取视频,并动态插值模型权重以适应任何时空尺度。这种方法赋予我们的SSM(称为StretchySnake)以时空灵活性,并使其能够无缝处理从精细片段到复杂长活动的各种长度和类型的视频。 我们介绍了并比较了五种不同版本的灵活训练方法,确定了最适合视频SSMs的有效策略。在短动作识别(UCF-101、HMDB-51)以及长动作识别(COIN、Breakfast)基准测试上,StretchySnake相比变压器和SSM基线模型分别提高了高达28%的表现,并且对精细动作具有很强的适应性(如SSV2、Diving-48)。因此,我们的方法提供了一种简单的即插即用训练方案,使视频SSMs在各种动作识别场景中更加健壮、分辨率无关和高效。
URL
https://arxiv.org/abs/2510.16209