Balanced Distribution Adaptation for Transfer Learning

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

Introduction

Transfer learning aims to leverage knowledge from a labeled "source" domain to improve performance on a related but different "target" domain. A core challenge in this field is distribution adaptation: minimizing the gap between the source and target data distributions. Most existing methods focus on two types of distributions: the Marginal Distribution $P(x)$ (overall data features) and the Conditional Distribution $P(y|x)$ (labels given the features).

The Problem: The "Equal Weight" Fallacy

This paper identifies two major gaps in current research. First, popular algorithms like Joint Distribution Adaptation (JDA) treat marginal and conditional distributions as equally important. In reality, their relative importance varies depending on the similarity between domains. Second, most methods assume class proportions are identical across domains. In real-world scenarios, class imbalance is pervasive, which can severely degrade adaptation performance.

Proposed Methods

The authors introduce two primary algorithms to address these limitations:

1. Balanced Distribution Adaptation (BDA)

BDA introduces a balance factor ($\mu$) to adjust the weight of marginal versus 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).
  • 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. By adaptively changing the weight of each class during adaptation, W-BDA ensures that rare classes in one domain are not overwhelmed by dominant classes in the other.

Key Insights and Ideas

A significant finding 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$).

Sensitivity of accuracy to the balance factor μ across different transfer tasks.

Since the target domain lacks labels, the authors utilize a "base classifier" to generate "soft labels" for target data. These labels are iteratively refined to improve the estimation of the conditional distribution. W-BDA further demonstrates that accounting for class priors is essential for robust transfer, maintaining high accuracy even when class proportions are highly skewed.

Key Results

BDA was evaluated on 16 transfer tasks derived from five widely-used image datasets (USPS, MNIST, COIL20, Office, and Caltech). BDA achieved an average accuracy of 55.56% across all tasks, consistently outperforming JDA (53.18%) and TCA (51.78%).

Comparison of classification accuracy (%) across 16 transfer tasks, showing BDA's superior performance.

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%. Additionally, the method is computationally efficient, typically converging within 10 iterations.

Limitations and Future Work

Currently, the balance factor $\mu$ must be determined via manual search (e.g., grid search), as there is no closed-form solution to automatically estimate the optimal $\mu$ from data distributions. The authors also observed that the stability of $\mu$ varies across tasks, suggesting complex underlying relationships. Future work will focus on automated strategies for distribution weighting and more sophisticated handling of 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