DyFADet: Dynamic Feature Aggregation for Temporal Action Detection

Le Yang, Ziwei Zheng, Yizeng Han, Hao Cheng, Shiji Song, Gao Huang, Fan Li

Abstract

Temporal Action Detection (TAD) requires precise localization and classification of actions within untrimmed videos. Existing methods often struggle with high spatial redundancy and varying action scales due to their reliance on static convolutional kernels. We present DyFADet, which introduces a Dynamic Feature Aggregation (DFA) module. DFA enables models to adaptively adjust kernel weights and receptive fields based on input video content. By incorporating a dynamic encoder (DynE) and a multi-scale dynamic head (DyHead), DyFADet achieves state-of-the-art performance across six major benchmarks while maintaining high computational efficiency.

Introduction

Temporal Action Detection (TAD) involves identifying the start and end times of specific actions in long, untrimmed videos. Despite significant progress, current state-of-the-art models face two primary challenges:

  1. Poor Discriminability: High spatial redundancy in videos—where adjacent frames appear nearly identical—makes it difficult for static feature extractors to distinguish between actual actions and background or boundary frames.
  2. Head Inadaptation: Action instances exhibit extreme scale variance, ranging from seconds to minutes. Standard models typically employ a "one-size-fits-all" detection head with fixed-size filters, which is sub-optimal for capturing both short and long-duration actions.
Overview of normal convolution vs. the proposed DFA module and its application in the DyFADet architecture.

To address these issues, we propose DyFADet, a framework that replaces static components with dynamic counterparts capable of content-dependent adaptation.

Methodology: Dynamic Feature Aggregation

The core of our approach is the Dynamic Feature Aggregation (DFA) module. Unlike standard convolutions that use fixed weights for all inputs, DFA adapts its operations to the specific characteristics of each video segment.

The DFA Module

The DFA module decomposes a standard convolution into two distinct steps: "feature shifting" and a point-wise (1x1) convolution. Between these steps, a lightweight module learns an input-dependent mask. This mask can selectively zero out irrelevant features or re-weight significant ones. This mechanism effectively modifies the receptive field's shape and the kernel weights dynamically for every timestamp.

Detailed comparison between a normal convolution and the DFA module in the context of TAD, highlighting the feature shifting and masking processes.

Architectural Integration

DyFADet leverages DFA in two key components:

  • Dynamic Encoder (DynE): We replace standard Self-Attention (SA) modules in Transformer-based encoders with DynE. By using DFA to gather global action information, DynE produces more discriminative representations, sharpening the distinction between actions and background.
  • Dynamic TAD Head (DyHead): Instead of a static head, DyHead uses DFA to selectively fuse features across the feature pyramid. This allows the model to adaptively route information and specialize its parameters for different action lengths.

Experiments and Results

We evaluated DyFADet on six diverse TAD benchmarks, including large-scale general activity datasets (HACS-Segment, ActivityNet-1.3), classic benchmarks (THUMOS14), and challenging egocentric datasets (Epic-Kitchen 100, Ego4D-MQ1.0).

Performance Highlights

  • State-of-the-Art Accuracy: DyFADet achieved 44.3% average mAP on the HACS dataset, surpassing previous leading models like TriDet. On THUMOS14, it reached 69.2% average mAP using I3D features.
  • Efficiency: The DyFADet-lite variant demonstrates significant speed advantages, with a CPU latency of 0.16s compared to ActionFormer's 0.57s, while still delivering superior accuracy.
  • Robustness: The model performs strongly across both third-person and first-person perspectives, indicating the robustness of the DFA module to different camera motions and viewpoints.

Discussion and Future Work

DyFADet demonstrates that simultaneous adaptation of weights and receptive fields is crucial for effective TAD. By analyzing feature similarity, we found that static models often produce overly similar features across time; DyFADet successfully breaks this similarity, leading to more precise boundary detection.

Future research will focus on further enhancing efficiency. Potential avenues include integrating sparse convolutions to entirely skip processing for masked features and introducing sparsity constraints during training to reduce computational load for real-time applications. Additionally, we aim to explore the application of DFA to broader video tasks such as summarization and highlight detection.

Summary updated

BibTeX
@inproceedings{yang2024dyfadet,
  author = {Le Yang and Ziwei Zheng and Yizeng Han and Hao Cheng and Shiji Song and Gao Huang and Fan Li},
  title = {{DyFADet: Dynamic Feature Aggregation for Temporal Action Detection}},
  booktitle = {European Conference on Computer Vision},
  year = {2024},
  doi = {10.1007/978-3-031-72952-2\_18},
}
Figure