Introduction
In modern machine learning, the reliability of a model is often as important as its accuracy. Distribution-free uncertainty quantification, particularly conformal prediction, has emerged as a robust framework for providing rigorous guarantees on predictive performance. However, these guarantees typically rest on the assumption of exchangeability—the premise that calibration data and future test data are drawn from the same stationary distribution.
In real-world applications such as financial forecasting, climate modeling, and real estate valuation, this assumption is frequently violated by temporal drift. When distributions shift over time, traditional prediction sets can become either dangerously overconfident or excessively wide. This paper introduces an Adaptive Rolling Window (ARW) strategy designed to automatically calibrate prediction sets in the presence of unknown and potentially varying temporal drift.
The Challenge: The Bias-Variance Trade-off in Quantile Estimation
When data is non-stationary, practitioners often employ a "rolling window" approach, utilizing only the most recent $k$ observations for calibration. The selection of the window size $k$ presents a fundamental bias-variance trade-off:
- Small $k$: Minimizes bias by focusing on the most recent data, but introduces high variance due to the limited sample size.
- Large $k$: Reduces variance through more samples, but introduces high bias as the older data may no longer represent the current distribution.
Historically, selecting $k$ has required manual tuning or fixed decay heuristics, neither of which can adapt to environments where the rate of drift changes dynamically.
Methodology: Adaptive Rolling Windows (ARW)
The researchers propose a method to reduce predictive inference to a problem of adaptive quantile estimation. The ARW algorithm is inspired by the Goldenshluger-Lepski method, a classical technique in non-parametric statistics for bandwidth selection.
1. Bias-Variance Decomposition
The authors demonstrate that the error in quantile estimation under drift can be decomposed into a bias term (representing the distribution shift over the window) and a variance term (representing stochastic error).
2. The Bias Proxy
Because the true distribution shift is unknown, the ARW algorithm employs a "bias proxy." This is calculated by comparing the empirical distribution of a candidate window against all smaller nested sub-windows. A significant discrepancy between these distributions serves as a signal that the drift is high, necessitating a shorter look-back window.
3. Selection Logic
The algorithm evaluates a range of window sizes—typically powers of two ($1, 2, 4, \dots$) for computational efficiency—and selects the size that minimizes the sum of the estimated bias proxy and a theoretical variance bound. This allows the model to remain "model-free," treating the underlying predictive engine as a black box.
Theoretical Guarantees
A key contribution of this work is the provision of Probably Approximately Correct (PAC) coverage. Unlike methods that only guarantee average coverage over many trials, ARW aims for training-conditional coverage. This ensures that for the specific calibration data available at any given time, the resulting prediction set is highly likely to contain the true value. Furthermore, the authors establish an oracle inequality, proving that the ARW algorithm performs nearly as well as an "oracle" that knows the optimal window size in advance.
Empirical Evaluation
The method was tested across synthetic environments and complex real-world datasets:
- Synthetic Data: In Gaussian mean estimation and 5-dimensional linear regression tasks, ARW demonstrated the ability to expand its window during stationary periods to minimize noise and rapidly contract during periods of jagged, high-frequency drift.
- Dubai Housing Dataset: Using 16 years of apartment sales data (over 211,000 samples), the researchers compared ARW against fixed-window and weighted benchmarks. ARW achieved the target 90% coverage with narrower average interval widths than traditional weighting methods. Notably, it matched the performance of the best-performing fixed-window size without requiring the prior knowledge needed to select that size.
Conclusion and Future Directions
The Adaptive Rolling Window approach provides a principled, automated solution for predictive inference under temporal drift. By optimizing the bias-variance trade-off on the fly, it maintains valid coverage and efficiency without manual intervention.
While the current implementation utilizes "split conformal prediction," future work may extend this framework to more data-efficient techniques like "full conformal" or "Jackknife+" methods. Additionally, while ARW adapts to drift, it does not explicitly model structural patterns like seasonality; integrating domain-specific trends could further refine the precision of the generated prediction sets.
Summary updated