Evolving Standardization for Continual Domain Generalization over Temporal Drift

Mixue Xie, Shuang Li, Longhui Yuan, Chi Harold Liu, Zehui Dai

TL;DR

This paper introduces a new problem setting called Continual Domain Generalization over Temporal Drift (CDGTD), where data arrives sequentially and its distribution shifts gradually over time. To tackle this, the authors propose Evolving Standardization (EvoS), a method that uses a multi-scale attention mechanism to predict future feature statistics and normalize data into a common space, effectively "standardizing" away the temporal drift.

The Problem: Beyond Offline and Discrete Shifts

Most machine learning models assume that training and testing data come from the same distribution. When they don't, we encounter a "distribution shift." Traditional Domain Generalization (DG) attempts to solve this by training on multiple source domains simultaneously to find invariant features.

However, standard DG has two major limitations for real-world deployment:

  1. It is Offline: It assumes simultaneous access to all training data from all domains. In reality, data often arrives in a stream (e.g., satellite images captured over years or news headlines published over decades).
  2. It is Discrete: It treats domains as distinct, abrupt shifts (like "Art" vs. "Sketch"). In reality, many shifts are gradual "temporal drifts," such as the slow evolution of fashion trends or the gradual degradation of sensors.

To address these gaps, the authors propose CDGTD. In this setting, a model must learn from a sequence of domains one by one—without re-accessing raw data from old domains—and successfully generalize to unseen future domains.

Methods: Evolving Standardization (EvoS)

The core of the proposed solution is Evolving Standardization (EvoS). Instead of trying to learn a single static model that works everywhere, EvoS learns how the data distribution itself is evolving over time.

EvoS Architecture Overview

1. Multi-scale Attention Module (MSAM)

Inspired by the sequence-modeling power of Transformers, MSAM tracks the mean ($\mu$) and variance ($\sigma$) of features from previous domains, which are stored in a lightweight memory pool.

  • Multi-scale Tracking: It uses sliding windows of different lengths to capture patterns that might occur over various time intervals (e.g., short-term seasonal changes vs. long-term yearly trends).
  • Future Prediction: It predicts the statistics for the current and future domains based on these historical patterns.

2. Feature Standardization

Once the model predicts the $\mu$ and $\sigma$ for a new domain, it standardizes the incoming features using the formula: $z = (f - \mu) / \sigma$. This transforms features from any time point into a "common" normal distribution, making it much easier for a single classifier to process them without being confused by the temporal drift.

3. Adversarial Proxy Training

To prevent the model from "forgetting" old domains or overfitting to the current one, the authors employ adversarial learning. Because storing old raw data is inefficient and often violates privacy, EvoS uses the stored historical $\mu$ and $\sigma$ to sample "proxy" features from past distributions. The model is then trained to ensure the feature encoder produces a shared, domain-agnostic feature space across both current and proxy domains.

Key Results and Insights

The authors evaluated EvoS on five real-world datasets that exhibit temporal drift: Yearbook (portraits over 80 years), fMoW (satellite imagery over 16 years), RMNIST (rotating digits), Huffpost (news headlines), and Arxiv (paper titles).

EvoS consistently outperformed both traditional DG methods and Continual Learning (CL) baselines.

Performance Comparison on Image Datasets
  • Superior Generalization: On the Yearbook and RMNIST datasets, EvoS outperformed the previous state-of-the-art (DRAIN) by over 1% in "OOD worst" accuracy (the accuracy on the most difficult unseen future domain).
  • Robustness in Text: On the Arxiv dataset, which features a massive 172 categories, EvoS showed a significant lead over CL methods like SI and A-GEM, proving it can leverage historical knowledge of drift better than simple regularization techniques.
  • Ablation Success: The authors demonstrated that using multi-scale windows performed better than a single-scale window, confirming that temporal patterns exist at multiple granularities and are worth modeling.

Why EvoS Works

  • Statistics as a Sequence: The most clever insight is treating the parameters of a distribution (mean and variance) as a time series. If the data drifts predictably, the statistics should too.
  • Standardization as a Bridge: By forcing every domain into a standard normal distribution via predicted statistics, the model decouples the "drift" (handled by MSAM) from the "classification" (handled by the final layers).
  • Efficiency over Retraining: Unlike "offline" methods that require retraining on everything when new data arrives, EvoS only needs to update its small attention module and the feature encoder, making it highly suitable for lifelong learning.

Limitations and Future Work

  • Abrupt Shifts: The method relies on the assumption that distributions evolve following a learnable, gradual pattern. If a "black swan" event causes a violent, unpredictable shift in data, the MSAM's predictions might fail.
  • Long-term Prediction: The goal is to generalize to domains "not too far into the future." Predicting statistics for domains decades ahead remains an open and significantly harder challenge.
  • Memory Pool Size: While the memory cost is low (just storing vectors of means and variances), a truly infinite lifelong learning scenario might eventually require a strategy to prune or compress the memory pool.

Summary updated

BibTeX
@inproceedings{xie2023evolving,
  author = {Mixue Xie and Shuang Li and Longhui Yuan and Chi Harold Liu and Zehui Dai},
  title = {{Evolving Standardization for Continual Domain Generalization over Temporal Drift}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2023},
  url = {https://openreview.net/forum?id=5hVXbiEGXB},
}
Figure