Papers › UniFormer: Unified Transformer for Efficient Spatial-Temporal Representation Learning

UniFormer: Unified Transformer for Efficient Spatial-Temporal Representation Learning

29 Sep 2021ICLR 2022 4archive 2025-07-28

Kunchang Li, Yali Wang, Gao Peng, Guanglu Song, Yu Liu, Hongsheng Li, Yu Qiao

It is a challenging task to learn rich and multi-scale spatial-temporal semantics from high-dimensional videos, due to large local redundancy and complex global dependency between video frames. The recent advances in this research have been mainly driven by 3D convolutional neural networks and vision transformers. Although 3D convolution can efficiently aggregate local context to suppress local redundancy from a small 3D neighborhood, it lacks the capability to capture global dependency because of the limited receptive field. Alternatively, vision transformers can effectively capture long-range dependency by self-attention mechanism, while having limitations on reducing local redundancy with blind similarity comparison among all the tokens in each layer. Based on these observations, we propose a novel Unified transFormer (UniFormer) which seamlessly integrates merits of 3D convolution and spatial-temporal self-attention in a concise transformer format, and achieves a preferable balance between computation and accuracy. Different from traditional transformers, our relation aggregator can tackle both spatial-temporal redundancy and dependency, by learning local and global token affinity respectively in shallow and deep layers. We conduct extensive experiments on the popular video benchmarks, e.g., Kinetics-400, Kinetics-600, and Something-Something V1&V2. With only ImageNet-1K pretraining, our UniFormer achieves 82.9%/84.8% top-1 accuracy on Kinetics-400/Kinetics-600, while requiring 10x fewer GFLOPs than other state-of-the-art methods. For Something-Something V1 and V2, our UniFormer achieves new state-of-the-art performances of 60.8% and 71.4% top-1 accuracy respectively.

PaperPDFCode

Code

sense-x/uniformer officialpytorchApache-2.0 report

Repository list and official/mentioned flags are the archive's, frozen 2025-07-28. Reachability, where shown, is from one Syntology probe window (2026-09-16 to 2026-09-18); repositories not probed show nothing. GitHub stars are not tracked.

Code Syntology ran Syntology

Not run by Syntology. Nothing on this page verifies that the listed code works.

Tasks

Action ClassificationAction RecognitionRepresentation Learning

Results from the paper archive 2025-07-28

TaskDatasetModelMetricValueRank at snapshotLeaderboardReport
Action Classification Kinetics-400 UniFormer-B (ImageNet-1K) Acc@1 82.9 #71 of 207 Archive leaderboard report
Action Classification Kinetics-400 UniFormer-B (ImageNet-1K) Acc@5 94.5 #71 of 207 Archive leaderboard report
Action Classification Kinetics-400 UniFormer-B (ImageNet-1K) FLOPs (G) x views 259x4 #71 of 207 Archive leaderboard report
Action Classification Kinetics-600 UniFormer-B (ImageNet-1K) GFLOPs 259x4 #31 of 65 Archive leaderboard report
Action Classification Kinetics-600 UniFormer-B (ImageNet-1K) Top-1 Accuracy 84.8 #31 of 65 Archive leaderboard report
Action Classification Kinetics-600 UniFormer-B (ImageNet-1K) Top-5 Accuracy 96.7 #31 of 65 Archive leaderboard report
Action Recognition Something-Something V1 UniFormer-B (IN-1K + Kinetics400) GFLOPs 259x3 #9 of 74 Archive leaderboard report
Action Recognition Something-Something V1 UniFormer-B (IN-1K + Kinetics400) Param. 50.1 #9 of 74 Archive leaderboard report
Action Recognition Something-Something V1 UniFormer-B (IN-1K + Kinetics400) Top 1 Accuracy 60.9 #9 of 74 Archive leaderboard report
Action Recognition Something-Something V1 UniFormer-B (IN-1K + Kinetics400) Top 5 Accuracy 87.3 #9 of 74 Archive leaderboard report
Action Recognition Something-Something V1 UniFormer-B (IN-1K + Kinetics600) GFLOPs 41.8x3 #13 of 74 Archive leaderboard report
Action Recognition Something-Something V1 UniFormer-B (IN-1K + Kinetics600) Param. 21.4 #13 of 74 Archive leaderboard report
Action Recognition Something-Something V1 UniFormer-B (IN-1K + Kinetics600) Top 1 Accuracy 57.6 #13 of 74 Archive leaderboard report
Action Recognition Something-Something V1 UniFormer-B (IN-1K + Kinetics600) Top 5 Accuracy 84.9 #13 of 74 Archive leaderboard report
Action Recognition Something-Something V2 UniFormer-B (IN-1K + Kinetics400 pretrain) GFLOPs 259x3 #31 of 123 Archive leaderboard report
Action Recognition Something-Something V2 UniFormer-B (IN-1K + Kinetics400 pretrain) Parameters 50.1 #31 of 123 Archive leaderboard report
Action Recognition Something-Something V2 UniFormer-B (IN-1K + Kinetics400 pretrain) Top-1 Accuracy 71.2 #31 of 123 Archive leaderboard report
Action Recognition Something-Something V2 UniFormer-B (IN-1K + Kinetics400 pretrain) Top-5 Accuracy 92.8 #31 of 123 Archive leaderboard report
Action Recognition Something-Something V2 UniFormer-S (IN-1K + Kinetics600 pretrain) GFLOPs 41.8x3 #47 of 123 Archive leaderboard report
Action Recognition Something-Something V2 UniFormer-S (IN-1K + Kinetics600 pretrain) Parameters 21.4 #47 of 123 Archive leaderboard report
Action Recognition Something-Something V2 UniFormer-S (IN-1K + Kinetics600 pretrain) Top-1 Accuracy 69.4 #47 of 123 Archive leaderboard report
Action Recognition Something-Something V2 UniFormer-S (IN-1K + Kinetics600 pretrain) Top-5 Accuracy 92.1 #47 of 123 Archive leaderboard report

Ranks are positions in the archive's leaderboards as they stood at the 2025-07-28 snapshot. Results published since then are not among these rows, so a rank here is not a current standing.

Methods

3D ConvolutionConvolution

Report a problem or propose a change · a person checks every report against the paper or source before anything changes; decisions are listed on /corrections