Abstract
Action localization networks are often structured as a feature encoder sub-network and a localization sub-network, where the feature encoder learns to transform an input video to features that are useful for the localization sub-network to generate reliable action proposals. While some of the encoded features may be more useful for generating action proposals, prior action localization approaches do not include any attention mechanism that enables the localization sub-network to attend more to the more important features. In this paper, we propose a novel attention mechanism, the Class Semantics-based Attention (CSA), that learns from the temporal distribution of semantics of action classes present in an input video to find the importance scores of the encoded features, which are used to provide attention to the more useful encoded features. We demonstrate on two popular action detection datasets that incorporating our novel attention mechanism provides considerable performance gains on competitive action detection models (e.g., around 6.2% improvement over BMN action detection baseline to obtain 47.5% mAP on the THUMOS-14 dataset), and a new state-of-the-art of 36.25% mAP on the ActivityNet v1.3 dataset. Further, the CSA localization model family which includes BMN-CSA, was part of the second-placed submission at the 2021 ActivityNet action localization challenge. Our attention mechanism outperforms prior self-attention modules such as the squeeze-and-excitation in action detection task. We also observe that our attention mechanism is complementary to such self-attention modules in that performance improvements are seen when both are used together.
Introduction
Temporal Action Detection (TAD) is the task of identifying the start, end, and category of actions in untrimmed videos. Most modern TAD architectures consist of an encoder (which creates feature representations) and a localization sub-network (which predicts boundaries). A critical gap in these models is that they often treat all encoded features as equally important. While self-attention mechanisms like Squeeze-and-Excitation (SE) or Transformers exist, they typically only look at the features themselves to determine importance.
This paper argues that class semantics—knowing which action is likely occurring—provide a powerful but underutilized cue for localization. For example, the visual features important for identifying the start of a "High Jump" are likely very different from those for "Drinking Coffee." The proposed Class Semantics-based Attention (CSA) uses these semantic "class signatures" to guide the localization process.
Methodology
The core innovation is the Class Semantics-based Attention (CSA) module. Unlike standard self-attention, which is "input-blind" to the semantic source, CSA uses the output of a pre-trained action recognition model to modulate the features used for localization.
Key Components:
- Dual-Axis Attention: CSA computes attention weights along two parallel paths: the Channel Axis (identifying relevant feature channels) and the Temporal Axis (identifying critical points in time).
- Local Temporal Context: Instead of using global averages, CSA uses 1D convolutions. This allows the model to capture how class semantics change over time, which is vital for pinpointing the exact moment an action begins or ends.
- Cross-Feature Modulation: The module takes class-semantic rich features ($R$) as input to generate weights, which are then applied to the localization-specific features ($F$). This ensures that the localization head attends to the most semantically relevant data.
- Late Fusion: The channel-attended and temporal-attended features are concatenated and projected back to the original feature space before being passed to the localizer.
Experimental Results
The authors evaluated their method on two industry-standard benchmarks: THUMOS-14 and ActivityNet v1.3. They utilized publicly available TSN and TSP features to ensure fair comparison with existing baselines like BMN and GTAD.
Key Findings:
- Significant Performance Gains: On THUMOS-14, the BMN-CSA model achieved 47.5% mAP, a 6.2% absolute improvement over the BMN baseline. It outperformed other attention modules like CBAM and Transformers by 3-8% mAP.
- State-of-the-Art (SotA): The authors set a new SotA of 36.25% mAP on ActivityNet v1.3 when combining CSA with TSP features.
- Efficiency: The CSA module is extremely lightweight, adding only about 1ms of latency per video.
- Complementary Nature: CSA is complementary to existing self-attention modules. When used alongside SE blocks, the model showed additive performance gains, suggesting that class-based attention and feature-dependency attention capture different useful information.
Conclusion
Class Semantics-based Attention (CSA) effectively leverages recognition-level semantics to improve temporal localization. While the method shows a slight performance dip at very high tIoU thresholds (0.95) on ActivityNet, its overall gains and efficiency make it a robust addition to modern TAD pipelines. Future work includes integrating CSA into end-to-end transformer or graph-based models.
Summary updated