Abstract
Online Action Detection (OAD) requires identifying actions in real-time video streams as they occur. Traditional Transformer-based approaches often rely on a "sliding window" queue, which introduces significant computational redundancy by re-calculating historical frame representations at every new step. In this paper, we present CWC-Trans, a novel architecture that utilizes a Circular Window Strategy to reuse intermediate computations. By integrating a Multi-head Token Slimming Module (MSTM) for history compression and an auxiliary Offline Action Segmentation (OAS) task, CWC-Trans achieves state-of-the-art accuracy on major benchmarks while maintaining a high-speed inference rate of over 80 FPS.
The Challenge: Efficiency in Real-Time Detection
Online Action Detection is fundamentally different from offline detection; the model must make predictions based solely on current and past frames. This presents two primary challenges:
- Temporal Dependency: Actions like a "high jump" or "golf swing" depend on long-term context, requiring models to process long video sequences.
- Computational Redundancy: Previous state-of-the-art methods typically use a sliding window. When a new frame arrives, the entire queue shifts, forcing the model to re-process almost all historical frames. This quadratic complexity hinders real-time deployment.
Methodology
Circular Window Strategy
To overcome the inefficiency of sliding windows, CWC-Trans introduces a circular buffer mechanism. Instead of shifting the entire queue, the model only updates the representations for the newest and oldest frames within a specific window. Intermediate representations are reused, drastically reducing the per-step computational load without sacrificing the temporal context.
System Architecture
The CWC-Trans architecture is divided into three main components: Long-term History Modeling, Short-term Trend Modeling, and Long Short-term Refinement.
- Multi-head Token Slimming Module (MSTM): To manage memory for long histories, the MSTM dynamically selects and aggregates crucial tokens, compressing the history into a manageable set of representatives.
- OAD-OAS Association: The model is trained with an auxiliary Offline Action Segmentation (OAS) task. By forcing the model to perform offline segmentation on its own history (where the "future" is known relative to historical timestamps), it learns more discriminative feature clusters that aid in recognizing starting actions in the current frame.
- Cascade Refinement: A multi-stage approach is employed where initial coarse predictions are refined through a lightweight module to improve accuracy near action boundaries.
Experimental Results
CWC-Trans was evaluated on three large-scale benchmarks: THUMOS’14 (sports), TVSeries (realistic actions), and HDD (driving behaviors).
Performance and Speed
- Accuracy: The model achieved 71.6% mAP on THUMOS’14 and 89.6% mcAP on TVSeries, outperforming previous leaders like LSTR and GateHUB.
- Inference Speed: Running at 80.7 FPS on a single Tesla V100 GPU, CWC-Trans provides a superior accuracy-to-speed trade-off compared to heavier models.
- Ablation Studies: Results confirmed that the OAS auxiliary task improved performance by 0.8%, while the cascade refinement added another 0.4%, validating the architectural design choices.
Conclusion and Future Work
CWC-Trans demonstrates that real-time Transformer performance can be achieved by prioritizing the reuse of computations over constant re-calculation. While the model sets a new standard for OAD, challenges remain in detecting highly abstract or brief actions (e.g., "pointing") and distinguishing preparatory movements from the actions themselves. Future research will focus on developing even more compact representations for these sudden, context-light movements.
Summary updated