Abstract
Traditional Domain Generalization (DG) methods rely on static models to bridge the gap between source and target distributions. However, these models often suffer from a "static bottleneck," where fixed parameters fail to capture the diversity of unseen domains. This paper discusses Dynamic Domain Generalization (DDG), a novel framework that introduces a meta-adjuster to modify model parameters on-the-fly for every individual input. By treating each instance as a unique latent domain, DDG achieves state-of-the-art performance across major benchmarks without requiring test-time training or fine-tuning.
1. Introduction
In machine learning, the ability to generalize to unseen environments—known as Domain Generalization (DG)—is critical for real-world applications like autonomous driving and medical imaging. The primary challenge lies in the distribution shift between the training (source) data and the deployment (target) data.
Existing solutions typically fall into three categories: standard DG, which seeks domain-invariant features but remains static; Domain Adaptation (DA), which requires unlabeled target data; and Test-Time DG, which fine-tunes models during inference. The latter is often too computationally expensive for real-time systems. DDG addresses this "missing middle" by providing a mechanism that adapts to agnostic target domains instantly through a single forward pass.
2. Methodology
2.1 The Meta-Adjuster
The core of the DDG framework is the Meta-Adjuster, a lightweight module designed to generate "dynamic coefficients" based on the features of a specific input image. These coefficients are used to "twist" or adjust the weights of the primary network. Unlike traditional models that remain rigid after training, DDG is instance-aware; the model parameters used to process a sketch are technically different from those used to process a photo, even though no backpropagation occurs at test time.
2.2 Asymmetric Kernel Templates
To prevent the parameter explosion that would occur if the model generated entirely new weights for every layer, the authors utilize Asymmetric Kernel Templates. The adaptation is restricted to a linear combination of four specific kernel shapes:
- 3x3 depth-wise kernels
- 1x1 kernels
- 1x3 kernels
- 3x1 kernels
This approach is based on the "Skeleton Hypothesis," which suggests that the central "criss-cross" positions in a convolutional filter carry the most significant information for generalization. By focusing the meta-adjuster on this structural skeleton, the model remains efficient while gaining significant flexibility.
2.3 DomainMix Training
To train the meta-adjuster to handle unseen distributions, the authors employ DomainMix. This data augmentation strategy simulates novel domains during the training phase by interpolating between existing source domains (e.g., blending features from a "cartoon" domain and a "photo" domain). This teaches the meta-adjuster how to respond to intermediate and novel feature distributions it might encounter in the wild.
3. Experimental Results
DDG was evaluated on three high-difficulty benchmarks: PACS, Office-Home, and DomainNet.
- PACS: DDG achieved an average accuracy of 86.21%, significantly outperforming the standard ResNet-50 baseline (82.95%) and specialized methods like SWAD.
- Office-Home: The model reached 72.13% accuracy across 65 categories.
- DomainNet: On this massive scale benchmark (600,000 images), DDG reached 46.89% accuracy.
Furthermore, DDG demonstrated strong compatibility with existing DG techniques. When combined with MixStyle, performance on PACS increased to 87.87%, suggesting that DDG can serve as a flexible, plug-and-play enhancement for various architectures.
4. Discussion and Limitations
While DDG offers a powerful alternative to static models, it introduces a few trade-offs. The primary concern is parameter overhead. A DDG-equipped ResNet-50 requires approximately 31.81M parameters compared to the vanilla 22.43M. Additionally, while the model avoids the latency of backpropagation, the calculation of dynamic coefficients adds a marginal computational cost to the forward pass. Future work may focus on optimizing the meta-adjuster for even more memory-constrained environments.
5. Conclusion
Dynamic Domain Generalization represents a shift from learning static, invariant features to learning how to adapt. By utilizing a meta-adjuster and asymmetric kernels, DDG provides a training-free adaptation mechanism that effectively bridges the gap between diverse data distributions, setting a new standard for robust computer vision models.
Summary updated