{"about":{"site":"https://codewithpapers.app","non_affiliation":"Code with Papers and Syntology are not affiliated with, endorsed by, or sponsored by Papers with Code, Meta, or the pwc-archive mirror.","licence":"CC BY-SA 4.0","licence_url":"https://creativecommons.org/licenses/by-sa/4.0/legalcode","attribution":"https://codewithpapers.app/attribution","modified":"archive material modified by Syntology; see the attribution page"},"url":"/paper/auto-scaling-vision-transformers-without-1","title":"Auto-scaling Vision Transformers without Training","arxiv_id":"2202.11921","date":"2022-02-24","proceeding":"ICLR 2022 4","authors":["Wuyang Chen","Wei Huang","Xianzhi Du","Xiaodan Song","Zhangyang Wang","Denny Zhou"],"abstract":"This work targets automated designing and scaling of Vision Transformers (ViTs). The motivation comes from two pain spots: 1) the lack of efficient and principled methods for designing and scaling ViTs; 2) the tremendous computational cost of training ViT that is much heavier than its convolution counterpart. To tackle these issues, we propose As-ViT, an auto-scaling framework for ViTs without training, which automatically discovers and scales up ViTs in an efficient and principled manner. Specifically, we first design a \"seed\" ViT topology by leveraging a training-free search process. This extremely fast search is fulfilled by a comprehensive study of ViT's network complexity, yielding a strong Kendall-tau correlation with ground-truth accuracies. Second, starting from the \"seed\" topology, we automate the scaling rule for ViTs by growing widths/depths to different ViT layers. This results in a series of architectures with different numbers of parameters in a single run. Finally, based on the observation that ViTs can tolerate coarse tokenization in early training stages, we propose a progressive tokenization strategy to train ViTs faster and cheaper. As a unified framework, As-ViT achieves strong performance on classification (83.5% top1 on ImageNet-1k) and detection (52.7% mAP on COCO) without any manual crafting nor scaling of ViT architectures: the end-to-end model design and scaling process cost only 12 hours on one V100 GPU. Our code is available at https://github.com/VITA-Group/AsViT.","url_abs":"https://arxiv.org/abs/2202.11921v2","url_pdf":"https://arxiv.org/pdf/2202.11921v2.pdf","source":{"archive":"pwc-archive (Hugging Face), CC BY-SA 4.0","snapshot":"2025-07-28","licence_url":"https://creativecommons.org/licenses/by-sa/4.0/legalcode","row_kind":"abstracts"},"code_links":[{"paper_slug":"auto-scaling-vision-transformers-without-1","repo_url":"https://github.com/vita-group/asvit","is_official":1,"mentioned_in_paper":1,"mentioned_in_github":0,"framework":"pytorch","reach":null}],"tasks":[{"task_slug":null,"task_name":"GPU"}],"methods":[{"method_slug":"convolution","method_name":"Convolution"}],"datasets_introduced":[],"methods_introduced":[],"results":[],"syntology":{"atlas_url":"https://app.syntology.ai/?focus=2202.11921","mcp":{"get_harvested_code_for_paper":{"arxiv_id":"2202.11921"}},"developers":"https://syntology.ai/developers","read_at":"2026-09-24T18:15:14+00:00","read_at_is":"when the build read Syntology's graph, not when any sample ran","claim":"Per-sample execution status on synthesized fixtures; not a correctness claim about the paper. Samples come from repositories linked to the paper, official or community; repo_kind says which.","repos":[{"provenance":"deterministic:regex_extraction","url":"https://github.com/VITA-Group/AsViT","reach":null},{"provenance":"external:paperswithcode_snapshot_2025-07-28","url":"https://github.com/vita-group/asvit","reach":null}],"summary":{"ran":4,"ran_honours":1,"ran_draft_wrong":1,"unverified":3},"by_repo_kind":{"official":{"samples":9,"ran":6,"repositories":1}},"repo_kind_vocabulary":{"official":"The archive marks this repository official for the paper","named_in_paper":"The archive records that the paper mentions this repository; it is not marked official","listed":"In the archive's code links for this paper, not marked official and not recorded as mentioned in the paper","found_in_text":"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"},"n_pointer_only_for_licence":0,"samples":[{"code_sha256_prefix":"ed36b06ac19ac98c","entry":"PatchEmbed","repo":"vita-group/asvit","repo_kind":"official","path":"lib/models/cell_infers/transformer.py","file_url":"https://github.com/vita-group/asvit/blob/HEAD/lib/models/cell_infers/transformer.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":"invariant","behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"ed36b06ac19ac98c"}},{"code_sha256_prefix":"79896f75d32dcb33","entry":"PatchMerging","repo":"vita-group/asvit","repo_kind":"official","path":"lib/models/cell_infers/transformer.py","file_url":"https://github.com/vita-group/asvit/blob/HEAD/lib/models/cell_infers/transformer.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"79896f75d32dcb33"}},{"code_sha256_prefix":"571b9b972c8e35de","entry":"WindowAttention","repo":"vita-group/asvit","repo_kind":"official","path":"lib/models/cell_infers/transformer.py","file_url":"https://github.com/vita-group/asvit/blob/HEAD/lib/models/cell_infers/transformer.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":"invariant","behaviour_fingerprint":true,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"571b9b972c8e35de"}},{"code_sha256_prefix":"0a2b0a9625fbcd49","entry":"matmul","repo":"vita-group/asvit","repo_kind":"official","path":"lib/models/cell_infers/transformer.py","file_url":"https://github.com/vita-group/asvit/blob/HEAD/lib/models/cell_infers/transformer.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":"invariant","behaviour_fingerprint":true,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"0a2b0a9625fbcd49"}},{"code_sha256_prefix":"af81e513770f843d","entry":"merge_choices","repo":"VITA-Group/AsViT","repo_kind":"official","path":"search/grow.py","file_url":"https://github.com/VITA-Group/AsViT/blob/HEAD/search/grow.py","link_basis":"first_harvest_node","language":"python","status":"ran_honours","verification_level":1,"contract_check":"HONOURS","metamorphic_tier":"well_formed","behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"af81e513770f843d"}},{"code_sha256_prefix":"144072b148f3360b","entry":"multi_categorical_maker","repo":"VITA-Group/AsViT","repo_kind":"official","path":"search/reinforce.py","file_url":"https://github.com/VITA-Group/AsViT/blob/HEAD/search/reinforce.py","link_basis":"first_harvest_node","language":"python","status":"ran_draft_wrong","verification_level":1,"contract_check":"OUTPUT_MISDECLARED","metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"144072b148f3360b"}},{"code_sha256_prefix":"b2518344f4bc70d1","entry":"BasicLayer","repo":"vita-group/asvit","repo_kind":"official","path":"lib/models/cell_infers/transformer.py","file_url":"https://github.com/vita-group/asvit/blob/HEAD/lib/models/cell_infers/transformer.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"b2518344f4bc70d1"}},{"code_sha256_prefix":"2839a3918feb21f1","entry":"Transformer","repo":"vita-group/asvit","repo_kind":"official","path":"lib/models/cell_infers/transformer.py","file_url":"https://github.com/vita-group/asvit/blob/HEAD/lib/models/cell_infers/transformer.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"2839a3918feb21f1"}},{"code_sha256_prefix":"96404f2862cd1474","entry":"TransformerBlock","repo":"vita-group/asvit","repo_kind":"official","path":"lib/models/cell_infers/transformer.py","file_url":"https://github.com/vita-group/asvit/blob/HEAD/lib/models/cell_infers/transformer.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"96404f2862cd1474"}}]},"arxiv_metadata":null,"syntology_extracted_results":null}