Foresee What You Will Learn: Data Augmentation for Domain Generalization in Non-stationary Environment

Qiuhao Zeng, Wei Wang, Fan Zhou, Charles Ling, Boyu Wang

Introduction

Standard Domain Generalization (DG) assumes that while training and test distributions differ, the domains themselves are static and independent. However, real-world environments often exhibit continuous, non-stationary shifts. This paper introduces Directional Domain Augmentation (DDA), a framework designed for Evolving Domain Generalization (EDG). By predicting the trajectory of environmental changes, DDA prepares models for future, unseen domains rather than merely seeking a static, invariant feature set.

The Challenge of Evolving Domains

In many practical scenarios, data distributions shift predictably over time. Examples include facial aging in recognition systems or changing lighting conditions for autonomous vehicles. Traditional DG methods often fail in these contexts because they ignore the temporal signal, attempting to find a "one-size-fits-all" solution that may be overly restrictive or perform poorly as the environment evolves.

Figure 1: Data distributions often shift along a continuous trajectory, such as a person aging over several years. The EDG task aims to predict and adapt to the next step in this evolution.

Directional Domain Augmentation (DDA)

The DDA framework leverages the sequence of historical domains to "foresee" the characteristics of the target domain. It consists of three primary components:

  1. Domain Transformer: An attention-based module that analyzes historical source domains to capture the evolving pattern. By treating the current domain as a query, it learns how features transform across the sequence.
  2. Directional Augmentation: The transformer generates augmented features that mimic the expected distribution of the upcoming, unseen domain.
  3. Meta-Learning Optimization: The system uses a bi-level optimization strategy. In the inner loop, the classifier is fast-adapted using simulated features. In the outer loop, the model is evaluated on the actual subsequent domain, providing a gradient signal to refine the feature extractor and transformer.

Experimental Evaluation

The authors evaluated DDA against 13 state-of-the-art baselines on both synthetic and real-world datasets, including the Sine dataset, yearbook photos (Portraits), and medical imagery (Ocular Disease). These datasets are characterized by sequential shifts where the "evolving index" (e.g., time or age) is known during training.

Results and Discussion

DDA consistently outperformed existing methods, achieving an average accuracy of 88.1% across all datasets. On the synthetic Sine dataset, DDA reached 98.4% accuracy, whereas traditional DG methods often struggled to exceed 60%, essentially performing no better than random guessing due to their inability to adapt to the shifting curve.

Figure 5: Visualization of the decision boundary on the Sine dataset at step S4. DDA successfully aligns its boundary with the shifting data distribution, whereas static methods fail to adapt.

The success of DDA highlights the importance of treating domain shifts as a signal rather than noise. By proactively aligning decision boundaries using predicted future distributions, DDA maintains high performance in non-stationary environments. While currently reliant on predictable, continuous shifts, future research may explore even more complex non-stationary environments where the "evolving index" is a multi-dimensional manifold of change.

Summary updated

BibTeX
@inproceedings{zeng2023foresee,
  author = {Qiuhao Zeng and Wei Wang and Fan Zhou and Charles Ling and Boyu Wang},
  title = {{Foresee What You Will Learn: Data Augmentation for Domain Generalization in Non-stationary Environment}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2023},
  doi = {10.1609/aaai.v37i9.26320},
}
Figure