AdapNet: Adaptability Decomposing Encoder-Decoder Network for Weakly Supervised Action Recognition and Localization

Xiaoyu Zhang, Changsheng Li, Haichao Shi, Xiaobin Zhu, Peng Li, Jing Dong

TL;DR

AdapNet is a novel framework that improves weakly supervised action recognition and localization by intelligently transferring knowledge from trimmed to untrimmed videos. By using a triplet encoder to decompose features into domain-adaptable and domain-specific components, the model avoids "negative transfer" and achieves state-of-the-art results on major benchmarks like THUMOS14 and ActivityNet1.3.

What Problem Does This Paper Address?

In the world of video understanding, "untrimmed" videos—raw footage containing long stretches of irrelevant background—are much harder to analyze than "trimmed" videos, which are short clips focused on a single action. While fully supervised models can learn to localize actions, they require expensive frame-level annotations. Weakly supervised methods only use video-level labels (e.g., "this video contains basketball"), but they struggle to pinpoint exactly when the action occurs.

A common strategy is to leverage the abundance of labeled trimmed videos to help train models for untrimmed ones. However, direct knowledge transfer is risky; trimmed and untrimmed videos have different distributions, and forcing a model to treat them identically can introduce noise—a phenomenon known as negative transfer. AdapNet aims to solve this by filtering out domain-specific noise and focusing only on the features that are truly transferable.

Methods

The authors propose an Adaptability Decomposing Encoder-Decoder Network (AdapNet). The architecture consists of several key modules:

  1. Spatio-temporal Feature Extraction: The model uses a standard two-stream approach, extracting RGB and Optical Flow features via a ResNet101 backbone to capture both appearance and motion.
  2. Triplet Encoder: This is the core innovation. Instead of a single encoder, AdapNet uses three: one shared encoder ($E_s$) to extract "domain-adaptable" features common to both trimmed and untrimmed videos, and two private encoders ($E_{p,t}, E_{p,u}$) to capture features unique to each domain.
  3. Integrative Decoder: To ensure that the decomposition process doesn't lose vital information, a decoder attempts to reconstruct the original video features from the decomposed ones.
  4. Joint Optimization: The network is trained using a multi-part loss function:
  5. Classification Loss ($L_{cls}$): Standard cross-entropy for action recognition.
  6. Adaptability Loss ($L_{adp}$): Uses Jensen-Shannon divergence to ensure shared features are similar for the same action across domains.
  7. Difference Loss ($L_{dif}$): Punishes redundancy between the private and shared encoders.
  8. Recovery Loss ($L_{rec}$): Minimizes reconstruction error.
  9. Bidirectional Point Process: For localization, the model uses a Multi-view Temporal Class Activation Map (T-CAM) and refines the temporal boundaries using a Twin Recurrent Point Process (TRPP) to model the sequence of frames both forward and backward.
Fig. 1. The training-testing workflow of AdapNet. In the training stage, the method receives trimmed-untrimmed video pairs and the corresponding video- level labels, and learns the action recognition model through the encoder- decoder based network. In the testing stage, the optimized network is fed with unlabeled untrimmed videos, and aims to estimate both the actions of interest and their temporal intervals.

Datasets

The model was evaluated on two primary untrimmed video benchmarks:

  • THUMOS14: A dataset containing 101 action classes; the authors focused on the 20-class subset commonly used for temporal localization.
  • ActivityNet1.3: A large-scale dataset with 200 activity classes.
  • UCF101: Used as the source of trimmed videos for the knowledge transfer process.

Key Insights and Ideas

  • Feature Decomposition as a Filter: The most significant "aha moment" is the realization that not all video features are created equal for transfer learning. By explicitly modeling domain-specific noise, the shared subspace becomes much cleaner and more effective for classification.
  • Point Process for Sharp Boundaries: Traditional T-CAMs often produce "blurry" localization results. By treating the video sequence as a point process, AdapNet can better estimate the probability of action transitions, leading to more precise start and end times.
  • Information Preservation: The inclusion of a decoder (as seen in Figure 2) acts as a regularizer, preventing the encoders from discarding too much information in their quest to find a shared subspace.
Detailed framework of AdapNet showing the triplet encoder and integrative decoder

Key Results

AdapNet achieved impressive performance across both recognition and localization tasks:

  • Action Recognition: On THUMOS14, AdapNet reached 87.9% accuracy, outperforming previous state-of-the-art methods like TSRNet (87.1%). On ActivityNet1.3, it achieved 92.0%.
  • Action Localization: The model significantly outperformed other weakly supervised methods. On THUMOS14, at an IoU threshold of 0.5, AdapNet achieved a mean Average Precision (mAP) of 23.65%, nearly doubling the performance of some earlier weakly supervised competitors.
  • Qualitative Success: As shown in Figure 4, the multi-view T-CAM scores are highly consistent with ground-truth labels, successfully distinguishing between different actions in the same video (e.g., "ThrowDiscus" vs. "CleanAndJerk").
Fig. 4. Illustration of the temporal intervals corresponding to the ground-truth, the self-attention weights, and the multi-view T-CAM scores for a THUMOS14 video containing two action classes, i.e. ThrowDiscus (Blue) and CleanAndJerk (Orange). The horizontal axis is represented as the timestamps. As a class-agnostic metric, the self-attention weights highlight potential time intervals w.r.t. all the classes. In contrast, the multi-view T-CAM scores are calculated in a class-specific way, and thus provide accurate action localization information for ThrowDiscus and CleanAndJerk, respectively.

Limitations and Future Work

While AdapNet is robust, the authors noted that most false positives occur in very short video clips or during "transition" phases—such as the preparation or ending stages of an action—which are difficult to distinguish from the action itself.

Future work could involve more sophisticated modeling of these transition states. Additionally, while the two-stream ResNet101 approach is effective, exploring more recent backbones (like 3D CNNs or Transformers) within this decomposition framework could yield even higher precision.

Summary updated

BibTeX
@article{zhang2023adapnet,
  author = {Xiaoyu Zhang and Changsheng Li and Haichao Shi and Xiaobin Zhu and Peng Li and Jing Dong},
  title = {{AdapNet: Adaptability Decomposing Encoder-Decoder Network for Weakly Supervised Action Recognition and Localization}},
  journal = {IEEE Trans. Neural Networks Learn. Syst.},
  year = {2023},
  doi = {10.1109/tnnls.2019.2962815},
}
Figure