Abstract: Temporal Action Localization (TAL) is a significant and challenging task that searches for subtle human activities in an untrimmed video. To extract snippet-level video features, existing TAL methods commonly use video encoders pre-trained on short-video classification datasets. However, the snippet-level features can incur ambiguity between consecutive frames due to short and poor temporal information, disrupting the precise prediction of action instances. Several methods incorporating temporal relations have been proposed to mitigate this problem; however, they still suffer from poor video features. To address this issue, we propose a novel temporal action localization framework called an Action-aware Masking Network (AMNet). Our method simultaneously refines video features using action-aware attention and considers inherent temporal relations using self-attention and cross-attention mechanisms. First, we present an Action Masking Encoder (AME) that generates an action-aware mask to represent positive characteristics, which is then used to refine snippet-level features to be more salient around actions. Second, we design a Group Attention Module (GAM), which models relations of temporal information and exchanges mutual information by dividing the features into two groups, i.e., long and short-groups. Extensive experiments and ablation studies on two primary benchmark datasets demonstrate the effectiveness of AM-Net, and our method achieves state-of-the-art performances on THUMOS-14 and ActivityNet1.3.
Introduction
Temporal Action Localization (TAL) involves identifying the temporal boundaries (start and end times) and the specific category of human actions within long, untrimmed videos. A persistent challenge in this field is "scene ambiguity." Most current TAL frameworks rely on pre-trained video encoders (e.g., I3D or TSN) to extract features from short snippets. Because these snippets typically capture only a second of footage, they often lack the temporal context necessary to distinguish between action boundaries or subtle actions and background noise.
Furthermore, there is a frequent "inconsistency" between classification and localization. A proposal might be accurately localized but receive a low classification score, leading to its removal during post-processing. To address these issues, we introduce the Action-aware Masking Network (AMNet), presented at WACV 2023. AMNet refines snippet-level features using an action-aware mask and employs a group-based attention mechanism to capture both local and global temporal contexts.
Methodology
Action Masking Encoder (AME)
The core philosophy of AMNet is that the input features themselves require refinement before detection. The Action Masking Encoder (AME) is designed to generate an "action-aware mask" that highlights salient video features.
During training, the AME utilizes a triplet loss to ensure that features within action boundaries (positives) are embedded closer to a learned mask anchor, while background features (negatives) are pushed further away. The resulting mask is applied as a residual to the original snippet features, effectively suppressing background noise and accentuating action-relevant information.
Group Attention Module (GAM)
To handle actions of varying lengths, TAL models often use feature pyramids. AMNet enhances this by dividing multi-scale features into two distinct groups:
- Long-groups: High temporal resolution features that focus on local context, making them ideal for short actions.
- Short-groups: Compressed features that capture broader global context, suited for long actions.
The Group Attention Module (GAM) uses cross-attention between these groups. This allows the model to exchange mutual information across different scales, compensating for the limitations of looking at a single temporal resolution.
Matching Score Head
To mitigate the classification-localization inconsistency, AMNet includes a Matching Score Head. This head predicts the Intersection over Union (IoU) between the predicted proposal and the ground truth. This "matching score" is fused with the classification confidence, ensuring that proposals with high localization accuracy are prioritized during Non-Maximum Suppression (NMS).
Experiments and Results
AMNet was evaluated on two primary benchmarks: THUMOS-14 and ActivityNet 1.3, using I3D features as input.
- THUMOS-14: AMNet achieved state-of-the-art performance, reaching an average mAP of 63.3%. Notably, it showed a significant improvement of +4.6% at a strict tIoU threshold of 0.3 compared to previous leading methods.
- ActivityNet 1.3: On this larger dataset, AMNet achieved an average mAP of 36.4%. It set a new high mark for mAP at the 0.75 tIoU threshold (37.7%), proving its competitiveness on videos with longer actions.
Conclusion
AMNet addresses the fundamental limitations of snippet-level features in TAL through feature refinement and multi-scale temporal modeling. By introducing the Action Masking Encoder and the Group Attention Module, the framework effectively reduces scene ambiguity and improves localization consistency. While localization error and background confusion remain areas for future research, AMNet's performance on major benchmarks underscores the importance of refining input signals and balancing local-global contexts in temporal action localization.
Summary updated