{"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/dataset-distillation-via-knowledge","title":"Dataset Distillation via Knowledge Distillation: Towards Efficient Self-Supervised Pre-Training of Deep Networks","arxiv_id":"2410.02116","date":"2024-10-03","proceeding":null,"authors":["Siddharth Joshi","Jiayi Ni","Baharan Mirzasoleiman"],"abstract":"Dataset distillation (DD) generates small synthetic datasets that can efficiently train deep networks with a limited amount of memory and compute. Despite the success of DD methods for supervised learning, DD for self-supervised pre-training of deep models has remained unaddressed. Pre-training on unlabeled data is crucial for efficiently generalizing to downstream tasks with limited labeled data. In this work, we propose the first effective DD method for SSL pre-training. First, we show, theoretically and empirically, that naive application of supervised DD methods to SSL fails, due to the high variance of the SSL gradient. Then, we address this issue by relying on insights from knowledge distillation (KD) literature. Specifically, we train a small student model to match the representations of a larger teacher model trained with SSL. Then, we generate a small synthetic dataset by matching the training trajectories of the student models. As the KD objective has considerably lower variance than SSL, our approach can generate synthetic datasets that can successfully pre-train high-quality encoders. Through extensive experiments, we show that our distilled sets lead to up to 13% higher accuracy than prior work, on a variety of downstream tasks, in the presence of limited labeled data. Code at https://github.com/BigML-CS-UCLA/MKDT.","url_abs":"https://arxiv.org/abs/2410.02116v3","url_pdf":"https://arxiv.org/pdf/2410.02116v3.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":"dataset-distillation-via-knowledge","repo_url":"https://github.com/bigml-cs-ucla/mkdt","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"},{"task_slug":"knowledge-distillation","task_name":"Knowledge Distillation"}],"methods":[{"method_slug":"knowledge-distillation","method_name":"Knowledge Distillation"}],"datasets_introduced":[],"methods_introduced":[],"results":[],"syntology":{"syntology_url":"https://syntology.ai/paper/2410.02116","atlas_url":"https://app.syntology.ai/?focus=2410.02116","mcp":{"get_harvested_code_for_paper":{"arxiv_id":"2410.02116"}},"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":"deterministic:regex_extraction","url":"https://github.com/BigML-CS-UCLA/MKDT","reach":{"status":"ok"}},{"provenance":"external:paperswithcode_snapshot_2025-07-28","url":"https://github.com/bigml-cs-ucla/mkdt","reach":{"status":"ok"}}],"summary":{"ran":11,"ran_draft_wrong":2,"ran_honours":1,"unverified":3},"by_repo_kind":{"official":{"samples":17,"ran":14,"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":17,"samples":[{"code_sha256_prefix":"67d3c99025558a9c","entry":"AlexNet","repo":"bigml-cs-ucla/mkdt","repo_kind":"official","path":"distill.py","file_url":"https://github.com/bigml-cs-ucla/mkdt/blob/HEAD/distill.py","link_basis":"first_harvest_node","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":"67d3c99025558a9c"}},{"code_sha256_prefix":"ca6e6ec945d065f2","entry":"ConvNet","repo":"bigml-cs-ucla/mkdt","repo_kind":"official","path":"distill.py","file_url":"https://github.com/bigml-cs-ucla/mkdt/blob/HEAD/distill.py","link_basis":"first_harvest_node","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":"ca6e6ec945d065f2"}},{"code_sha256_prefix":"69d487410655681f","entry":"ImageNet","repo":"bigml-cs-ucla/mkdt","repo_kind":"official","path":"distill.py","file_url":"https://github.com/bigml-cs-ucla/mkdt/blob/HEAD/distill.py","link_basis":"first_harvest_node","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":"69d487410655681f"}},{"code_sha256_prefix":"2ccebd1032e41022","entry":"ResNet","repo":"bigml-cs-ucla/mkdt","repo_kind":"official","path":"distill.py","file_url":"https://github.com/bigml-cs-ucla/mkdt/blob/HEAD/distill.py","link_basis":"first_harvest_node","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":"2ccebd1032e41022"}},{"code_sha256_prefix":"866a9b0276570cac","entry":"ResNet10","repo":"bigml-cs-ucla/mkdt","repo_kind":"official","path":"distill.py","file_url":"https://github.com/bigml-cs-ucla/mkdt/blob/HEAD/distill.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":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"866a9b0276570cac"}},{"code_sha256_prefix":"2073212d9cb89cde","entry":"ResNet18","repo":"bigml-cs-ucla/mkdt","repo_kind":"official","path":"distill.py","file_url":"https://github.com/bigml-cs-ucla/mkdt/blob/HEAD/distill.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":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"2073212d9cb89cde"}},{"code_sha256_prefix":"190dfb67aacf4767","entry":"VGG11","repo":"BigML-CS-UCLA/MKDT","repo_kind":"official","path":"networks.py","file_url":"https://github.com/BigML-CS-UCLA/MKDT/blob/HEAD/networks.py","link_basis":"first_harvest_node","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":"190dfb67aacf4767"}},{"code_sha256_prefix":"6fa9b9b022f6dbfa","entry":"VGG11BN","repo":"BigML-CS-UCLA/MKDT","repo_kind":"official","path":"networks.py","file_url":"https://github.com/BigML-CS-UCLA/MKDT/blob/HEAD/networks.py","link_basis":"first_harvest_node","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":"6fa9b9b022f6dbfa"}},{"code_sha256_prefix":"3da7c8c828c4f0af","entry":"VGG13","repo":"BigML-CS-UCLA/MKDT","repo_kind":"official","path":"networks.py","file_url":"https://github.com/BigML-CS-UCLA/MKDT/blob/HEAD/networks.py","link_basis":"first_harvest_node","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":"3da7c8c828c4f0af"}},{"code_sha256_prefix":"70f0aeb39b01e08d","entry":"build_trainset","repo":"BigML-CS-UCLA/MKDT","repo_kind":"official","path":"utils.py","file_url":"https://github.com/BigML-CS-UCLA/MKDT/blob/HEAD/utils.py","link_basis":"first_harvest_node","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":"70f0aeb39b01e08d"}},{"code_sha256_prefix":"bae9273423240ea8","entry":"get_indices_per_class","repo":"bigml-cs-ucla/mkdt","repo_kind":"official","path":"distill.py","file_url":"https://github.com/bigml-cs-ucla/mkdt/blob/HEAD/distill.py","link_basis":"first_harvest_node","language":"python","status":"ran_honours","verification_level":1,"contract_check":"HONOURS","metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"bae9273423240ea8"}},{"code_sha256_prefix":"f896b30166bb9e03","entry":"test_clf","repo":"BigML-CS-UCLA/MKDT","repo_kind":"official","path":"evaluation/linear_evaluation.py","file_url":"https://github.com/BigML-CS-UCLA/MKDT/blob/HEAD/evaluation/linear_evaluation.py","link_basis":"first_harvest_node","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":"f896b30166bb9e03"}},{"code_sha256_prefix":"812999f06f0f61dd","entry":"top5accuracy","repo":"BigML-CS-UCLA/MKDT","repo_kind":"official","path":"evaluation/linear_evaluation.py","file_url":"https://github.com/BigML-CS-UCLA/MKDT/blob/HEAD/evaluation/linear_evaluation.py","link_basis":"first_harvest_node","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":"812999f06f0f61dd"}},{"code_sha256_prefix":"9fca0e5d57b72af3","entry":"train_clf","repo":"BigML-CS-UCLA/MKDT","repo_kind":"official","path":"evaluation/linear_evaluation.py","file_url":"https://github.com/BigML-CS-UCLA/MKDT/blob/HEAD/evaluation/linear_evaluation.py","link_basis":"first_harvest_node","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":"9fca0e5d57b72af3"}},{"code_sha256_prefix":"250c62662efd531e","entry":"get_dataset","repo":"bigml-cs-ucla/mkdt","repo_kind":"official","path":"distill.py","file_url":"https://github.com/bigml-cs-ucla/mkdt/blob/HEAD/distill.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":"250c62662efd531e"}},{"code_sha256_prefix":"262fc57b66d2733c","entry":"get_network","repo":"bigml-cs-ucla/mkdt","repo_kind":"official","path":"distill.py","file_url":"https://github.com/bigml-cs-ucla/mkdt/blob/HEAD/distill.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":"262fc57b66d2733c"}},{"code_sha256_prefix":"6e3eefbc9e2d6162","entry":"main","repo":"bigml-cs-ucla/mkdt","repo_kind":"official","path":"distill.py","file_url":"https://github.com/bigml-cs-ucla/mkdt/blob/HEAD/distill.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":"6e3eefbc9e2d6162"}}]},"arxiv_metadata":null,"syntology_extracted_results":null}