Papers › Unsupervised Domain Adaptation by Backpropagation
Unsupervised Domain Adaptation by Backpropagation
Yaroslav Ganin, Victor Lempitsky
Top-performing deep architectures are trained on massive amounts of labeled data. In the absence of labeled data for a certain task, domain adaptation often provides an attractive option given that labeled data of similar nature but from a different domain (e.g. synthetic images) are available. Here, we propose a new approach to domain adaptation in deep architectures that can be trained on large amount of labeled data from the source domain and large amount of unlabeled data from the target domain (no labeled target-domain data is necessary). As the training progresses, the approach promotes the emergence of "deep" features that are (i) discriminative for the main learning task on the source domain and (ii) invariant with respect to the shift between the domains. We show that this adaptation behaviour can be achieved in almost any feed-forward model by augmenting it with few standard layers and a simple new gradient reversal layer. The resulting augmented architecture can be trained using standard backpropagation. Overall, the approach can be implemented with little effort using any of the deep-learning packages. The method performs very well in a series of image classification experiments, achieving adaptation effect in the presence of big domain shifts and outperforming previous state-of-the-art on Office datasets.
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):
get_harvested_code_for_paper(arxiv_id="1409.7495")get_code(code_sha256="…")with a sample'scode_sha256from the list belowget_citation_path(paper_1="1409.7495", paper_2="…")with another paper's arXiv id or titleget_concepts_for_paper(arxiv_id="1409.7495")
Code
Syntology 41 code samples harvested from 9 repositories linked to this paper: 34 ran (of which 11 constructed an object rather than computing a result; 22 with no instrument failure: 6 honoured, 1 violated, 15 with no contract checked; 12 where Syntology's instrument failed) · 7 unverified. Where Syntology's instrument failed: 7 where our contract draft was wrong; 5 where the contract check could not run; failures of Syntology's instrument, not of the code.
By repository: community (archive-listed): 41 samples from 9 repositories, 34 ran (22 with no instrument failure; 12 where Syntology's instrument failed). The run record, sample by sample. “Ran” means executed on a synthesized input, not that the code is correct or reproduces the paper.
No sample is linked to this paper from 3 of its repositories that Syntology harvested for other papers:
- erlendd/ddan, community (archive-listed): harvested for another paper, listed under the repository
- PaddlePaddle/PaddleSpeech, community (archive-listed): harvested for another paper, listed under the repository
- kevinmusgrave/pytorch-adapt, community (archive-listed): harvested for 4 other papers, listed under the repository
Levels written between 2026-09-22 and 2026-09-24 (UTC): the dates Syntology's graph wrote each sample's verification level, not when the code executed.
22 repositories listed; official and paper-mentioned ones first.
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.
A paper named beside a repository with no sample linked to this paper is shown with that paper's own run record, not this paper's: “ran” means executed on a synthesized input, not that the code is correct, and “where Syntology's instrument failed” counts failures of Syntology's instrument, not of the code. Papers are listed in arXiv-id order, at most three per repository.
Code Syntology ran Syntology
41 samples harvested: 34 ran (of which 11 constructed an object rather than computing a result; 22 with no instrument failure: 6 honoured, 1 violated, 15 with no contract checked; 12 where Syntology's instrument failed) · 7 unverified. “Where Syntology's instrument failed” counts failures of Syntology's instrument, not of the code. Syntology's record for this page has not changed since , the first build that kept a record date for it; when this build read Syntology's graph is in the build record. That date is not when the samples ran.
Licence: 14 of the 41 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 9 repositories linked to this paper, official or community; the list below is grouped by repository, each group headed by its name and what it is to the paper. “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 2 samples 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.
a131c7e1826f2658 · report
fixture: returned GradientReversalLayer · level recorded 2026-09-22 305e7ca5569d6fe3 · report
fixture: returned MDANet · level recorded 2026-09-22 b04d9d5764a5410b · report
fixture: signature y_pred_n:EagerTensor/2/float, y_labels_n:EagerTensor/2/float · returned EagerTensor · level recorded 2026-09-22 97b8e1b80fda9274 · report
fixture: signature nomal_feature_out:EagerTensor/2/float, m_feature_out:EagerTensor/2/float · returned EagerTensor · level recorded 2026-09-22 991811eca03c0624 · report
fixture: signature nomal_feature_out:EagerTensor/2/float, m_feature_out:EagerTensor/2/float · returned EagerTensor · level recorded 2026-09-22 d968cbdfc4dbc680 · report
fixture: returned Sequential · level recorded 2026-09-22 2a2818b6a3f495d4 · report
fixture: returned Sequential · level recorded 2026-09-22 a7724a91540d3462 · report
fixture: returned Sequential · level recorded 2026-09-22 810938a759273697 · report
fixture: signature normal_images:EagerTensor/4/float, m_images:EagerTensor/4/float, y_labels_n:EagerTensor/2/float, ylabels_m:EagerTensor/2/float, la:float/0/float, mu:float/0/float · returned tuple · level recorded 2026-09-22 20cb3aaf5c97f956 · report
fixture: returned GradReverse · level recorded 2026-09-22 0ca46bc4a0a297f2 · report
fixture: returned BSDS500 · level recorded 2026-09-22 f0584b75b21cfa14 · report
fixture: returned GradientReversal · level recorded 2026-09-22 2c7252e6fbe318a4 · report
fixture: returned GradientReversalFunction · level recorded 2026-09-22 95d4a3f782fc662d · report
fixture: signature image:Image/0/? · returned Image · level recorded 2026-09-24 b32765b5b538dbf4 · report
fixture: returned MNISTM · level recorded 2026-09-22 49bc3ed72b781f50 · report
fixture: returned Net · level recorded 2026-09-22 3714824fc72387d9 · report
fixture: signature tensor:Tensor/2/float, volatile:bool/0/bool · returned Tensor · level recorded 2026-09-22 a5960daa5243f80f · report
fixture: signature x:EagerTensor/2/float, l:float/0/float · returned EagerTensor · level recorded 2026-09-22 census: 8 implementations from 7 papers, 7 distinct outputs across 6 buckets, one shared input per bucket adapt/feature_based/_dann.py ran · honoured contract fingerprinted BSD-2-Clause (permissive) ·
9914f5b3194c1f7b · report
fixture: signature y_true:EagerTensor/2/float, y_pred:EagerTensor/2/float · returned EagerTensor · level recorded 2026-09-22 b28b2fd06d28b0a0 · report
fixture: signature X:ndarray/2/float, y:ndarray/1/int · returned tuple · level recorded 2026-09-22 8845995e56d4cff9 · report
fixture: signature network:callable/0/? · returned bool · level recorded 2026-09-22 d5d3e0a555244347 · report
fixture: signature network:callable/0/?, copy:bool/0/bool, name:str/0/str, force_copy:bool/0/bool · returned Functional · level recorded 2026-09-22 753fda05a9c00a3e · report
fixture: signature sample_weight:ndarray/1/float, X:ndarray/2/float · returned ndarray · level recorded 2026-09-22 2bba5d9982e38156 · report
fixture: signature name:str/0/str, state:int/0/int · returned Sequential · level recorded 2026-09-22 6f317a9e82457143 · report
fixture: signature name:str/0/str, state:int/0/int · returned Sequential · level recorded 2026-09-22 bc61e8da0a70e61c · report
fixture: signature activation:str/0/str, name:str/0/str, state:int/0/int · returned Sequential · level recorded 2026-09-22 5ee018c7b767d60e · report
fixture: signature Xs:ndarray/2/float, Xt:ndarray/2/float, power_method:bool/0/bool, n_iter:int/0/int · returned float32 · level recorded 2026-09-22 337c118be78fa411 · report
fixture: signature estimators:list/1/str, supervised:bool/0/bool · returned function · level recorded 2026-09-22 80f788d717b43cf5 · report
fixture: signature Xs:ndarray/2/float, Xt:ndarray/2/float, power_method:bool/0/bool, n_iter:int/0/int · returned float32 · level recorded 2026-09-22 cf4b39f677292095 · report
d5f97fa83a6f1185 · report
fcf59d80aabe9645 · report
988358e38ca0a57c · report
6ab18998af0ba03c · report
fixture: returned DomainAdversarialLoss · level recorded 2026-09-22 8bcf26efeb2782aa · report
fixture: returned GradientReverseFunction · level recorded 2026-09-22 74b0480769c5ba97 · report
fixture: returned WarmStartGradientReverseLayer · level recorded 2026-09-22 census: 8 implementations from 7 papers, 7 distinct outputs across 6 buckets, one shared input per bucket tllib/alignment/dann.py ran; the contract check could not run (RAISES) MIT (permissive) ·
17aeadd82099f0be · report
fixture: signature output:Tensor/2/float, target:Tensor/1/int, topk:tuple/1/int · returned list · level recorded 2026-09-22 2c9d98412ada0b6a · report
fixture: signature output:Tensor/2/float, target:Tensor/2/float · returned Tensor · level recorded 2026-09-22 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. Siblings are assemblies lifted from this paper in the same batch for the same method: alternative readings kept side by side; none replaces or supersedes another.
11 assemblies on this paper: 11 harvested, 0 generated, listed in 1 groups (siblings lifted in one batch form one group).
11 sibling assemblies for Unsupervised Domain Adaptation by Backpropagation (harvested), lifted in the same batch on 2026-09-09: alternative readings kept side by side; none replaces or supersedes another.
harvested Assembly for Unsupervised Domain Adaptation by Backpropagation (graph method: Unsupervised Domain Adaptation by Backpropagation). 2 bricks; individually on a fixture: 1 ran (of which 0 constructed an object rather than computing a result; 0 with no instrument failure: 0 honoured, 0 violated, 0 with no contract checked; 1 where Syntology's instrument failed) · 1 unverified. The assembly has not been run end-to-end.
one of 11 siblings
- train_tgt entry · level 0 · unverified ·
fbc58747762376c0 - make_variable helper · level 1 · ran · our draft was wrong ·
3714824fc72387d9
harvested Assembly for Unsupervised Domain Adaptation by Backpropagation (graph method: Unsupervised Domain Adaptation by Backpropagation). 2 bricks; individually on a fixture: 2 ran (of which 2 constructed an object rather than computing a result; 2 with no instrument failure: 0 honoured, 0 violated, 2 with no contract checked; 0 where Syntology's instrument failed) · 0 unverified; every one of the 2 samples that ran constructed an object rather than computing a result. The assembly has not been run end-to-end.
one of 11 siblings
- MDANet entry · level 1 · ran ·
305e7ca5569d6fe3 - GradientReversalLayer model · level 1 · ran ·
a131c7e1826f2658
harvested Assembly for Unsupervised Domain Adaptation by Backpropagation (graph method: Unsupervised Domain Adaptation by Backpropagation). 7 bricks; individually on a fixture: 7 ran (of which 0 constructed an object rather than computing a result; 6 with no instrument failure: 3 honoured, 0 violated, 3 with no contract checked; 1 where Syntology's instrument failed) · 0 unverified. The assembly has not been run end-to-end.
one of 11 siblings
- train_step entry · level 1 · ran; the contract check could not run (RAISES) ·
810938a759273697 - classifier_loss loss · level 1 · ran · honoured contract ·
b04d9d5764a5410b - discriminator_loss loss · level 1 · ran · honoured contract ·
97b8e1b80fda9274 - discriminator_loss_ loss · level 1 · ran · honoured contract ·
991811eca03c0624 - get_classifier model · level 1 · ran ·
d968cbdfc4dbc680 - get_discriminator model · level 1 · ran ·
2a2818b6a3f495d4 - get_feature_extract_model model · level 1 · ran ·
a7724a91540d3462
harvested Assembly for Unsupervised Domain Adaptation by Backpropagation (graph method: Unsupervised Domain Adaptation by Backpropagation). 7 bricks; individually on a fixture: 6 ran (of which 5 constructed an object rather than computing a result; 6 with no instrument failure: 0 honoured, 0 violated, 6 with no contract checked; 0 where Syntology's instrument failed) · 1 unverified. The assembly has not been run end-to-end.
one of 11 siblings
- main entry · level 0 · unverified ·
b5d9d0d6569a4d75 - GradientReversal helper · level 1 · ran ·
f0584b75b21cfa14 - GrayscaleToRgb helper · level 1 · ran ·
95d4a3f782fc662d - MNISTM helper · level 1 · ran ·
b32765b5b538dbf4 - Net model · level 1 · ran ·
49bc3ed72b781f50 - GradientReversalFunction helper · level 1 · ran ·
2c7252e6fbe318a4 - BSDS500 helper · level 1 · ran ·
0ca46bc4a0a297f2
harvested Assembly for Unsupervised Domain Adaptation by Backpropagation (graph method: Unsupervised Domain Adaptation by Backpropagation). 15 bricks; individually on a fixture: 11 ran (of which 0 constructed an object rather than computing a result; 3 with no instrument failure: 2 honoured, 1 violated, 0 with no contract checked; 8 where Syntology's instrument failed) · 4 unverified. The assembly has not been run end-to-end.
one of 11 siblings
- DANN entry · level 0 · unverified ·
fcf59d80aabe9645 - BaseAdaptDeep helper · level 0 · unverified ·
d5f97fa83a6f1185 - make_insert_doc helper · level 1 · ran · our draft was wrong ·
337c118be78fa411 - BaseAdapt helper · level 0 · unverified ·
cf4b39f677292095 - accuracy helper · level 1 · ran · honoured contract ·
9914f5b3194c1f7b - check_arrays helper · level 1 · ran · honoured contract ·
b28b2fd06d28b0a0 - check_if_compiled helper · level 1 · ran · violated contract ·
8845995e56d4cff9 - check_network helper · level 1 · ran · our draft was wrong ·
d5d3e0a555244347 - get_default_discriminator helper · level 1 · ran · our draft was wrong ·
2bba5d9982e38156 - get_default_encoder helper · level 1 · ran · our draft was wrong ·
6f317a9e82457143 - get_default_task helper · level 1 · ran · our draft was wrong ·
bc61e8da0a70e61c - set_random_seed helper · level 0 · unverified ·
988358e38ca0a57c - check_sample_weight helper · level 1 · ran; the contract check could not run (RAISES) ·
753fda05a9c00a3e - normalized_linear_discrepancy helper · level 1 · ran; the contract check could not run (RAISES) ·
80f788d717b43cf5 - linear_discrepancy helper · level 1 · ran; the contract check could not run (RAISES) ·
5ee018c7b767d60e
harvested Assembly for Unsupervised Domain Adaptation by Backpropagation (graph method: Unsupervised Domain Adaptation by Backpropagation). 1 brick; individually on a fixture: 1 ran (of which 1 constructed an object rather than computing a result; 1 with no instrument failure: 0 honoured, 0 violated, 1 with no contract checked; 0 where Syntology's instrument failed) · 0 unverified; the one sample that ran constructed an object rather than computing a result. The assembly has not been run end-to-end.
one of 11 siblings
- Net entry · level 1 · ran ·
49bc3ed72b781f50
harvested Assembly for Unsupervised Domain Adaptation by Backpropagation (graph method: Unsupervised Domain Adaptation by Backpropagation). 5 bricks; individually on a fixture: 5 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; 2 where Syntology's instrument failed) · 0 unverified. The assembly has not been run end-to-end.
one of 11 siblings
- DomainAdversarialLoss entry · level 1 · ran ·
6ab18998af0ba03c - WarmStartGradientReverseLayer helper · level 1 · ran ·
74b0480769c5ba97 - accuracy helper · level 1 · ran; the contract check could not run (RAISES) ·
17aeadd82099f0be - binary_accuracy helper · level 1 · ran · our draft was wrong ·
2c9d98412ada0b6a - GradientReverseFunction helper · level 1 · ran ·
8bcf26efeb2782aa
harvested Assembly for Unsupervised Domain Adaptation by Backpropagation (graph method: Unsupervised Domain Adaptation by Backpropagation). 1 brick; individually on a fixture: 1 ran (of which 1 constructed an object rather than computing a result; 1 with no instrument failure: 0 honoured, 0 violated, 1 with no contract checked; 0 where Syntology's instrument failed) · 0 unverified; the one sample that ran constructed an object rather than computing a result. The assembly has not been run end-to-end.
one of 11 siblings
- GradReverse entry · level 1 · ran ·
20cb3aaf5c97f956
harvested Assembly for Unsupervised Domain Adaptation by Backpropagation (graph method: Unsupervised Domain Adaptation by Backpropagation). 1 brick; individually on a fixture: 0 ran · 1 unverified. The assembly has not been run end-to-end.
one of 11 siblings
- GRL entry · level 0 · unverified ·
72b4d71c363c7308
harvested Assembly for Unsupervised Domain Adaptation by Backpropagation (graph method: Unsupervised Domain Adaptation by Backpropagation). 1 brick; individually on a fixture: 1 ran (of which 0 constructed an object rather than computing a result; 1 with no instrument failure: 1 honoured, 0 violated, 0 with no contract checked; 0 where Syntology's instrument failed) · 0 unverified. The assembly has not been run end-to-end.
one of 11 siblings
- flip_gradient entry · level 1 · ran · honoured contract ·
a5960daa5243f80f
harvested Assembly for Unsupervised Domain Adaptation by Backpropagation (graph method: Unsupervised Domain Adaptation by Backpropagation). 1 brick; individually on a fixture: 1 ran (of which 1 constructed an object rather than computing a result; 1 with no instrument failure: 0 honoured, 0 violated, 1 with no contract checked; 0 where Syntology's instrument failed) · 0 unverified; the one sample that ran constructed an object rather than computing a result. The assembly has not been run end-to-end.
one of 11 siblings
- ReverseLayerF entry · level 1 · ran ·
a9713d2fe23f5ada
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="1409.7495") returns these assemblies with each brick's role and wiring (how to connect).
Tasks
Results from the paper archive 2025-07-28
| Task | Dataset | Model | Metric | Value | Rank at snapshot | Leaderboard | Report |
|---|---|---|---|---|---|---|---|
| Domain Adaptation | HMDBfull-to-UCF | RevGrad | Accuracy | 74.44 | #5 of 5 | Archive leaderboard | report |
| Domain Adaptation | HMDBsmall-to-UCF | TemPooling + RevGrad | Accuracy | 98.41 | #2 of 3 | Archive leaderboard | report |
| Domain Adaptation | Olympic-to-HMDBsmall | TemPooling + RevGrad | Accuracy | 90.00 | #2 of 3 | Archive leaderboard | report |
| Domain Adaptation | UCF-to-HMDBfull | RevGrad | Accuracy | 74.44 | #4 of 5 | Archive leaderboard | report |
| Domain Adaptation | UCF-to-HMDBsmall | TemPooling + RevGrad | Accuracy | 99.33 | #2 of 3 | Archive leaderboard | report |
| Domain Adaptation | UCF-to-Olympic | TemPooling + RevGrad | Accuracy | 98.15 | #2 of 3 | Archive leaderboard | report |
| Multi-target Domain Adaptation | Office-31 | RevGrad | Accuracy | 73.4 | #5 of 5 | Archive leaderboard | report |
| Multi-target Domain Adaptation | Office-Home | RevGrad | Accuracy | 57.9 | #4 of 4 | Archive leaderboard | report |
| Unsupervised Image-To-Image Translation | SVNH-to-MNIST | DANN | Classification Accuracy | 73.6% | #4 of 4 | Archive leaderboard | report |
Ranks are positions in the archive's leaderboards as they stood at the 2025-07-28 snapshot. Results published since then are not among these rows, so a rank here is not a current standing.
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