Papers › UniFormer: Unifying Convolution and Self-attention for Visual Recognition
UniFormer: Unifying Convolution and Self-attention for Visual Recognition
Kunchang Li, Yali Wang, Junhao Zhang, Peng Gao, Guanglu Song, Yu Liu, Hongsheng Li, Yu Qiao
It is a challenging task to learn discriminative representation from images and videos, due to large local redundancy and complex global dependency in these visual data. Convolution neural networks (CNNs) and vision transformers (ViTs) have been two dominant frameworks in the past few years. Though CNNs can efficiently decrease local redundancy by convolution within a small neighborhood, the limited receptive field makes it hard to capture global dependency. Alternatively, ViTs can effectively capture long-range dependency via self-attention, while blind similarity comparisons among all the tokens lead to high redundancy. To resolve these problems, we propose a novel Unified transFormer (UniFormer), which can seamlessly integrate the merits of convolution and self-attention in a concise transformer format. Different from the typical transformer blocks, the relation aggregators in our UniFormer block are equipped with local and global token affinity respectively in shallow and deep layers, allowing to tackle both redundancy and dependency for efficient and effective representation learning. Finally, we flexibly stack our UniFormer blocks into a new powerful backbone, and adopt it for various vision tasks from image to video domain, from classification to dense prediction. Without any extra training data, our UniFormer achieves 86.3 top-1 accuracy on ImageNet-1K classification. With only ImageNet-1K pre-training, it can simply achieve state-of-the-art performance in a broad range of downstream tasks, e.g., it obtains 82.9/84.8 top-1 accuracy on Kinetics-400/600, 60.9/71.2 top-1 accuracy on Sth-Sth V1/V2 video classification, 53.8 box AP and 46.4 mask AP on COCO object detection, 50.8 mIoU on ADE20K semantic segmentation, and 77.4 AP on COCO pose estimation. We further build an efficient UniFormer with 2-4x higher throughput. Code is available at https://github.com/Sense-X/UniFormer.
In Syntology Open this paper in Syntology's Atlas, the map of the papers in Syntology's graph and their citations.
Code
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
Results from the paper archive 2025-07-28
| Task | Dataset | Model | Metric | Value | Rank at snapshot | Leaderboard | Report |
|---|---|---|---|---|---|---|---|
| Image Classification | ImageNet | UniFormer-L (384 res) | GFLOPs | 39.2 | #160 of 1060 | Archive leaderboard | report |
| Image Classification | ImageNet | UniFormer-L (384 res) | Number of params | 100M | #160 of 1060 | Archive leaderboard | report |
| Image Classification | ImageNet | UniFormer-L (384 res) | Top 1 Accuracy | 86.3% | #160 of 1060 | Archive leaderboard | report |
| Image Classification | ImageNet | UniFormer-L | GFLOPs | 12.6 | #216 of 1060 | Archive leaderboard | report |
| Image Classification | ImageNet | UniFormer-L | Number of params | 100M | #216 of 1060 | Archive leaderboard | report |
| Image Classification | ImageNet | UniFormer-L | Top 1 Accuracy | 85.6% | #216 of 1060 | Archive leaderboard | report |
| Image Classification | ImageNet | UniFormer-S | GFLOPs | 3.6 | #427 of 1060 | Archive leaderboard | report |
| Image Classification | ImageNet | UniFormer-S | Number of params | 22M | #427 of 1060 | Archive leaderboard | report |
| Image Classification | ImageNet | UniFormer-S | Top 1 Accuracy | 83.4% | #427 of 1060 | 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
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