Manuscript Offprint
arXiv:2611.00423PAM-Mamba - Efficient Dense Action Detection using Mamba
Abstract
Dense action detection requires precisely localising multiple overlapping actions in long untrimmed videos. Transformer-based methods achieve strong accuracy but their self-attention cost limits scalability. We present PAM-Mamba, a linear-time 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 cost becomes pro-
hibitive as sequence length grows.
State Space Models (SSMs), and Mamba [10] in particular, offer a compelling middle ground: linear-time 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.
2.1. Dense Action Detection
Dense action detection (DAD) aims to localise and classify multiple concurrent human actions in long untrimmed videos. Early convolutional models, Temporal Convolutional Networks [15] and Multi-Stage TCNs [7], established strong baselines through dilated convolutions, but their fixed receptive fields limited long-range context modelling. Proposal-based approaches such as SSN [37] and BMN [17] model candidate action intervals and their temporal boundaries. Their interval-level formulation differs from the frame-level multi-label prediction considered here.
2.2. Transformer-Based Temporal Modelling
The Transformer [34] brought global temporal modelling to dense detection through self-attention. MS-TCT [5] combined convolutional inductive bias with multi-head attention; PAT [28] introduced non-hierarchical multi-scale fusion that preserves fine-grained features by generating coarse scales independently from a shared fine-resolution representation. Both achieve strong performance on Charades [30] and MultiTHUMOS [35]. The fundamental limitation is the attention cost: Video Swin [19] uses local attention windows, whereas ViViT [1] explores fac-
torised spatial and temporal attention to reduce computation.
2.3. State Space Models for Temporal Reasoning
S4 [11] demonstrated efficient long-range dependency modelling; Mamba [10] extended this with content-dependent selective state updates. Vision Mamba [38] applied bidirectional SSM scanning to 2D image patches for spatial recognition; VideoMamba [16] adapted this to spatiotemporal tokens. Islam and Bertasius [12] showed SSMs can classify long movie clips more efficiently than Transformers; VideoMambaPro [21] improved video representations through enhanced scanning strategies. Recurrent-Transformer hybrids like TRecViT [22] explore replacing attention with recurrent modules for scalable video understanding. These approaches primarily target recognition rather than frame-level multi-label detection.
The most relevant SSM work for our setting is MS-Temba [31], which applies Mamba to dense action detection. Each TemBa block combines temporal convolution with a dilated temporal SSM, and a scale-aware fuser aggregates block outputs. MS-Temba demonstrates that SSMs are viable for temporal action detection, but leaves open the questions of how to handle positional encoding in Mamba, how to provide each temporal scale with direct access to the full-resolution input, and how to address label imbalance in the augmentation strategy.
2.4. Multi-Scale Architectures and Uncertainty-Aware Learning
Feature Pyramid Networks [18] established hierarchical top-down multi-scale fusion for 2D detection, merging coarse semantic features into finer spatial levels via lateral connections. TriDet [29] uses multi-scale temporal representations, while DualDETR [39] combines instance-level and boundary-level queries. These methods address temporal localisation through different architectural choices. PAT [28] addressed this with a non-hierarchical design: a fine-resolution module produces a single shared feature map, and multiple parallel coarse branches each subsample that map independently at different strides, avoiding cascaded information loss. However, all coarse branches in PAT derive exclusively from the fine-processed features, the original full-resolution input is not directly accessible at any coarse scale. On the learning side, uncertainty-aware training [14] and mixup augmentation [36] provide complementary approaches to training; we combine them by using prediction entropy to guide mixup partner selection for dense temporal detection.
2.5. Summary
Dense action detection has progressed from convolutional models [7, 15] to Transformer frameworks [5, 28] and
Temporal Action Detection · Video TJZ0P · 18s

Figure 1. PAM-Mamba qualitative result on Charades [30] (CLIP [25] features), video TJZ0P. Each class pair shows the ground-truth segment (solid bar) and PAM-Mamba's predicted segment (translucent bar) at threshold . Predicted intervals closely follow the annotated actions, with small onset and offset deviations. The concurrent actions Holding food and Holding paper/notebook are detected simultaneously over their shared interval.
more recently to SSM-based architectures [10, 31]. Transformers deliver strong accuracy but at quadratic cost; MS-Temba demonstrates SSMs can be competitive for temporal detection, yet leaves open key design questions around positional encoding, full-resolution input access at coarse scales, and training-time label imbalance. PAM-Mamba addresses these design questions while retaining linear-time temporal processing.
3. Method
We propose a multi-branch Mamba encoder for dense action detection. Actions span vastly different durations, from half-second gestures to multi-minute activities, and multiple temporal scales can provide complementary context. Mamba's causal recurrence also means boundary frames have no access to future context, which is critical for onset and offset prediction. PAM-Mamba addresses these limitations through four components whose interactions are shown in Figure 3.
3.1. Overall Architecture
PAM-Mamba takes as input a sequence of pre-extracted feature vectors , one per temporal feature position, from a pretrained backbone (I3D [2], ; CLIP [25], ). The pipeline has four stages. The complexity refers to temporal processing of pre-

- DualDETR cost reported for TSU; counting conventions differ across methods.
Figure 2. Efficiency vs. accuracy on MultiTHUMOS (I3D features). Per-frame mAP versus GFLOPs (log scale). PAM-Mamba achieves the highest mAP among the compared methods. Values for prior methods are taken from their publications; *DualDETR's GFLOPs are reported on TSU.
extracted features with fixed channel widths, state dimensions and block counts; it does not include visual feature extraction.
(1) Gated Learnable Positional Encoding (GLPE). A scalar gate, initialised to zero, controls how much explicit

Figure 3. PAM-Mamba architecture overview. Pre-extracted I3D or CLIP features receive gated learnable positional encoding (including dropout 0.1) and input dropout 0.5 before entering the three-branch encoder. The full-resolution fine branch supplies a shared representation to two independently downsampled coarse branches. Each coarse branch also receives a strided projection of the encoder input. Projection blocks include LayerNorm. The Bi-TemBa inset follows the implementation: TCM is Conv1d, LayerNorm and GELU; the forward scan feeds the backward scan through temporal reversal. The backward output is reversed back, summed with the forward output and normalised, then added to the original block input. Both Mamba scans use pre-normalisation. SimpleFuser projects branch outputs to 1024 dimensions, linearly upsamples coarse outputs and combines them using learned softmax weights. Separate fine and coarse classifiers produce logits and , blended with the reported 0.25/0.75 weights; a sigmoid gives per-class probabilities.
position information is added to , yielding (Sec. 3.2).
(2) Hub-and-Spoke Funnel. is processed by a full-resolution fine branch to produce . Two coarse branches each receive both downsampled fine fea-
tures and a direct residual projection of , producing representations at and (Sec. 3.3).
(3) Bi-TemBa blocks. Each branch is processed by a Bi-TemBa block that pairs a local Temporal Convolution Module with cascaded bidirectional Mamba scanning, enabling non-causal temporal modelling at each scale in linear time (Sec. 3.4).
(4) SimpleFuser and prediction heads. Each branch output, fine -d at resolution and the two coarse branches -d at , -d at , is first projected to a common -d space via a per-branch linear layer. Coarse outputs are then upsampled to resolution by linear interpolation. A softmax-normalised scalar weight per coarse branch produces a single weighted-sum coarse feature. Distinct linear heads score the coarse and fine features; at inference their logits are combined at a fixed ratio (see Sec. 4.1) and a sigmoid gives per-position probabilities over all classes. Asymmetric Loss [26] is applied throughout to handle the severe label imbalance of dense multi-label detection.
3.2. Gated Learnable Positional Encoding
Positional encodings play a different role in Mamba than in Transformers. Self-attention without positional information is permutation-equivariant, so Transformers cannot distinguish token order without explicit position signals [34]. Mamba, by contrast, processes sequences recurrently: each hidden state is conditioned on all prior tokens in their original order, giving the model implicit positional awareness without any additional encoding. We therefore treat the strength of an additional explicit positional signal as a learnable quantity rather than assuming that a fixed signal is beneficial.
A second consideration is the relation between clip positions and physical time: temporal cropping and changes in sampling rate can alter this relation. Learned position embeddings can adapt to the training distribution, but do not explicitly encode timestamps.
We propose Gated Learnable Positional Encoding (GLPE). A learnable embedding matrix is gated by a scalar parameter , initialised to 0:
where selects the first rows of . The implementation sets and initialises the table with a truncated normal distribution with standard deviation 0.02. GLPE applies dropout with probability 0.1, followed by a separate input dropout with probability 0.5. At initialisation, , the gate is fully closed and training begins with no positional injection. As is updated by gradient descent, can take positive or negative values, allowing the strength and sign of positional injection to adapt; it need not approach either saturation limit. The learnable matrix further adapts to the temporal distribution of the training data, unlike fixed encodings. The ablations show dataset-dependent effects of GLPE (Sec. 4.4).
3.3. Hub-and-Spoke Funnel with Input Residuals
Multi-scale temporal representations are essential for detecting actions across widely different durations. PAT [28] established a key design principle for this task: rather than cascading scales hierarchically (as in FPN [18]), a non-hierarchical hub produces a shared fine-resolution feature map, and each coarse branch independently subsamples it at a different stride. This avoids the information loss of sequential downsampling chains, where errors at one scale propagate to all finer scales.
PAT's coarse branches, however, derive exclusively from the fine-processed features, the original full-resolution input is not directly accessible at any coarse scale. Our Hub-and-Spoke Funnel preserves the non-hierarchical topology and adds a direct residual from the original input to each coarse branch. The fine branch processes the GLPE-encoded input:
where is a stride-1 Conv1d projection to embedding dimension . Each coarse branch receives two independent inputs:
where downsamples the fine branch to resolution (the hub path), and directly projects to the same resolution (the residual path). Both are lightweight strided Conv1d blocks with LayerNorm. The coarse branches remain independent of each other. Each projection uses kernel size 3 and padding 1, with strides 1, 2 and 4 for the fine and two coarse branches. A separate LayerNorm follows each Bi-TemBa block; this branch-output normalisation is implicit in the branch equations.
The residual path ensures that each coarse branch retains direct access to the original input features, independent of any abstraction introduced by the fine branch. Its benefit is most pronounced on the long videos of MultiTHUMOS (Sec. 4.4).
3.4. Bi-TemBa: Bidirectional Temporal Mamba Block
Boundary localisation can draw on two complementary signals at each temporal position: local motion cues (gesture dynamics, short-range transitions) and long-range context (activity duration, co-occurrence patterns). Standard causal Mamba [10] processes sequences left-to-right only, which creates a fundamental asymmetry at action boundaries. At an onset frame, the first frame where an action is active, the model has access to the current frame and preceding frames, but not subsequent frames; the strongest evidence that the action has started is in the frames immediately after, where the activity is underway. A causal model must commit to a boundary decision before seeing that evidence. The same holds at the offset: the frames after an action ends confirm its cessation, but they are invisible to a left-to-right model. Non-causal context therefore provides additional evidence for offline boundary prediction.
Vision Mamba [38] introduced bidirectional SSM scanning for 2D image recognition by running independent forward and backward Mamba layers on raw spatial patch tokens. MS-Temba [31] adapted bidirectional SSMs to temporal action detection, combining a temporal convolution module with dilated temporal SSMs to capture multiple temporal scales. Bi-TemBa (Bidirectional Temporal Mamba) is a block for dense temporal detection that combines the following operations.
First, Bi-TemBa uses a Temporal Convolution Module (TCM): a shallow Conv1d with LayerNorm and GELU activation. Unlike a linear layer, Conv1d operates over a local temporal window, explicitly encoding short-range motion patterns, gesture dynamics, transient pose changes, that are discriminative near action boundaries. These locally-enriched features are then passed to the SSM for long-range propagation. Temporal convolution is also used by MS-Temba [31]; its presence alone is not a distinction from that method.
Second, rather than running the two scanning directions independently, Bi-TemBa uses a cascaded bidirectional scan: the forward SSM processes the TCM output first, and the backward SSM then takes the reversed forward representation as input, rather than the reversed TCM output directly. The backward pass therefore refines and completes the temporal context already established by the forward pass; every frame's final encoding carries both causal context from the left and anti-causal refinement informed by that context from the right.
Third, a block-level residual connects the block input directly to its output, bypassing both the TCM and the SSM. This provides a direct path for the block input alongside the convolutional and state-space operations. The full computation is:
where denotes temporal reversal and , and are separate LayerNorm operations. The implementation uses one forward/backward pair per branch. TCM uses a kernel of size 3, stride 1 and padding 1. Forward and backward outputs are summed rather than gated, avoiding the additional learnable parameters that a gated fusion would require.
3.5. Uncertainty-Based Mixup Augmentation
Standard mixup [36] interpolates randomly chosen sample pairs. In dense multi-label detection, random pairing does not explicitly prioritise examples with uncertain predictions. Uncertainty-Based Mixup addresses this with a curriculum: training begins with standard random mixup and transitions to entropy-guided pairing after a fixed warm-up period. Entropy is used as a proxy for uncertainty, rather than a direct measurement of sample difficulty or calibration.
Concretely, the implementation applies random mixup during the initial epochs. Thereafter, it computes sigmoid predictions in evaluation mode without gradients. The uncertainty of clip i is binary entropy averaged over classes and temporal positions:
Let contain the sample indices sorted by decreasing entropy. If the batch entropy range exceeds , the code assigns partners using the reversed index list, , while retaining the original order of the first operand. Otherwise it uses a random permutation. Inputs and frame-level targets are mixed with the same coefficient:
Pairing therefore depends on the batch: with batch size one, mixup reduces to the identity, and larger batches offer more candidate partners.
4. Experiments
We evaluate PAM-Mamba on the standard dense action detection benchmarks Charades [30] and MultiTHU-MOS [35], reporting frame-level mean Average Precision (mAP) using the PAT evaluation implementation and comparing against prior work [5, 28, 31]. Figure 4 shows per-class confidence on a test video: confidence rises within the annotated action intervals, and the bottom two panels show concurrent detections.
4.1. Experimental Setup
Similar to PAT [28], during both training and inference PAM-Mamba uses a fixed number of input tokens, where each token is a pre-extracted I3D [2] or CLIP [25] feature vector. Labels are assigned to tokens from the annotated start and end times, and per-frame metrics are computed over these tokens. For training, we randomly sample a clip containing T consecutive tokens from a video sequence and zero-pad shorter sequences. At inference, we use the PAT evaluation code, which takes the first tokens of each test sequence. We use one forward/backward Mamba pair per branch, , branch widths 1024/768/512 and a 1024-dimensional fusion space. Coarse/fine logits and losses are weighted 0.75/0.25. Python, NumPy, PyTorch and CUDA seeds are set to 42; deterministic cuDNN behaviour is enabled and cuDNN benchmarking disabled.
For Charades, both feature settings use AdamW [20], weight decay 0.25, batch size 2, up to 50 epochs and StepLR with step 12 and . I3D uses learning rate and patience 15; CLIP uses and patience 5. Drop-path rate is configured as 0.3. Mixup uses , threshold 0.25 and transition epoch 5.
For MultiTHUMOS, both settings use batch size 1, up to 100 epochs, patience 20 and configured drop-path rate 0.4. I3D uses learning rate , weight decay 0.30 and StepLR step 15; CLIP uses , weight decay 0.35 and step 40, with for both. Mixup is enabled in the configuration but is an identity operation at batch size 1 (Sec. 3.5). The configured values are for I3D and for CLIP.
Asymmetric Loss [26] uses and clipping 0.1. The negative exponent is 3 for Charades, 5 for MultiTHUMOS I3D and 8 for MultiTHUMOS CLIP. Gradients are clipped to norm 1.0.
Stochastic Weight Averaging (SWA). We enable SWA [13] from epoch 10 on Charades with learning rate , and epoch 30 on MultiTHUMOS with learning rate . The implementation updates averaged weights once per epoch after this point and uses SWALR in place of StepLR. Base and averaged models are evaluated separately; the logged best score is the maximum across these evaluations.
Evaluation implementation. We use the PAT evaluation code [28] unchanged, including its per-frame AP computation, probability masking and averaging over nonzero class APs, and evaluate on the standard test split. Every Charades test sequence fits within (at most 227 I3D or 109 CLIP tokens), so Charades predictions cover full videos. For MultiTHUMOS, 166 of 211 I3D and 177 of 211 CLIP test sequences are longer than .
4.2. Datasets and Metrics
Charades [30] contains 9,848 untrimmed videos across 157 activity classes with strong label co-occurrence. The official split contains 7,985 training and 1,863 testing videos. Following PAT, test videos without action annotations are excluded, leaving 1,814 test videos.
MultiTHUMOS [35] extends THUMOS14 to 413 videos with dense frame-level annotations for 65 classes, with an average of 1.5 labels per frame and 10.5 distinct action classes per video. These statistics distinguish frame-level overlap from the number of classes occurring anywhere in a video.
Metric. Following PAT [28], we report per-frame mAP (%). AP is computed for each class by ranking frame predictions and averaging precision at positive labels. We retain the PAT implementation's convention of averaging nonzero class APs.
4.3. Comparison with State of the Art
Table 1 lists PAM-Mamba and prior results. The reported I3D model size is 27.9M parameters, compared with 70.7M for PAT [28]; MS-Temba [31] is smaller at 10.1M. Our CLIP configuration has a reported size of 26.1M. The architecture is shared across feature settings, with input dimensions of 1024 for I3D and 768 for CLIP.
Computation. We measure GFLOPs with thop on an input of tokens: 4.78G for I3D and 4.48G for CLIP. Values for prior methods are taken from their publications; DualDETR's GFLOPs are reported on TSU [39], and the CLIP values for MS-TCT and MS-Temba are from [31].
Action-Conditional Metrics. We report action-conditional metrics introduced by Tirupattur et al. [33] and used by PAT [28]. The evaluator computes precision, recall, F1-score (F1AC) and mean AP (mAP) at prediction time steps, using probability threshold 0.5. is measured in tokens. At the metric measures co-occurrence; positive windows consider preceding actions that are no longer active at the current step.
On Charades with I3D features, PAM-Mamba achieves F1AC of 27.9/31.8/31.6 and mAP of 30.1/36.4/35.4 at . PAT reports F1AC of 27.2/29.6/29.4 and mAP of 32.0/37.8/36.7, and MS-TCT F1AC of 19.5/22.1/22.1 [28]. PAM-Mamba obtains the highest F1AC at every , while PAT retains higher mAP; note that these prior results use both RGB and optical-flow inputs.
Figure 2 plots accuracy against computation on MultiTHUMOS. Figure 5 shows confidence over time for five co-occurring classes; high-confidence responses concentrate within the annotated intervals, with softer transitions at action boundaries.
4.4. Ablation Studies
Table 2 and Figure 6 report component ablations with CLIP features. Each variant removes one component from the full model, and differences are measured against the full-model run of the same ablation series (33.70 on Charades and 46.13 on MultiTHUMOS).
SWA, multi-scale processing and bidirectionality. Removing SWA reduces mAP by 1.06 on Charades and 1.40 on MultiTHUMOS. Removing multi-scale processing reduces it by 0.41 and 0.46, respectively; removing bidirectionality reduces it by 0.25 and 1.25. These compo-
Per-Class Confidence Scores · Video BW2OT

Figure 4. PAM-Mamba per-class confidence on Charades (CLIP features), video BW2OT. Each panel shows the sigmoid output for one action class over time. The shaded green region marks the ground-truth active interval; the blue shaded area shows positions where the model fires above threshold . The confidence profiles closely track the annotated intervals. The two concurrent actions Eating a sandwich and Holding a sandwich (bottom row) are detected simultaneously over their shared interval.

Figure 5. Per-class confidence heatmap on Charades [30] (CLIP [25] features), video 4CAB5. Top: ground-truth action segments colour-coded by class. Bottom: PAM-Mamba's predicted confidence for each class over time (white = low, deep indigo = high). White dashed lines mark ground-truth onset and offset boundaries. Five of the seven annotated classes are shown. Confidence concentrates within the ground-truth intervals, including the tightly interleaved refrigerator and cup/glass/bottle actions.
Table 1. Comparison on Charades and MultiTHUMOS using I3D and CLIP features. Values are per-frame mAP (%); best results in bold. GFLOPs reported on TSU. Obtained by training the official PAT code on the same CLIP features.
| Method | Features | Params (M) | GFLOPs | Charades | MultiTHUMOS |
|---|---|---|---|---|---|
| I3D Features | |||||
| Super-Event [24] | I3D | 26 | 0.8 | 18.6 | 36.4 |
| TGM [23] | I3D | 2 | 1.2 | 20.6 | 37.2 |
| PDAN [4] | I3D | 6 | 3.2 | 23.7 | 40.2 |
| MLAD [33] | I3D | 21 | 45.2 | 18.4 | 42.2 |
| PointTAD [32] | I3D | – | – | 21.0 | 39.8 |
| HAAN [8] | I3D | – | – | 25.2 | 41.7 |
| CTRN [3] | I3D | 11 | 11.3 | 25.3 | 44.0 |
| MS-TCT [5] | I3D | 87.5 | 6.6 | 25.4 | 43.1 |
| DualDETR [39] | I3D | 21 | 5.5 | 23.2 | 45.5 |
| MS-Temba [31] | I3D | 10.1 | 0.6 | 25.3 | 43.7 |
| PAT [28] | I3D | 70.7 | 8.5 | 26.5 | 44.6 |
| PAM-Mamba (Ours) | I3D | 27.9 | 4.78 | 26.82 | 46.56 |
| CLIP Features (TTM uses ViViT) | |||||
| TTM [27] | ViViT | 89 | – | 26.3 | – |
| AAN [6] | CLIP | – | – | 32.0 | – |
| MS-TCT [5, 31] | CLIP | 87.5 | 6.6 | 31.9 | 41.6 |
| MS-Temba [31] | CLIP | 10.1 | 0.6 | 32.3 | 41.9 |
| PAT [28] | CLIP | 70.7 | – | 33.32 | 46.78 |
| PAM-Mamba (Ours) | CLIP | 26.1 | 4.48 | 34.59 | 46.92 |
Table 2. Component ablation on Charades and MultiTHUMOS (CLIP features). Each variant removes one component; is relative to the full model of the same ablation series.
| Variant | Charades | MultiTHUMOS | ||
|---|---|---|---|---|
| mAP | mAP | |||
| Full Model | 33.70 | – | 46.13 | – |
| w/o SWA | 32.63 | -1.06 | 44.72 | -1.40 |
| w/o Multi-Scale | 33.29 | -0.41 | 45.67 | -0.46 |
| w/o Bi-TemBa | 33.45 | -0.25 | 44.87 | -1.25 |
| w/o Uncertainty Mixup | 33.81 | +0.12 | 45.25 | -0.87 |
| w/o Gated PE | 34.15 | +0.46 | 45.37 | -0.75 |
| w/o Residual Paths | 34.63 | +0.93 | 44.99 | -1.13 |
nents therefore contribute consistently on both datasets, with SWA providing the largest gain.
Mixup, positional encoding and input residuals. On MultiTHUMOS, removing GLPE or the input residual paths re-
duces mAP by 0.75 and 1.13, respectively. On Charades, whose videos are short and fit entirely within a single T-token window, removing them increases mAP by 0.46 and 0.93. Explicit positional information and direct access to full-resolution input thus matter most for long sequences. Mixup has little effect on Charades (+0.12 when removed). Because MultiTHUMOS is trained with batch size one, for which mixup reduces to the identity, its -0.87 difference reflects run-to-run variation rather than an effect of mixup.
5. Conclusion
We presented PAM-Mamba, a linear-time architecture for dense action detection with three architectural components and an uncertainty-guided augmentation strategy: Gated Learnable Positional Encoding, which lets the model control how much explicit position information it incorporates; a Hub-and-Spoke Funnel that extends PAT's non-hierarchical multi-scale design [28] with direct input residuals to each coarse branch, providing an independent input
Charades CLIP: component ablation

Figure 6. Ablation study on Charades (CLIP features); see Table 2 for MultiTHUMOS. Labels show mAP and the difference from the full model (33.70).
projection at each coarse scale; Bi-TemBa, a block that pairs local convolution with a cascaded bidirectional Mamba scan for non-causal temporal reasoning; and Uncertainty-Based Mixup, which uses prediction entropy to select mixup partners when the batch contains multiple examples. Ablations show that SWA, multi-scale processing and bidirectional scanning improve both benchmarks, while GLPE and input residuals are most beneficial on the long videos of MultiTHUMOS.
With 26.1–27.9M parameters, PAM-Mamba achieves 26.82, 34.59, 46.56 and 46.92 mAP on Charades and MultiTHUMOS with I3D and CLIP features, showing that state-space models are a strong and efficient alternative to self-attention for dense action detection.
Limitations. The model operates on pre-extracted features and fixed-length clip segments. As visible in Figure 1, precise boundary localisation remains a challenge: predicted segments overlap the annotated intervals but have onset and offset discrepancies, suggesting that additional boundary-sensitive losses could further improve temporal precision. Future work includes end-to-end training from raw video, extension to multimodal and streaming settings [9], and evaluation on egocentric benchmarks where dense multi-label detection is equally relevant.
References
[1] Anurag Arnab, Mostafa Dehghani, Georg Heigold, Chen Sun, Mario Lučić, and Cordelia Schmid. Vivit: A video vision transformer. In Proceedings of the IEEE/CVF International Conference on Computer Vision, pages 6836–6846, 2021.
[2] Joao Carreira and Andrew Zisserman. Quo vadis, action recognition? a new model and the kinetics dataset. In Proceedings of the IEEE conference on computer vision and pattern recognition, pages 6299–6308, 2017.
[3] Rui Dai, Srijan Das, and François Brémond. CTRN: Class-temporal relational network for action detection. In British Machine Vision Conference, 2021.
[4] Rui Dai, Srijan Das, Luca Minciullo, Lorenzo Garattoni, Gianpiero Francesca, and François Bremond. Pdan: Pyramid dilated attention network for action detection. In Proceedings of the IEEE/CVF Winter Conference on Applications of Computer Vision, pages 2970–2979, 2021.
[5] Rui Dai, Srijan Das, Kumara Kahatapitiya, Michael S. Ryoo, and François Brémond. MS-TCT: Multi-scale temporal convtransformer for action detection. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), pages 20041–20051, 2022.
[6] Rui Dai, Srijan Das, Michael S Ryoo, and Francois Bremond. Aan: Attributes-aware network for temporal action detection. arXiv preprint arXiv:2309.00696, 2023.
[7] Yazan Abu Farha and Jurgen Gall. Ms-tcn: Multi-stage temporal convolutional network for action segmentation. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pages 3575–3584, 2019.
[8] Zikai Gao, Peng Qiao, and Yong Dou. Haan: Human action aware network for multi-label temporal action detection. In Proceedings of the 31st ACM International Conference on Multimedia, pages 5059–5069, 2023.
[9] Rohit Girdhar, Mannat Singh, Nikhila Ravi, Laurens van der Maaten, Armand Joulin, and Ishan Misra. Omnivore: A single model for many visual modalities. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pages 16102–16112, 2022.
[10] Albert Gu and Tri Dao. Mamba: Linear-time sequence modeling with selective state spaces. arXiv preprint arXiv:2312.00752, 2023.
[11] Albert Gu, Karan Goel, and Christopher Ré. Efficiently modeling long sequences with structured state spaces. In International Conference on Learning Representations, 2022.
[12] Md Mohaiminul Islam and Gedas Bertasius. Long movie clip classification with state-space video models. In Computer Vision – ECCV 2022, pages 87–104. Springer, Cham, 2022.
[13] Pavel Izmailov, Dmitrii Podoprikhin, Timur Garipov, Dmitry P. Vetrov, and Andrew Gordon Wilson. Averaging weights leads to wider optima and better generalization. In Proceedings of the Thirty-Fourth Conference on Uncertainty in Artificial Intelligence (UAI 2018), pages 876–885. AUAI Press, 2018.
[14] Alex Kendall and Yarin Gal. What uncertainties do we need in bayesian deep learning for computer vision? In Advances in Neural Information Processing Systems, 2017.
[15] Colin Lea, Michael D Flynn, Rene Vidal, Austin Reiter, and Gregory D Hager. Temporal convolutional networks for action segmentation and detection. In proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 156–165, 2017.
[16] Kunchang Li, Xinhao Li, Yi Wang, Yinan He, Yali Wang, Limin Wang, and Yu Qiao. VideoMamba: State space model for efficient video understanding. In Proceedings of the European Conference on Computer Vision (ECCV), 2024.
[17] Tianwei Lin, Xiao Liu, Xin Li, Errui Ding, and Shilei Wen. Bmn: Boundary-matching network for temporal action proposal generation. In Proceedings of the IEEE/CVF international conference on computer vision, pages 3889–3898, 2019.
[18] Tsung-Yi Lin, Piotr Dollár, Ross Girshick, Kaiming He, Bharath Hariharan, and Serge Belongie. Feature pyramid networks for object detection. In Proceedings of the IEEE conference on computer vision and pattern recognition, pages 2117–2125, 2017.
[19] Ze Liu, Jia Ning, Yue Cao, Yixuan Wei, Zheng Zhang, Stephen Lin, and Han Hu. Video swin transformer. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pages 3202–3211, 2022.
[20] Ilya Loshchilov and Frank Hutter. Decoupled weight decay regularization. arXiv preprint arXiv:1711.05101, 2017.
[21] Hui Lu, Albert Ali Salah, and Ronald Poppe. VideoMambaPro: A leap forward for mamba in video understanding, 2024.
[22] Viorica Pătrăucean, Xu Owen He, Joseph Heyward, Chuhan Zhang, Mehdi S. M. Sajjadi, George-Cristian Muraru, Artem Zholus, Mahdi Karami, Ross Goroshin, Yutian Chen, Simon Osindero, João Carreira, and Razvan Pascanu. TRecViT: A recurrent video transformer, 2024.
[23] AJ Piergiovanni and Michael Ryoo. Temporal gaussian mixture layer for videos. In International Conference on Machine learning, pages 5152–5161. PMLR, 2019.
[24] AJ Piergiovanni and Michael S Ryoo. Learning latent super-events to detect multiple activities in videos. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 5304–5313, 2018.
[25] Alec Radford, Jong Wook Kim, Chris Hallacy, Aditya Ramesh, Gabriel Goh, Sandhini Agarwal, Girish Sastry, Amanda Askell, Pamela Mishkin, Jack Clark, et al. Learning transferable visual models from natural language supervision. In International conference on machine learning, pages 8748–8763. PMLR, 2021.
[26] Tal Ridnik, Emanuel Ben Baruch, Nadav Zamir, Asaf Noy, Itamar Friedman, Matan Protter, and Lihí Zelnik-Manor. Asymmetric loss for multi-label classification. In IEEE/CVF International Conference on Computer Vision (ICCV), pages 82–91. IEEE, 2021.
[27] Michael S Ryoo, Keerthana Gopalakrishnan, Kumara Kahatapitiya, Ted Xiao, Kanishka Rao, Austin Stone, Yao Lu, Julian Ibarz, and Anurag Arnab. Token turing machines. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pages 19070–19081, 2023.
[28] Faegheh Sardari, Armin Mustafa, Philip JB Jackson, and Adrian Hilton. PAT: Position-aware transformer for dense multi-label action detection. In Proceedings of the IEEE/CVF International Conference on Computer Vision (ICCV) Workshops, pages 2988–2997, 2023.
[29] Dingfeng Shi, Yujie Zhong, Qiong Cao, Lin Ma, Jia Li, and Dacheng Tao. Tridet: Temporal action detection with relative boundary modeling. In Proceedings of the IEEE/CVF conference on computer vision and pattern recognition, pages 18857–18866, 2023.
[30] Gunnar A Sigurdsson, Gül Varol, Xiaolong Wang, Ali Farhadi, Ivan Laptev, and Abhinav Gupta. Hollywood in homes: Crowdsourcing data collection for activity understanding. In European conference on computer vision, pages 510–526. Springer, 2016.
[31] Arkaprava Sinha, Monish Soundar Raj, Pu Wang, Ahmed Helmy, and Srijan Das. Ms-temba: Multi-scale temporal mamba for efficient temporal action detection. arXiv preprint arXiv:2501.06138, 2025.
[32] Jing Tan, Xiaotong Zhao, Xintian Shi, Bin Kang, and Limin Wang. Pointtad: Multi-label temporal action detection with learnable query points. Advances in Neural Information Processing Systems, 35:15268–15280, 2022.
[33] Praveen Tirupattur, Kevin Duarte, Yogesh S Rawat, and Mubarak Shah. Modeling multi-label action dependencies for temporal action localization. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pages 1460–1470, 2021.
[34] Ashish Vaswani, Noam Shazeer, Niki Parmar, Jakob Uszkoreit, Llion Jones, Aidan N Gomez, Łukasz Kaiser, and Illia Polosukhin. Attention is all you need. In Advances in neural information processing systems, pages 5998–6008, 2017.
[35] Serena Yeung, Olga Russakovsky, Ning Jin, Mykhaylo Andriluka, Greg Mori, and Li Fei-Fei. Every moment counts: Dense detailed labeling of actions in complex videos. International Journal of Computer Vision, 126(2):375–389, 2018.
[36] Hongyi Zhang, Moustapha Cisse, Yann N Dauphin, and David Lopez-Paz. mixup: Beyond empirical risk minimization. In International Conference on Learning Representations, 2018.
[37] Yue Zhao, Yuanjun Xiong, Limin Wang, Zhirong Wu, Xiaou Tang, and Dahua Lin. Temporal action detection with structured segment networks. In Proceedings of the IEEE international conference on computer vision, pages 2914–2923, 2017.
[38] Lianghui Zhu, Bencheng Liao, Qian Zhang, Xinlong Wang, Wenyu Liu, and Xinggang Wang. Vision mamba: Efficient visual representation learning with bidirectional state space model. In International Conference on Machine Learning, 2024.
[39] Yuhan Zhu, Guozhen Zhang, Jing Tan, Gangshan Wu, and Limin Wang. Dual DETRs for multi-label temporal action detection. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pages 18559–18569, 2024.