Skip to main content
QUICK REVIEW

[Paper Review] AttentionNAS: Spatiotemporal Attention Cell Search for Video Classification

Xiaofang Wang, Xuehan Xiong|arXiv (Cornell University)|Jul 23, 2020
Advanced Neural Network ApplicationsComputer Science42 references7 citations
TL;DR

This paper proposes AttentionNAS, a neural architecture search framework that automatically discovers spatiotemporal attention cells for video classification. By introducing a differentiable search space over map-based and dot-product attention operations, it discovers cells that improve I3D and S3D backbones by over 2% on Kinetics-600 and MiT, outperforming non-local blocks and generalizing across modalities, backbones, and datasets.

ABSTRACT

Convolutional operations have two limitations: (1) do not explicitly model where to focus as the same filter is applied to all the positions, and (2) are unsuitable for modeling long-range dependencies as they only operate on a small neighborhood. While both limitations can be alleviated by attention operations, many design choices remain to be determined to use attention, especially when applying attention to videos. Towards a principled way of applying attention to videos, we address the task of spatiotemporal attention cell search. We propose a novel search space for spatiotemporal attention cells, which allows the search algorithm to flexibly explore various design choices in the cell. The discovered attention cells can be seamlessly inserted into existing backbone networks, e.g., I3D or S3D, and improve video classification accuracy by more than 2% on both Kinetics-600 and MiT datasets. The discovered attention cells outperform non-local blocks on both datasets, and demonstrate strong generalization across different modalities, backbones, and datasets. Inserting our attention cells into I3D-R50 yields state-of-the-art performance on both datasets.

Motivation & Objective

  • To address the limitations of convolutional operations in video classification, such as fixed receptive fields and inability to model long-range dependencies.
  • To develop a principled, automated method for designing attention cells that can be seamlessly integrated into existing video backbone networks.
  • To explore the design space of spatiotemporal attention operations, including dimensionality (temporal, spatial, or spatiotemporal) and composition of attention mechanisms.
  • To enable generalization of discovered attention cells across different modalities (e.g., RGB to optical flow), backbones (e.g., I3D to S3D), and datasets (e.g., MiT to Kinetics-600).

Proposed method

  • Proposes a novel search space for spatiotemporal attention cells using two primitive attention operations: map-based attention and dot-product (self-attention).
  • Introduces a differentiable formulation of the search space, enabling end-to-end training via back-propagation to jointly optimize network weights and attention cell architecture.
  • Employs both Gaussian Process Bandit (GPB) and differentiable NAS to efficiently search the architecture space with reduced computational cost.
  • Supports position-specific attention cell designs by learning distinct architectures for different layers, with zero additional cost via the differentiable formulation.
  • Uses a search space that allows flexible composition of attention operations across spatial, temporal, and spatiotemporal dimensions.
  • Inserts the discovered attention cells into existing backbones like I3D and S3D without architectural modification, enabling plug-and-play performance gains.

Experimental results

Research questions

  • RQ1Can neural architecture search be extended beyond convolutional cells to discover optimal attention-based cells for video classification?
  • RQ2How can the design space of spatiotemporal attention operations be systematically explored to improve video understanding models?
  • RQ3Can attention cells discovered on one modality (e.g., RGB) generalize effectively to another (e.g., optical flow) without retraining?
  • RQ4Do attention cells discovered for one backbone (e.g., S3D) generalize well to other backbones (e.g., I3D) or to deeper variants (e.g., I3D-R50)?
  • RQ5Can attention cells discovered on one dataset (e.g., MiT) generalize to another (e.g., Kinetics-600), and vice versa?

Key findings

  • The differentiable search method discovers attention cells that improve I3D and S3D backbones by more than 2% on both Kinetics-600 and MiT datasets.
  • Position-specific attention cells consistently outperform position-agnostic designs, demonstrating the benefit of spatial and temporal context-aware attention.
  • Attention cells discovered on RGB frames generalize effectively to optical flow modality, improving I3D accuracy by 5.67% on Kinetics-600 without any flow data during search.
  • Cells discovered for S3D improve I3D performance by ~2% on both datasets, even though they were never optimized for I3D, showing strong cross-backbone generalization.
  • Cells discovered on MiT generalize to Kinetics-600, achieving over 2% accuracy gain, and vice versa, indicating strong cross-dataset transferability.
  • Inserting the best discovered attention cell into I3D-R50 achieves state-of-the-art performance on both Kinetics-600 (77.86% top-1) and MiT (32.48% top-1), outperforming AssembleNet-50 using both RGB and flow.

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.