{"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/cao-2-rectifying-inconsistencies-in-diffusion","title":"CaO$_2$: Rectifying Inconsistencies in Diffusion-Based Dataset Distillation","arxiv_id":"2506.22637","date":"2025-06-27","proceeding":null,"authors":["Haoxuan Wang","Zhenghao Zhao","Junyi Wu","Yuzhang Shang","Gaowen Liu","Yan Yan"],"abstract":"The recent introduction of diffusion models in dataset distillation has shown promising potential in creating compact surrogate datasets for large, high-resolution target datasets, offering improved efficiency and performance over traditional bi-level/uni-level optimization methods. However, current diffusion-based dataset distillation approaches overlook the evaluation process and exhibit two critical inconsistencies in the distillation process: (1) Objective Inconsistency, where the distillation process diverges from the evaluation objective, and (2) Condition Inconsistency, leading to mismatches between generated images and their corresponding conditions. To resolve these issues, we introduce Condition-aware Optimization with Objective-guided Sampling (CaO$_2$), a two-stage diffusion-based framework that aligns the distillation process with the evaluation objective. The first stage employs a probability-informed sample selection pipeline, while the second stage refines the corresponding latent representations to improve conditional likelihood. CaO$_2$ achieves state-of-the-art performance on ImageNet and its subsets, surpassing the best-performing baselines by an average of 2.3% accuracy.","url_abs":"https://arxiv.org/abs/2506.22637v2","url_pdf":"https://arxiv.org/pdf/2506.22637v2.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":"cao-2-rectifying-inconsistencies-in-diffusion","repo_url":"https://github.com/hatchetproject/cao2","is_official":1,"mentioned_in_paper":1,"mentioned_in_github":1,"framework":"pytorch","reach":{"status":"ok"}}],"tasks":[{"task_slug":"dataset-distillation","task_name":"Dataset Distillation"}],"methods":[{"method_slug":"diffusion","method_name":"Diffusion"}],"datasets_introduced":[],"methods_introduced":[],"results":[],"syntology":{"atlas_url":"https://app.syntology.ai/?focus=2506.22637","mcp":{"get_harvested_code_for_paper":{"arxiv_id":"2506.22637"}},"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/hatchetproject/cao2","reach":{"status":"ok"}}],"summary":{"ran_honours":1,"ran":3,"ran_draft_wrong":2,"unverified":7},"by_repo_kind":{"official":{"samples":13,"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":13,"samples":[{"code_sha256_prefix":"c92c27c924b517e8","entry":"get_2d_sincos_pos_embed","repo":"hatchetproject/cao2","repo_kind":"official","path":"models.py","file_url":"https://github.com/hatchetproject/cao2/blob/HEAD/models.py","link_basis":"harvester_set","language":"python","status":"ran_honours","verification_level":1,"contract_check":"HONOURS","metamorphic_tier":"well_formed","behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"c92c27c924b517e8"}},{"code_sha256_prefix":"d923e828eed4fb87","entry":"ipc_epoch","repo":"hatchetproject/cao2","repo_kind":"official","path":"argument.py","file_url":"https://github.com/hatchetproject/cao2/blob/HEAD/argument.py","link_basis":"plan_row","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":true,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"d923e828eed4fb87"}},{"code_sha256_prefix":"03310bba324ae4fb","entry":"modulate","repo":"hatchetproject/cao2","repo_kind":"official","path":"models.py","file_url":"https://github.com/hatchetproject/cao2/blob/HEAD/models.py","link_basis":"harvester_set","language":"python","status":"ran_draft_wrong","verification_level":1,"contract_check":"MISDECLARED","metamorphic_tier":"invariant","behaviour_fingerprint":true,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"03310bba324ae4fb"}},{"code_sha256_prefix":"23bf22274cc64dc6","entry":"str2bool","repo":"hatchetproject/cao2","repo_kind":"official","path":"argument.py","file_url":"https://github.com/hatchetproject/cao2/blob/HEAD/argument.py","link_basis":"harvester_set","language":"python","status":"ran_draft_wrong","verification_level":1,"contract_check":"MISDECLARED","metamorphic_tier":"deterministic","behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"23bf22274cc64dc6"}},{"code_sha256_prefix":"52605edc9d326455","entry":"transform_cifar","repo":"hatchetproject/cao2","repo_kind":"official","path":"data.py","file_url":"https://github.com/hatchetproject/cao2/blob/HEAD/data.py","link_basis":"plan_row","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"52605edc9d326455"}},{"code_sha256_prefix":"fb78e314a9cbf5ff","entry":"tune_lr_img","repo":"hatchetproject/cao2","repo_kind":"official","path":"argument.py","file_url":"https://github.com/hatchetproject/cao2/blob/HEAD/argument.py","link_basis":"plan_row","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"fb78e314a9cbf5ff"}},{"code_sha256_prefix":"6a0d5ecd441905cc","entry":"download_model","repo":"hatchetproject/cao2","repo_kind":"official","path":"download.py","file_url":"https://github.com/hatchetproject/cao2/blob/HEAD/download.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"6a0d5ecd441905cc"}},{"code_sha256_prefix":"28b394db8876349c","entry":"el2n_score","repo":"hatchetproject/cao2","repo_kind":"official","path":"mar_imagenet1k.py","file_url":"https://github.com/hatchetproject/cao2/blob/HEAD/mar_imagenet1k.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"28b394db8876349c"}},{"code_sha256_prefix":"29947a0a94157558","entry":"find_model","repo":"hatchetproject/cao2","repo_kind":"official","path":"download.py","file_url":"https://github.com/hatchetproject/cao2/blob/HEAD/download.py","link_basis":"plan_row","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"29947a0a94157558"}},{"code_sha256_prefix":"665d8a4e8f673a4c","entry":"get_2d_sincos_pos_embed_from_grid","repo":"hatchetproject/cao2","repo_kind":"official","path":"models.py","file_url":"https://github.com/hatchetproject/cao2/blob/HEAD/models.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"665d8a4e8f673a4c"}},{"code_sha256_prefix":"5b2e2797a6da2cb5","entry":"transform_mnist","repo":"hatchetproject/cao2","repo_kind":"official","path":"data.py","file_url":"https://github.com/hatchetproject/cao2/blob/HEAD/data.py","link_basis":"plan_row","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"5b2e2797a6da2cb5"}},{"code_sha256_prefix":"4a3eef12c129ad96","entry":"transform_svhn","repo":"hatchetproject/cao2","repo_kind":"official","path":"data.py","file_url":"https://github.com/hatchetproject/cao2/blob/HEAD/data.py","link_basis":"plan_row","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"4a3eef12c129ad96"}},{"code_sha256_prefix":"5217e3d2c31fe4cb","entry":"validate","repo":"hatchetproject/cao2","repo_kind":"official","path":"mar_imagenet1k.py","file_url":"https://github.com/hatchetproject/cao2/blob/HEAD/mar_imagenet1k.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"5217e3d2c31fe4cb"}}]},"arxiv_metadata":null,"syntology_extracted_results":null}