Introduction
Online Temporal Action Localization (OnTAL) is a critical task for real-time video understanding, requiring models to identify the start, end, and class of action instances as they occur. Unlike Online Action Detection (OAD), which focuses on per-frame predictions, OnTAL seeks to produce discrete action proposals. However, existing OnTAL models often rely on narrow "short-term windows," typically spanning only a few seconds. This lack of historical context leads to fragmented predictions, especially in complex procedural tasks like cooking or assembly, where past actions provide vital cues for current activities.
Methodology: The HAT Architecture
To address the limitations of short-term memory, the History-Augmented Anchor Transformer (HAT) introduces a framework that integrates long-term historical context into instance-level predictions. The model is designed to be both context-aware and computationally efficient.
Key Components
- History Compressor: To handle potentially massive amounts of historical data, HAT employs a transformer decoder with a learnable "history token." This compresses minutes of video into a compact, manageable representation.
- Action Anticipation Head: This novel training strategy tasks the history module with predicting actions in the current short-term window. This "future-supervised" approach ensures the compressor retains only the historical information most relevant to upcoming actions.
- Future-Driven History Refinement: This module uses cross-attention to align compressed history with current short-term features, ensuring the "memory" is contextually relevant to the present moment.
- History-Driven Anchor Refinement: The refined history is injected into "anchor features," which the model uses to classify and locate actions precisely.
- Adaptive Focal Loss (AFL): HAT utilizes AFL to balance the model's attention across foreground action classes, preventing dominant classes from overshadowing rarer ones during training.
Experimental Evaluation
The authors evaluated HAT across several datasets, categorized by their procedural complexity:
- Procedural Egocentric (PREGO): EGTEA and EPIC-Kitchens-100, where actions are highly dependent on sequence.
- Standard OnTAL: THUMOS'14 and MUSES, which feature more traditional third-person footage.
Key Results
- State-of-the-Art Performance: On the EGTEA dataset, HAT achieved a mean Average Precision (mAP) of 21.5%, a significant improvement over the previous state-of-the-art (OAT) at 19.6%.
- Task-Dependent Utility: The results highlight that long-term history is most beneficial for procedural tasks. In cooking (PREGO), sequence matters; in sports (THUMOS'14), history is less critical, yet HAT remained competitive (44.8% mAP vs 44.6% for OAT).
- Real-Time Efficiency: Despite its architectural complexity, HAT maintains a high inference speed of 147 FPS on a single RTX 4090 GPU, making it suitable for real-time robotics and AR applications.
Conclusion
HAT demonstrates that integrating long-term context is essential for robust online action localization, particularly in procedural environments. By using action anticipation as a calibration tool, the model learns to filter and utilize history effectively. Future research may explore adaptive attention spans to dynamically adjust the look-back window based on scene complexity.
Summary updated