Abstract
Standard deep learning models are often "fragile," excelling in their training environments but struggling when faced with domain shifts. In continual domain adaptation, models must learn from a sequence of environments without suffering from "catastrophic forgetting"—the loss of knowledge from previous domains. This paper introduces Meta-DR, a novel strategy that leverages heavy domain randomization and a meta-learning objective to create representations naturally resistant to forgetting. By simulating domain shifts during training on a single domain, Meta-DR enables models to retain past knowledge and adapt more effectively to future variations without requiring extensive memory of old data.
Introduction: The Challenge of Catastrophic Forgetting
In real-world applications, computer vision models frequently encounter changing environments. For instance, an autonomous vehicle's perception system might first learn to recognize objects in clear weather, then adapt to fog, and subsequently to rain. Standard adaptation techniques often lead to catastrophic forgetting, where the model overwrites features essential for the "Clear" domain while optimizing for "Fog."
While existing solutions often rely on "experience replay"—storing and re-training on a subset of old data—this approach is frequently limited by privacy regulations or hardware constraints. Meta-DR addresses this by asking: Can we learn a representation that is inherently robust to forgetting by modifying the training process on the current domain alone?
Methodology: Meta-DR
The authors propose a two-pronged approach to foster robust continual adaptation:
- Domain Randomization (DR): The current training data is subjected to "heavy" image manipulations, including extreme variations in brightness, color, contrast, rotation, and noise. This forces the model to prioritize features that are invariant to specific visual styles.
- Meta-learning with Auxiliary Domains: Rather than simple augmentation, these transformations create "auxiliary meta-domains." A meta-learning objective, inspired by Model-Agnostic Meta-Learning (MAML), is employed with three core components:
- Current Task Loss: Standard supervised training on the primary domain.
- Backward Transfer ($L_{recall}$): A regularizer that penalizes the model if updates on an auxiliary domain degrade performance on the original, unperturbed data. This "anticipates" and prevents forgetting.
- Forward Transfer ($L_{adapt}$): A term encouraging the model to reach a weight space region from which it can easily adapt to new, unseen variations.
By simulating the process of adaptation and penalizing the resulting forgetting during training on a single domain, the model learns to stay within a stable region of the weight space.
Experimental Evaluation
The researchers evaluated Meta-DR across three distinct benchmarks:
- Digits: A sequence of four datasets (MNIST, MNIST-M, SYN, and SVHN) with varying styles.
- PACS: A domain generalization benchmark featuring Paintings, Art, Cartoons, and Sketches.
- Virtual KITTI 2: A high-fidelity synthetic dataset for semantic segmentation, testing sequences of changing weather and lighting conditions.
Key Results and Insights
The experiments revealed several critical insights:
- Randomization as a Strong Baseline: Simply applying heavy Domain Randomization (Naive + DR) significantly mitigates forgetting, even without the meta-learning component.
- Simulating the Future: Meta-DR demonstrates that access to future domains is not strictly necessary to prepare for them. Auxiliary domains effectively simulate the process of adaptation.
- Performance Gains: On the challenging Digits "P2" protocol (SVHN $\rightarrow$ SYN $\rightarrow$ MNIST-M $\rightarrow$ MNIST), the baseline model's accuracy on the initial SVHN domain dropped to 54.0% by the end of the sequence. Meta-DR maintained a significantly higher accuracy of 73.8%. Similarly, in the PACS benchmark, Meta-DR improved final accuracy on the initial "Sketches" domain from 73.0% to 85.7%.
Conclusion and Future Work
Meta-DR provides a robust framework for continual domain adaptation by integrating domain randomization with meta-learning. While highly effective, the method's success is tied to the quality of the image transformations used for auxiliary domains. Future research may explore automated strategies for learning optimal augmentations or extending the framework to unsupervised settings where labels for new domains are unavailable. Despite the increased computational cost of second-order derivatives in meta-learning, Meta-DR offers a compelling path toward more resilient and adaptable computer vision systems.
Summary updated