Attending to Discriminative Certainty for Domain Adaptation

Vinod Kumar Kurmi, Shanu Kumar, Vinay P. Namboodiri

Abstract

Unsupervised Domain Adaptation (UDA) aims to mitigate the performance drop of deep learning models when applied to target domains with different distributions than the source training data. This paper presents Certainty-based Attention for Domain Adaptation (CADA), a novel framework that leverages the predictive certainty of an adversarial discriminator to identify and prioritize transferable image regions. By employing Bayesian Neural Networks to quantify uncertainty, CADA effectively filters out noisy backgrounds and focuses on discriminative foreground objects. Experimental results on benchmarks like Office-Home demonstrate that CADA achieves state-of-the-art performance, significantly improving accuracy over standard adversarial methods.

Introduction

Deep neural networks often struggle with domain shift, where a model trained on one dataset (e.g., studio images) fails to generalize to another (e.g., real-world snapshots). While standard Unsupervised Domain Adaptation (UDA) uses adversarial training to align global feature distributions, it often ignores the spatial variance within images. Some regions, such as cluttered backgrounds, are difficult to align and can lead to "negative transfer," while others, like the primary object, are highly transferable. The core challenge lies in identifying which specific regions the model should prioritize during the adaptation process.

The CADA Framework

The proposed CADA framework addresses this by integrating a shared feature extractor with a Bayesian Classifier and a Bayesian Discriminator. Unlike deterministic models, these Bayesian components utilize Monte Carlo (MC) dropout to estimate uncertainty in their predictions.

The CADA framework featuring Bayesian components and an attention mechanism.

The system identifies two primary forms of certainty:

  1. Aleatoric Certainty (CADA-A): Captures noise inherent in the input data, such as blur or sensor artifacts.
  2. Predictive Certainty (CADA-P): Reflects the model's overall confidence, accounting for both data noise and model parameter uncertainty.

The "secret sauce" of CADA is its attention mechanism. The model computes the gradient of the discriminator’s uncertainty with respect to the extracted features. High certainty in the discriminator indicates regions that still possess domain-specific characteristics requiring alignment. By generating an attention map from these signals, the model weights features to focus the classifier on the most "adaptable" parts of the image.

Qualitative Analysis and Results

A key advantage of CADA is its ability to dynamically shift focus as training progresses. Initially, the discriminator may be certain about background elements. However, as these are aligned, the focus shifts toward the primary objects.

Evolution of attention maps (a-f) showing the model focusing on discriminative regions.

The researchers evaluated CADA on three major benchmarks:

  • Office-Home: CADA achieved a significant breakthrough with an average accuracy of 70.2%, a 7.4% improvement over previous methods.
  • Office-31: Reached an average accuracy of 89.5% using a ResNet-50 backbone.
  • ImageCLEF-2014: Demonstrated consistent improvements across common object classes.

The results indicate that Predictive Certainty (CADA-P) generally provides a more robust signal for adaptation than Aleatoric Certainty alone. By ignoring high-uncertainty (noisy) regions, the model effectively prevents negative transfer, leading to better-clustered feature representations.

Conclusion and Future Work

CADA introduces a principled way to incorporate spatial importance into domain adaptation via Bayesian uncertainty. While the reliance on MC dropout introduces some computational overhead, the gains in accuracy—particularly on complex datasets like Office-Home—are substantial. Future research may focus on more efficient probabilistic methods to reduce the cost of uncertainty estimation while maintaining the benefits of discriminative attention.

Summary updated

Abstract

In this paper, we aim to solve for unsupervised domain adaptation of classifiers where we have access to label information for the source domain while these are not available for a target domain. While various methods have been proposed for solving these including adversarial discriminator based methods, most approaches have focused on the entire image based domain adaptation. In an image, there would be regions that can be adapted better, for instance, the foreground object may be similar in nature. To obtain such regions, we propose methods that consider the probabilistic certainty estimate of various regions and specify focus on these during classification for adaptation. We observe that just by incorporating the probabilistic certainty of the discriminator while training the classifier, we are able to obtain state of the art results on various datasets as compared against all the recent methods. We provide a thorough empirical analysis of the method by providing ablation analysis, statistical significance test, and visualization of the attention maps and t-SNE embeddings. These evaluations convincingly demonstrate the effectiveness of the proposed approach.
BibTeX
@inproceedings{kurmi2019attending,
  author = {Vinod Kumar Kurmi and Shanu Kumar and Vinay P. Namboodiri},
  title = {{Attending to Discriminative Certainty for Domain Adaptation}},
  booktitle = {CVPR},
  year = {2019},
  doi = {10.1109/cvpr.2019.00058},
}
Figure