Balanced Distribution Adaptation for Transfer Learning

Jindong Wang, Yiqiang Chen, Shuji Hao, Wenjie Feng, Zhiqi Shen

TL;DR

This paper introduces Balanced Distribution Adaptation (BDA), a transfer learning framework that adaptively weights the importance of marginal and conditional distribution discrepancies. It also proposes Weighted BDA (W-BDA) to specifically address the pervasive issue of class imbalance between source and target domains, consistently outperforming state-of-the-art methods across multiple benchmarks.

What Problem Does This Paper Address?

Transfer learning aims to leverage knowledge from a labeled "source" domain to improve performance on a related but different "target" domain. A core challenge is distribution adaptation: minimizing the gap between the source and target data distributions.

Most existing methods focus on two types of distributions:

  1. Marginal Distribution $P(x)$: The overall distribution of the data features.
  2. Conditional Distribution $P(y|x)$: The distribution of labels given the features.

The authors identify two major gaps in current research:

  • The "Equal Weight" Fallacy: Popular algorithms like Joint Distribution Adaptation (JDA) treat marginal and conditional distributions as equally important. In reality, their relative importance varies depending on how similar the domains are.
  • Class Imbalance: Most methods assume that class proportions are the same across domains. In real-world scenarios, one domain might have many examples of "Class A" while the other has very few, which can severely degrade adaptation performance.

Methods

The authors propose two primary algorithms:

1. Balanced Distribution Adaptation (BDA)

BDA introduces a balance factor ($\mu$) to adjust the weight of marginal vs. conditional distribution adaptation. The discrepancy is calculated using Maximum Mean Discrepancy (MMD) in a Reproducing Kernel Hilbert Space (RKHS).

  • When $\mu \to 0$, the model focuses on the marginal distribution (useful when domains are very different).
  • When $\mu \to 1$, it focuses on the conditional distribution (useful when domains are similar).
  • Notably, BDA is a generalized framework: setting $\mu=0$ recovers Transfer Component Analysis (TCA), and $\mu=0.5$ recovers JDA.

2. Weighted BDA (W-BDA)

To handle class imbalance, W-BDA modifies the MMD calculation by incorporating class priors (the probability of each class appearing in the domain). By adaptively changing the weight of each class during the adaptation process, W-BDA ensures that rare classes in one domain aren't overwhelmed by dominant classes in the other.

Both methods are formulated as trace minimization problems and solved efficiently using generalized eigendecomposition to find a low-dimensional transformation matrix $A$.

Datasets

The algorithms were evaluated on 16 transfer tasks derived from five widely-used image datasets:

  • USPS (U) & MNIST (M): Standard handwritten digit recognition.
  • COIL20 (CO): 20 different object categories.
  • Office (A, W, D): Real-world objects from Amazon, Webcam, and DSLR cameras.
  • Caltech (C): The Caltech-256 object dataset.

Key Insights and Ideas

  • Adaptivity is Key: The most significant "aha moment" is that the optimal balance between marginal and conditional distributions is task-specific. For example, in the $M \to U$ task, the marginal distribution is much more important ($\mu \approx 0.1$), whereas in $A \to W$, the conditional distribution takes precedence ($\mu \approx 0.8$).
  • Iterative Refinement: Since the target domain has no labels, the authors use a "base classifier" to generate "soft labels" for the target data, which are then iteratively refined to improve the estimation of the conditional distribution.
  • Robustness to Imbalance: W-BDA demonstrates that accounting for class priors is essential for robust transfer. Even when class proportions are highly skewed, W-BDA maintains high accuracy where standard BDA and JDA fail.

Key Results

  • Superior Accuracy: BDA achieved an average accuracy of 55.56% across all 16 tasks, outperforming JDA (53.18%) and TCA (51.78%).
  • W-BDA Gains: On specifically imbalanced tasks, W-BDA showed clear improvements. For instance, on the $W \to C$ task, W-BDA reached 31.08% accuracy compared to BDA's 28.94% and JDA's 25.29%.
  • Convergence: The method is computationally efficient, typically converging within 10 iterations.

Limitations and Future Work

  • Manual Parameter Search: Currently, the balance factor $\mu$ must be searched (e.g., via cross-validation or grid search). The authors note there is no effective "closed-form" solution to automatically estimate the optimal $\mu$ directly from the data distributions yet.
  • Stability of $\mu$: The paper observes that the "tendency" of $\mu$ is not always stable across all tasks, suggesting that the relationship between these distributions might be more complex than a simple linear balance.
  • Future Directions: The authors plan to explore automated strategies for leveraging distribution importance and developing more sophisticated ways to handle extreme class imbalance.

Summary updated

BibTeX
@inproceedings{wang2017balanced,
  author = {Jindong Wang and Yiqiang Chen and Shuji Hao and Wenjie Feng and Zhiqi Shen},
  title = {{Balanced Distribution Adaptation for Transfer Learning}},
  booktitle = {ICDM},
  year = {2017},
  doi = {10.1109/icdm.2017.150},
}
Figure