Abstract
ActionFormer is a streamlined, single-stage Transformer architecture designed for Temporal Action Localization (TAL). By integrating a multiscale feature pyramid with local self-attention, the model identifies action boundaries and categories in a single pass, eliminating the need for complex multi-stage pipelines or pre-defined anchors. ActionFormer achieves significant performance gains across major benchmarks, notably improving mean Average Precision (mAP) on THUMOS14 by over 14 percentage points.
Introduction
Temporal Action Localization (TAL) is the task of identifying the start and end times of actions within an untrimmed video and assigning them a category label. Historically, this has been treated as a complex, multi-stage problem involving proposal generation, classification, and boundary refinement. These methods often relied on "anchors"—fixed-size windows that are difficult to tune for actions of varying lengths.
ActionFormer simplifies this process by treating TAL as a sequence labeling problem, similar to Named Entity Recognition in NLP. It uses an anchor-free design that allows the model to "reach out" from any moment in the video to find action boundaries, making it more flexible and efficient than previous state-of-the-art methods.
Methods
ActionFormer follows a minimalist encoder-decoder design inspired by successful object detectors like FCOS and Transformer architectures in NLP.
The Multiscale Transformer Encoder
The model processes pre-extracted video features through a series of Transformer blocks. To handle long videos efficiently, it employs local self-attention, where each moment only attends to a window of its neighbors. It also constructs a feature pyramid: successive layers downsample the temporal resolution, enabling the model to capture short actions at high resolutions and long actions at lower resolutions.
The Lightweight Decoder
Instead of complex proposal heads, ActionFormer uses a simple convolutional decoder. For every point in the feature pyramid, it predicts:
- Classification: The probability that the moment belongs to a specific action class.
- Regression: The distance from that moment to the start (onset) and end (offset) of the action.
Key Insights
- Receptive Field via Pyramids: While global self-attention is computationally expensive ($O(T^2)$), local attention within a pyramid allows a small window at higher levels to cover a massive temporal span in the original video.
- Optional Position Embeddings: Interestingly, standard Transformer position embeddings were found to hinder performance. The authors suggest that convolutional layers used for projection and downsampling already provide sufficient temporal order information.
- Center Sampling: During training, the model prioritizes moments near the center of an action, which helps produce higher confidence scores for the most representative parts of a segment.
Results
ActionFormer demonstrated a massive leap in performance across three diverse benchmarks:
- THUMOS14: Achieved 71.0% mAP at a tIoU of 0.5, outperforming the previous state-of-the-art by 14.1 absolute percentage points.
- EPIC-Kitchens 100: Set a new record with a 13.5% boost in average mAP, proving its effectiveness in dense, egocentric action environments.
- ActivityNet 1.3: Reached 36.6% average mAP, showing strong scalability on large-scale datasets.
Conclusion and Future Work
ActionFormer proves that a simple, anchor-free Transformer can significantly outperform complex, multi-stage pipelines in temporal action localization. While highly effective, the authors note that boundary regression remains more challenging than classification. Future work may explore more sophisticated regression heads or end-to-end training from raw pixels to further refine localization precision.
Summary updated