{"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/learn-from-the-learnt-source-free-active","title":"Learn from the Learnt: Source-Free Active Domain Adaptation via Contrastive Sampling and Visual Persistence","arxiv_id":"2407.18899","date":"2024-07-26","proceeding":null,"authors":["Mengyao Lyu","Tianxiang Hao","Xinhao Xu","Hui Chen","Zijia Lin","Jungong Han","Guiguang Ding"],"abstract":"Domain Adaptation (DA) facilitates knowledge transfer from a source domain to a related target domain. This paper investigates a practical DA paradigm, namely Source data-Free Active Domain Adaptation (SFADA), where source data becomes inaccessible during adaptation, and a minimum amount of annotation budget is available in the target domain. Without referencing the source data, new challenges emerge in identifying the most informative target samples for labeling, establishing cross-domain alignment during adaptation, and ensuring continuous performance improvements through the iterative query-and-adaptation process. In response, we present learn from the learnt (LFTL), a novel paradigm for SFADA to leverage the learnt knowledge from the source pretrained model and actively iterated models without extra overhead. We propose Contrastive Active Sampling to learn from the hypotheses of the preceding model, thereby querying target samples that are both informative to the current model and persistently challenging throughout active learning. During adaptation, we learn from features of actively selected anchors obtained from previous intermediate models, so that the Visual Persistence-guided Adaptation can facilitate feature distribution alignment and active sample exploitation. Extensive experiments on three widely-used benchmarks show that our LFTL achieves state-of-the-art performance, superior computational efficiency and continuous improvements as the annotation budget increases. Our code is available at https://github.com/lyumengyao/lftl.","url_abs":"https://arxiv.org/abs/2407.18899v1","url_pdf":"https://arxiv.org/pdf/2407.18899v1.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":[],"tasks":[{"task_slug":"active-learning","task_name":"Active Learning"},{"task_slug":"computational-efficiency","task_name":"Computational Efficiency"},{"task_slug":"domain-adaptation","task_name":"Domain Adaptation"},{"task_slug":"transfer-learning","task_name":"Transfer Learning"}],"methods":[],"datasets_introduced":[],"methods_introduced":[],"results":[],"syntology":{"syntology_url":null,"atlas_url":"https://app.syntology.ai/?focus=2407.18899","mcp":{"get_harvested_code_for_paper":{"arxiv_id":"2407.18899"}},"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/lyumengyao/lftl","reach":null}],"summary":{"ran":2,"ran_draft_wrong":4,"unverified":2},"by_repo_kind":{"found_in_text":{"samples":8,"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":8,"samples":[{"code_sha256_prefix":"b79fcefc19df1ff4","entry":"MixedDataset","repo":"lyumengyao/lftl","repo_kind":"found_in_text","path":"mining/contrastive_sampling.py","file_url":"https://github.com/lyumengyao/lftl/blob/HEAD/mining/contrastive_sampling.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":"deterministic","behaviour_fingerprint":true,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"b79fcefc19df1ff4"}},{"code_sha256_prefix":"5237eafffa541c27","entry":"Strategy","repo":"lyumengyao/lftl","repo_kind":"found_in_text","path":"mining/contrastive_sampling.py","file_url":"https://github.com/lyumengyao/lftl/blob/HEAD/mining/contrastive_sampling.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":"5237eafffa541c27"}},{"code_sha256_prefix":"e5b1dfbb42d000c2","entry":"cal_acc","repo":"lyumengyao/lftl","repo_kind":"found_in_text","path":"mining/contrastive_sampling.py","file_url":"https://github.com/lyumengyao/lftl/blob/HEAD/mining/contrastive_sampling.py","link_basis":"first_harvest_node","language":"python","status":"ran_draft_wrong","verification_level":1,"contract_check":"MISDECLARED","metamorphic_tier":null,"behaviour_fingerprint":true,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"e5b1dfbb42d000c2"}},{"code_sha256_prefix":"c5bba296dc9e0db3","entry":"cosine_metric","repo":"lyumengyao/lftl","repo_kind":"found_in_text","path":"mining/contrastive_sampling.py","file_url":"https://github.com/lyumengyao/lftl/blob/HEAD/mining/contrastive_sampling.py","link_basis":"first_harvest_node","language":"python","status":"ran_draft_wrong","verification_level":1,"contract_check":"MISDECLARED","metamorphic_tier":null,"behaviour_fingerprint":true,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"c5bba296dc9e0db3"}},{"code_sha256_prefix":"a84c8b8443596255","entry":"cross_entropy_loss","repo":"lyumengyao/lftl","repo_kind":"found_in_text","path":"mining/contrastive_sampling.py","file_url":"https://github.com/lyumengyao/lftl/blob/HEAD/mining/contrastive_sampling.py","link_basis":"first_harvest_node","language":"python","status":"ran_draft_wrong","verification_level":1,"contract_check":"MISDECLARED","metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"a84c8b8443596255"}},{"code_sha256_prefix":"bec6249a0ed0c414","entry":"info_maximize_loss","repo":"lyumengyao/lftl","repo_kind":"found_in_text","path":"mining/contrastive_sampling.py","file_url":"https://github.com/lyumengyao/lftl/blob/HEAD/mining/contrastive_sampling.py","link_basis":"first_harvest_node","language":"python","status":"ran_draft_wrong","verification_level":1,"contract_check":"MISDECLARED","metamorphic_tier":null,"behaviour_fingerprint":true,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"bec6249a0ed0c414"}},{"code_sha256_prefix":"b7d77cf003e36c17","entry":"CASampling","repo":"lyumengyao/lftl","repo_kind":"found_in_text","path":"mining/contrastive_sampling.py","file_url":"https://github.com/lyumengyao/lftl/blob/HEAD/mining/contrastive_sampling.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":"b7d77cf003e36c17"}},{"code_sha256_prefix":"2448f73c9a9561b9","entry":"print_log","repo":"lyumengyao/lftl","repo_kind":"found_in_text","path":"mining/contrastive_sampling.py","file_url":"https://github.com/lyumengyao/lftl/blob/HEAD/mining/contrastive_sampling.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":"2448f73c9a9561b9"}}]},"arxiv_metadata":null,"syntology_extracted_results":null}