Learning to Refactor Action and Co-occurrence Features for Temporal Action Localization

Kun Xia, Le Wang, Sanping Zhou, Nanning Zheng, Wei Tang

Abstract

Temporal Action Localization (TAL) aims to identify the start and end times of specific actions in untrimmed videos. A significant challenge in TAL is the dominance of background context (co-occurrence features), which can obscure the subtle motion of the action itself, leading to imprecise temporal boundaries. We propose RefactorNet, a module designed to explicitly decouple video features into action-specific and context-specific components. By refactoring these features and applying a KL-divergence loss for regularization, RefactorNet enhances the model's ability to focus on salient human actions. Our method achieves state-of-the-art results on the THUMOS14 and ActivityNet v1.3 benchmarks, significantly improving boundary detection precision.

Introduction: The Challenge of Context

In many sports and activities, the environment provides strong cues about the action type but remains static throughout the video. For instance, in a "High Jump" video, the track, sky, and audience are present before, during, and after the jump. These co-occurrence components often have higher visual consistency and magnitude than the brief action component (the athlete's jump). Standard TAL methods often treat these features as a single representation, which "drowns out" the action signal and makes it difficult to pinpoint exact start and end times.

The RefactorNet Framework

RefactorNet addresses this by inserting a refactoring module between the feature extractor and the action detector. The process involves three key stages:

  1. Sample Collection: The model identifies "action samples" (containing the action) and "coupling samples" (visually similar background snippets labeled as non-action).
  2. Feature Decoupling: Two separate encoders, $\phi_A$ (Action) and $\phi_C$ (Co-occurrence), are employed. $\phi_A$ is trained to minimize similarity between action and coupling samples to isolate unique motion, while $\phi_C$ maximizes similarity to capture shared environmental context.
  3. Recombination and Regularization: The decoupled features are recombined. A KL-divergence loss is applied to the co-occurrence component to prevent background features from dominating the final prediction, forcing the detector to rely on the refactored action signals.
Overview of the RefactorNet architecture, illustrating the feature embedding, decoupling (Training/Inference), and final action detection stages.

Experimental Results

RefactorNet was evaluated on the THUMOS14 and ActivityNet v1.3 datasets.

  • THUMOS14: The model achieved a mean Average Precision (mAP) of 58.6% at a tIoU of 0.5, surpassing previous state-of-the-art methods like MUSES (56.9%) and ContextLoc (54.3%).
  • ActivityNet v1.3: It reached an average mAP of 38.6%, showing notable improvements in high-overlap scenarios (tIoU=0.75), where it beat the previous SOTA by 1.6%.
  • Boundary Precision: A key strength of RefactorNet is its temporal localization accuracy. Boundary detection precision improved from a baseline of 13.4% to 19.3%.

Qualitative Insights

Visualizations using Class Activation Maps (CAMs) confirm the effectiveness of the decoupling strategy. The action encoder ($\phi_A$) successfully focuses on the human actor, while the co-occurrence encoder ($\phi_C$) isolates the background scenery. This demonstrates that the model learns to ignore irrelevant context when determining temporal boundaries.

Class Activation Maps (CAMs) for various actions, showing how the action encoder $\phi_A$ and co-occurrence encoder $\phi_C$ successfully isolate motion from background context.

Conclusion

RefactorNet demonstrates that explicitly separating action from context is more effective than simply increasing network depth for TAL. By "refactoring" video features, the model achieves sharper temporal boundaries and superior localization performance. Future work may explore applying this decoupling philosophy to weakly-supervised settings where temporal labels are unavailable.

Summary updated

BibTeX
@inproceedings{xia2022learning,
  author = {Kun Xia and Le Wang and Sanping Zhou and Nanning Zheng and Wei Tang},
  title = {{Learning to Refactor Action and Co-occurrence Features for Temporal Action Localization}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2022},
}
Figure