Estimating piecewise polynomial trends in time series is typically an offline task, making it difficult to apply to real-time forecasting. This paper introduces Ada-VAW, a novel online learning algorithm that leverages wavelet theory to detect trend changes dynamically. The algorithm achieves mathematically near-optimal dynamic regret for forecasting sequences with higher-order smoothness, bridging the gap between batch estimation and online prediction.
The Challenge of Online Trend Estimation
In time series analysis, identifying the underlying "trend" is a crucial first step. These trends are often modeled as piecewise polynomials—sequences that are mostly linear or quadratic but occasionally undergo slope changes. In offline settings, methods like Trend Filtering work by penalizing the $k$-th order Total Variation (TV) of the sequence.
However, real-world forecasting (e.g., stock prices or server payloads) is inherently online. You must predict the next value using only past data. Existing online algorithms, such as Online Gradient Descent (OGD), struggle to track higher-order piecewise polynomial trends optimally. Furthermore, the authors prove that any "linear forecaster" (like standard ARIMA or exponential smoothing) is mathematically limited when the smoothness of the data varies over time. This necessitates a non-linear, adaptive strategy.
The Ada-VAW Algorithm
The Adaptive Vovk Azoury Warmuth (Ada-VAW) forecaster combines two major mathematical frameworks:
- The VAW Forecaster: An optimal algorithm for online polynomial regression. If a trend is a stable polynomial, VAW predicts it with high accuracy.
- CDJV Wavelets: To handle piecewise changes, the algorithm must identify "change points." Ada-VAW uses the Discrete Wavelet Transform (DWT) as a change-point detector.
The algorithm partitions time into bins. Inside a bin, it uses VAW for predictions while simultaneously computing the DWT of the observation history. Wavelets are highly sensitive to sudden changes in a signal's derivatives. When the energy of denoised wavelet coefficients exceeds a specific threshold, the algorithm assumes the polynomial trend has broken, triggers a "restart," and begins a new bin.
The "Packing" Strategy
Standard wavelet transforms require data lengths to be a power of 2, often achieved through zero-padding. The authors discovered that standard padding artificially inflates higher-order TV distance, ruining theoretical guarantees. They introduced a novel "packing" strategy that splits data into power-of-2 segments without padding, preserving the sequence's natural smoothness.
Key Results and Minimax Optimality
The primary contribution of the paper is proving that Ada-VAW achieves a dynamic regret of $\tilde{O}(n^{\frac{1}{2k+3}} C_n^{\frac{2}{2k+3}})$, where $n$ is the time horizon, $k$ is the polynomial degree, and $C_n$ is the Total Variation budget.
As shown in the table above, Ada-VAW matches the theoretical lower bound, meaning no algorithm can fundamentally perform better. Crucially, it achieves this optimal rate without needing to know the variation budget $C_n$ ahead of time, a property known as adaptivity. The algorithm is also shown to be optimal for broader function classes, including discrete Sobolev and Holder classes.
Limitations and Future Work
While theoretically powerful, Ada-VAW has a computational complexity of $O(n^2)$. This is slower than the $O(n \log n)$ run-time achievable for simpler piecewise constant ($k=0$) cases, due to the complex structure of higher-order CDJV wavelets. Additionally, the base algorithm requires the user to specify the TV order $k$. To address this, the authors propose a "meta-policy" in the appendix that runs multiple instances of Ada-VAW in parallel for different orders and uses Exponentially Weighted Averages to select the best one dynamically.
Summary updated