On the Dynamic Regret of Following the Regularized Leader: Optimism with History Pruning

Naram Mhaisen, George Iosifidis · OpenReview

Abstract

We revisit the Follow the Regularized Leader (FTRL) framework for Online Convex Optimization (OCO) over compact sets, focusing on achieving robust dynamic regret guarantees. Traditionally, FTRL has been characterized as a "lazy" algorithm, often perceived as inferior to Online Mirror Descent (OMD) in non-stationary environments due to its tendency to accumulate a massive internal state. We challenge this notion by introducing OptFPRL (Optimistic Follow the Pruned Leader). By incorporating optimistic predictions of future costs and a novel "history pruning" mechanism, we demonstrate that FTRL can achieve state-of-the-art dynamic regret bounds. Our analysis reveals that the primary obstacle to FTRL's dynamic performance is not its projection style, but the decoupling of its internal state from its iterates. Pruning synchronizes these components, allowing FTRL to recover the "agility" required for dynamic environments.

Introduction

In Online Convex Optimization (OCO), a learner iteratively selects decisions from a feasible set to minimize a sequence of unknown convex cost functions. While traditional analysis focuses on static regret—the performance gap between the learner and the single best fixed decision in hindsight—real-world applications often demand low dynamic regret. Dynamic regret compares the learner's performance against a sequence of optimal time-varying decisions.

Algorithmic approaches to OCO generally fall into two categories: OMD and FTRL. OMD is often favored in dynamic settings because it is "greedy," updating its current iterate based on the most recent gradient. In contrast, FTRL is "lazy," selecting an iterate that minimizes the sum of all past costs plus a regularizer. This accumulation of history can make FTRL slow to adapt when the environment shifts abruptly. This paper investigates whether FTRL can be modified to match or exceed the dynamic performance of OMD.

The OptFPRL Framework

To overcome the inherent "laziness" of FTRL, we propose the OptFPRL algorithm, which integrates three primary technical components:

1. Optimism

OptFPRL utilizes a "hint" or prediction, denoted as $\tilde{f}_{t+1}$, regarding the upcoming cost function. By incorporating this prediction into the optimization objective, the learner can preemptively adjust its position toward the anticipated optimal point, significantly reducing regret when predictions are accurate.

2. History Pruning

The core innovation of this work is the history pruning mechanism. In standard FTRL, the internal state (the sum of linearized past costs) can grow indefinitely, making the algorithm unresponsive. OptFPRL monitors its "unconstrained" iterate—the point the algorithm would choose if it were not restricted to the feasible set. When this unconstrained iterate falls outside the allowed region, the algorithm "prunes" its history. It replaces the bloated cumulative gradient with a smaller, alternative vector that results in the same decision but allows the algorithm to pivot much faster if the cost direction changes. This effectively synchronizes the algorithm's internal state with its actual iterates.

3. Recursive Regularization

Following the principles of AdaFTRL, OptFPRL employs recursive regularization. Rather than relying on a fixed, worst-case learning rate, the algorithm adaptively sets its regularization based on the "local regret" it has actually experienced. This allows for tighter bounds and better performance in practice.

Key Insights and Theoretical Results

Our analysis provides a new perspective on the geometry of FTRL. We show that FTRL’s failure in dynamic settings is not caused by its projection style, but by the decoupling of its state from its iterates. Pruning acts as a necessary synchronization step.

Dynamic Regret Bounds

OptFPRL achieves a dynamic regret bound of $O((1 + P_T)\sqrt{E_T})$, where $P_T$ represents the path length (the total movement of the optimal comparator sequence) and $E_T$ is the cumulative prediction error. This result is significant for several reasons:

  • Prediction-Modulated Regret: This is the first FTRL variant where the path length is explicitly multiplied by the prediction error. If predictions are perfect ($E_T = 0$), the dynamic regret becomes zero, regardless of how much the environment changes.
  • Minimax Optimality: If the path length $P_T$ is known in advance, OptFPRL achieves the minimax optimal rate of $O(\sqrt{(1+P_T)T})$.

Empirical Evaluation

We evaluated OptFPRL using synthetic numerical experiments across six non-stationary scenarios, including abrupt shifts, multiple shifts, and high-frequency oscillations in a 16-dimensional decision space.

In scenarios featuring abrupt shifts, standard FTRL exhibited significant lag, taking thousands of steps to recover. In contrast, OptFPRL adapted almost instantly, matching the performance of OMD-based approaches. However, the experiments also revealed a fundamental "agility trade-off." In scenarios with high-frequency oscillations and noise, OptFPRL's increased responsiveness caused it to "over-react," leading to slightly higher regret than the more stable, standard FTRL. This suggests that while agility is beneficial for tracking shifts, it can introduce instability in the presence of high-frequency noise.

Conclusion

By introducing history pruning, we demonstrate that FTRL is a viable and powerful framework for dynamic online learning. OptFPRL provides a principled way to interpolate between the stability of traditional FTRL and the agility of OMD. Future work may explore more flexible pruning rules, such as partial pruning, to better balance responsiveness and stability in noisy environments.

Summary updated

BibTeX
@inproceedings{mhaisen2025dynamic,
  author = {Naram Mhaisen and George Iosifidis},
  title = {{On the Dynamic Regret of Following the Regularized Leader: Optimism with History Pruning}},
  booktitle = {International Conference on Machine Learning},
  year = {2025},
  url = {https://openreview.net/forum?id=bikq2MsV0C},
}
Figure