arXiv:2611.00423cs.CVOct 2026

Manuscript Offprint

arXiv:2611.00423

PAM-Mamba - Efficient Dense Action Detection using Mamba

Dhruvraj Singh Rawat, Faegheh Sardari, Armin Mustafa

Abstract

Dense action detection requires precisely localising multiple overlapping actions in long untrimmed videos. Transformer-based methods achieve strong accuracy but their O(T2)O(T^2) self-attention cost limits scalability. We present PAM-Mamba, a linear-time O(T)O(T) architecture built on Mamba [10] with a multi-branch temporal encoder. Gated Learnable Positional Encoding (GLPE) controls positional signal injection via a scalar gate initialised to zero, starting training without added positional signal. A Hub-and-Spoke Funnel extends the non-hierarchical multi-scale design of PAT [28] with a direct residual from the original full-resolution input to each coarse branch, providing each coarse branch with a projection of the input features. Bi-TemBa (Bidirectional Temporal Mamba) first extracts local motion cues with a shallow Temporal Convolution Module, then applies a cascaded bidirectional Mamba scan; the backward pass refines the forward-scanned representation from the opposite direction, giving each temporal position access to context from both directions in linear time. Uncertainty-Based Mixup uses prediction entropy to guide the selection of mixup partners. Using the PAT evaluation implementation, we obtain 26.82 (Charades I3D), 34.59 (Charades CLIP), 46.56 (MultiTHUMOS I3D), and 46.92 mAP (MultiTHUMOS CLIP), with 26.1–27.9M parameters, 61–63% fewer than PAT [28].

1. Introduction

Dense action detection asks a model to simultaneously answer what actions are occurring, when each begins and ends, and how many overlap at any given moment, all within video sequences that can span tens of minutes [30, 35]. The task demands frame-level precision across temporal scales ranging from sub-second gestures to multi-minute routines, with labels that co-occur densely and datasets that are overwhelmingly negative. Convolutional networks [7, 15] handle local patterns well but lack sufficient receptive field for long-range context. Transformers [5, 28] address this through self-attention, but the O(T2)O(T^2) cost becomes pro-

hibitive as sequence length grows.

State Space Models (SSMs), and Mamba [10] in particular, offer a compelling middle ground: linear-time O(T)O(T) modelling with content-dependent state updates. Recent work has adapted Mamba to visual recognition [12, 16, 21, 38], showing competitive accuracy at a fraction of the compute. Adapting Mamba to dense action detection, however, raises four challenges that prior work has not jointly addressed.

Positional encoding: Mamba has implicit temporal order through its recurrent updates; the usefulness of an additional explicit positional signal must be established empirically. Multi-scale reasoning: multiple temporal resolutions offer complementary representations of brief and long activities; existing Mamba-based methods do not provide all temporal scales with direct access to the full-resolution input, so fine-grained boundary cues can be lost at coarser representations. Non-causal context: at an action onset, a causal model sees the current and preceding frames but cannot use subsequent frames to confirm that an action has started. Mamba's left-to-right recurrence makes boundary prediction at both onset and offset inherently one-sided. Label imbalance: dense multi-label datasets are dominated by negative frames, and the effect of mixing training examples depends on their labels and the batch configuration.

We present PAM-Mamba (Position-Aware Mamba), which combines three architectural components with an uncertainty-guided augmentation strategy:

  • Gated Learnable Positional Encoding (GLPE). A scalar gate, initialised to zero, suppresses all positional signal at the start of training. As training proceeds, the gate learns how much explicit position information to inject, so the model incorporates it only to the extent that it helps.

  • Hub-and-Spoke Funnel with Input Residuals. Building on the non-hierarchical multi-scale design of PAT [28], we add a direct residual connection from the original full-resolution input to each coarse branch. Where PAT's coarse branches see only fine-processed features, our residual path supplies an independently projected input representation to each coarse scale.

  • Bi-TemBa (Bidirectional Temporal Mamba). A shallow Temporal Convolution Module (TCM) first captures local motion cues via Conv1d. MS-Temba [31] also uses temporal convolution; our block integrates local temporal processing within the proposed multi-branch encoder. A forward Mamba SSM then scans the TCM output; a backward SSM refines the forward representation from the opposite direction, giving each temporal position causal context from the left and anti-causal refinement from the right. This cascaded design differs from the independent parallel scans used in Vision Mamba and MS-Temba.

  • Uncertainty-Based Mixup. After an initial random-mixup phase, samples are ranked by Shannon entropy and the reversed entropy ranking supplies partner indices when the uncertainty gap exceeds the threshold. This extends standard random mixup [36] with prediction-dependent partner selection (Sec. 3.5).

Using the PAT evaluation implementation, we obtain 26.82, 34.59, 46.56, and 46.92 mAP for I3D-Charades, CLIP-Charades, I3D-MultiTHUMOS, and CLIP-MultiTHUMOS respectively, with 61–63% fewer parameters than PAT [28] (Table 1). Figure 1 shows a qualitative example on a Charades video: PAM-Mamba detects Opening a book and the concurrent actions Holding food and Holding paper/notebook, whose intervals overlap. These results motivate further study of state-space models for dense temporal prediction.

References (38)