{"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/spa-a-graph-spectral-alignment-perspective","title":"SPA: A Graph Spectral Alignment Perspective for Domain Adaptation","arxiv_id":"2310.17594","date":"2023-10-26","proceeding":"NeurIPS 2023 11","authors":[],"abstract":"Unsupervised domain adaptation (UDA) is a pivotal form in machine learning to extend the in-domain model to the distinctive target domains where the data distributions differ. Most prior works focus on capturing the inter-domain transferability but largely overlook rich intra-domain structures, which empirically results in even worse discriminability. In this work, we introduce a novel graph SPectral Alignment (SPA) framework to tackle the tradeoff. The core of our method is briefly condensed as follows: (i)-by casting the DA problem to graph primitives, SPA composes a coarse graph alignment mechanism with a novel spectral regularizer towards aligning the domain graphs in eigenspaces; (ii)-we further develop a fine-grained message propagation module -- upon a novel neighbor-aware self-training mechanism -- in order for enhanced discriminability in the target domain. On standardized benchmarks, the extensive experiments of SPA demonstrate that its performance has surpassed the existing cutting-edge DA methods. Coupled with dense model analysis, we conclude that our approach indeed possesses superior efficacy, robustness, discriminability, and transferability. Code and data are available at: https://github.com/CrownX/SPA.","url_abs":"https://arxiv.org/abs/2310.17594v2","url_pdf":"https://arxiv.org/pdf/2310.17594v2.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":"spa-a-graph-spectral-alignment-perspective","repo_url":"https://github.com/crownx/spa","is_official":0,"mentioned_in_paper":0,"mentioned_in_github":1,"framework":"pytorch","reach":{"status":"ok"}}],"tasks":[{"task_slug":"domain-adaptation","task_name":"Domain Adaptation"},{"task_slug":"single-particle-analysis","task_name":"Single Particle Analysis"},{"task_slug":"unsupervised-domain-adaptation","task_name":"Unsupervised Domain Adaptation"}],"methods":[{"method_slug":"focus","method_name":"Focus"}],"datasets_introduced":[],"methods_introduced":[],"results":[],"syntology":{"atlas_url":"https://app.syntology.ai/?focus=2310.17594","mcp":{"get_harvested_code_for_paper":{"arxiv_id":"2310.17594"}},"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/CrownX/SPA","reach":{"status":"ok"}},{"provenance":"external:paperswithcode_snapshot_2025-07-28","url":"https://github.com/crownx/spa","reach":{"status":"ok"}}],"summary":{"ran":4,"ran_fixture":1,"ran_draft_wrong":4,"ran_violates":1,"unverified":2},"by_repo_kind":{"listed":{"samples":12,"ran":10,"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":12,"samples":[{"code_sha256_prefix":"ca7dc4d6c6b6402c","entry":"CDAN","repo":"CrownX/SPA","repo_kind":"listed","path":"code/loss.py","file_url":"https://github.com/CrownX/SPA/blob/HEAD/code/loss.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":"ca7dc4d6c6b6402c"}},{"code_sha256_prefix":"300ab0eab2ed7c3e","entry":"Entropy","repo":"CrownX/SPA","repo_kind":"listed","path":"code/loss.py","file_url":"https://github.com/CrownX/SPA/blob/HEAD/code/loss.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":true,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"300ab0eab2ed7c3e"}},{"code_sha256_prefix":"fa488a4c4ac27de1","entry":"adj_","repo":"crownx/spa","repo_kind":"listed","path":"code/train_uda.py","file_url":"https://github.com/crownx/spa/blob/HEAD/code/train_uda.py","link_basis":"first_harvest_node","language":"python","status":"ran_fixture","verification_level":1,"contract_check":"RAISES","metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"fa488a4c4ac27de1"}},{"code_sha256_prefix":"515864aee83d42db","entry":"adj_","repo":"CrownX/SPA","repo_kind":"listed","path":"code/train_ssda.py","file_url":"https://github.com/CrownX/SPA/blob/HEAD/code/train_ssda.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":"515864aee83d42db"}},{"code_sha256_prefix":"3866ad7edd265972","entry":"adj_","repo":"CrownX/SPA","repo_kind":"listed","path":"code/train_uda.py","file_url":"https://github.com/CrownX/SPA/blob/HEAD/code/train_uda.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":"3866ad7edd265972"}},{"code_sha256_prefix":"d3f987de424e416a","entry":"euc_","repo":"crownx/spa","repo_kind":"listed","path":"code/train_uda.py","file_url":"https://github.com/crownx/spa/blob/HEAD/code/train_uda.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":"d3f987de424e416a"}},{"code_sha256_prefix":"fb8b322eaf29def7","entry":"gauss_","repo":"crownx/spa","repo_kind":"listed","path":"code/train_uda.py","file_url":"https://github.com/crownx/spa/blob/HEAD/code/train_uda.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":"fb8b322eaf29def7"}},{"code_sha256_prefix":"9768efb52f591b55","entry":"grl_hook","repo":"CrownX/SPA","repo_kind":"listed","path":"code/loss.py","file_url":"https://github.com/CrownX/SPA/blob/HEAD/code/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":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"9768efb52f591b55"}},{"code_sha256_prefix":"ab4109634b75ef8b","entry":"is_image_file","repo":"CrownX/SPA","repo_kind":"listed","path":"code/utils.py","file_url":"https://github.com/CrownX/SPA/blob/HEAD/code/utils.py","link_basis":"harvester_set","language":"python","status":"ran_violates","verification_level":1,"contract_check":"VIOLATES","metamorphic_tier":"deterministic","behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"ab4109634b75ef8b"}},{"code_sha256_prefix":"1526ca03298c4252","entry":"laplacian_","repo":"crownx/spa","repo_kind":"listed","path":"code/train_uda.py","file_url":"https://github.com/crownx/spa/blob/HEAD/code/train_uda.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":"1526ca03298c4252"}},{"code_sha256_prefix":"e352afa5762c5a6b","entry":"calc_coeff","repo":"CrownX/SPA","repo_kind":"listed","path":"code/utils.py","file_url":"https://github.com/CrownX/SPA/blob/HEAD/code/utils.py","link_basis":"harvester_set","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":"e352afa5762c5a6b"}},{"code_sha256_prefix":"86fca82c9b711e8b","entry":"svd_loss_","repo":"crownx/spa","repo_kind":"listed","path":"code/train_uda.py","file_url":"https://github.com/crownx/spa/blob/HEAD/code/train_uda.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":"86fca82c9b711e8b"}}]},"arxiv_metadata":null,"syntology_extracted_results":null}