Keeping Your Eye on the Ball: Trajectory Attention in Video Transformers

06/09/2021
by   Mandela Patrick, et al.
5

In video transformers, the time dimension is often treated in the same way as the two spatial dimensions. However, in a scene where objects or the camera may move, a physical point imaged at one location in frame t may be entirely unrelated to what is found at that location in frame t+k. These temporal correspondences should be modeled to facilitate learning about dynamic scenes. To this end, we propose a new drop-in block for video transformers – trajectory attention – that aggregates information along implicitly determined motion paths. We additionally propose a new method to address the quadratic dependence of computation and memory on the input size, which is particularly important for high resolution or long videos. While these ideas are useful in a range of settings, we apply them to the specific task of video action recognition with a transformer model and obtain state-of-the-art results on the Kinetics, Something–Something V2, and Epic-Kitchens datasets. Code and models are available at: https://github.com/facebookresearch/Motionformer

READ FULL TEXT

page 2

page 16

research
07/27/2022

Spatiotemporal Self-attention Modeling with Temporal Patch Shift for Action Recognition

Transformer-based methods have recently achieved great advancement on 2D...
research
06/24/2021

Video Swin Transformer

The vision community is witnessing a modeling shift from CNNs to Transfo...
research
07/01/2021

VideoLightFormer: Lightweight Action Recognition using Transformers

Efficient video action recognition remains a challenging problem. One la...
research
03/30/2023

Streaming Video Model

Video understanding tasks have traditionally been modeled by two separat...
research
03/31/2022

Deformable Video Transformer

Video transformers have recently emerged as an effective alternative to ...
research
11/15/2022

Dynamic Temporal Filtering in Video Models

Video temporal dynamics is conventionally modeled with 3D spatial-tempor...
research
03/01/2021

Generative Adversarial Transformers

We introduce the GANsformer, a novel and efficient type of transformer, ...

Please sign up or login with your details

Forgot password? Click here to reset