NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Multiple Classifiers Based Maximum Classifier Discrepancy for Unsupervised Domain Adaptation

Yiju Yang, Taejoon Kim, Guanghui Wang

Abstract

Unsupervised Domain Adaptation (UDA) is critical for deploying deep learning models in real-world scenarios where training (source) and testing (target) data distributions differ. A prominent technique, Maximum Classifier Discrepancy (MCD), utilizes two classifiers in an adversarial setup to align these domains. This paper argues that a dual-classifier system is often insufficient for capturing complex data boundaries. We introduce a Multi-Classifier Maximum Classifier Discrepancy (MMCD) framework that extends the architecture to $n$ classifiers. By employing a comprehensive pairwise discrepancy loss, we ensure classifier diversity, leading to superior domain alignment. Our experiments show that moving to three classifiers provides a substantial accuracy boost on standard benchmarks like SVHN → MNIST and VisDA-2017 with negligible added computational cost.

Introduction

Deep neural networks often suffer from performance degradation when applied to data from a different distribution than their training set, a phenomenon known as domain shift. Unsupervised Domain Adaptation (UDA) seeks to mitigate this by leveraging labeled source data and unlabeled target data to learn domain-invariant features.

The Maximum Classifier Discrepancy (MCD) method has emerged as a powerful UDA tool. It involves a feature extractor and two classifiers. The classifiers are trained to maximize their discrepancy on target samples, identifying regions not supported by the source domain, while the feature extractor is trained to minimize this discrepancy. However, the authors observe that two classifiers may fail to capture the intricate geometry of the target distribution, resulting in sub-optimal adaptation.

Methodology: The Multi-Classifier Approach

The proposed MMCD framework generalizes MCD by using $n$ classifier heads ($n \ge 3$) instead of two. The primary challenge in a multi-classifier setup is preventing the heads from converging to the same solution, which would nullify the adversarial benefit.

Pairwise Discrepancy Loss

To maintain diversity among the $n$ classifiers, the authors introduce a novel discrepancy loss, $L_n$, which sums the absolute differences between the probability outputs of all unique pairs of classifiers: $$L_n(p^1, ..., p^n) = \sum_{i=1}^{n-1} \sum_{j=i+1}^{n} |p^i - p^j|_1$$ This "closed-loop" loss ensures that every classifier is pushed away from every other classifier during the adversarial phase, forcing them to explore different regions of the feature space.

Visual comparison of decision boundaries on a toy dataset: (a) Source Only, (b) MCD with 2 classifiers, and (c) the proposed MMCD with 3 classifiers.

Adversarial Training Process

The training follows a three-step minimax optimization:

  1. Source Training: The feature extractor and all $n$ classifiers are trained on labeled source data using standard cross-entropy loss.
  2. Discrepancy Maximization: The feature extractor is fixed, and the classifiers are trained to maximize $L_n$ on the unlabeled target data. This step identifies target samples that are ambiguous or far from the source distribution.
  3. Feature Alignment: The classifiers are fixed, and the feature extractor is trained to minimize $L_n$ on the target data, effectively pushing target features into the "consensus" region of the classifiers.

Experimental Results

The MMCD framework was evaluated across several challenging UDA benchmarks, consistently outperforming the baseline MCD and other state-of-the-art methods.

Performance Gains

On the SVHN → MNIST task, the three-classifier model achieved an accuracy of 98.2%, a significant improvement over the 96.2% achieved by the original two-classifier MCD. Similar gains were observed in larger datasets; for VisDA-2017, mean accuracy improved from 71.9% (MCD) to 78.3% with $n=3$, and further to 82.5% with $n=6$.

The "Power of Three" and Ablation Studies

The authors found that the most dramatic improvement occurs when transitioning from two to three classifiers. While adding more classifiers continues to improve results, the marginal gains decrease. Crucially, ablation studies confirmed that the specific structure of the discrepancy loss is vital. Removing pairs from the loss calculation or replacing the comprehensive pairwise sum with simpler alternatives leads to a sharp decline in performance.

Comparison of SVHN-MNIST results for different classifier configurations and loss variations, highlighting the superiority of the 3-classifier approach.

Conclusion

This research demonstrates that the effectiveness of adversarial domain adaptation can be significantly enhanced by simply increasing the number of classifiers. The proposed MMCD framework, with its pairwise discrepancy loss, provides a robust and computationally efficient way to achieve better domain alignment. The "Power of Three" offers a practical heuristic for practitioners looking to boost UDA performance with minimal architectural changes.

Summary updated

BibTeX
@inproceedings{yang2022multiple,
  author = {Yiju Yang and Taejoon Kim and Guanghui Wang},
  title = {{Multiple Classifiers Based Maximum Classifier Discrepancy for Unsupervised Domain Adaptation}},
  booktitle = {CRV},
  year = {2022},
  doi = {10.1109/crv55824.2022.00014},
}
Figure