ReAct: Temporal Action Detection with Relational Queries

Dingfeng Shi, Yujie Zhong, Qiong Cao, Jing Zhang, Lin Ma, Jia Li, Dacheng Tao

Abstract

Temporal Action Detection (TAD) involves identifying the temporal boundaries and categories of actions in untrimmed videos. While the Detection Transformer (DETR) paradigm has seen success in image-based object detection, its application to the temporal domain is hindered by query redundancy and sparse training signals. This paper presents ReAct, a one-stage framework that introduces relational attention and specialized classification enhancement losses. ReAct achieves state-of-the-art performance on the THUMOS14 benchmark (55.0% mAP) with significantly reduced computational overhead (0.68G FLOPs), demonstrating a robust balance between accuracy and efficiency.

1. Introduction

Temporal Action Detection (TAD) is a fundamental task in video understanding, requiring models to localize the start and end times of actions and assign appropriate semantic labels. Recent advancements in computer vision have seen a shift toward Transformer-based architectures, specifically the DEtection TRansformer (DETR). However, adapting DETR to the temporal domain presents unique challenges:

  1. Query Redundancy: Standard self-attention mechanisms often fail to distinguish between multiple instances of the same action or redundant overlapping queries.
  2. Sparse Positive Samples: The bipartite matching strategy in DETR results in a limited number of positive samples during training, which can destabilize the classification head.
  3. Localization-Classification Misalignment: High classification confidence does not always correlate with precise temporal localization.

To address these issues, we propose ReAct, a novel framework designed to enhance query relationships and classification stability in one-stage temporal action detection.

2. The ReAct Framework

ReAct builds upon the Transformer encoder-decoder architecture, incorporating three primary innovations: Relational Attention with IoU Decay (RAID), Action Classification Enhancement (ACE) losses, and a dedicated segment quality prediction head.

2.1 Relational Attention with IoU Decay (RAID)

In video sequences, actions often occur in clusters or repeat across the timeline. RAID optimizes the communication between action queries by categorizing their relationships into three types: distinct-similar (same class, different instances), distinct-dissimilar (different classes), and duplicates. By encouraging information exchange between distinct-similar queries, the model leverages global context to increase detection confidence. Simultaneously, an IoU Decay penalty is applied to discourage duplicate queries from converging on the same temporal segment, forcing the model to explore diverse action boundaries.

2.2 Action Classification Enhancement (ACE)

To mitigate the "sparse positive" problem inherent in bipartite matching, ReAct introduces two auxiliary losses:

  • ACE-enc: A contrastive loss applied at the encoder level. It ensures that video features belonging to the same action class are clustered together in the embedding space, while features from different classes are pushed apart.
  • ACE-dec: During the training phase, ground-truth segments are fed into the decoder as "perfect" queries. This provides the classification head with stable, high-quality signals, effectively teaching the model what an ideal detection looks like.

2.3 Segment Quality Prediction

To resolve the misalignment between classification scores and localization accuracy, ReAct includes a quality prediction head. This head estimates the midpoint offset and the Intersection over Union (IoU) for each predicted segment. During inference, the final ranking score is the product of the classification probability and the predicted quality score, ensuring that the most accurately localized segments are prioritized.

3. Experiments and Results

The ReAct framework was evaluated on two primary benchmarks: THUMOS14, characterized by frequent, short action instances, and ActivityNet-1.3, which features longer videos with high duration variance.

3.1 Performance on THUMOS14

ReAct sets a new state-of-the-art on THUMOS14, achieving an average mAP of 55.0%. This represents a significant 9.4% absolute improvement over the previous leading DETR-based model, TadTR. The performance gain is attributed to the model's ability to handle high-frequency actions through relational queries.

3.2 Computational Efficiency

One of the most striking advantages of ReAct is its efficiency. By utilizing deformable attention and a streamlined one-stage architecture, it requires only 0.68G FLOPs. In comparison, other high-performing models like AFSD (5.1G) and G-TAD (639.8G) are significantly more resource-intensive.

3.3 Results on ActivityNet-1.3

On the ActivityNet-1.3 dataset, ReAct achieved an average mAP of 32.6%. While this is competitive with existing state-of-the-art methods, it also highlights the challenges of video-agnostic query embeddings in datasets with extreme variance in action duration.

4. Conclusion and Future Work

ReAct demonstrates that relational queries and enhanced classification signals can significantly boost the performance of DETR-like models in the temporal domain. By prioritizing context and training stability, ReAct achieves superior accuracy on THUMOS14 while maintaining a minimal computational footprint. Future research will focus on end-to-end optimization of the video backbone and developing video-adaptive query mechanisms to better handle the diverse action scales found in long-form video content.

Summary updated

BibTeX
@inproceedings{shi2022react,
  author = {Dingfeng Shi and Yujie Zhong and Qiong Cao and Jing Zhang and Lin Ma and Jia Li and Dacheng Tao},
  title = {{ReAct: Temporal Action Detection with Relational Queries}},
  booktitle = {European Conference on Computer Vision},
  year = {2022},
  doi = {10.1007/978-3-031-20080-9\_7},
}
Figure