PAC-Bayesian Theorems for Domain Adaptation with Specialization to Linear Classifiers

Pascal Germain, Amaury Habrard, François Laviolette, Emilie MorvantarXiv 2015

Introduction

Domain Adaptation (DA) addresses a fundamental challenge in machine learning: the discrepancy between training (source) and testing (target) data distributions. While traditional learning theory relies on the assumption that data is independent and identically distributed (i.i.d.), real-world applications—such as sentiment analysis across different product categories—frequently violate this. This paper establishes a rigorous theoretical foundation for DA using the PAC-Bayesian framework, introducing a novel "disagreement" pseudodistance and a practical algorithm, PBDA, for linear classifiers.

Theoretical Framework: From Worst-Case to Average-Case

Existing DA theories often utilize the $H\Delta H$-divergence, which measures the maximum possible disagreement between any two hypotheses in a set. While theoretically robust, this "worst-case" metric is often overly pessimistic and computationally difficult to optimize directly.

The authors propose a more nuanced measure: the Domain Disagreement Pseudometric ($dis_\rho$). Instead of a supremum over the hypothesis space, $dis_\rho$ calculates the average disagreement under a posterior distribution $\rho$ over classifiers. This shift to an "average-case" measure allows for tighter generalization bounds and fits naturally within the PAC-Bayesian paradigm, which considers distributions over classifiers rather than single "best" hypotheses.

The PAC-Bayesian DA Bound

The core theoretical contribution is a new generalization bound for the "stochastic Gibbs classifier." The bound decomposes the target error into three primary components:

  1. Source Risk: The error rate on the source domain.
  2. Domain Disagreement ($dis_\rho$): The expected difference in predictions between the source and target domains.
  3. Adaptability ($\lambda_\rho$): A term representing the inherent difficulty of the adaptation task, specifically the labeling shift between domains.

The PBDA Algorithm

To translate this theory into practice, the authors specialize the framework for linear classifiers using Gaussian distributions. This results in the PAC-Bayesian Domain Adaptation (PBDA) algorithm.

Unlike many contemporary DA methods that employ a two-stage process—first learning a shared feature representation and then training a classifier—PBDA performs a joint optimization. It simultaneously minimizes source risk, domain divergence, and model complexity (expressed via KL-divergence) in a single step. This one-step approach is not only more theoretically elegant but also significantly more efficient than iterative methods like DASVM or CODA.

Experimental Evaluation

The authors evaluated PBDA across synthetic and real-world benchmarks to test its robustness and efficiency.

Synthetic: Two Inter-twinning Moons

In this 2D toy problem, the target domain is a rotated version of the source domain. As the rotation angle increases (from 10° to 90°), the task becomes progressively harder. PBDA demonstrated superior adaptation capabilities compared to standard SVMs and non-adaptive PAC-Bayesian learners, successfully trading off source accuracy to achieve significantly higher target accuracy in challenging scenarios.

Real-World: Amazon Reviews

The algorithm was tested on the Amazon sentiment analysis dataset, which involves adapting classifiers across four categories: Books, DVDs, Electronics, and Kitchen. PBDA matched or exceeded the performance of state-of-the-art iterative methods. Furthermore, when combined with features from Marginalized Stacked Denoising Autoencoders (mSDA), PBDA showed it could effectively leverage unsupervised representation learning to further boost performance.

Key Insights and Efficiency

A major advantage of PBDA is its computational speed. By avoiding the costly iterative self-labeling or co-training procedures required by other algorithms, PBDA was found to be significantly faster (often by a factor of five or more) than DASVM and CODA.

Additionally, the paper extends the theory to multisource domain adaptation. By considering a weighted mixture of source distributions, the authors provide a path to avoid the "ln n" penalty (where $n$ is the number of sources) often found in earlier multisource theories, suggesting better scalability for complex, multi-domain tasks.

Conclusion and Future Work

This work bridges the gap between PAC-Bayesian theory and practical domain adaptation. By replacing pessimistic worst-case measures with a more tractable disagreement pseudometric, the authors provide both a tighter theoretical bound and a highly efficient algorithm. While the algorithm assumes the adaptability term $\lambda_\rho$ is small, its explicit presence in the math provides a clear theoretical limit on when adaptation is possible. Future research directions include exploring more complex priors and investigating the "C-bound" to further refine the variance of the classifier's margin in DA contexts.

Summary updated

BibTeX
@misc{germain2015pac,
  author = {Pascal Germain and Amaury Habrard and François Laviolette and Emilie Morvant},
  title = {{PAC-Bayesian Theorems for Domain Adaptation with Specialization to Linear Classifiers}},
  year = {2015},
  eprint = {1503.06944},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1503.06944},
}
Figure