Papers › MetaAlign: Coordinating Domain Alignment and Classification for Unsupervised Domain Adaptation

MetaAlign: Coordinating Domain Alignment and Classification for Unsupervised Domain Adaptation

25 Mar 2021CVPR 2021 1arXiv:2103.13575archive 2025-07-28

Guoqiang Wei, Cuiling Lan, Wenjun Zeng, Zhibo Chen

For unsupervised domain adaptation (UDA), to alleviate the effect of domain shift, many approaches align the source and target domains in the feature space by adversarial learning or by explicitly aligning their statistics. However, the optimization objective of such domain alignment is generally not coordinated with that of the object classification task itself such that their descent directions for optimization may be inconsistent. This will reduce the effectiveness of domain alignment in improving the performance of UDA. In this paper, we aim to study and alleviate the optimization inconsistency problem between the domain alignment and classification tasks. We address this by proposing an effective meta-optimization based strategy dubbed MetaAlign, where we treat the domain alignment objective and the classification objective as the meta-train and meta-test tasks in a meta-learning scheme. MetaAlign encourages both tasks to be optimized in a coordinated way, which maximizes the inner product of the gradients of the two tasks during training. Experimental results demonstrate the effectiveness of our proposed method on top of various alignment-based baseline approaches, for tasks of object classification and object detection. MetaAlign helps achieve the state-of-the-art performance.

PaperPDFConference PDFCodeCode Syntology ran

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

For agents, Syntology's MCP tool lists every function and class Syntology harvested from this paper and whether it ran (how to connect): get_harvested_code_for_paper(arxiv_id="2103.13575")

Code

Syntology Ran 5 of 12 code samples harvested from 1 repository linked to this paper; 7 have no recorded run. Of those that ran: 1 ran · honoured contract; 3 ran · our draft was wrong; 1 ran with no contract checked.

By repository: community (archive-listed): 12 samples from 1 repository, 5 ran. The run record, sample by sample. “Ran” means executed on a synthesized input, not that the code is correct or reproduces the paper.

microsoft/UDA mentioned on GitHubpytorch report

Repository list and official/mentioned flags are the archive's, frozen 2025-07-28. 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

12 samples harvested; 5 ran; 1 honoured the contract we drafted; 7 have no recorded run. Read from Syntology's graph 2026-09-24; that is when this build read the record, not when the samples ran.

1ran · honoured contract
3ran · our draft was wrong
1ran
7unverified

Licence: 0 of the 12 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 microsoft/UDA. “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. “Honoured” and “violated” refer to a contract Syntology drafted from the code itself; “our draft was wrong” and “fixture could not drive it” are failures of Syntology's instrument, not of the code.

Each sample ends with its code_sha256, Syntology's identity for that exact code. An agent fetches the stored sample with Syntology's MCP tool get_code(code_sha256="…") (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 from a repository marked official are listed first. 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 four 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; or the licence is outside the permissive list Syntology serves text under (MIT, Apache-2.0, BSD and similar). 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.

WeightBCE microsoft/UDA/trainer/da/toalign.py community (archive-listed) ran fingerprinted MIT (permissive) · 1abfdd785dd465dc · report
d_align_uda microsoft/UDA/trainer/da/toalign.py community (archive-listed) ran · our draft was wrong MIT (permissive) · 0684cec8a1bb4ee7 · report
entropy_func microsoft/UDA/trainer/da/toalign.py community (archive-listed) ran · our draft was wrong fingerprinted MIT (permissive) · 8b9cea73effc2f3f · report
grl_hook microsoft/UDA/trainer/da/toalign.py community (archive-listed) ran · our draft was wrong MIT (permissive) · 1374e0a62b470535 · report
inv_lr_scheduler microsoft/UDA/trainer/da/toalign.py community (archive-listed) ran · honoured contract MIT (permissive) · 0a5764019d61e108 · report
BaseTrainer microsoft/UDA/trainer/da/toalign.py community (archive-listed) unverified MIT (permissive) · e4d8b30d56dbb7f3 · report
DANN microsoft/UDA/trainer/da/toalign.py community (archive-listed) unverified MIT (permissive) · 41a98ec5329fd73f · report
ToAlign microsoft/UDA/trainer/da/toalign.py community (archive-listed) unverified MIT (permissive) · 749e206ff3a3ceb8 · report
d_align_msda microsoft/UDA/trainer/da/toalign.py community (archive-listed) unverified MIT (permissive) · 4233973b97f8665f · report
get_coeff microsoft/UDA/trainer/da/toalign.py community (archive-listed) unverified MIT (permissive) · d56aff948c2f12a0 · report
save_model microsoft/UDA/trainer/da/toalign.py community (archive-listed) unverified MIT (permissive) · e320fa657d11368b · report
write_log microsoft/UDA/trainer/da/toalign.py community (archive-listed) unverified MIT (permissive) · e04cd9b9c5fb70e0 · report

Tasks

ClassificationDomain AdaptationGeneral ClassificationMeta-LearningObjectObject DetectionUnsupervised Domain Adaptationobject-detection

Results from the paper archive 2025-07-28

No leaderboard rows for this paper in the archive.

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