{"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/training-on-thin-air-improve-image","title":"Training on Thin Air: Improve Image Classification with Generated Data","arxiv_id":"2305.15316","date":"2023-05-24","proceeding":null,"authors":["Yongchao Zhou","Hshmat Sahak","Jimmy Ba"],"abstract":"Acquiring high-quality data for training discriminative models is a crucial yet challenging aspect of building effective predictive systems. In this paper, we present Diffusion Inversion, a simple yet effective method that leverages the pre-trained generative model, Stable Diffusion, to generate diverse, high-quality training data for image classification. Our approach captures the original data distribution and ensures data coverage by inverting images to the latent space of Stable Diffusion, and generates diverse novel training images by conditioning the generative model on noisy versions of these vectors. We identify three key components that allow our generated images to successfully supplant the original dataset, leading to a 2-3x enhancement in sample complexity and a 6.5x decrease in sampling time. Moreover, our approach consistently outperforms generic prompt-based steering methods and KNN retrieval baseline across a wide range of datasets. Additionally, we demonstrate the compatibility of our approach with widely-used data augmentation techniques, as well as the reliability of the generated data in supporting various neural architectures and enhancing few-shot learning.","url_abs":"https://arxiv.org/abs/2305.15316v1","url_pdf":"https://arxiv.org/pdf/2305.15316v1.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":"training-on-thin-air-improve-image","repo_url":"https://github.com/yongchao97/diffusion_inversion","is_official":1,"mentioned_in_paper":1,"mentioned_in_github":1,"framework":"pytorch","reach":{"status":"ok","spdx":"MIT"}}],"tasks":[{"task_slug":"data-augmentation","task_name":"Data Augmentation"},{"task_slug":"few-shot-learning","task_name":"Few-Shot Learning"},{"task_slug":"image-classification","task_name":"Image Classification"},{"task_slug":"retrieval","task_name":"Retrieval"},{"task_slug":"image-classification","task_name":"image-classification"}],"methods":[{"method_slug":"diffusion","method_name":"Diffusion"}],"datasets_introduced":[],"methods_introduced":[],"results":[],"syntology":{"syntology_url":"https://syntology.ai/paper/2305.15316","atlas_url":"https://app.syntology.ai/?focus=2305.15316","mcp":{"get_harvested_code_for_paper":{"arxiv_id":"2305.15316"}},"developers":"https://syntology.ai/developers","read_at":"2026-09-25T09:33:49+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/yongchao97/diffusion_inversion","reach":{"status":"ok","spdx":"MIT"}}],"summary":{"ran":3,"ran_honours":1,"unverified":5},"by_repo_kind":{"official":{"samples":9,"ran":4,"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":"f7b96dbdddb56a68","entry":"EfficientNetB0","repo":"yongchao97/diffusion_inversion","repo_kind":"official","path":"src/models/efficientnet.py","file_url":"https://github.com/yongchao97/diffusion_inversion/blob/HEAD/src/models/efficientnet.py","link_basis":"plan_row","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":"f7b96dbdddb56a68"}},{"code_sha256_prefix":"4304a326c593f8db","entry":"drop_connect","repo":"yongchao97/diffusion_inversion","repo_kind":"official","path":"src/models/efficientnet.py","file_url":"https://github.com/yongchao97/diffusion_inversion/blob/HEAD/src/models/efficientnet.py","link_basis":"harvester_set","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":true,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"4304a326c593f8db"}},{"code_sha256_prefix":"7337f1f5ff01dcd0","entry":"get_lr","repo":"yongchao97/diffusion_inversion","repo_kind":"official","path":"src/train_net.py","file_url":"https://github.com/yongchao97/diffusion_inversion/blob/HEAD/src/train_net.py","link_basis":"harvester_set","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":"7337f1f5ff01dcd0"}},{"code_sha256_prefix":"8737c82de631cffc","entry":"swish","repo":"yongchao97/diffusion_inversion","repo_kind":"official","path":"src/models/efficientnet.py","file_url":"https://github.com/yongchao97/diffusion_inversion/blob/HEAD/src/models/efficientnet.py","link_basis":"harvester_set","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":true,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"8737c82de631cffc"}},{"code_sha256_prefix":"7be19549d8b0d6dc","entry":"center_crop","repo":"yongchao97/diffusion_inversion","repo_kind":"official","path":"src/dataset.py","file_url":"https://github.com/yongchao97/diffusion_inversion/blob/HEAD/src/dataset.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":"7be19549d8b0d6dc"}},{"code_sha256_prefix":"da8e9de994efee01","entry":"configure_dataloader","repo":"yongchao97/diffusion_inversion","repo_kind":"official","path":"src/dataset.py","file_url":"https://github.com/yongchao97/diffusion_inversion/blob/HEAD/src/dataset.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":"da8e9de994efee01"}},{"code_sha256_prefix":"d7a3942d0d5c6041","entry":"get_full_repo_name","repo":"yongchao97/diffusion_inversion","repo_kind":"official","path":"src/diffuser_inversion.py","file_url":"https://github.com/yongchao97/diffusion_inversion/blob/HEAD/src/diffuser_inversion.py","link_basis":"plan_row","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":"d7a3942d0d5c6041"}},{"code_sha256_prefix":"d59f0a2fa4f321fc","entry":"np_tile_imgs","repo":"yongchao97/diffusion_inversion","repo_kind":"official","path":"src/diffuser_inversion.py","file_url":"https://github.com/yongchao97/diffusion_inversion/blob/HEAD/src/diffuser_inversion.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":"d59f0a2fa4f321fc"}},{"code_sha256_prefix":"94d7f749a6ed65f8","entry":"test","repo":"yongchao97/diffusion_inversion","repo_kind":"official","path":"src/train_net.py","file_url":"https://github.com/yongchao97/diffusion_inversion/blob/HEAD/src/train_net.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":"94d7f749a6ed65f8"}}]},"arxiv_metadata":null,"syntology_extracted_results":null}