Overview
The Follow the Regularized Leader (FTRL) algorithm is a foundational framework in online learning, but it notoriously struggles in dynamic environments. Because FTRL makes decisions by minimizing the sum of all past gradients, it effectively "remembers" too much past data, making it slow to adapt to sudden changes.
This paper challenges the long-held assumption that FTRL is inherently unsuited for dynamic environments. By introducing a "history pruning" mechanism that selectively forgets past gradients, the authors propose a new variant called Optimistic Follow the Pruned Leader (OptFPRL). This approach allows FTRL to achieve state-of-the-art, data-dependent dynamic regret bounds that can even drop to zero when provided with perfect predictions of future costs.
The Problem: FTRL's "Lazy" Inertia
In Online Convex Optimization (OCO), an algorithm makes a sequence of decisions before observing the associated costs. In dynamic environments, the optimal decision (the "comparator") shifts over time. Performance is measured by dynamic regret: the difference between the algorithm's accumulated cost and the cost of these shifting optimal decisions.
Historically, there are two main algorithmic families for OCO:
- Online Mirror Descent (OMD): Uses only its current position to make the next update, making it "greedy" and agile.
- Follow the Regularized Leader (FTRL): Makes decisions by minimizing the sum of all past gradients.
This massive accumulated history makes standard FTRL "lazy." If the environment suddenly shifts, FTRL's backlog of past gradients acts like inertia, preventing the algorithm from quickly changing direction. Prior research often blamed FTRL's projection style for this failure, but this paper identifies the true bottleneck: the decoupling of the algorithm's state (the accumulated gradients) from its actual iterates, allowing the state to grow infinitely large.
The Solution: Optimism and History Pruning
To resolve FTRL's memory problem without losing its theoretical elegance, the authors introduce OptFPRL, which modifies standard FTRL in two critical ways:
- Optimism (Using Predictions): The algorithm incorporates predictions of the next cost function into its update step. Better predictions directly translate to lower regret.
- History Pruning: Instead of blindly summing all past gradients, OptFPRL monitors its "unconstrained" update. If the accumulated gradients push the algorithm's next choice outside the boundaries of the allowed decision set (forcing a projection back onto the boundary), the algorithm takes this as a cue to prune its state.
Mathematically, pruning is achieved by adding a specific vector from the "normal cone" of the feasible set to the gradient sum. Practically, this replaces the massive accumulated state with a much smaller, mathematically equivalent state. It effectively "forgets" the redundant history that was merely pushing the iterate against the boundary wall, synchronizing the state and the action.
Key Insights and Theoretical Guarantees
OptFPRL offers several major theoretical and practical advantages over prior methods:
- Bounded State: By pruning the history when the algorithm hits a boundary, the state vector's size remains bounded by the algorithm's regularization parameters. This keeps FTRL agile.
- No "Cyclic Dependency": Previous optimistic OMD algorithms suffered from a catch-22 where they needed to know the gradient at the next step to make the next step. OptFPRL avoids this because it does not require linearizing the predictions.
- State-of-the-Art Regret Bounds: OptFPRL achieves a dynamic regret bound of $\mathcal{O}((1 + P_T)\sqrt{E_T})$, where $P_T$ is the path length (how much the optimal decision moves) and $E_T$ is the cumulative prediction error.
- Zero Regret with Perfect Predictions: The analysis reveals that the penalty for a highly dynamic environment ($P_T$) is directly multiplied by the prediction error. If predictions are perfect ($E_T = 0$), the dynamic regret drops to exactly zero, regardless of how chaotic the environment is.
- Minimax Optimality: When the path length $P_T$ is known in advance, the algorithm matches the minimax optimal rate of $\mathcal{O}(\sqrt{(1+P_T)T})$ even if all predictions fail entirely.
Limitations and Future Work
While OptFPRL successfully rehabilitates FTRL for dynamic environments, the authors note a few limitations. In highly jittery environments (e.g., high-frequency cost switches with alternating large and small magnitudes), the pruning mechanism can make the algorithm too agile, forcing overly frequent adjustments that lead to higher regret in those specific edge cases. Additionally, if the path length $P_T$ is unknown, the algorithm requires an online estimation strategy that introduces a corrective penalty term into the bounds.
Future work may explore more flexible pruning strategies—such as controlling the magnitude of the pruning or adding new conditions for when to prune. This could allow researchers to design algorithms that smoothly interpolate between fully "lazy" and fully "agile" behaviors, adapting perfectly to the volatility of the environment.
Summary updated