Skip to main content
QUICK REVIEW

[Paper Review] Few-Shot Temporal Action Localization with Query Adaptive Transformer

Sauradip Nag, Xiatian Zhu|arXiv (Cornell University)|Oct 20, 2021
Human Pose and Action RecognitionComputer Science4 citations
TL;DR

This paper proposes a novel few-shot temporal action localization (FS-TAL) setting using untrimmed support videos to improve contextual understanding and model generalization. It introduces a query adaptive Transformer (QAT) that dynamically adapts a base classifier to each query video, significantly outperforming prior methods by 4.8–6.2 mAP@0.5 in 1/5-shot settings on ActivityNet and THUMOS under both single- and cross-domain scenarios.

ABSTRACT

Existing temporal action localization (TAL) works rely on a large number of training videos with exhaustive segment-level annotation, preventing them from scaling to new classes. As a solution to this problem, few-shot TAL (FS-TAL) aims to adapt a model to a new class represented by as few as a single video. Exiting FS-TAL methods assume trimmed training videos for new classes. However, this setting is not only unnatural actions are typically captured in untrimmed videos, but also ignores background video segments containing vital contextual cues for foreground action segmentation. In this work, we first propose a new FS-TAL setting by proposing to use untrimmed training videos. Further, a novel FS-TAL model is proposed which maximizes the knowledge transfer from training classes whilst enabling the model to be dynamically adapted to both the new class and each video of that class simultaneously. This is achieved by introducing a query adaptive Transformer in the model. Extensive experiments on two action localization benchmarks demonstrate that our method can outperform all the state of the art alternatives significantly in both single-domain and cross-domain scenarios. The source code can be found in https://github.com/sauradip/fewshotQAT

Motivation & Objective

  • To address the limitation of existing few-shot TAL methods that rely on trimmed videos, which discard valuable background context.
  • To propose a more practical FS-TAL setting where new classes are represented by untrimmed videos with temporal annotations.
  • To enable dynamic adaptation of the foreground/background classifier to both the new class and each individual query video.
  • To improve knowledge transfer from seen classes to unseen classes by leveraging contextual cues in untrimmed videos.
  • To develop a query-adaptive Transformer mechanism that enhances intra-class invariance modeling under low-shot conditions.

Proposed method

  • Proposes a new FS-TAL setting where support sets consist of untrimmed videos with full temporal annotations, preserving background context.
  • Designs a query adaptive Transformer (QAT) that takes query video features and classifier weights as input to generate video-specific classifier adaptations.
  • Uses a snippet-level binary classifier trained on the support set to distinguish foreground and background snippets.
  • Employs meta-learning to train the QAT module so it can generalize across new classes and adapt quickly during inference.
  • Integrates the QAT module with video embedding networks like GTAD or BMN to extract contextual features from untrimmed videos.
  • Supports both trimmed and untrimmed settings, enabling backward compatibility with existing benchmarks.

Experimental results

Research questions

  • RQ1Can a few-shot TAL model achieve better performance when trained on untrimmed support videos instead of trimmed ones?
  • RQ2How does incorporating background context from untrimmed videos affect the model's ability to handle intra-class variation in few-shot settings?
  • RQ3Can a query-adaptive Transformer mechanism dynamically adapt a base classifier to each query video, improving localization accuracy?
  • RQ4How does the proposed method generalize across domains when transferring from ActivityNet to THUMOS and vice versa?
  • RQ5What is the computational efficiency of the proposed method compared to prior state-of-the-art approaches?

Key findings

  • The proposed method achieves a 4.8% mAP@0.5 gain over [Yang et al., 2020] in the 1-shot setting and a 6.2% gain in the 5-shot setting on ActivityNet.
  • On the cross-domain transfer setting from ActivityNet to THUMOS, the method achieves 45.9% mAP@0.5 in 1-shot and 54.4% in 5-shot, outperforming the prior state-of-the-art by 4.8 and 6.2 percentage points respectively.
  • The model maintains similar inference speed to [Yang et al., 2020], with only 0.83 seconds per task on a single RTX2080Ti GPU, indicating no efficiency penalty.
  • Deeper layers of the GTAD backbone (e.g., layer-5) yield better performance than shallower ones, with layer-5 selected as the optimal embedding layer due to cost-effectiveness.
  • The ablation study confirms that the query adaptive Transformer significantly improves performance, especially in handling intra-class variation across diverse video contexts.
  • The method generalizes well across domains, with consistent performance gains in both ActivityNet→THUMOS and THUMOS→ActivityNet transfer directions.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.