Skip to content

Understanding the Limitations of Unsupervised Domain Adaptation Through Data PoisoningUnderstanding the Limits of Unsupervised Domain Adaptation via Data Poisoning

arXiv· arXiv:2107.03919· Akshay Mehra, Bhavya Kailkhura, Pin-Yu Chen, Jihun HammTulane University; Lawrence Livermore National Laboratory; IBM ResearchIndexed by this site · 27 days ago· Originally publishedAttacks

Quick read

Attacks

Based on the paper PDF (AI-generated); refer to the original

The authors prove a lower bound on the UDA target-domain error and propose a data poisoning attack; on Digits, 10% mislabeled target-domain poisoned data reduces DANN's target-domain accuracy to 1.46%.

Threat modelTraining-time data poisoning attack: the attacker can add a small amount (10% or 1%) of poisoned data to the victim's source-domain training data, including mislabeled source-domain/target-domain data, watermarked data, and clean-label perturbed data; the victim is a user training a UDA method (DANN, CDAN, MCD, SSL, etc.) on this source-domain data and unlabeled target-domain data; the goal is to make the learned representation produce large errors on the target domain.

Questions
Unsupervised domain adaptation (UDA) does not always succeed without target-domain labels, and negative transfer has been reported in the literature; the authors argue that minimizing only the source-domain error and marginal distribution discrepancy is insufficient to guarantee target-domain generalization, and that this vulnerability may be exploited by adversarial data.
Methods
The authors prove a lower bound on the target-domain error in terms of the mismatch between the source/target labeling functions induced by the representation, use a Gaussian mixture example to illustrate three possible cases of UDA success, failure, and ambiguous success/failure, and on this basis propose three types of data poisoning attacks: mislabeled data, watermark data, and clean-label poisoned data.
Experiments and results
Evaluates DANN, CDAN, MCD, SSL, IW-DAN, IW-CDAN on Digits and Office-31: 10% mislabeled target-domain poisoned data brings target-domain accuracy close to 0% on most Digits tasks (e.g., DANN on SVHN→MNIST drops from 78.05% to 1.46%), and most Office-31 tasks drop by at least 20%; the clean-label attack is feasible on binary classification tasks.
Limitations and future work
The authors state that the lower bound depends on a total variation distance that is hard to estimate, and leave extension to other divergences as future work; the clean-label attack uses alternating optimization to approximate the bilevel problem, and solving the full bilevel is left as future work. The experiments cover 9 UDA methods and benchmarks such as Digits and Office-31, and do not evaluate any poisoning defense.
Experimental setupDANN、CDAN et al. · Digits (SVHN, MNIST, MNIST_M, USPS)、Office-31 (Amazon, DSLR, Webcam) et al. · target domain accuracy、attack success rate
Evaluated models
DANNCDANMCDSSLIW-DANIW-CDANDANDIRT-TCYCADA
Benchmarks
Digits (SVHN, MNIST, MNIST_M, USPS)Office-31 (Amazon, DSLR, Webcam)two moons
Metrics
target domain accuracyattack success rate
AI summaryThe researchers prove a lower bound on the target-domain error of unsupervised domain adaptation (UDA) and propose a data poisoning attack, revealing the limitations of such methods in guaranteeing cross-domain generalization. The lower bound shows that minimizing only the source-domain error and marginal distribution mismatch is insufficient to guarantee a decrease in target-domain error, because the induced labeling function mismatch may increase; a simple distribution example shows that the same UDA method may succeed, fail, or succeed half the time and fail half the time. On benchmark datasets where it previously performed well, mixing 10% poisoned data into the source domain can significantly lower target-domain accuracy, in some cases approaching 0%. The authors accordingly argue that evaluating UDA methods under adversarial settings such as data poisoning can better reflect their robustness to unfavorable data distributions.

The researchers prove a lower bound on the target-domain error of unsupervised domain adaptation (UDA) and propose a data poisoning attack, revealing the limitations of such methods in guaranteeing cross-domain generalization. The lower bound shows that minimizing only the source-domain error and marginal distribution mismatch is insufficient to guarantee a decrease in target-domain error, because the induced labeling function mismatch may increase; a simple distribution example shows that the same UDA method may succeed, fail, or succeed half the time and fail half the time. On benchmark datasets where it previously performed well, mixing 10% poisoned data into the source domain can significantly lower target-domain accuracy, in some cases approaching 0%. The authors accordingly argue that evaluating UDA methods under adversarial settings such as data poisoning can better reflect their robustness to unfavorable data distributions.

Paper analysis

6 questions; open one to read the full answer

  1. What problem does this paper attempt to solve?

    The authors prove a target-domain error lower bound for UDA and propose data poisoning attacks that expose the vulnerability of UDA methods under adversarial data distributions.

    Core question: when and why unsupervised domain adaptation (UDA) fails, and whether this failure can be triggered by a small amount of adversarial data (data poisoning).

    • Problem setting: UDA performs cross-domain learning when the training and test distributions differ and there are no target-domain labels, applicable to applications where acquiring large-scale labeled data is time-consuming and expensive. The authors note that although UDA methods perform well on benchmark tasks, there have been multiple reports of negative transfer in the literature.
    • Shortcomings of existing methods (according to the authors): Mainstream UDA methods learn domain-invariant representations, i.e., minimize the source-domain error and the divergence between source/target marginal feature distributions; the authors argue that a large upper bound does not guarantee failure, and existing analyses cannot directly explain why such methods cannot guarantee target-domain generalization.
    • Core observation: The lower bound proved by the authors shows that even if the representation is domain-invariant and the source-domain error is minimal, as long as the source/target labeling functions induced by the representation are inconsistent, the target-domain error will be large; there is also an ambiguous case where UDA success and failure are equally likely, and a small amount of incorrect information about target-domain labels may push the method toward failure.
    • The paper proposes: A target-domain error lower bound (Theorem 1), three example distributions demonstrating UDA sensitivity, and three types of data poisoning attacks (mislabeled data, watermarked data, clean-label data) for evaluating UDA methods under adversarial settings.
    • Threat model:
      • Attacker goal: Make the representation learned by the UDA method produce large errors on the target domain (mislabel/watermark attacks), or cause a single target-domain test point to be misclassified (clean-label attack).
      • Attacker knowledge and capability: Training-time attack; the attacker can access and modify the data to be used for training, adding poisoned data to the source-domain data (mislabeled source-domain or target-domain data, watermarked images, clean-label data with bounded perturbations), at a ratio of 10% (mislabel/watermark) or 1% (clean-label).
      • Victim system: UDA methods trained on the poisoned source-domain data and unlabeled target-domain data (DANN, CDAN, MCD, SSL, IW-DAN, IW-CDAN, etc.).
  2. What related research exists?

    Related work is divided into three groups: UDA theoretical analysis, UDA algorithms, and single-domain data poisoning; the authors state that both the lower bound and the attack target in this paper differ.

    UDA theoretical analysis

    • Ben-David et al. [1, 2]: proposed an upper bound on the UDA target-domain error, which inspired many UDA algorithms; this paper's lower bound complements that upper bound.
    • Zhao et al. [36], Tachet des Combes et al. [6], Johansson et al. [14]: improved the target-domain error upper bound and proposed lower bounds that depend on the labeling function in input space, explaining UDA failure via marginal label distribution discrepancy. The authors point out that this paper's lower bound depends on the labeling function induced by the representation, and that when the marginal label distributions are the same (d_JS = 0), the lower bound of [36] becomes vacuous while this paper's lower bound remains non-vacuous (Appendix G).
    • Wu et al. [34]: decomposed the target risk into source risk, representation-conditional label divergence, and representation covariate shift, explaining the cause of DANN's failure; the authors state that this paper's lower bound gives a similar explanation and is not limited to DANN.

    UDA algorithms

    • DANN [9] and CDAN [18]: adversarial domain adaptation, using a discriminator and a conditional discriminator combined with classifier outputs, respectively, to distinguish the two domains; IW-DAN and IW-CDAN [6] are extensions with importance weighting.
    • MCD [27]: uses the disagreement of two task classifiers as the discriminative signal to align the two domains; SSL [35]: uses a self-supervised task (rotation angle prediction) to assist alignment. This paper uses these methods as poisoning evaluation targets.

    Data poisoning

    • Single-domain poisoning work [38, 26, 28, 23, 11]: mostly in the fully supervised single-domain setting, requiring a large amount of poisoned data for a single test point, or requiring modification of all points of an entire class. The authors point out that this paper studies poisoning of the entire target domain in the UDA setting, and that a small amount of poisoned data can substantially reduce target-domain accuracy, whereas in the single-domain setting poisoning has a smaller effect on overall test accuracy.

    Baselines and benchmarks: the attacked UDA methods are DANN, CDAN, MCD, SSL, IW-DAN, IW-CDAN (the appendix additionally has DAN, DIRT-T, CYCADA), and the control is Source only, trained only on the source domain; the benchmarks are Digits (four tasks: SVHN, MNIST, MNIST_M, USPS) and Office-31 (six tasks).

    The authors position this paper as: the first to give a necessary condition for UDA failure from the perspective of mismatch of representation-induced labeling functions, and to use poisoning attacks to turn the theoretical vulnerability into a concrete threat to mainstream UDA methods (the authors state that poisoning can provide a deeper understanding of robustness than benchmark evaluation).

  3. How does the paper address this problem?

    First proves a lower bound on the target-domain error and uses a Gaussian mixture example to illustrate three cases, then designs three types of poisoning attacks on this basis: mislabeling, watermark, and clean-label.

    Overall approach: first give a theoretical necessary condition for UDA failure (a lower bound), then use simple distributions to show UDA's sensitivity to data distributions, and finally design data poisoning attacks on this basis to push UDA methods into failure cases. The methods include a target-domain error lower bound and three types of data poisoning attacks.

    Problem setup and lower bound

    • Setup: binary classification task, deterministic labeling function f : X → [0,1]; representation mapping g : X → Z induces distribution p̃(z) and induced labeling function f̃(z) := E_D[f(x)|g(x)=z]; for hypothesis h : Z → [0,1], error e(h) = E_{z∼D̃}[|f̃(z) − h(z)|].
    • Theorem 1 (lower bound): for all h ∈ H, g ∈ G, eT(h) ≥ max{eS(f̃S, f̃T), eT(f̃S, f̃T)} − eS(h) − D1(p̃S, p̃T), where D1 is the total variation distance; the meaning is that the target-domain error lower bound is determined by the mismatch between the source/target labeling functions induced by the representation (proof in Appendix A).
    • Corollaries: Corollary 1.1 uses Pinsker's inequality to replace D1 with 0.5·√(0.5·D_KL); Corollary 1.2 combines with the upper bound to give |e_T(h) − e(f̃_S, f̃_T)| ≤ e_S(h) + D1(p̃_S, p̃_T), i.e., UDA can only guarantee that the target error is close to the labeling function mismatch.
    • UDA optimization objective: ming,h eS(h) + D1(p̃S, p̃T); the authors point out that when this objective makes e_S(h) ≈ 0 and D1 ≈ 0, e_T(h) ≥ max{e_S(f̃_S, f̃_T), e_T(f̃_S, f̃_T)}, and if the induced labeling functions are inconsistent then the target error must be large.

    Three example distributions (Section 3.2, Appendix B)

    • Setup: source/target are two-dimensional Gaussian mixtures, linear representation g(x) = uᵀx maps to one dimension, optimal u solved analytically and numerically (scipy Nelder-Mead).
    • Case 1 (favorable): source/target labeling functions are the same, the optimal representation makes e_S(h)=0, D1=0 and e(f̃_S, f̃_T)=0, UDA succeeds (e_T(h) < 10⁻³)。
    • Case 2(unfavorable):目标标注函数上下颠倒,最优表示与 Case 1 相同,但 e(f̃_S, f̃_T)=1、e_T(h) > 0.99, UDA fails.
    • Case 3 (ambiguous): the alignment loss has two equal-valued global optima (±45°), one making e(f̃_S, f̃_T) small (success) and the other making it about 0.33 (failure), and which one is selected is uncertain; the authors regard this as the entry point for adversarial attacks.

    Three types of poisoning attacks (Section 4)

    • Mislabeled data attack: add 10% (relative to the target-domain data amount) mislabeled data to the source domain. On Digits, cyclic shift labeling is used (a poisoned point of true class one is labeled two, and so on); on Office-31, points are labeled as the nearest wrong source-domain class in representation space. Two variants: wrong-label correct-domain (mislabeled source-domain data) and wrong-label incorrect-domain (mislabeled target-domain data).
    • Watermark attack: poisoned image p = αt + (1−α)s, where t is a target-domain image and s is a source-domain image of the same class and nearest in input space, with α chosen so that the target image is invisible; the same labeling function as the mislabeling attack is used, and 10% poisoned data is added; on Digits, α ∈ {0.05, 0.10, 0.15} is evaluated (up to 0.30 for some tasks).
    • Clean-label attack: for a single target-domain test point, the poisoned point u_i has a bounded perturbation relative to a base point (l∞ norm ε = 0.1) and retains the base point's label; alternating optimization approximates the bilevel problem (Eq. 4): minimize the representation distance between the poisoned point and the target test point while optimizing the representation parameters with the UDA method; Appendix E gives the full bilevel form (Eq. 9).

    Success criteria and evaluation method

    • Mislabeling/watermark attacks: compare the target-domain accuracy of the UDA method after training on clean versus poisoned source-domain data; the larger the drop, the more successful the attack.
    • Clean-label attack: success means the target test point is misclassified after retraining the UDA method from scratch; on the 3 vs 8 binary classification task of MNIST→MNIST_M, 20 target points are randomly selected and the attack success rate is reported over 5 random initializations (Appendix H.3).
  4. What experiments did the paper conduct?

    Evaluates 6 UDA methods on Digits and Office-31: 10% mislabeled target-domain poisoned data brings target-domain accuracy close to 0% on most Digits tasks.

    Experimental setup

    • UDA methods under test: DANN, CDAN, MCD, SSL (rotation angle prediction), IW-DAN, IW-CDAN; Appendix F additionally has DAN, DIRT-T, CYCADA; the control is Source only (trained only on the source domain).
    • Datasets: four Digits tasks (SVHN→MNIST, MNIST→MNIST_M, MNIST→USPS, USPS→MNIST; e.g., SVHN→MNIST uses 73,257 SVHN and 60,000 MNIST images for training and 10,000 MNIST images for testing); six Office-31 tasks (A→D, A→W, D→A, D→W, W→A, W→D, 4110 images in total, 31 classes); Appendix F uses two moons synthetic data.
    • Poisoned data settings: mislabeling and watermark attacks add poisoned data equal to 10% of the target-domain data amount; the clean-label attack adds 1%, with l∞ perturbation ε = 0.1.
    • Metrics: target-domain accuracy (mislabeling/watermark attacks, lower means more successful attack); attack success rate (clean-label attack).
    • Number of repetitions: Digits experiments use 5 trials (mean±s.d.), Office-31 experiments use 3; the clean-label attack randomly selects 20 target points and uses 5 random initializations.
    • Implementation details: Digits uses a CNN architecture similar to prior work; Office-31 uses the default configuration of the public code of [6], with ResNet50 initialized with ImageNet pretrained weights (Appendix H).

    Main results

    Target-domain accuracy under the mislabeling attack (10% poisoned data), according to Table 1 (Digits, 5 trials) and Table 2 (Office-31, 3 trials):

    Swipe horizontally to read the table

    MethodConditionSVHN→MNISTMNIST→MNIST_MMNIST→USPSUSPS→MNIST
    DANNClean78.05±1.1576.22±2.3892.17±0.7392.73±0.71
    DANNPoison_source70.26±2.8469.98±3.4993.44±0.8492.08±0.68
    DANNPoison_target1.46±1.120.48±0.040.97±0.535.83±0.82
    CDANPoison_target12.27±5.020.59±0.121.92±0.422.96±0.71
    MCDPoison_target0.97±0.940.37±0.060.66±0.162.07±0.69
    SSLPoison_target0.31±0.030.36±0.027.76±1.529.88±1.07
    • Mislabeling the source domain (Poison_source) has limited effect: the authors state that the large amount of correctly labeled source-domain data suppresses the effect of the small amount of poisoned data; the exception is when Amazon is the target domain in Table 2 (D→A, W→A), because Amazon is about 5 times DSLR/Webcam, so 10% poisoned data is comparable in amount to the source-domain data and poisoning succeeds (e.g., DANN on D→A drops from 64.67 to 44.31±2.94).
    • Mislabeling the target domain (Poison_target) brings most Digits tasks close to 0%: the authors state that the poisoned data causes discriminator-based methods to align the wrong classes (the t-SNE in Figure 2 shows that after poisoning, target class 1 is aligned with source class 2), causes MCD to fail to detect target samples, and causes a conflict between the main and auxiliary tasks in SSL (Figure 3 shows MCD producing 20 clusters instead of 10).
    • Office-31 drops more slowly: the authors state that most tasks drop by at least 20% (e.g., CDAN on D→A drops from 71.25 to 11.19±1.47), because ImageNet pretrained representations weaken the poisoning effect; on the two tasks D→W and W→D, Source only already reaches 96.31/99.68, the two domains are already aligned, and the drop is close to the poisoned data proportion of 10%.

    Watermark attack (Table 3, Digits, 5 trials)

    • What was measured: the effect of mislabeled watermark poisoned data (α ∈ {0.05, 0.10, 0.15}, up to 0.30 for MNIST→USPS and USPS→MNIST) on four methods.
    • Results: for most methods accuracy decreases as α increases, e.g., MCD on MNIST→USPS drops from 89.96±2.04 (Clean) to 0.71±0.22 (α=0.30), and SSL on SVHN→MNIST drops to 3.4±1.11 (α=0.15); CDAN is an exception, still at 88.67±0.44 on MNIST→USPS at α=0.30.
    • Authors' interpretation: CDAN depends on the correctness of target-domain pseudo-labels; correct pseudo-labels provide positive feedback that makes poisoning fail; as the watermark proportion increases, pseudo-label quality deteriorates and poisoning becomes successful.

    Clean-label attack (Figure 7, 3 vs 8 task of MNIST→MNIST_M)

    • What was measured: the attack success rate at which 1% clean-label poisoned data (base points taken from the source domain or the target domain, respectively) causes a single target test point to be misclassified.
    • Results: the authors report that when target-domain data are used as base points, the attack success rate under a small perturbation budget (ε = 0.1) is clearly higher than when source-domain data are used as base points; Figure 7 is a curve of success rate versus perturbation, and specific values are not annotated in the text.
    • Authors' interpretation: using source-domain data as base points requires larger distortion for the poisoned point to approach the target point in representation space, hence the lower success rate; the authors believe that solving the full bilevel problem (Eq. 9) could improve the success rate, left for future work.

    Other ablations and analyses

    • Poisoned data proportion (Table 4, two Digits tasks): 6% mislabeled target-domain poisoned data already causes large drops for all methods (e.g., DANN on MNIST→USPS: 7.32±4.78); at 2%, all methods except CDAN drop by at least 20% (e.g., MCD on MNIST→USPS drops from 89.96 to 22.74±2.17).
    • Inter-domain divergence (Table 5, two moons): the larger the divergence, the easier it is for a small amount of poisoned data to succeed; at fixed divergence, more poisoned data causes larger drops (e.g., DANN at D=0.75 with 10% poisoned data is 40.92±5.97, versus 71.80±3.92 Clean).
    • DAN (Table 6, Office-31): 10% mislabeled target-domain poisoned data reduces D→A from 68.9 to 6.7 and W→A from 66.1 to 7.6.
    • DIRT-T (Table 7, Digits): 10% mislabeled target-domain poisoned data reduces SVHN→MNIST from 92.45±0.46 to 0.09±0.02.
    • CYCADA (Table 8, Digits): poisoning only the feature-level adaptation (cycle GAN uses the official already-converted data) has limited effect, e.g., SVHN→MNIST drops from 90.4±0.4 to 84.3±2.3; the exception is USPS→MNIST dropping from 96.5±0.1 to 60.7±3.5, which the authors attribute to the 6000 poisoned images being comparable in scale to the 7291-image USPS training set.
  5. What are some points that can be further explored?

    The authors state that the lower bound depends on a TV distance that is hard to estimate, and that the clean-label attack only solves an approximate problem; the experiments do not involve poisoning defenses.

    Limitations and future directions noted by the authors

    • The lower bound depends on total variation distance: The authors state that this distance is a strict distance metric and is hard to estimate, and leave extending the lower bound to other divergence measures as future work (Section 3.1).
    • The clean-label attack only solves an approximate problem: The authors use alternating optimization to avoid the computational complexity of the bilevel problem, and believe that solving the full bilevel form (Eq. 9) could improve the attack success rate, leaving it as future work (Section 4.3, Appendix E).
    • Confounding factors in the CYCADA experiment: When training the cycle GAN with poisoned data, the translation quality degrades, but the authors state that they cannot determine whether this is due to poisoning or hyperparameters, so they instead poison only feature-level adaptation (Appendix F).

    Scope of experiments

    • Methods under test: The main experiments cover 6 UDA methods: DANN, CDAN, MCD, SSL, IW-DAN, IW-CDAN; Appendix F adds DAN, DIRT-T, CYCADA; the baseline is Source only.
    • Benchmarks and tasks: Four Digits tasks, six Office-31 tasks, two moons synthetic data; the clean-label attack is evaluated only on the 3 vs 8 binary classification task of MNIST→MNIST_M.
    • Poisoned data settings: Mislabel/watermark attacks are fixed at 10% (Table 4 additionally tests 2%–10%); the clean-label attack uses 1%, ε = 0.1, 20 target points, and 5 random initializations.
    • Number of repetitions: 5 trials for Digits, 3 trials for Office-31, reporting mean±s.d.
    • Defenses and review: The paper does not evaluate any defense against poisoning or data cleaning method; results are automatically computed target-domain accuracy and do not involve human or LLM review.
  6. Summarize the main content of the paper

    UDA lower bound plus three types of poisoning attacks: 10% mislabeled target-domain poisoned data brings mainstream UDA methods' target-domain accuracy close to 0% on Digits.

    A UDA robustness study combining theory and attacks: the authors prove a lower bound on the target-domain error and use data poisoning to experimentally expose the vulnerability of mainstream UDA methods.

    • Problem addressed: UDA only minimizes source-domain error and marginal distribution mismatch, which the authors argue is insufficient to guarantee target-domain generalization; existing upper bounds cannot directly explain failure, and this vulnerability may be exploited by adversarial data.
    • Theoretical points: Theorem 1 gives e_T(h) ≥ max{e_S(f̃_S, f̃_T), e_T(f̃_S, f̃_T)} − e_S(h) − D1(p̃_S, p̃_T), i.e., the target-domain error lower bound depends on the mismatch between the source/target labeling functions induced by the representation; the Gaussian mixture example illustrates three possible cases of UDA success, failure, and ambiguous success/failure (in Case 3 the failing solution has e_T(h) of about 0.33).
    • Attack methods: three types of poisoning—mislabeled source/target-domain data, mislabeled watermark data (p = αt + (1−α)s), and clean-label perturbed data (alternating optimization approximating a bilevel problem).
    • Main results: 10% mislabeled target-domain poisoned data brings target-domain accuracy close to 0% on most Digits tasks (DANN on SVHN→MNIST drops from 78.05% to 1.46%, MCD on MNIST→MNIST_M drops from 93.95% to 0.37%, Table 1); most Office-31 tasks drop by at least 20% (CDAN on D→A drops from 71.25 to 11.19, Table 2); 6% poisoned data already causes large drops for all tested methods on two Digits tasks (Table 4).
    • Exceptions: mislabeled source-domain data has limited effect (unless the poisoned data is comparable in scale to the source domain, as when Amazon is the target domain); CDAN is resistant to the watermark attack and to low-proportion poisoning under the protection of correct pseudo-labels.
    • Authors' conclusion: the failure of UDA methods under poisoning is consistent with the lower bound, indicating that these methods cannot guarantee cross-domain generalization; the authors believe that future UDA methods should be evaluated not only on benchmarks but also under adversarial settings such as poisoning, to measure their robustness more realistically.
Read originalarxiv.org