SimOn: A Simple Framework for Online Temporal Action Localization

Tuan N. Tang, Jungin Park, Kwonyoung Kim, Kwanghoon SohnarXiv 2022

Abstract

Online Temporal Action Localization (On-TAL) aims to immediately provide action instances from untrimmed streaming videos. The model is not allowed to utilize future frames or any processing techniques to modify past predictions, making On-TAL much more challenging than its offline counterpart. In this paper, we propose a simple yet effective framework, termed SimOn, that learns to predict action instances using the popular Transformer architecture in an end-to-end manner. Specifically, the model takes the current frame feature as a query and a set of past context information as keys and values of the Transformer. Different from prior work that uses a set of outputs of the model as past contexts, we leverage the past visual context and the learnable context embedding for the current query. Experimental results on the THUMOS14 and ActivityNet1.3 datasets show that our model remarkably outperforms previous methods, achieving a new state-of-the-art On-TAL performance. In addition, evaluation for Online Detection of Action Start (ODAS) demonstrates the effectiveness and robustness of our method in the online setting.

Introduction: The Challenge of Online Localization

In traditional Temporal Action Localization (TAL), models analyze an entire video at once (offline) to identify when actions start and end. These models benefit from looking at future frames and using post-processing techniques like Non-Maximum Suppression (NMS) to refine results. However, real-world applications like live sports broadcasting, autonomous driving, or surveillance require Online TAL (On-TAL).

Overview of the Online Temporal Action Localization (On-TAL) task, highlighting the constraint of using only past and current frames.

In the On-TAL setting, the model must predict actions as they happen without ever seeing the "future." Previous attempts at On-TAL were often cumbersome, two-stage processes that relied heavily on the outputs of other models rather than raw visual data, making them inefficient and less accurate. SimOn (Simple Online) aims to bridge the gap between offline and online performance with a simpler, more direct approach.

The SimOn Architecture

SimOn formulates On-TAL as a sequential prediction task using a Transformer architecture. The core innovation lies in how it manages temporal context without looking ahead.

Query-Key-Value Mechanism

At each time step $t$, the model extracts visual features from the current frame stack using a pre-trained 3D CNN. This feature serves as the Query for the Transformer. The model then retrieves a set of $k$ past visual contexts (features and their predicted probabilities) to serve as Keys and Values. This allows the current frame to be interpreted in the context of what has already occurred.

Dual Context Modeling

SimOn employs two types of context to inform its predictions:

  1. Long-term Visual Context: Represented by the past $k$ visual features, allowing the model to understand the long-form progression of an action (e.g., the wind-up before a pitch).
  2. Short-term Context Embedding: A learnable embedding that captures the immediate relationship between consecutive frames, helping the model maintain temporal continuity.
The sequential prediction process of SimOn across different time steps, illustrating the flow from feature extraction to Transformer-based classification.

End-to-End Training

Unlike prior work that required separate training for detection and decision modules, SimOn is trained in a single stage using Focal Loss. This unified training allows the model to handle multiple simultaneous actions—such as a "Cricket Bowling" and a "Cricket Shot" overlapping in time—by treating the problem as a series of multi-label binary classification tasks per frame.

Experimental Results

The model was evaluated on two gold-standard benchmarks for video understanding: THUMOS14 (20 action classes, dense instances) and ActivityNet1.3 (200 activity types, longer durations).

Performance and Efficiency

SimOn sets a new state-of-the-art for online action localization:

  • Accuracy: On THUMOS14, it achieved an average mAP of 34.4%, a significant jump over the previous best of 29.7%. On ActivityNet1.3, it improved the average mAP from 17.7% to 20.7%.
  • Speed: The model's inference time is approximately 5.2ms per 6-frame stack on a GTX 1080Ti. This is 13.2x faster than the previous leading method (CAG-QIL).
  • Robustness: In the Online Detection of Action Start (ODAS) task, SimOn outperformed specialized models by a wide margin (+15.2 p-mAP), proving its ability to identify the exact moment an action begins.

Conclusion

SimOn demonstrates that a simple, Transformer-based approach leveraging raw visual context is more effective for On-TAL than complex, multi-stage pipelines. By avoiding reinforcement learning and heavy post-processing, SimOn achieves superior results with significantly fewer parameters (3.94M). While challenges like quantization error and action merging remain, SimOn provides a highly efficient and scalable foundation for real-time video understanding.

Summary updated

BibTeX
@misc{tang2022simon,
  author = {Tuan N. Tang and Jungin Park and Kwonyoung Kim and Kwanghoon Sohn},
  title = {{SimOn: A Simple Framework for Online Temporal Action Localization}},
  year = {2022},
  eprint = {2211.04905},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2211.04905},
}
Figure