Skip to main content
Dynamically Decoding Source Domain Knowledge for Domain Generalization
  • Cuicui Kang, Mohamed Bin Zayed University Of Artificial Intelligence
  • Karthik Nandakumar, Mohamed Bin Zayed University Of Artificial Intelligence
Document Type

Optimizing the performance of classifiers on samples from unseen domains remains a challenging problem. While most existing studies on domain generalization focus on learning domain-invariant feature representations, multi-expert frameworks have been proposed as a possible solution and have demonstrated promising performance. However, current multi-expert learning frameworks fail to fully exploit source domain knowledge during inference, resulting in suboptimal performance. In this work, we propose to adapt Transformers for the purpose of dynamically decoding source domain knowledge for domain generalization. Specifically, we build one domain-specific local expert per source domain and one domain-agnostic feature branch as query. A Transformer encoder encodes all domain-specific features as source domain knowledge in memory. In the Transformer decoder, the domain-agnostic query interacts with the memory in the cross-attention module, and domains that are similar to the input will contribute more to the attention output. Thus, source domain knowledge gets dynamically decoded for inference of the current input from unseen domain. This mechanism enables the proposed method to generalize well to unseen domains. The proposed method has been evaluated on three benchmarks in the domain generalization field and shown to have the best performance compared to state-of-the-art methods. Copyright © 2021, The Authors. All rights reserved.

Publication Date
  • Benchmarking; Decoding; Machine learning; 'current; Domain agnostics; Domain knowledge; Domain specific; Feature representation; Generalisation; Invariant features; Multi-expert; Performance; Performance of classifier; Domain Knowledge; Computer Vision and Pattern Recognition (cs.CV)

Preprint: arXiv

Citation Information
C. Kang, and K. Nandakumar, "Dynamically decoding source domain knowledge for domain generalization", 2021, arXiv:2110.03027