Our new X account is live! Follow @wizwand_team for updates
WorkDL logo mark

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

About

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

Mandela Patrick, Dylan Campbell, Yuki M. Asano, Ishan Misra, Florian Metze, Christoph Feichtenhofer, Andrea Vedaldi, Jo\~ao F. Henriques• 2021

Related benchmarks

TaskDatasetResultRank
Video Object SegmentationDAVIS 2017 (val)
J mean58.3
1130
Action RecognitionNTU RGB+D 120 (X-set)
Accuracy87.9
661
Action RecognitionNTU RGB+D 60 (Cross-View)
Accuracy91.6
575
Action RecognitionSomething-Something v2 (val)
Top-1 Accuracy68.1
535
Action RecognitionKinetics-400
Top-1 Acc81.1
413
Action RecognitionSomething-Something v2
Top-1 Accuracy68.1
341
Action RecognitionSomething-Something v2 (test)
Top-1 Acc68.1
333
Action RecognitionNTU RGB-D Cross-Subject 60
Accuracy85.7
305
Action RecognitionKinetics 400 (test)
Top-1 Accuracy80.2
245
Video ClassificationKinetics 400 (val)
Top-1 Acc81.1
204
Showing 10 of 64 rows

Other info

Code

Follow for update