{"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/a-balanced-and-uncertainty-aware-approach-for","title":"A Balanced and Uncertainty-aware Approach for Partial Domain Adaptation","arxiv_id":"2003.02541","date":"2020-03-05","proceeding":"ECCV 2020 8","authors":["Jian Liang","Yunbo Wang","Dapeng Hu","Ran He","Jiashi Feng"],"abstract":"This work addresses the unsupervised domain adaptation problem, especially in the case of class labels in the target domain being only a subset of those in the source domain. Such a partial transfer setting is realistic but challenging and existing methods always suffer from two key problems, negative transfer and uncertainty propagation. In this paper, we build on domain adversarial learning and propose a novel domain adaptation method BA$^3$US with two new techniques termed Balanced Adversarial Alignment (BAA) and Adaptive Uncertainty Suppression (AUS), respectively. On one hand, negative transfer results in misclassification of target samples to the classes only present in the source domain. To address this issue, BAA pursues the balance between label distributions across domains in a fairly simple manner. Specifically, it randomly leverages a few source samples to augment the smaller target domain during domain alignment so that classes in different domains are symmetric. On the other hand, a source sample would be denoted as uncertain if there is an incorrect class that has a relatively high prediction score, and such uncertainty easily propagates to unlabeled target data around it during alignment, which severely deteriorates adaptation performance. Thus we present AUS that emphasizes uncertain samples and exploits an adaptive weighted complement entropy objective to encourage incorrect classes to have uniform and low prediction scores. Experimental results on multiple benchmarks demonstrate our BA$^3$US surpasses state-of-the-arts for partial domain adaptation tasks. Code is available at \\url{https://github.com/tim-learn/BA3US}.","url_abs":"https://arxiv.org/abs/2003.02541v2","url_pdf":"https://arxiv.org/pdf/2003.02541v2.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":"a-balanced-and-uncertainty-aware-approach-for","repo_url":"https://github.com/tim-learn/BA3US","is_official":1,"mentioned_in_paper":1,"mentioned_in_github":1,"framework":"pytorch","reach":{"status":"ok","spdx":"MIT"}}],"tasks":[{"task_slug":"domain-adaptation","task_name":"Domain Adaptation"},{"task_slug":"partial-domain-adaptation","task_name":"Partial Domain Adaptation"},{"task_slug":"unsupervised-domain-adaptation","task_name":"Unsupervised Domain Adaptation"}],"methods":[],"datasets_introduced":[],"methods_introduced":[],"results":[{"leaderboard":"/sota/partial-domain-adaptation-on-domainnet","task":"Partial Domain Adaptation","dataset":"DomainNet","model":"BA^3US","rank_in_archive_order":2,"of":3,"metrics":{"Accuracy (%)":"60.63"},"uses_additional_data":false},{"leaderboard":"/sota/partial-domain-adaptation-on-imagenet-caltech","task":"Partial Domain Adaptation","dataset":"ImageNet-Caltech","model":"BA^3US","rank_in_archive_order":2,"of":4,"metrics":{"Accuracy (%)":"83.7"},"uses_additional_data":false},{"leaderboard":"/sota/partial-domain-adaptation-on-office-31","task":"Partial Domain Adaptation","dataset":"Office-31","model":"BA^3US","rank_in_archive_order":5,"of":7,"metrics":{"Accuracy (%)":"97.8"},"uses_additional_data":false},{"leaderboard":"/sota/partial-domain-adaptation-on-office-home","task":"Partial Domain Adaptation","dataset":"Office-Home","model":"BA^3US","rank_in_archive_order":5,"of":11,"metrics":{"Accuracy (%)":"76.0"},"uses_additional_data":false}],"syntology":{"syntology_url":"https://syntology.ai/paper/2003.02541","atlas_url":"https://app.syntology.ai/?focus=2003.02541","mcp":{"get_harvested_code_for_paper":{"arxiv_id":"2003.02541"}},"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/tim-learn/BA3US","reach":{"status":"ok","spdx":"MIT"}}],"summary":{"ran_draft_wrong":4,"ran_honours":2,"unverified":4},"by_repo_kind":{"official":{"samples":10,"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":0,"samples":[{"code_sha256_prefix":"9768efb52f591b55","entry":"grl_hook","repo":"tim-learn/BA3US","repo_kind":"official","path":"my_loss.py","file_url":"https://github.com/tim-learn/BA3US/blob/HEAD/my_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":"60166088c825b407","entry":"image_test","repo":"tim-learn/BA3US","repo_kind":"official","path":"run_partial.py","file_url":"https://github.com/tim-learn/BA3US/blob/HEAD/run_partial.py","link_basis":"plan_row","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":"60166088c825b407"}},{"code_sha256_prefix":"6d14e3fcb8d93fa1","entry":"image_train","repo":"tim-learn/BA3US","repo_kind":"official","path":"run_partial.py","file_url":"https://github.com/tim-learn/BA3US/blob/HEAD/run_partial.py","link_basis":"plan_row","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":"6d14e3fcb8d93fa1"}},{"code_sha256_prefix":"693fef7015113684","entry":"inv_lr_scheduler","repo":"tim-learn/BA3US","repo_kind":"official","path":"lr_schedule.py","file_url":"https://github.com/tim-learn/BA3US/blob/HEAD/lr_schedule.py","link_basis":"plan_row","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":"693fef7015113684"}},{"code_sha256_prefix":"edd7184ac144c4fa","entry":"l_loader","repo":"tim-learn/BA3US","repo_kind":"official","path":"data_list.py","file_url":"https://github.com/tim-learn/BA3US/blob/HEAD/data_list.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":"edd7184ac144c4fa"}},{"code_sha256_prefix":"2c5ce24ea2b5d2a4","entry":"rgb_loader","repo":"tim-learn/BA3US","repo_kind":"official","path":"data_list.py","file_url":"https://github.com/tim-learn/BA3US/blob/HEAD/data_list.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":"2c5ce24ea2b5d2a4"}},{"code_sha256_prefix":"b03644ad1b258f7e","entry":"DANN","repo":"tim-learn/BA3US","repo_kind":"official","path":"my_loss.py","file_url":"https://github.com/tim-learn/BA3US/blob/HEAD/my_loss.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":"b03644ad1b258f7e"}},{"code_sha256_prefix":"792f32c0291a5af7","entry":"Entropy","repo":"tim-learn/BA3US","repo_kind":"official","path":"my_loss.py","file_url":"https://github.com/tim-learn/BA3US/blob/HEAD/my_loss.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":"792f32c0291a5af7"}},{"code_sha256_prefix":"e352afa5762c5a6b","entry":"calc_coeff","repo":"tim-learn/BA3US","repo_kind":"official","path":"network.py","file_url":"https://github.com/tim-learn/BA3US/blob/HEAD/network.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":"e352afa5762c5a6b"}},{"code_sha256_prefix":"2301055cb33836bc","entry":"make_dataset","repo":"tim-learn/BA3US","repo_kind":"official","path":"data_list.py","file_url":"https://github.com/tim-learn/BA3US/blob/HEAD/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":"2301055cb33836bc"}}]},"arxiv_metadata":null,"syntology_extracted_results":null}