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

TokenLearner: What Can 8 Learned Tokens Do for Images and Videos?

About

In this paper, we introduce a novel visual representation learning which relies on a handful of adaptively learned tokens, and which is applicable to both image and video understanding tasks. Instead of relying on hand-designed splitting strategies to obtain visual tokens and processing a large number of densely sampled patches for attention, our approach learns to mine important tokens in visual data. This results in efficiently and effectively finding a few important visual tokens and enables modeling of pairwise attention between such tokens, over a longer temporal horizon for videos, or the spatial content in images. Our experiments demonstrate strong performance on several challenging benchmarks for both image and video recognition tasks. Importantly, due to our tokens being adaptive, we accomplish competitive results at significantly reduced compute amount. We obtain comparable results to the state-of-the-arts on ImageNet while being computationally more efficient. We also confirm the effectiveness of the approach on multiple video datasets, including Kinetics-400, Kinetics-600, Charades, and AViD. The code is available at: https://github.com/google-research/scenic/tree/main/scenic/projects/token_learner

Michael S. Ryoo, AJ Piergiovanni, Anurag Arnab, Mostafa Dehghani, Anelia Angelova• 2021

Related benchmarks

TaskDatasetResultRank
Image ClassificationImageNet-1K 1.0 (val)
Top-1 Accuracy82.7
1866
Action RecognitionKinetics-400
Top-1 Acc85.4
413
Video ClassificationKinetics 400 (val)
Top-1 Acc85.4
204
Video Action RecognitionKinetics-400
Top-1 Acc85.4
184
Image ClassificationImageNet Real (val)
Top-1 Acc91.05
181
Video Action RecognitionKinetics 400 (val)
Top-1 Acc85.4
151
Action RecognitionKinetics-400 full (val)
Top-1 Acc82.1
136
Video ClassificationKinetics 400 (test)
Top-1 Acc85.4
97
Video ClassificationKinetics-600 (val)
Accuracy84.4
84
Action RecognitionKinetics-600
Top-1 Acc86.3
63
Showing 10 of 17 rows

Other info

Code

Follow for update