{"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/single-path-one-shot-neural-architecture","title":"Single Path One-Shot Neural Architecture Search with Uniform Sampling","arxiv_id":"1904.00420","date":"2019-03-31","proceeding":"ECCV 2020 8","authors":["Zichao Guo","Xiangyu Zhang","Haoyuan Mu","Wen Heng","Zechun Liu","Yichen Wei","Jian Sun"],"abstract":"We revisit the one-shot Neural Architecture Search (NAS) paradigm and analyze its advantages over existing NAS approaches. Existing one-shot method, however, is hard to train and not yet effective on large scale datasets like ImageNet. This work propose a Single Path One-Shot model to address the challenge in the training. Our central idea is to construct a simplified supernet, where all architectures are single paths so that weight co-adaption problem is alleviated. Training is performed by uniform path sampling. All architectures (and their weights) are trained fully and equally. Comprehensive experiments verify that our approach is flexible and effective. It is easy to train and fast to search. It effortlessly supports complex search spaces (e.g., building blocks, channel, mixed-precision quantization) and different search constraints (e.g., FLOPs, latency). It is thus convenient to use for various needs. It achieves start-of-the-art performance on the large dataset ImageNet.","url_abs":"https://arxiv.org/abs/1904.00420v4","url_pdf":"https://arxiv.org/pdf/1904.00420v4.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":"single-path-one-shot-neural-architecture","repo_url":"https://github.com/CanyonWind/Single-Path-One-Shot-NAS-MXNet","is_official":0,"mentioned_in_paper":0,"mentioned_in_github":1,"framework":"mxnet","reach":null},{"paper_slug":"single-path-one-shot-neural-architecture","repo_url":"https://github.com/ShunLu91/Single-Path-One-Shot-NAS","is_official":0,"mentioned_in_paper":0,"mentioned_in_github":1,"framework":"pytorch","reach":{"status":"ok"}},{"paper_slug":"single-path-one-shot-neural-architecture","repo_url":"https://github.com/megvii-model/SinglePathOneShot","is_official":0,"mentioned_in_paper":0,"mentioned_in_github":1,"framework":"pytorch","reach":{"status":"ok","spdx":"MIT"}},{"paper_slug":"single-path-one-shot-neural-architecture","repo_url":"https://github.com/mr-eggplant/adaxpert0","is_official":0,"mentioned_in_paper":0,"mentioned_in_github":1,"framework":"pytorch","reach":{"status":"ok"}},{"paper_slug":"single-path-one-shot-neural-architecture","repo_url":"https://github.com/stdacore/SinglePathOneShot_MAML","is_official":0,"mentioned_in_paper":0,"mentioned_in_github":1,"framework":"pytorch","reach":{"status":"ok","spdx":"MIT"}},{"paper_slug":"single-path-one-shot-neural-architecture","repo_url":"https://github.com/open-mmlab/mmrazor","is_official":0,"mentioned_in_paper":0,"mentioned_in_github":0,"framework":"pytorch","reach":{"status":"ok","spdx":"Apache-2.0"}}],"tasks":[{"task_slug":"architecture-search","task_name":"Neural Architecture Search"},{"task_slug":"quantization","task_name":"Quantization"}],"methods":[{"method_slug":"lstm","method_name":"LSTM"},{"method_slug":"sigmoid-activation","method_name":"Sigmoid Activation"},{"method_slug":"softmax","method_name":"Softmax"},{"method_slug":"tanh-activation","method_name":"Tanh Activation"}],"datasets_introduced":[],"methods_introduced":[],"results":[{"leaderboard":"/sota/neural-architecture-search-on-imagenet","task":"Neural Architecture Search","dataset":"ImageNet","model":"SPOS (ProxylessNAS (GPU) latency)","rank_in_archive_order":132,"of":135,"metrics":{"Accuracy":"75.3","MACs":"465M"},"uses_additional_data":false},{"leaderboard":"/sota/neural-architecture-search-on-imagenet","task":"Neural Architecture Search","dataset":"ImageNet","model":"SPOS (FBNet-C latency)","rank_in_archive_order":133,"of":135,"metrics":{"Accuracy":"75.1","MACs":"375M"},"uses_additional_data":false},{"leaderboard":"/sota/neural-architecture-search-on-imagenet","task":"Neural Architecture Search","dataset":"ImageNet","model":"SPOS (block search + channel search)","rank_in_archive_order":134,"of":135,"metrics":{"Accuracy":"74.7","MACs":"328M"},"uses_additional_data":false}],"syntology":{"syntology_url":null,"atlas_url":"https://app.syntology.ai/?focus=1904.00420","mcp":{"get_harvested_code_for_paper":{"arxiv_id":"1904.00420"}},"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":"external:paperswithcode_snapshot_2025-07-28","url":"https://github.com/mr-eggplant/adaxpert0","reach":{"status":"ok"}},{"provenance":"external:paperswithcode_snapshot_2025-07-28","url":"https://github.com/open-mmlab/mmrazor","reach":{"status":"ok","spdx":"Apache-2.0"}},{"provenance":"external:paperswithcode_snapshot_2025-07-28","url":"https://github.com/stdacore/SinglePathOneShot_MAML","reach":{"status":"ok","spdx":"MIT"}},{"provenance":"external:paperswithcode_snapshot_2025-07-28","url":"https://github.com/megvii-model/SinglePathOneShot","reach":{"status":"ok","spdx":"MIT"}},{"provenance":"external:paperswithcode_snapshot_2025-07-28","url":"https://github.com/CanyonWind/Single-Path-One-Shot-NAS-MXNet","reach":null},{"provenance":"external:paperswithcode_snapshot_2025-07-28","url":"https://github.com/ShunLu91/Single-Path-One-Shot-NAS","reach":{"status":"ok"}}],"summary":{"ran_honours":1,"unverified":6},"by_repo_kind":{"listed":{"samples":7,"ran":1,"repositories":2}},"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":1,"samples":[{"code_sha256_prefix":"9be8ab7ac48636e7","entry":"make_divisible","repo":"CanyonWind/Single-Path-One-Shot-NAS-MXNet","repo_kind":"listed","path":"oneshot_nas_blocks.py","file_url":"https://github.com/CanyonWind/Single-Path-One-Shot-NAS-MXNet/blob/HEAD/oneshot_nas_blocks.py","link_basis":"first_harvest_node","language":"python","status":"ran_honours","verification_level":1,"contract_check":"HONOURS","metamorphic_tier":"well_formed","behaviour_fingerprint":true,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"9be8ab7ac48636e7"}},{"code_sha256_prefix":"469bf48752905889","entry":"accuracy","repo":"megvii-model/SinglePathOneShot","repo_kind":"listed","path":"src/Search/tester.py","file_url":"https://github.com/megvii-model/SinglePathOneShot/blob/HEAD/src/Search/tester.py","link_basis":"harvester_set","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":"469bf48752905889"}},{"code_sha256_prefix":"eaa44944ca357418","entry":"channel_shuffle","repo":"megvii-model/SinglePathOneShot","repo_kind":"listed","path":"src/Evaluation/flops.py","file_url":"https://github.com/megvii-model/SinglePathOneShot/blob/HEAD/src/Evaluation/flops.py","link_basis":"harvester_set","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":"eaa44944ca357418"}},{"code_sha256_prefix":"73d619ad928f41f9","entry":"get_cand_flops","repo":"megvii-model/SinglePathOneShot","repo_kind":"listed","path":"src/Evaluation/flops.py","file_url":"https://github.com/megvii-model/SinglePathOneShot/blob/HEAD/src/Evaluation/flops.py","link_basis":"harvester_set","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":"73d619ad928f41f9"}},{"code_sha256_prefix":"06193fa1714ef6fd","entry":"get_flops","repo":"megvii-model/SinglePathOneShot","repo_kind":"listed","path":"src/Evaluation/flops.py","file_url":"https://github.com/megvii-model/SinglePathOneShot/blob/HEAD/src/Evaluation/flops.py","link_basis":"harvester_set","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":"06193fa1714ef6fd"}},{"code_sha256_prefix":"9a700a3b149f4952","entry":"get_parameters","repo":"megvii-model/SinglePathOneShot","repo_kind":"listed","path":"src/Supernet/utils.py","file_url":"https://github.com/megvii-model/SinglePathOneShot/blob/HEAD/src/Supernet/utils.py","link_basis":"harvester_set","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":"9a700a3b149f4952"}},{"code_sha256_prefix":"792182b986c2f9ee","entry":"no_grad_wrapper","repo":"megvii-model/SinglePathOneShot","repo_kind":"listed","path":"src/Search/tester.py","file_url":"https://github.com/megvii-model/SinglePathOneShot/blob/HEAD/src/Search/tester.py","link_basis":"harvester_set","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":"792182b986c2f9ee"}}]},"arxiv_metadata":null,"syntology_extracted_results":null}