MASTAF: A Model-Agnostic Spatio-Temporal Attention Fusion Network for Few-shot Video Classification

Rex Liu, Huanle Zhang, Hamed Pirsiavash, Xin Liu
12/8/2021
cs.CVcs.LG
transformer-attention

Official code: lxhit/STAF (4 stars, Python, last commit 2023-06-19).

Abstract

We propose MASTAF, a Model-Agnostic Spatio-Temporal Attention Fusion network for few-shot video classification. MASTAF takes input from a general video spatial and temporal representation,e.g., using 2D CNN, 3D CNN, and Video Transformer.

Show full abstract

Then, to make the most of such representations, we use self- and cross-attention models to highlight the critical spatio-temporal region to increase the inter-class variations and decrease the intra-class variations. Last, MASTAF applies a lightweight fusion network and a nearest neighbor classifier to classify each query video. We demonstrate that MASTAF improves the state-of-the-art performance on three few-shot video classification benchmarks(UCF101, HMDB51, and Something-Something-V2), e.g., by up to 91.6%, 69.5%, and 60.7% for five-way one-shot video classification, respectively.

View on arXivView PDF

Code Implementations(1)

lxhit/STAFOfficial100%

Spatiotemporal attention fusion network for few shot video classification

41PythonOct 21, 20213 years ago

Similar Papers

Cite this paper

@article{liu2021mastaf,
  title  = {MASTAF: A Model-Agnostic Spatio-Temporal Attention Fusion Network for Few-shot Video Classification},
  author = {Rex Liu and Huanle Zhang and Hamed Pirsiavash and Xin Liu},
  year   = {2021},
  eprint = {2112.04585},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2112.04585}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2112.04585.svg)](https://codeofpaper.com/paper/2112.04585)

Discussion