{"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/towards-data-free-domain-generalization","title":"Towards Data-Free Domain Generalization","arxiv_id":"2110.04545","date":"2021-10-09","proceeding":null,"authors":["Ahmed Frikha","Haokun Chen","Denis Krompaß","Thomas Runkler","Volker Tresp"],"abstract":"In this work, we investigate the unexplored intersection of domain generalization (DG) and data-free learning. In particular, we address the question: How can knowledge contained in models trained on different source domains be merged into a single model that generalizes well to unseen target domains, in the absence of source and target domain data? Machine learning models that can cope with domain shift are essential for real-world scenarios with often changing data distributions. Prior DG methods typically rely on using source domain data, making them unsuitable for private decentralized data. We define the novel problem of Data-Free Domain Generalization (DFDG), a practical setting where models trained on the source domains separately are available instead of the original datasets, and investigate how to effectively solve the domain generalization problem in that case. We propose DEKAN, an approach that extracts and fuses domain-specific knowledge from the available teacher models into a student model robust to domain shift. Our empirical evaluation demonstrates the effectiveness of our method which achieves first state-of-the-art results in DFDG by significantly outperforming data-free knowledge distillation and ensemble baselines.","url_abs":"https://arxiv.org/abs/2110.04545v4","url_pdf":"https://arxiv.org/pdf/2110.04545v4.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":"towards-data-free-domain-generalization","repo_url":"https://github.com/HaokunChen245/DFDG","is_official":1,"mentioned_in_paper":1,"mentioned_in_github":1,"framework":"pytorch","reach":null}],"tasks":[{"task_slug":"data-free-knowledge-distillation","task_name":"Data-free Knowledge Distillation"},{"task_slug":"domain-generalization","task_name":"Domain Generalization"},{"task_slug":"knowledge-distillation","task_name":"Knowledge Distillation"}],"methods":[{"method_slug":"knowledge-distillation","method_name":"Knowledge Distillation"}],"datasets_introduced":[],"methods_introduced":[],"results":[],"syntology":{"atlas_url":"https://app.syntology.ai/?focus=2110.04545","mcp":{"get_harvested_code_for_paper":{"arxiv_id":"2110.04545"}},"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/HaokunChen245/DFDG","reach":null}],"summary":{"ran":5,"ran_honours":2,"ran_draft_wrong":7,"ran_fixture":1,"unverified":5},"by_repo_kind":{"official":{"samples":20,"ran":15,"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":"cd7b9603cbce6487","entry":"MNISTM","repo":"HaokunChen245/DFDG","repo_kind":"official","path":"dfdg/training/train_student_syn_img.py","file_url":"https://github.com/HaokunChen245/DFDG/blob/HEAD/dfdg/training/train_student_syn_img.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"cd7b9603cbce6487"}},{"code_sha256_prefix":"52e13479de87ebea","entry":"OfficeHome","repo":"HaokunChen245/DFDG","repo_kind":"official","path":"dfdg/training/train_student_syn_img.py","file_url":"https://github.com/HaokunChen245/DFDG/blob/HEAD/dfdg/training/train_student_syn_img.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"52e13479de87ebea"}},{"code_sha256_prefix":"c8899dbd625b82a7","entry":"PACS","repo":"HaokunChen245/DFDG","repo_kind":"official","path":"dfdg/training/train_student_syn_img.py","file_url":"https://github.com/HaokunChen245/DFDG/blob/HEAD/dfdg/training/train_student_syn_img.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"c8899dbd625b82a7"}},{"code_sha256_prefix":"7988844fd79a2a10","entry":"VLCS","repo":"HaokunChen245/DFDG","repo_kind":"official","path":"dfdg/training/train_student_syn_img.py","file_url":"https://github.com/HaokunChen245/DFDG/blob/HEAD/dfdg/training/train_student_syn_img.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"7988844fd79a2a10"}},{"code_sha256_prefix":"bf5c752f1fdd2344","entry":"evaluate_oneset","repo":"HaokunChen245/DFDG","repo_kind":"official","path":"dfdg/training/train_student_syn_img.py","file_url":"https://github.com/HaokunChen245/DFDG/blob/HEAD/dfdg/training/train_student_syn_img.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":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"bf5c752f1fdd2344"}},{"code_sha256_prefix":"7e028dd7cef44939","entry":"get_abbr_map","repo":"HaokunChen245/DFDG","repo_kind":"official","path":"dfdg/training/train_student_syn_img.py","file_url":"https://github.com/HaokunChen245/DFDG/blob/HEAD/dfdg/training/train_student_syn_img.py","link_basis":"first_harvest_node","language":"python","status":"ran_draft_wrong","verification_level":1,"contract_check":"OUTPUT_MISDECLARED","metamorphic_tier":"deterministic","behaviour_fingerprint":true,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"7e028dd7cef44939"}},{"code_sha256_prefix":"38e9002eb1f23978","entry":"get_class_names","repo":"HaokunChen245/DFDG","repo_kind":"official","path":"dfdg/training/train_student_syn_img.py","file_url":"https://github.com/HaokunChen245/DFDG/blob/HEAD/dfdg/training/train_student_syn_img.py","link_basis":"first_harvest_node","language":"python","status":"ran_draft_wrong","verification_level":1,"contract_check":"OUTPUT_MISDECLARED","metamorphic_tier":"deterministic","behaviour_fingerprint":true,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"38e9002eb1f23978"}},{"code_sha256_prefix":"068a32afcb1a875d","entry":"get_class_number","repo":"HaokunChen245/DFDG","repo_kind":"official","path":"dfdg/training/train_student_syn_img.py","file_url":"https://github.com/HaokunChen245/DFDG/blob/HEAD/dfdg/training/train_student_syn_img.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":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"068a32afcb1a875d"}},{"code_sha256_prefix":"9966b8ec681f4404","entry":"get_net","repo":"HaokunChen245/DFDG","repo_kind":"official","path":"dfdg/training/train_student_syn_img.py","file_url":"https://github.com/HaokunChen245/DFDG/blob/HEAD/dfdg/training/train_student_syn_img.py","link_basis":"first_harvest_node","language":"python","status":"ran_draft_wrong","verification_level":1,"contract_check":"OUTPUT_MISDECLARED","metamorphic_tier":"deterministic","behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"9966b8ec681f4404"}},{"code_sha256_prefix":"56fb6475cb294744","entry":"get_source_domains","repo":"HaokunChen245/DFDG","repo_kind":"official","path":"dfdg/training/train_student_syn_img.py","file_url":"https://github.com/HaokunChen245/DFDG/blob/HEAD/dfdg/training/train_student_syn_img.py","link_basis":"first_harvest_node","language":"python","status":"ran_draft_wrong","verification_level":1,"contract_check":"OUTPUT_MISDECLARED","metamorphic_tier":"deterministic","behaviour_fingerprint":true,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"56fb6475cb294744"}},{"code_sha256_prefix":"32c7347d3ae61759","entry":"get_source_domains_abbr","repo":"HaokunChen245/DFDG","repo_kind":"official","path":"dfdg/training/train_student_syn_img.py","file_url":"https://github.com/HaokunChen245/DFDG/blob/HEAD/dfdg/training/train_student_syn_img.py","link_basis":"first_harvest_node","language":"python","status":"ran_draft_wrong","verification_level":1,"contract_check":"OUTPUT_MISDECLARED","metamorphic_tier":null,"behaviour_fingerprint":true,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"32c7347d3ae61759"}},{"code_sha256_prefix":"7ee01bf5efd50d92","entry":"kl_loss","repo":"HaokunChen245/DFDG","repo_kind":"official","path":"dfdg/training/train_student_syn_img.py","file_url":"https://github.com/HaokunChen245/DFDG/blob/HEAD/dfdg/training/train_student_syn_img.py","link_basis":"first_harvest_node","language":"python","status":"ran_fixture","verification_level":1,"contract_check":"RAISES","metamorphic_tier":"invariant","behaviour_fingerprint":true,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"7ee01bf5efd50d92"}},{"code_sha256_prefix":"9fd6750328ee3f9a","entry":"lr_cosine_policy","repo":"HaokunChen245/DFDG","repo_kind":"official","path":"dfdg/training/train_student_syn_img.py","file_url":"https://github.com/HaokunChen245/DFDG/blob/HEAD/dfdg/training/train_student_syn_img.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":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"9fd6750328ee3f9a"}},{"code_sha256_prefix":"8879e55d89cdc808","entry":"lr_policy","repo":"HaokunChen245/DFDG","repo_kind":"official","path":"dfdg/training/train_student_syn_img.py","file_url":"https://github.com/HaokunChen245/DFDG/blob/HEAD/dfdg/training/train_student_syn_img.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":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"8879e55d89cdc808"}},{"code_sha256_prefix":"1bf3b903e2947d69","entry":"miniDomainNet","repo":"HaokunChen245/DFDG","repo_kind":"official","path":"dfdg/training/train_student_syn_img.py","file_url":"https://github.com/HaokunChen245/DFDG/blob/HEAD/dfdg/training/train_student_syn_img.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"1bf3b903e2947d69"}},{"code_sha256_prefix":"bbd4ba6ba7e4b9d1","entry":"BaseDataset","repo":"HaokunChen245/DFDG","repo_kind":"official","path":"dfdg/training/train_student_syn_img.py","file_url":"https://github.com/HaokunChen245/DFDG/blob/HEAD/dfdg/training/train_student_syn_img.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"bbd4ba6ba7e4b9d1"}},{"code_sha256_prefix":"0f3ead3a52a4792f","entry":"Digits","repo":"HaokunChen245/DFDG","repo_kind":"official","path":"dfdg/training/train_student_syn_img.py","file_url":"https://github.com/HaokunChen245/DFDG/blob/HEAD/dfdg/training/train_student_syn_img.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"0f3ead3a52a4792f"}},{"code_sha256_prefix":"302b7a0d15a99b07","entry":"FAKE","repo":"HaokunChen245/DFDG","repo_kind":"official","path":"dfdg/training/train_student_syn_img.py","file_url":"https://github.com/HaokunChen245/DFDG/blob/HEAD/dfdg/training/train_student_syn_img.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"302b7a0d15a99b07"}},{"code_sha256_prefix":"18be128efd090a2d","entry":"get_dataset","repo":"HaokunChen245/DFDG","repo_kind":"official","path":"dfdg/training/train_student_syn_img.py","file_url":"https://github.com/HaokunChen245/DFDG/blob/HEAD/dfdg/training/train_student_syn_img.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"18be128efd090a2d"}},{"code_sha256_prefix":"307f729c69e1ba8f","entry":"train_student_syn_img","repo":"HaokunChen245/DFDG","repo_kind":"official","path":"dfdg/training/train_student_syn_img.py","file_url":"https://github.com/HaokunChen245/DFDG/blob/HEAD/dfdg/training/train_student_syn_img.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"307f729c69e1ba8f"}}]},"arxiv_metadata":null,"syntology_extracted_results":null}