Papers › TinyViT: Fast Pretraining Distillation for Small Vision Transformers
TinyViT: Fast Pretraining Distillation for Small Vision Transformers
Kan Wu, Jinnian Zhang, Houwen Peng, Mengchen Liu, Bin Xiao, Jianlong Fu, Lu Yuan
Vision transformer (ViT) recently has drawn great attention in computer vision due to its remarkable model capability. However, most prevailing ViT models suffer from huge number of parameters, restricting their applicability on devices with limited resources. To alleviate this issue, we propose TinyViT, a new family of tiny and efficient small vision transformers pretrained on large-scale datasets with our proposed fast distillation framework. The central idea is to transfer knowledge from large pretrained models to small ones, while enabling small models to get the dividends of massive pretraining data. More specifically, we apply distillation during pretraining for knowledge transfer. The logits of large teacher models are sparsified and stored in disk in advance to save the memory cost and computation overheads. The tiny student transformers are automatically scaled down from a large pretrained model with computation and parameter constraints. Comprehensive experiments demonstrate the efficacy of TinyViT. It achieves a top-1 accuracy of 84.8% on ImageNet-1k with only 21M parameters, being comparable to Swin-B pretrained on ImageNet-21k while using 4.2 times fewer parameters. Moreover, increasing image resolutions, TinyViT can reach 86.5% accuracy, being slightly better than Swin-L while using only 11% parameters. Last but not the least, we demonstrate a good transfer ability of TinyViT on various downstream tasks. Code and models are available at https://github.com/microsoft/Cream/tree/main/TinyViT.
In Syntology Open this paper in Syntology's Atlas, the map of the papers in Syntology's graph and their citations.
For agents, Syntology's MCP tool lists every function and class Syntology harvested from this paper and whether it ran (how to connect): get_harvested_code_for_paper(arxiv_id="2207.10666")
Code
Syntology Ran 9 of 11 code samples harvested from 1 repository linked to this paper; 2 have no recorded run. Of those that ran: 9 ran with no contract checked.
By repository: official repository: 11 samples from 1 repository, 9 ran. The run record, sample by sample. “Ran” means executed on a synthesized input, not that the code is correct or reproduces the paper.
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
11 samples harvested; 9 ran; 0 honoured the contract we drafted; 2 have no recorded run. Read from Syntology's graph 2026-09-24; that is when this build read the record, not when the samples ran.
Licence: 0 of the 11 samples are pointer only, meaning Syntology does not serve that copy's text. This page shows no code text for any sample; each one links to its file in the repository.
Harvested from microsoft/cream. “Ran” means the sample executed on a synthesized input. It does not mean the output is correct, and nothing here reproduces the paper's results. “Honoured” and “violated” refer to a contract Syntology drafted from the code itself; “our draft was wrong” and “fixture could not drive it” are failures of Syntology's instrument, not of the code.
Each sample ends with its code_sha256, Syntology's identity for that exact code. An agent fetches the stored sample with Syntology's MCP tool get_code(code_sha256="…") (how to connect); click an identity to copy that call.
Repository labels, per sample. official repository: The archive marks this repository official for the paper. named in the paper: The archive records that the paper mentions this repository; it is not marked official. community (archive-listed): In the archive's code links for this paper, not marked official and not recorded as mentioned in the paper. found in paper text by Syntology: Syntology found this repository in the paper's own text; whether it is the authors' implementation is not asserted. community: Not in the archive's code links for this paper; a community repository Syntology harvested. Samples from a repository marked official are listed first. Licence labels name the repository's licence as recorded at harvest. “Pointer only” means Syntology does not serve that copy's text, for one of four reasons: no licence file was found; the licence was not identified; the licence is recorded as permissive but that copy's record is not marked cleared; or the licence is outside the permissive list Syntology serves text under (MIT, Apache-2.0, BSD and similar). Some licences outside that list permit redistribution, such as WTFPL, and GPL-3.0 under its conditions; they are simply not on the list. Hover a licence label for the reason. File links open the file on GitHub at the default branch, which may have changed since the harvest.
3f95a13fec53515d · report
883f9cb11bb26e3d · report
57703d08e183cf79 · report
a8aec28fef3b8a76 · report
5caeee4742e1a71a · report
170eeb3ae2272801 · report
75e53f2aef631c7f · report
9b97bb4dd7832495 · report
13749cc6ad8aea4c · report
fc889c3a06667369 · report
d166826b91ac994a · report
Tasks
Results from the paper archive 2025-07-28
| Task | Dataset | Model | Metric | Value | Rank at snapshot | Leaderboard | Report |
|---|---|---|---|---|---|---|---|
| Image Classification | ImageNet | TinyViT-21M-512-distill (512 res, 21k) | GFLOPs | 27.0 | #138 of 1060 | Archive leaderboard | report |
| Image Classification | ImageNet | TinyViT-21M-512-distill (512 res, 21k) | Number of params | 21M | #138 of 1060 | Archive leaderboard | report |
| Image Classification | ImageNet | TinyViT-21M-512-distill (512 res, 21k) | Top 1 Accuracy | 86.5% | #138 of 1060 | Archive leaderboard | report |
| Image Classification | ImageNet | TinyViT-21M-384-distill (384 res, 21k) | GFLOPs | 13.8 | #166 of 1060 | Archive leaderboard | report |
| Image Classification | ImageNet | TinyViT-21M-384-distill (384 res, 21k) | Number of params | 21M | #166 of 1060 | Archive leaderboard | report |
| Image Classification | ImageNet | TinyViT-21M-384-distill (384 res, 21k) | Top 1 Accuracy | 86.2% | #166 of 1060 | Archive leaderboard | report |
| Image Classification | ImageNet | TinyViT-21M-distill (21k) | GFLOPs | 4.3 | #283 of 1060 | Archive leaderboard | report |
| Image Classification | ImageNet | TinyViT-21M-distill (21k) | Number of params | 21M | #283 of 1060 | Archive leaderboard | report |
| Image Classification | ImageNet | TinyViT-21M-distill (21k) | Top 1 Accuracy | 84.8% | #283 of 1060 | Archive leaderboard | report |
| Image Classification | ImageNet | TinyViT-11M-distill (21k) | GFLOPs | 2.0 | #451 of 1060 | Archive leaderboard | report |
| Image Classification | ImageNet | TinyViT-11M-distill (21k) | Number of params | 11M | #451 of 1060 | Archive leaderboard | report |
| Image Classification | ImageNet | TinyViT-11M-distill (21k) | Top 1 Accuracy | 83.2% | #451 of 1060 | Archive leaderboard | report |
| Image Classification | ImageNet | TinyViT-21M | GFLOPs | 4.3 | #468 of 1060 | Archive leaderboard | report |
| Image Classification | ImageNet | TinyViT-21M | Number of params | 21M | #468 of 1060 | Archive leaderboard | report |
| Image Classification | ImageNet | TinyViT-21M | Top 1 Accuracy | 83.1% | #468 of 1060 | Archive leaderboard | report |
| Image Classification | ImageNet | TinyViT-11M | GFLOPs | 2.0 | #634 of 1060 | Archive leaderboard | report |
| Image Classification | ImageNet | TinyViT-11M | Number of params | 11M | #634 of 1060 | Archive leaderboard | report |
| Image Classification | ImageNet | TinyViT-11M | Top 1 Accuracy | 81.5% | #634 of 1060 | Archive leaderboard | report |
| Image Classification | ImageNet | TinyViT-5M-distill (21k) | GFLOPs | 1.3 | #685 of 1060 | Archive leaderboard | report |
| Image Classification | ImageNet | TinyViT-5M-distill (21k) | Number of params | 5.4M | #685 of 1060 | Archive leaderboard | report |
| Image Classification | ImageNet | TinyViT-5M-distill (21k) | Top 1 Accuracy | 80.7% | #685 of 1060 | Archive leaderboard | report |
| Image Classification | ImageNet | TinyViT-5M | GFLOPs | 1.3 | #781 of 1060 | Archive leaderboard | report |
| Image Classification | ImageNet | TinyViT-5M | Number of params | 5.4M | #781 of 1060 | Archive leaderboard | report |
| Image Classification | ImageNet | TinyViT-5M | Top 1 Accuracy | 79.1% | #781 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.
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