Abstract
We investigate model assessment and selection in a changing environment, by synthesizing datasets from both the current time period and historical epochs. To tackle unknown and potentially arbitrary temporal distribution shift, we develop an adaptive rolling window approach to estimate the generalization error of a given model. This strategy also facilitates the comparison between any two candidate models by estimating the difference of their generalization errors. We further integrate pairwise comparisons into a single-elimination tournament, achieving near-optimal model selection from a collection of candidates. Theoretical analyses and numerical experiments demonstrate the adaptivity of our proposed methods to the non-stationarity in data.
Introduction
In real-world applications such as financial forecasting, housing market analysis, or social media trend prediction, the fundamental assumption of independent and identically distributed (i.i.d.) data often fails. This phenomenon, known as temporal distribution shift or concept drift, poses a significant challenge for machine learning practitioners. When the underlying data distribution evolves over time, historical performance metrics become unreliable indicators of future success.
This paper addresses two critical hurdles in non-stationary environments:
- Assessment: Accurately estimating a model's current generalization error when historical data may be stale.
- Selection: Identifying the optimal model from a candidate pool when the "best" model changes as the environment shifts.
Standard techniques like cross-validation are often inadequate here as they typically treat all data points with equal weight, failing to account for the temporal relevance of samples.
Methodology
Adaptive Rolling Window (ARW) for Assessment
The core contribution is the Adaptive Rolling Window (ARW) approach. The primary challenge in mean estimation under drift is balancing the bias-variance trade-off regarding the window size $k$:
- Small Window: Low bias (data is fresh) but high variance (few samples).
- Large Window: Low variance (many samples) but high bias (includes stale data).
The authors adapt the Goldenshluger-Lepski (GL) method to dynamically select the optimal window size $k$ based on the data itself. By calculating proxies for bias and variance, the algorithm automatically shrinks the window during abrupt changes and expands it during stable periods.
Single-Elimination Tournament for Selection
To select the best model among $m$ candidates, the authors propose a tournament structure. Rather than assessing each model in isolation, the ARW method is applied to the difference in loss between pairs of models. This pairwise comparison is more robust as it can cancel out common noise, leading to "fast rates" of convergence. These comparisons are then organized into a single-elimination tournament to efficiently identify the top performer.
Experimental Evaluation
The proposed methods were evaluated across three diverse scenarios:
- Synthetic Data: Simulating sudden "Change Points" and gradual "Bounded Drift."
- arXiv Topic Frequency: Estimating the proportion of "Deep Learning" papers over 200 weeks, representing a slowly drifting environment.
- Dubai House Price Prediction: Analyzing 16 years of apartment sales, an environment characterized by abrupt, unpredictable market volatility.
Key Insights
- Oracle Property: The ARW method performs nearly as well as an "Oracle" that knows the optimal window size in advance, providing strong theoretical guarantees without requiring prior knowledge of the shift pattern.
- Pairwise Superiority: Applying adaptive windows to the difference in losses is more effective than separate assessments, focusing the algorithm on the performance gap.
- Structural Agnosticism: Unlike change-point detection methods that assume infrequent shifts, this approach handles arbitrary shifts at every time step.
Results and Discussion
In stationary environments, ARW matches the performance of fixed-window benchmarks by correctly identifying that a large window is optimal. In highly non-stationary settings, such as the Dubai housing data, ARW significantly outperforms fixed windows, which are either too slow to react to crashes or too noisy. Furthermore, in regression settings, the tournament selection achieves a near-optimal "fast rate" of convergence ($1/B_{t,k}$), allowing for rapid identification of the best model as data arrives.
While powerful, the method currently focuses on a finite model pool and does not explicitly model seasonality or long-term trends. Future work may explore extending these techniques to infinite model classes or integrating temporal structures to further leverage historical data.
Summary updated