Towards adaptive unknown authentication for universal domain adaptation by classifier paradox

Yunyun Wang, Yao Liu, Songcan Chen · DOI

Abstract

Universal Domain Adaptation (UniDA) presents a significant challenge in machine learning: adapting a model to a target domain where the overlap of categories with the source domain is unknown. A critical hurdle is "unknown authentication"—the ability to correctly identify target samples from classes not seen during training. Current approaches often rely on brittle, manually tuned confidence thresholds. We present UACP (Unknown Authentication by Classifier Paradox), a novel framework that identifies unknown objects by detecting "paradoxical" disagreements between a multi-class predictor and a set of one-vs-all verifiers. UACP eliminates the need for fixed thresholds and achieves superior performance across multiple benchmarks, including Office-31 and VisDA.

Introduction

Unsupervised Domain Adaptation (UDA) aims to transfer knowledge from a labeled source domain to an unlabeled target domain. However, real-world scenarios often involve "category shift," where the source and target label sets do not perfectly match. Universal Domain Adaptation (UniDA) is the most generalized form of this problem, making no assumptions about whether the target categories are a subset, a superset, or partially overlapping with the source categories.

The primary difficulty in UniDA is distinguishing between "known" classes (shared with the source) and "unknown" classes (unique to the target). Traditional methods use confidence scores to reject unknowns, but these scores are highly sensitive to hyperparameters and often lead to "negative transfer," where the model's performance on known classes degrades during the adaptation process.

The UACP Framework: Resolving the Classifier Paradox

UACP departs from threshold-based rejection by introducing the concept of a Classifier Paradox. The system utilizes a dual-purpose architecture called a Composite Classifier.

The Composite Classifier and the Paradox

The architecture consists of two main components:

  1. Multi-Class (MC) Predictor: A standard classifier that assigns a sample to the most likely source category.
  2. One-Vs-All (OVA) Predictors: A set of $K$ verifiers (where $K$ is the number of source classes). Each verifier determines if a sample belongs to its specific class or to "others."

A "paradox" occurs when the MC predictor identifies a sample as belonging to a specific class (e.g., "cat"), but the corresponding OVA verifier rejects that classification (e.g., "not a cat"). UACP adaptively identifies these paradoxical samples as "unknowns."

Conceptual overview of the Classifier Paradox for unknown authentication.

Architecture and Implicit Alignment

Unlike methods that attempt to force feature-level alignment—which can be counterproductive when classes differ—UACP performs alignment in the output space. It ensures that decision boundaries are consistent across domains.

The MC and OVA predictors share the first $K$ neurons of the classifier layer. This partial sharing forces the two components to cooperate during training, ensuring that the eventual "paradox" signal is robust and meaningful.

The UACP architecture featuring the composite classifier and memory bank.

To further refine the model's understanding of unlabeled target data, UACP incorporates:

  • Memory Bank ($V$): Stores target features to maintain a global view of the target distribution.
  • Self-Supervised Feature Clustering ($L_{SFC}$): Encourages nearby samples in the feature space to form cohesive clusters, helping separate knowns from unknowns.
  • Entropy-Strengthened Loss ($L_{ESL}$): Sharpening predictions when the MC and OVA agree, and increasing entropy (fuzziness) when a paradox is detected.

Experimental Evaluation

The authors evaluated UACP on four major benchmarks: Office-31, Office-Home, VisDA, and DomainNet. These datasets cover various challenges, from small-scale office objects to large-scale synthetic-to-real transitions.

Key Results

UACP consistently outperformed state-of-the-art (SOTA) methods like OVANet and DCC:

  • Office-31 (OSDA): Achieved a 94.7% Harmonic Mean of accuracies (HOS), a 3.0% improvement over OVANet.
  • VisDA (OSDA): Demonstrated a significant jump to 72.4% HOS, compared to 56.1% for previous methods.
  • Robustness: UACP showed remarkable stability as the number of unknown classes in the target domain increased, whereas competing models often suffered rapid performance degradation.

Ablation studies highlighted that the Entropy-Strengthened Loss ($L_{ESL}$) is the most critical component for unknown detection, sometimes improving accuracy on unknown samples by over 15%.

Conclusion

UACP provides a robust, adaptive solution for the "unknown authentication" problem in Universal Domain Adaptation. By replacing brittle confidence thresholds with a self-consistent verification mechanism—the Classifier Paradox—it achieves superior accuracy and stability. While the method introduces some memory overhead due to the feature bank and requires minor hyperparameter tuning for different datasets, it represents a significant step toward truly autonomous domain adaptation in complex, real-world environments.

Summary updated

BibTeX
@article{wang2024towards,
  author = {Yunyun Wang and Yao Liu and Songcan Chen},
  title = {{Towards adaptive unknown authentication for universal domain adaptation by classifier paradox}},
  journal = {Machine Learning},
  year = {2024},
  doi = {10.1007/s10994-022-06236-2},
}
Figure