{"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/uncertainty-guided-source-free-domain","title":"Uncertainty-guided Source-free Domain Adaptation","arxiv_id":"2208.07591","date":"2022-08-16","proceeding":null,"authors":["Subhankar Roy","Martin Trapp","Andrea Pilzer","Juho Kannala","Nicu Sebe","Elisa Ricci","Arno Solin"],"abstract":"Source-free domain adaptation (SFDA) aims to adapt a classifier to an unlabelled target data set by only using a pre-trained source model. However, the absence of the source data and the domain shift makes the predictions on the target data unreliable. We propose quantifying the uncertainty in the source model predictions and utilizing it to guide the target adaptation. For this, we construct a probabilistic source model by incorporating priors on the network parameters inducing a distribution over the model predictions. Uncertainties are estimated by employing a Laplace approximation and incorporated to identify target data points that do not lie in the source manifold and to down-weight them when maximizing the mutual information on the target data. Unlike recent works, our probabilistic treatment is computationally lightweight, decouples source training and target adaptation, and requires no specialized source training or changes of the model architecture. We show the advantages of uncertainty-guided SFDA over traditional SFDA in the closed-set and open-set settings and provide empirical evidence that our approach is more robust to strong domain shifts even without tuning.","url_abs":"https://arxiv.org/abs/2208.07591v1","url_pdf":"https://arxiv.org/pdf/2208.07591v1.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":"uncertainty-guided-source-free-domain","repo_url":"https://github.com/roysubhankar/uncertainty-sfda","is_official":1,"mentioned_in_paper":1,"mentioned_in_github":0,"framework":"pytorch","reach":{"status":"ok","spdx":"MIT"}}],"tasks":[{"task_slug":"domain-adaptation","task_name":"Domain Adaptation"},{"task_slug":"source-free-domain-adaptation","task_name":"Source-Free Domain Adaptation"}],"methods":[],"datasets_introduced":[],"methods_introduced":[],"results":[],"syntology":{"atlas_url":"https://app.syntology.ai/?focus=2208.07591","mcp":{"get_harvested_code_for_paper":{"arxiv_id":"2208.07591"}},"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":"deterministic:regex_extraction","url":"https://github.com/roysubhankar/uncertainty-sfda","reach":{"status":"ok","spdx":"MIT"}}],"summary":{"ran_draft_wrong":1,"unverified":10},"by_repo_kind":{"official":{"samples":11,"ran":1,"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":"9768efb52f591b55","entry":"grl_hook","repo":"roysubhankar/uncertainty-sfda","repo_kind":"official","path":"cifar/loss.py","file_url":"https://github.com/roysubhankar/uncertainty-sfda/blob/HEAD/cifar/loss.py","link_basis":"harvester_set","language":"python","status":"ran_draft_wrong","verification_level":1,"contract_check":"OUTPUT_MISDECLARED","metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"9768efb52f591b55"}},{"code_sha256_prefix":"385d1e010dfb76a9","entry":"CDAN","repo":"roysubhankar/uncertainty-sfda","repo_kind":"official","path":"cifar/loss.py","file_url":"https://github.com/roysubhankar/uncertainty-sfda/blob/HEAD/cifar/loss.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":"385d1e010dfb76a9"}},{"code_sha256_prefix":"f3ce545fc143fc83","entry":"Entropy","repo":"roysubhankar/uncertainty-sfda","repo_kind":"official","path":"cifar/loss.py","file_url":"https://github.com/roysubhankar/uncertainty-sfda/blob/HEAD/cifar/loss.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":"f3ce545fc143fc83"}},{"code_sha256_prefix":"618b4bb0ee3cb5eb","entry":"Entropy","repo":"roysubhankar/uncertainty-sfda","repo_kind":"official","path":"toy_classification/multiclass_shot.py","file_url":"https://github.com/roysubhankar/uncertainty-sfda/blob/HEAD/toy_classification/multiclass_shot.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":"618b4bb0ee3cb5eb"}},{"code_sha256_prefix":"8eed95a2fb35fc66","entry":"calc_acc","repo":"roysubhankar/uncertainty-sfda","repo_kind":"official","path":"cifar/main_cda.py","file_url":"https://github.com/roysubhankar/uncertainty-sfda/blob/HEAD/cifar/main_cda.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":"8eed95a2fb35fc66"}},{"code_sha256_prefix":"6e16337c88174e00","entry":"denorm","repo":"roysubhankar/uncertainty-sfda","repo_kind":"official","path":"cifar/data_list.py","file_url":"https://github.com/roysubhankar/uncertainty-sfda/blob/HEAD/cifar/data_list.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":"6e16337c88174e00"}},{"code_sha256_prefix":"42c61c7f8959ae74","entry":"estimate_variance","repo":"roysubhankar/uncertainty-sfda","repo_kind":"official","path":"cifar/laplace.py","file_url":"https://github.com/roysubhankar/uncertainty-sfda/blob/HEAD/cifar/laplace.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":"42c61c7f8959ae74"}},{"code_sha256_prefix":"914593a4ff59e6f3","entry":"prepare_transform","repo":"roysubhankar/uncertainty-sfda","repo_kind":"official","path":"cifar/data_list.py","file_url":"https://github.com/roysubhankar/uncertainty-sfda/blob/HEAD/cifar/data_list.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":"914593a4ff59e6f3"}},{"code_sha256_prefix":"3d1f1abcfc6f520c","entry":"shift_data","repo":"roysubhankar/uncertainty-sfda","repo_kind":"official","path":"toy_classification/multiclass_shot.py","file_url":"https://github.com/roysubhankar/uncertainty-sfda/blob/HEAD/toy_classification/multiclass_shot.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":"3d1f1abcfc6f520c"}},{"code_sha256_prefix":"c5ed9b407bcf6e76","entry":"source_train","repo":"roysubhankar/uncertainty-sfda","repo_kind":"official","path":"toy_classification/multiclass_shot.py","file_url":"https://github.com/roysubhankar/uncertainty-sfda/blob/HEAD/toy_classification/multiclass_shot.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":"c5ed9b407bcf6e76"}},{"code_sha256_prefix":"d09792f112e6ca1e","entry":"trainval_loader","repo":"roysubhankar/uncertainty-sfda","repo_kind":"official","path":"cifar/data_list.py","file_url":"https://github.com/roysubhankar/uncertainty-sfda/blob/HEAD/cifar/data_list.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":"d09792f112e6ca1e"}}]},"arxiv_metadata":null,"syntology_extracted_results":null}