TL;DR
MS-Temba adapts the linear-time Mamba state-space architecture for Temporal Action Detection (TAD) in long, untrimmed videos. By introducing parallel dilated scanning branches and a multi-scale fusion mechanism, it efficiently captures both fleeting atomic actions and long-duration activities simultaneously. The resulting model achieves state-of-the-art performance on complex action detection and video summarization benchmarks while being 5× more parameter-efficient than Transformer-based alternatives.
What Problem Does This Paper Address?
Temporal Action Detection (TAD) requires a model to determine exactly what actions occur in a video and when they start and end. This task becomes exceptionally difficult in long, untrimmed videos depicting Activities of Daily Living (ADL), which can span up to 40 minutes.
Models designed for these scenarios face three core challenges:
- Long temporal dependencies: Processing massive frame sequences without losing global context.
- Multi-scale actions: Handling short, atomic events (e.g., a 2-second "drink from cup") alongside prolonged activities (e.g., a 20-minute "use laptop") that exhibit high intra-class duration variance.
- Densely overlapping actions: Resolving concurrent activities, such as someone walking while talking on the phone.
Existing frameworks struggle to balance these demands. Temporal CNNs are computationally efficient but suffer from limited receptive fields. Transformers capture long-range dependencies well but possess quadratic computational complexity ($O(T^2)$), making them prohibitively expensive at scale. Recently, State-Space Models (SSMs) like Mamba have emerged as a linear-time ($O(T)$) alternative. However, standard Mamba architectures operate at a single temporal scale, which tends to smooth out and collapse fine-grained action boundaries.
Methods
The authors propose MS-Temba (Multi-Scale Temporal Mamba), a novel architecture tailored for dense TAD. The framework processes pre-extracted video tokens through a hierarchical pipeline featuring three main innovations:
- Dilated SSMs: Instead of scanning video tokens sequentially with a fixed receptive field, MS-Temba introduces parallel branches that scan tokens at distinct temporal strides ($\eta$). Short-dilation branches focus on fine-grained, rapid actions, while long-dilation branches capture extended temporal context.
- Pairwise Consistency Loss ($L_{cons}$): Operating parallel, asynchronous dilated branches can lead to "scale drift." To keep the branches semantically aligned to the same underlying video context, this loss maximizes the cosine similarity between the projection matrices of parallel SSMs within the same block.
- Scale-Aware Auxiliary Supervision ($L_{aux}$): Multiple Temba blocks are stacked hierarchically with increasing dilation rates ($\eta = k$). Each block is equipped with its own classification head during training, forcing intermediate layers to specialize in scale-specific representations.
- Multi-scale Mamba Fuser (MS-Fuser): A lightweight module that aggregates the multi-scale features via element-wise summation followed by a final SSM layer to capture cross-scale dependencies before final action prediction.
Crucially, MS-Temba avoids explicit temporal downsampling (like max or average pooling) within its blocks, allowing the model to operate at native temporal resolution and preserve subtle action boundaries.
Datasets
The model was evaluated on two challenging multi-label TAD datasets and two video summarization datasets:
- Toyota Smarthome Untrimmed (TSU): A real-world indoor ADL dataset containing 51 action classes. It features frequent co-occurring actions and an exceptionally long average video duration of 21 minutes.
- Charades: A large-scale dataset consisting of 9,848 untrimmed videos spanning 157 daily activity classes.
- TVSum & SumMe: Standard video summarization benchmarks used to evaluate the model's ability to generalize to frame-level importance estimation.
Key Insights and Ideas
- Dilated Scanning over Temporal Pooling: Traditional multi-scale architectures downsample the temporal dimension via pooling or strided convolutions, which inherently destroys fine-grained boundaries. MS-Temba demonstrates that keeping the native resolution and varying the scanning stride of the SSM preserves subtle action transitions much more effectively.
- Regularizing the State Space: Simply running parallel dilated SSMs is insufficient because the independent branches can diverge. Aligning their projection matrices via a consistency loss ensures they remain anchored to the same semantic space while maintaining diverse receptive fields.
- Mamba's Efficiency for Long-Form Video: The linear complexity of SSMs allows MS-Temba to process long sequences (up to 2,500 tokens simultaneously) without windowing or aggressive downsampling, maintaining crucial global context that Transformers cannot afford computationally.
Key Results
- Parameter Efficiency: MS-Temba achieves state-of-the-art performance with only 17M parameters, making it 5× more parameter-efficient than top Transformer models like MS-TCT (87M parameters).
- TAD Performance: When paired with a CLIP visual backbone, MS-Temba achieves 44.0% mAP on TSU and 33.6% mAP on Charades, outperforming all previous CNN and Transformer baselines.
- Overlapping Actions: On action-conditioned metrics (evaluating concurrent actions within a temporal window $\tau = 0$), MS-Temba significantly improves precision and recall, proving its capability to disentangle overlapping activities.
- Generalization: It sets new state-of-the-art results on video summarization benchmarks (TVSum and SumMe), demonstrating its versatility as a generic framework for long-video understanding.
Limitations and Future Work
The paper focuses entirely on temporal modeling and relies on a two-stage pipeline where features are pre-extracted using frozen visual backbones (I3D or CLIP). The authors do not explore end-to-end training of the visual backbone alongside the temporal Mamba blocks, which remains a challenging but promising direction for future work if computational constraints can be mitigated.
Summary updated