Exploiting Local Feature Patterns for Unsupervised Domain Adaptation

Jun Wen, Risheng Liu, Nenggan Zheng, Qian Zheng, Zhefeng Gong

Introduction

Unsupervised Domain Adaptation (UDA) aims to leverage labeled data from a "source" domain (e.g., studio photos) to improve performance on an unlabeled "target" domain (e.g., real-world webcam images). Traditional methods typically focus on aligning "holistic" global features. However, this paper argues that global features are often too task-specific and prone to overfitting on the source domain. Instead, the authors propose aligning local feature patterns—primitive elements like textures or object parts—which are more universally transferable across domains.

The Challenge of Holistic Alignment

Standard UDA approaches attempt to make global representations indistinguishable to a discriminator. This faces two primary issues:

  1. Holistic Overfitting: Features from deeper layers are highly specialized to the source task, making them less effective when domains differ significantly.
  2. Multi-mode Complexity: Local features from convolutional layers exhibit complex, multi-modal distributions. Simple global alignment ignores these fine-grained patterns shared across categories.
Conceptual overview of local feature pattern alignment. (a) shows unaligned features, while (b) demonstrates how local patterns (shapes) can be clustered and aligned across domains.

Proposed Methodology

The authors introduce a framework that jointly aligns global and local statistics. The architecture consists of three main components:

  1. Local Feature Pattern Learning: A trainable NetVLAD layer clusters local convolutional features into $K$ distinct patterns. This allows the model to identify recurring structures like chair legs or monitor corners regardless of the overall object category.
  2. Holistic Alignment: A global discriminator ensures that aggregated image representations are domain-invariant, similar to standard adversarial methods like DANN.
  3. Local Feature Alignment: This core innovation aligns the residuals—the difference between a local feature and its assigned cluster center. By forcing these residuals to follow similar distributions across domains via a local adversarial loss, the model achieves a much finer-grained alignment than global methods.
  4. Sparsity Loss: An entropy-based loss encourages local features to "hard-assign" to specific patterns, ensuring the learned local structures remain distinct and well-separated.
The proposed architecture: (I) Feature extraction, (II) Local feature pattern learning via clustering, and (III) Joint holistic and local adversarial alignment.

Experimental Evaluation

The method was evaluated on two major benchmarks:

  • Office-31: Containing 31 categories across three domains (Amazon, Webcam, DSLR). The proposed Our (H+L) method achieved an average accuracy of 72.46%, outperforming DANN (67.88%) and ADDA (67.49%).
  • Office-home: A more challenging dataset with 65 categories across four domains (Art, Clipart, Product, Real-World). The model reached 53.10% average accuracy, a significant jump over DANN's 49.59%.

A key finding was the model's resistance to negative transfer. In experiments where the source domain had more classes than the target, the model maintained high accuracy (69.09%) while standard adversarial methods like ADDA plummeted to 51.10%. This suggests that local patterns are indeed more robust primitives for transfer.

Conclusion

By focusing on generic local primitives rather than just task-specific global features, this approach provides a more robust mechanism for domain adaptation. Aligning residuals around local cluster centers proves to be a powerful technique for bridging the gap between disparate domains and mitigating the risks of negative transfer.

Summary updated

BibTeX
@inproceedings{wen2019exploiting,
  author = {Jun Wen and Risheng Liu and Nenggan Zheng and Qian Zheng and Zhefeng Gong and Junsong Yuan},
  title = {{Exploiting Local Feature Patterns for Unsupervised Domain Adaptation}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2019},
  doi = {10.1609/aaai.v33i01.33015401},
}
Figure