Abstract
Dense multi-label action detection in long, untrimmed videos presents a significant challenge due to the high frequency of overlapping actions and varying temporal scales. Traditional video transformers often rely on hierarchical structures that aggressively down-sample temporal resolution, leading to a loss of precise localization cues. This paper introduces the Position-Aware Transformer (PAT), a novel architecture that utilizes a non-hierarchical design and relative positional encoding to preserve temporal information. PAT achieves state-of-the-art performance on the Charades and MultiTHUMOS benchmarks, demonstrating superior ability in detecting fine-grained, overlapping actions.
Introduction
In the domain of video understanding, dense multi-label action detection requires identifying the precise start and end times of multiple concurrent actions. Unlike simple action recognition, where a trimmed clip contains a single activity, dense detection must navigate the complexities of real-world footage where actions like "holding a dish" and "making a sandwich" often occur simultaneously.
While Transformers have revolutionized sequence modeling, their application to video has been hindered by two primary issues: permutation invariance and the information loss associated with hierarchical down-sampling. Standard self-attention mechanisms treat frames as an unordered set unless positional encodings are applied. Furthermore, the common practice of shrinking temporal resolution across layers—intended to capture long-range dependencies—often destroys the very temporal precision needed for accurate localization.
Methodology: The Position-Aware Transformer
The PAT architecture is designed to maintain high temporal resolution while capturing multi-scale dependencies. It consists of three primary components: the Fine Detection Module (FDM), the Coarse Detection Module (CDM), and the Classification Module (CLASM).
Fine and Coarse Detection
The Fine Detection Module (FDM) processes the full video sequence to learn high-resolution dependencies. In contrast to traditional pyramid-like hierarchies, the Coarse Detection Module (CDM) adopts a non-hierarchical design. Instead of sequential down-sampling, it extracts multi-scale features—ranging from short-term to long-term—directly from the fine-grained base. This parallel approach ensures that the positional cues necessary for pinpointing action boundaries are not discarded during the feature extraction process.
Relative Positional Encoding (RPE)
A critical innovation in PAT is the use of Relative Positional Encoding (RPE). Traditional absolute positional encodings assign a fixed timestamp to each frame, which can break translation invariance; an action should be recognized the same way whether it occurs at the beginning or the end of a clip. RPE focuses on the relative distance between frames, ensuring the model remains consistent across different temporal locations within long videos.
Asymmetric Loss (ASL)
Dense datasets are typically characterized by a severe class imbalance, where "negative" frames (where a specific action is absent) vastly outnumber "positive" ones. To mitigate this, PAT employs Asymmetric Loss (ASL), which prevents the training process from being dominated by easy negative samples, allowing the model to focus on the harder-to-detect positive action instances.
Experimental Evaluation
PAT was evaluated on two rigorous benchmarks for dense action detection:
- Charades: Comprising nearly 10,000 videos of daily indoor activities with 157 classes, Charades is a benchmark for complex, overlapping actions. PAT achieved 26.5% mAP, a 1.1% improvement over the previous state-of-the-art, MS-TCT.
- MultiTHUMOS: An extension of THUMOS with 65 action classes and dense frame-level annotations. PAT reached 44.6% mAP, surpassing the previous best (CTRN) by 0.6%.
Qualitative analysis indicates that PAT is particularly effective at identifying short-duration actions that are often overlooked by hierarchical models, such as "taking a bag" or quick interactions with objects.
Conclusion and Future Work
The Position-Aware Transformer demonstrates that preserving temporal resolution through a non-hierarchical structure and relative positional encoding is vital for dense action detection. By maintaining the "where" and "when" of actions, PAT sets a new standard for performance on challenging untrimmed video datasets. Future research will explore end-to-end training from raw pixels and the integration of multimodal cues, such as audio, to further refine detection accuracy in complex acoustic environments.
Summary updated