Papers › LFM: Leveraging Foundation Models for Source-Free Universal Domain Adaptation

LFM: Leveraging Foundation Models for Source-Free Universal Domain Adaptation

20 Jul 2026arXiv:2607.17653added by Syntology

Jing Li, Pan Liu, Meng Zhao, Wanli Xue, Yanhong Yang, Xu Cheng, Fan Shi, Jianhua Zhang, Qinghua Hu, Shengyong Chen

Title, abstract, authors and date from arXiv's metadata (CC0); this paper is not in the Papers with Code archive (frozen 2025-07-28).

Source-free universal domain adaptation (SF-UniDA) adapts a pre-trained source model to an unlabeled target domain under both covariate and label shifts, without access to source data. However, existing SF-UniDA methods rely on inefficient techniques such as threshold tuning and clustering. Foundation models (FMs), known for their generalization and zero-shot capabilities, remain underexplored in SF-UniDA. In this paper, we propose a framework that leverages foundation models (LFM) for SF-UniDA. We use a vision-language model (VLM) to compute similarities between target samples and text labels, including those for unknown classes generated by prompting a large language model. The label shift type is determined by analyzing the coefficient of variation of a similarity-based sample-level score. Unknown samples are identified using a binary Gaussian mixture model fitted to another similarity-based metric. Under a consensus strategy, the pseudo-labels generated by the VLM are refined by the target model initialized with the pre-trained source model, integrating knowledge from both the source domain and foundation models. Finally, these refined pseudo-labels are used to train the target model. Extensive experiments across all possible label shifts and multiple benchmarks demonstrate the effectiveness and superiority of our proposed LFM framework. Our code is available at https://github.com/iamjingli/LFM.

PaperPDFCode Syntology ranMethod as code

In Syntology View this paper on Syntology, its page in Syntology's graph. That page adds which of its functions are also present in other papers' code Syntology holds, with dates, and its dated run record as JSON and a README badge. It also lists the repositories linked to the paper, the abstract and the calls for agents.

Open this paper in Syntology's Atlas, the map of the papers in Syntology's graph and their citations.

For agents, on Syntology's MCP service (how to connect):

Code

Syntology 30 code samples: 26 from 1 repository linked to this paper, 4 identical to code harvested from another paper's repository. Across all 30: 19 ran (of which 3 constructed an object rather than computing a result; 3 with no instrument failure: 0 honoured, 0 violated, 3 with no contract checked; 16 where Syntology's instrument failed) · 11 unverified. Where Syntology's instrument failed: 12 where our contract draft was wrong; 4 where the contract check could not run; failures of Syntology's instrument, not of the code.

By repository: found in paper text by Syntology: 26 samples from 1 repository, 15 ran (3 with no instrument failure; 12 where Syntology's instrument failed); 4 identical to code first harvested elsewhere. The run record, sample by sample. “Ran” means executed on a synthesized input, not that the code is correct or reproduces the paper.

Levels written on 2026-09-22 (UTC): the dates Syntology's graph wrote each sample's verification level, not when the code executed. 4 of the 19 samples that ran have no recorded date.

iamjingli/LFM found in paper text by SyntologySyntology: 26 samples, 15 ran (12 instrument-failed) · 11 unverified report

Reachability, where shown, is from one Syntology probe window (2026-09-16 to 2026-09-18); repositories not probed show nothing. GitHub stars are not tracked.

Code Syntology ran Syntology

30 samples harvested: 19 ran (of which 3 constructed an object rather than computing a result; 3 with no instrument failure: 0 honoured, 0 violated, 3 with no contract checked; 16 where Syntology's instrument failed) · 11 unverified. “Where Syntology's instrument failed” counts failures of Syntology's instrument, not of the code. Syntology's record for this page last changed ; when this build read Syntology's graph is in the build record. That date is not when the samples ran.

12ran · our draft was wrong
4ran; the contract check could not run
3ran
11unverified

Licence: 4 of the 30 samples are pointer only, meaning Syntology does not serve that copy's text. This page shows no code text for any sample; each one links to its file in the repository.

Harvested from iamjingli/LFM. 4 samples are listed last, in a group without a repository. “Ran” means the sample executed on a synthesized input. It does not mean the output is correct, and nothing here reproduces the paper's results. A line beginning “fixture:” under a sample that ran gives the arguments Syntology's fixture called the sample with, each as name:type/rank/element kind (? where none was recorded), and the type of what the fixture's run returned, exactly as the harness recorded them; the arguments and the returned type were recorded by two separate runs of the same fixture. No output value is shown, and a returned type says nothing about whether the output was right. “Level recorded” gives the UTC date when Syntology's graph wrote the sample's verification level, not when the code executed; where the level was written before Syntology's graph kept that date, the row says “level recorded, date not recorded”. For 1 sample that ran, the graph records a signature this page does not show: for a class the fixture built without calling, the harness called the object with inputs it made up itself, so the recorded signature is the harness's probe, not the fixture's arguments. “Honoured” and “violated” refer to a contract Syntology drafted from the code itself. “Our draft was wrong” and “the contract check could not run” are failures of Syntology's instrument, not of the code: the sample ran on Syntology's synthesized input, and then the drafted contract did not describe it, or the check itself raised an error (RAISES), lacked a dependency (DEP_MISSING) or ran out of time (TIMEOUT); hover the label for which. A metamorphic tier, where shown, is evidence of the output's shape, not that the sample implements the method.

Each sample ends with its code_sha256. A sample's code_sha256 is Syntology's identity for that exact code. It is printed in full (16 hexadecimal characters for every sample in this build), and get_code(code_sha256="…") takes it exactly as printed. An agent calls it on Syntology's MCP service (how to connect); click an identity to copy that call.

Repository labels, per sample. official repository: The archive marks this repository official for the paper. named in the paper: The archive records that the paper mentions this repository; it is not marked official. community (archive-listed): In the archive's code links for this paper, not marked official and not recorded as mentioned in the paper. found in paper text by Syntology: 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. Samples are grouped by repository: a repository marked official first, then by how directly the repository is tied to the paper, then in the archive's order; never by how many ran. Licence labels name the repository's licence as recorded at harvest. “Pointer only” means Syntology does not serve that copy's text, for one of six reasons: no licence file was found; the licence was not identified; the licence is recorded as permissive but that copy's record is not marked cleared; the licence is outside the permissive list Syntology serves text under (MIT, Apache-2.0, BSD and similar); this paper's copy was not located, so its licence is not recorded; or this paper's copy is cleared, but the stored copy of the same code that Syntology serves is not. Some licences outside that list permit redistribution, such as WTFPL, and GPL-3.0 under its conditions; they are simply not on the list. Hover a licence label for the reason. File links open the file on GitHub at the default branch, which may have changed since the harvest.

A function or class name links to its page when the name occurs in the harvested code of at least 5 papers; the name is a string, not an identity. A census tag appears when Syntology's census ran implementations with that name on one shared input per bucket: it gives how many were compared, from how many papers, and how many distinct outputs they produced, and names this sample's bucket when this sample was one of them.

iamjingli/LFM found in paper text by Syntology 26 samples, 15 ran (12 instrument-failed) · 11 unverified
Classifier in 72 papers train_target.py ran · metamorphic tier: deterministic MIT (permissive) · 590aa0969d97b025 · report fixture: returned Classifier · level recorded 2026-09-22
Embedding in 90 papers train_target.py ran · metamorphic tier: deterministic MIT (permissive) · 85470d3ab6c52602 · report fixture: returned Embedding · level recorded 2026-09-22
SFUniDADataset train_target.py ran MIT (permissive) · db868eb88f5a2b9b · report fixture: returned SFUniDADataset · level recorded 2026-09-22
compute_h_score train_target.py ran; the contract check could not run (RAISES) · metamorphic tier: deterministic MIT (permissive) · 57ee79329c2933a6 · report fixture: signature args:Args/0/?, class_list:list/1/int, gt_label_all:Tensor/1/int, pred_cls_all:Tensor/2/float, open_flag:bool/0/bool, open_thresh:float/0/float, pred_unc_all:NoneType/0/? · returned tuple · level recorded 2026-09-22
get_ood_scores_clip train_target.py ran; the contract check could not run (RAISES) MIT (permissive) · 51eb44363c6c9cea · report fixture: returned tuple · level recorded 2026-09-22
get_pseudo_labels train_target.py ran · our draft was wrong MIT (permissive) · beb9eadd0bfb2292 · report fixture: returned Tensor · level recorded 2026-09-22
load_json in 344 papers train_target.py ran · our draft was wrong MIT (permissive) · 1069918b276d2855 · report fixture: signature filename:str/0/str · returned dict · level recorded 2026-09-22
log_args train_target.py ran · our draft was wrong MIT (permissive) · a7928c7cf111366a · report fixture: signature args:Namespace/0/? · returned str · level recorded 2026-09-22
obtain_gpt_class_and_save train_target.py ran · our draft was wrong MIT (permissive) · e21790f387e86204 · report fixture: signature args:Args/0/?, file_path:str/0/str, class_list:str/0/str · returned coroutine · level recorded 2026-09-22
pre_filter train_target.py ran; the contract check could not run (RAISES) MIT (permissive) · d9512c44141b4aa8 · report fixture: returned tuple · level recorded 2026-09-22
remove_overlap_class train_target.py ran · our draft was wrong MIT (permissive) · f32a4c158be3016c · report fixture: signature test_labels:list/1/str, gpt_labels:list/1/str · returned list · level recorded 2026-09-22
set_logger in 26 papers train_target.py ran · our draft was wrong MIT (permissive) · 4c7a1e20b84ac632 · report fixture: signature args:Namespace/0/?, log_name:str/0/str · returned Logger · level recorded 2026-09-22
test in 377 papers train_target.py ran; the contract check could not run (RAISES) MIT (permissive) · fe73cf9445756920 · report fixture: returned tuple · level recorded 2026-09-22
test_transform in 10 papers train_target.py ran · our draft was wrong MIT (permissive) · 13b7b1c692c187e0 · report fixture: signature resize_size:int/0/int, crop_size:int/0/int · returned Compose · level recorded 2026-09-22
train_transform in 7 papers train_target.py ran · our draft was wrong MIT (permissive) · ada9656c14c75934 · report fixture: signature resize_size:int/0/int, crop_size:int/0/int · returned Compose · level recorded 2026-09-22
PromptGenerator in 8 papers train_target.py unverified MIT (permissive) · 4db77fc0e9bf39b0 · report
ResBase train_target.py unverified MIT (permissive) · 380df4780014a94c · report
SFUniDA train_target.py unverified MIT (permissive) · 6153fbffb3985887 · report
VGGBase train_target.py unverified MIT (permissive) · 112349e40ab69ddb · report
get_completion in 26 papers train_target.py unverified MIT (permissive) · 4528e48fcffa0b3d · report
get_completion_from_messages train_target.py unverified MIT (permissive) · dd65b4eaa2bc257e · report
get_idx in 14 papers train_target.py unverified MIT (permissive) · 780faf558bba6b54 · report
load_llm_classes train_target.py unverified MIT (permissive) · 6bad6d16ba57825e · report
main in 235 papers train_target.py unverified MIT (permissive) · 51b1a343a1c5c316 · report
set_model_clip train_target.py unverified MIT (permissive) · 92aa3c44ba29df0c · report
tr train_target.py unverified MIT (permissive) · 721005b41f811e51 · report
Repository not located 4 samples, 4 ran (4 instrument-failed) · 0 unverified
4 samples are identical to code Syntology harvested from another paper's repository; this paper's own copy was not located, so no repository is named and no licence is recorded.
Entropy in 31 papers
census: 7 implementations from 10 papers, 1 distinct output on one shared input this sample: bucket 1 of 1, arg 1: rank 2, kind float, dtype float32
repository not located ran · our draft was wrong fingerprinted licence of this copy not recorded · 94b5622f0aa7add1 · report fixture: signature input_:Tensor/2/float · returned Tensor · level recorded, date not recorded
lr_scheduler in 32 papers repository not located ran · our draft was wrong licence of this copy not recorded · 0b7ffc9f8b77529c · report fixture: signature optimizer:SGD/0/?, iter_num:int/0/int, max_iter:int/0/int, gamma:int/0/int, power:float/0/float · returned SGD · level recorded, date not recorded
op_copy in 17 papers repository not located ran · our draft was wrong licence of this copy not recorded · 93a11f62e4a129f0 · report fixture: signature optimizer:SGD/0/? · returned SGD · level recorded, date not recorded
stringtolist in 7 papers repository not located ran · our draft was wrong fingerprinted licence of this copy not recorded · 46062947cf3ab0e6 · report fixture: signature description:str/0/str · returned list · level recorded, date not recorded

Method as code Syntology

What Syntology's graph records as this paper's claimed method, lifted into code: each assembly names its bricks (functions and classes), each with its own role and its own verification level. An assembly is not a check that the code implements the method correctly or reproduces the paper's results. Levels are each brick's own verification level in Syntology's graph (level 0: no recorded run), listed brick by brick and never combined into one level; “ran” means the brick executed on a synthesized input, not that its output is correct, and the instrument figure counts failures of Syntology's instrument, not of the code. Where a model read the code against the paper's claim, each assembly's label verdict is one model's judgement, kept in this page's JSON twin; it is not calibrated, so no card prints it.

1 assembly on this paper: 1 harvested, 0 generated.

harvested Assembly for LFM (graph method: LFM). 31 bricks; individually on a fixture: 19 ran (of which 3 constructed an object rather than computing a result; 3 with no instrument failure: 0 honoured, 0 violated, 3 with no contract checked; 16 where Syntology's instrument failed) · 12 unverified. The assembly has not been run end-to-end.

  1. main entry · level 0 · unverified · 51b1a343a1c5c316
  2. SFUniDA model · level 0 · unverified · 6153fbffb3985887
  3. SFUniDADataset helper · level 1 · ran · db868eb88f5a2b9b
  4. get_idx helper · level 0 · unverified · 780faf558bba6b54
  5. op_copy helper · level 1 · ran · our draft was wrong · 93a11f62e4a129f0
  6. set_logger helper · level 1 · ran · our draft was wrong · 4c7a1e20b84ac632
  7. test metric · level 1 · ran; the contract check could not run (RAISES) · fe73cf9445756920
  8. tr helper · level 0 · unverified · 721005b41f811e51
  9. Classifier helper · level 1 · ran · 590aa0969d97b025
  10. Embedding helper · level 1 · ran · 85470d3ab6c52602
  11. ResBase helper · level 0 · unverified · 380df4780014a94c
  12. VGGBase helper · level 0 · unverified · 112349e40ab69ddb
  13. test_transform helper · level 1 · ran · our draft was wrong · 13b7b1c692c187e0
  14. train_transform helper · level 1 · ran · our draft was wrong · ada9656c14c75934
  15. get_ood_scores_clip helper · level 1 · ran; the contract check could not run (RAISES) · 51eb44363c6c9cea
  16. load_llm_classes data_transform · level 0 · unverified · 6bad6d16ba57825e
  17. set_model_clip model · level 0 · unverified · 92aa3c44ba29df0c
  18. log_args helper · level 1 · ran · our draft was wrong · a7928c7cf111366a
  19. compute_h_score metric · level 1 · ran; the contract check could not run (RAISES) · 57ee79329c2933a6
  20. get_pseudo_labels helper · level 1 · ran · our draft was wrong · beb9eadd0bfb2292
  21. lr_scheduler scheduler · level 1 · ran · our draft was wrong · 0b7ffc9f8b77529c
  22. init_weights helper · level 0 · unverified · 7babf7ea472eba97
  23. pre_filter helper · level 1 · ran; the contract check could not run (RAISES) · d9512c44141b4aa8
  24. remove_overlap_class helper · level 1 · ran · our draft was wrong · f32a4c158be3016c
  25. load_json helper · level 1 · ran · our draft was wrong · 1069918b276d2855
  26. obtain_gpt_class_and_save helper · level 1 · ran · our draft was wrong · e21790f387e86204
  27. Entropy helper · level 1 · ran · our draft was wrong · 94b5622f0aa7add1
  28. PromptGenerator helper · level 0 · unverified · 4db77fc0e9bf39b0
  29. get_completion helper · level 0 · unverified · 4528e48fcffa0b3d
  30. get_completion_from_messages helper · level 0 · unverified · dd65b4eaa2bc257e
  31. stringtolist helper · level 1 · ran · our draft was wrong · 46062947cf3ab0e6

Each brick ends with its code_sha256, Syntology's identity for that exact code; click one to copy the get_code call that returns it. For agents, on Syntology's MCP service: assembly(arxiv_id="2607.17653") returns these assemblies with each brick's role and wiring (how to connect).

Results from the paper

The Papers with Code archive ends with its 2025-07-28 snapshot. This paper's arXiv identifier, 2607.17653, was issued in July 2026, after that date, so the archive has no leaderboard rows for it.

Placed on leaderboards by Syntology Syntology

Syntology's extractor, the model Claude Sonnet 4.5, judged this paper's tables to report on 4 leaderboards (a model's judgement, not a result) and has not placed the paper on any of them: Partial Domain Adaptation · Office-Home (rejected by the independent check); Universal Domain Adaptation · DomainNet (rejected by the independent check); Universal Domain Adaptation · Office-31 (rejected by the independent check); Universal Domain Adaptation · Office-Home (rejected by the independent check). What is not shown.

Syntology has checked 8,886 of the 18,637 papers on this site that are newer than the archive (for 3,717 of them no archive leaderboard matched the paper's tables, so there was nothing further to check); 733 were read and have nothing to place (arXiv has no HTML version of the paper, or that version has no tables), 41 could not be read (the extractor's reply could not be parsed), and results from the other 8,977 appear after they are checked.

Report a problem or propose a change · a person checks every report against the paper or source before anything changes; decisions are listed on /corrections