Butterfly: A Panacea for All Difficulties in Wildly Unsupervised Domain Adaptation

Feng Liu, Jie Lu, Bo Han, Gang Niu, Guangquan Zhang, Masashi Sugiyama

Abstract

In unsupervised domain adaptation (UDA), classifiers for the target domain (TD) are trained with clean labeled data from the source domain (SD) and unlabeled data from TD. However, in the wild, it is difficult to acquire a large amount of perfectly clean labeled data in SD given limited budget. Hence, we consider a new, more realistic and more challenging problem setting, where classifiers have to be trained with noisy labeled data from SD and unlabeled data from TD -- we name it wildly UDA (WUDA). We show that WUDA ruins all UDA methods if taking no care of label noise in SD, and to this end, we propose a Butterfly framework, a powerful and efficient solution to WUDA. Butterfly maintains four deep networks simultaneously, where two take care of all adaptations (i.e., noisy-to-clean, labeled-to-unlabeled, and SD-to-TD-distributional) and then the other two can focus on classification in TD. As a consequence, Butterfly possesses all the conceptually necessary components for solving WUDA. Experiments demonstrate that, under WUDA, Butterfly significantly outperforms existing baseline methods.

Introduction: The Challenge of Wildly Unsupervised Domain Adaptation

Standard Unsupervised Domain Adaptation (UDA) aims to transfer knowledge from a labeled source domain (e.g., synthetic images) to an unlabeled target domain (e.g., real photos). However, it relies on the often-unrealistic assumption that source labels are perfectly clean. In real-world scenarios, datasets are frequently scraped from the web or annotated via crowdsourcing, leading to significant label noise.

The authors define this more realistic challenge as Wildly Unsupervised Domain Adaptation (WUDA). Standard UDA methods often collapse under WUDA because they blindly trust these noisy labels. Furthermore, naive "two-step" approaches—cleaning labels first and then applying UDA—fail because residual errors from the cleaning phase compound during adaptation.

Figure 1: Conceptual comparison between standard UDA, two-step approaches, and the one-step Butterfly framework for solving WUDA.

The Butterfly Framework

To address the shortcomings of sequential processing, the authors propose Butterfly, a one-step framework that performs label cleaning and domain adaptation simultaneously. Butterfly utilizes a four-network architecture organized into two branches:

  • Branch-I: Two networks trained on a combination of noisy source data and pseudo-labeled target data.
  • Branch-II: Two networks trained exclusively on pseudo-labeled target data.

The core of Butterfly is the Dual-Checking Principle (DCP), which leverages the "small-loss trick"—the observation that deep networks learn clean patterns before overfitting to noise. By employing a co-teaching paradigm where networks cross-validate each other's samples, Butterfly identifies high-confidence data from both domains concurrently. This allows for the construction of high-quality, domain-invariant representations while filtering out noise.

Experimental Evaluation

The framework was tested on 32 simulated tasks (digits and sentiment analysis) and 3 real-world tasks using Bing image search results as a naturally noisy source.

Key Results

Butterfly demonstrates remarkable robustness to extreme noise. In digit tasks with up to 45% "pair-flip" noise, standard UDA methods failed, whereas Butterfly maintained high accuracy. On average, Butterfly achieved 75.82% accuracy on digit tasks, significantly outperforming robust baselines like Co-teaching + ATDA (71.73%) and standard ATDA (50.91%).

Figure 2: Target-domain accuracy of Butterfly (B-Net) compared to baselines across varying noise rates in different experimental settings.

In real-world benchmarks (Bing → Caltech/ImageNet/SUN), Butterfly achieved the highest average accuracy of 62.42%, proving its effectiveness on naturally occurring noise.

Key Insights and Limitations

The research highlights that ignoring source noise leads to minimizing the wrong risk in the target domain. Simultaneous dual-checking is essential; filtering only the source domain allows target pseudo-label errors to accumulate.

However, the Butterfly framework is currently tied to the memorization dynamics of deep neural networks and may not be directly applicable to other model types like SVMs. Additionally, the theoretical bounds provided are conceptual guides rather than tight statistical guarantees. Future work aims to extend this framework to open-set WUDA, where the target domain contains classes not present in the source.

Summary updated

BibTeX
@misc{liu2019butterfly,
  author = {Feng Liu and Jie Lu and Bo Han and Gang Niu and Guangquan Zhang and Masashi Sugiyama},
  title = {{Butterfly: A Panacea for All Difficulties in Wildly Unsupervised Domain Adaptation}},
  year = {2019},
  eprint = {1905.07720},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1905.07720},
}
Figure