A Simple and Unified Method for Gradient-Variation Regret
Hang Yu, Peng Zhao
Abstract
Gradient-variation online learning has attracted increasing attention for its connections to game theory and optimization. It has been studied in both non-stationary online learning, which aims to minimize dynamic regret against time-varying comparator sequences, and universal online learning, which seeks to adapt to unknown loss curvature. Prior work obtained gradient-variation bounds using different techniques tailored to each setting. We propose a simple and unified method based on surrogate losses with a quadratic penalty on decision movement, yielding gradient-variation bounds in both settings. For non-stationary online learning, the method induces an optimistic-to-gradient-variation reduction, enabling a broad class of algorithms to match the rate established by Zhao et al. (2024). For universal online learning, it yields a simple algorithm that matches the optimal universal regret bounds of Yan et al. (2024) while relaxing the extended smoothness assumption. Finally, we apply our method to online games and improve on existing guarantees.
Online convex optimization (OCO) provides a versatile framework for studying sequential interactions between a learner and an environment (Hazan, 2016; Orabona, 2019). At each round t∈[T], the learner selects a decision xt from a compact convex set X⊆Rd, while the environment simultaneously chooses a convex loss function ft:X→R. The learner then incurs loss ft(xt) and observes the gradient ∇ft(xt), aiming to optimize the game-theoretical performance measure known as static regret (Cesa-Bianchi and Lugosi, 2006), which is defined as
REGT=t=1∑Tft(xt)−x∈Xmint=1∑Tft(x).(1.1)
For OCO, the minimax optimal regret bounds are O(T) for convex functions (Zinkevich, 2003), O(λ1logT) for λ-strongly convex functions (Hazan, 2016), and O(αdlogT) for α-exp-concave functions (Yang et al., 2014). Beyond worst-case minimax optimality, prior work studied regret bounds that adapt to problem-dependent hardness. Among these problem-dependent quantities, gradient variation (Chiang et al., 2012; Yang et al., 2014) is of particular interest. It quantifies the cumulative variation in gradients between consecutive loss functions:
VT≜t=2∑Tx∈Xsup∥∇ft(x)−∇ft−1(x)∥22.(1.2)
Adapting to gradient variation improves regret bounds to O(VT), O(λ1logVT), and O(αdlogVT) for convex, λ-strongly convex, and α-exp-concave loss functions, respectively. Gradient-variation
adaptivity also helps bridge adversarial and stochastic optimization (Sachs et al., 2022; Chen et al., 2024), enables fast rates in games (Rakhlin and Sridharan, 2013b; Syrgkanis et al., 2015), and facilitates acceleration in smooth offline optimization (Cutkosky, 2019; Kavis et al., 2019; Zhao et al., 2025b), among other applications. Recent work further explored gradient variation in more challenging settings, including non-stationary online learning and universal online learning.
Non-stationary Online Learning. Static regret (1.1) measures performance against a fixed comparator x∗∈argminx∈X∑t=1Tft(x) and becomes an inadequate measure in non-stationary environments where the optimal decision may change over time. To address this limitation, prior work studied dynamic regret (Zinkevich, 2003), which compares the learner's performance with a sequence of time-varying comparators {ut}t=1T and is defined as follows:
A desirable dynamic regret bound adapts to the comparator path length PT≜∑t=2T∥ut−ut−1∥2, which measures cumulative changes in the comparator sequence and is unknown to the learner. Zhang et al. (2018) obtained the minimax-optimal dynamic regret bound O(T(1+PT)), which was later strengthened for smooth functions to O((1+VT+PT)(1+PT)) (Zhao et al., 2024).
Universal Online Learning. Classical approaches require prior knowledge of the curvature of loss functions to select suitable algorithms and obtain the corresponding regret guarantees. Such information, however, may be unavailable in practice. Universal online learning aims to develop a single algorithm that adapts to unknown curvature and matches the regret guarantees achievable when the curvature is known (van Erven and Koolen, 2016; Wang et al., 2020; Zhang et al., 2022; Yan et al., 2023, 2024). van Erven and Koolen (2016) initiated the study of universal online learning by developing a single algorithm with regret bounds of O(αdlogT) for α-exp-concave functions and O(T) for convex functions. Wang et al. (2020) subsequently obtained O(λ1logT) for λ-strongly convex functions while retaining optimal regret guarantees for convex and exp-concave functions. Exploiting smoothness, Zhang et al. (2022) refined minimax guarantees to optimal gradient-variation bounds for strongly convex and exp-concave functions. Yan et al. (2023) further obtained a regret of O(VTlogVT) bound for convex functions. Under an extended smoothness assumption, Yan et al. (2024) achieved optimal universal gradient-variation bounds for all three classes of functions.
Our Contributions. In this work, we propose a simple and unified method for gradient-variation regret bounds in these challenging settings. For non-stationary online learning, our method yields a black-box reduction that converts optimistic regret bounds into gradient-variation bounds. This reduction enables a broad class of algorithms to achieve O((1+VT+PT)(1+PT)), matching the rate established by Zhao et al. (2024). For universal online learning, our method simplifies algorithm design and yields an algorithm that matches the optimal gradient-variation bounds of Yan et al. (2024) while relaxing their extended smoothness assumption. These bounds are O(VT), O(αdlogVT), and O(λ1logVT) for convex, α-exp-concave, and λ-strongly convex functions, respectively. Table 1 compares these guarantees with prior work. Notably, our algorithm preserves the “Regret bounded by Variation in Utilities” (RVU) property, which is crucial for fast convergence in games, while requiring minimal smoothness assumptions. We further apply our universal regret guarantee to facilitate fast convergence in online games. Under honest play, the sum of the two players’ regrets is O(1) in both bilinear and strongly convex–strongly concave games, matching
Table 1: Comparison of universal regret guarantees. The regret columns show bounds for strongly convex, exp-concave, and convex loss functions using O(⋅) notation. We list universal guarantees in terms of the gradient variation VT or the time horizon T. The “Regret bounded by Variation in Utilities” (RVU) column indicates whether the method supports this property for fast convergence in online games. In the Smoothness column, “No” means no smoothness assumption, “Yes” means smoothness on X, and “Extended” means smoothness on a larger domain containing X.
Works
Regret Bounds
RVU
Smoothness
Strongly Convex
Exp-concave
Convex
Zhang et al. (2022)
O(logVT)
O(dlogVT)
O(T)
No
Yes
Yan et al. (2023)
O(logVT)
O(dlogVT)
O(VTlogVT)
Yes
Yes
Yan et al. (2024)
O(logVT)
O(dlogVT)
O(VT)
No
Extended
Ours
O(logVT)
O(dlogVT)
O(VT)
Yes
Yes
Yan et al. (2023). Under dishonest play, the individual regret guarantee in bilinear games improves from O(TlogT) in Yan et al. (2023) to O(T).
Organization. The remainder of the paper is organized as follows. Section 2 introduces the preliminaries and reviews existing approaches to gradient-variation bounds. Section 3 presents our unified method for deriving gradient-variation regret bounds. Section 4 establishes a black-box reduction for non-stationary online learning. Section 5 develops a simple universal algorithm with optimal gradient-variation regret bounds. Section 6 applies these universal guarantees to online games. Finally, Section 7 concludes the paper. All proofs are deferred to the appendices.
2. Preliminaries
This section introduces the notation, assumptions, and definitions used throughout the paper and reviews two existing approaches to deriving gradient-variation regret bounds.
2.1. Notation, Assumptions, and Definitions
We use ∥⋅∥ for ∥⋅∥2 by default. For v∈Rd, let vi denote its i-th coordinate. For a strictly convex and differentiable function ψ:X→R, the induced Bregman divergence is defined as Dψ(x,y)≜ψ(x)−ψ(y)−⟨∇ψ(y),x−y⟩. We write a≲b or a=O(b) when there exists a constant C<∞ such that a≤Cb. We use O(⋅) notation to highlight the dependence on T and VT while treating iterated logarithmic factors as constants (Luo and Schapire, 2015).
Assumption 1 (Boundedness). The domain X⊆Rd has diameter at most D, so ∥x−y∥≤D for all x,y∈X. For every t∈[T] and x∈X, the loss gradient satisfies ∥∇ft(x)∥≤G.
Assumption 2 (Smoothness). Each loss function ft is L-smooth on X, meaning that ∥∇ft(x)−∇ft(y)∥≤L∥x−y∥ for all x,y∈X.
The domain boundedness and gradient boundedness are standard assumptions for regret minimization in OCO (Shalev-Shwartz, 2007; Hazan, 2016). The smoothness assumption is necessary for first-order algorithms to achieve the gradient-variation regret (Chiang et al., 2012).
In the following, we provide formal definitions of strong convexity and exp-concavity.
Definition 1 (Strong Convexity). A function f(⋅) is λ-strongly convex if f(x)−f(y)≤⟨∇f(x),x−y⟩−2λ⋅∥x−y∥2 holds for any x,y∈X.
Definition 2 (Exp-concavity). A function f(⋅) is α-exponentially concave (abbreviated as exp-concave) if f(x)−f(y)≤⟨∇f(x),x−y⟩−2α⋅⟨∇f(x),x−y⟩2 holds for any x,y∈X.
The formal definition of β-exp-concavity is that exp(−βf(⋅)) is concave. Under Assumption 1, β-exp-concavity implies Definition 2 with α=21⋅min{1/(4GD),β} (Hazan, 2016, Lemma 4.3). For clarity and simplicity, we adopt Definition 2 as an alternative definition of exp-concavity.
2.2. Review of Existing Approaches
A standard approach to deriving gradient-variation regret bounds first controls regret in terms of the empirical gradient variation
VˉT≜t=2∑T∥∇ft(xt)−∇ft−1(xt−1)∥2.
To express the resulting bound in terms of VT, existing analyses decompose VˉT into a gradient-variation term and a term involving the learner's decision trajectory. We summarize two types of analysis adopted in prior work for this decomposition: Correction-type and Bregman-type (Chiang et al., 2012; Rakhlin and Sridharan, 2013b; Syrgkanis et al., 2015; Zhao et al., 2020; Yan et al., 2023, 2024; Xie et al., 2024; Zhao et al., 2024, 2025a, 2026).
where the first inequality follows from the AM–GM inequality, and the second uses L-smoothness and the definition of VT (1.2). To obtain a regret bound in terms of VT alone, the key is to cancel the positive movement term ∑t=2T∥xt−xt−1∥2 in Eq. (2.1) with a matching negative term.
For static regret, optimistic online mirror descent (OOMD) provides the required negative movement terms when the loss function class and curvature parameters are known (Chiang et al., 2012). With a suitable configuration for each class, it achieves optimal gradient-variation regret bounds for convex, strongly convex, and exp-concave loss functions. These negative movement terms are also a key component of the RVU property, which enables fast convergence in online games (Rakhlin and Sridharan, 2013a; Syrgkanis et al., 2015). The cancellation required by Correction-type analysis is more difficult in universal online learning. Yan et al. (2023) made progress in this direction using a three-layer ensemble with cascaded corrections, but their universal regret bounds remain suboptimal. For dynamic regret, Zhao et al. (2024) designed surrogate losses for the base learners in a meta-base ensemble to cancel the movement term and establish a gradient-variation dynamic regret bound. Across the different settings discussed above, these works shared the Correction-type decomposition but used different mechanisms to obtain the negative terms required for cancellation.
Bregman-type Analysis For a fixed comparator u∈X, Bregman-type decomposes VˉT by inserting the gradients ∇ft(u) and ∇ft−1(u):
where the first inequality follows from the AM–GM inequality and the second from Theorem 2.1.5 of Nesterov (2018). Convexity yields matching negative Bregman-divergence terms in the regret decomposition that can cancel the positive terms in Eq. (2.2). Using this analysis, Yan et al. (2024) achieved optimal universal regret bounds for all three function classes. This analysis has two limitations. First, applying Theorem 2.1.5 of Nesterov (2018) requires L-smoothness on an extended domain X+containing X, a stronger condition than Assumption 2. Second, the negative Bregman-divergence terms do not directly support fast convergence in online games (Yan et al., 2024).
3. A General Method for Negative Movement
Our goal is to control the positive movement term in Eq. (2.1) while minimizing regret. This motivates a Lagrangian viewpoint: we treat cumulative movement ∑t=2T∥xt−xt−1∥2 as an auxiliary budget constraint and incorporate a quadratic penalty into the original loss function, yielding the surrogate loss functions
fˉt(x)≜ft(x)+2γ∥x−xt−1∥2,(3.1)
where γ>0 is a parameter to be specified and x0=x1. The quadratic penalty discourages movement from the preceding decision and induces a negative movement term in the analysis. Taking convex functions as an example, we have the following property:
Proposition 1. Under Assumption 1, let ft be convex for every t∈[T]. Let vt≜∇ft(xt)+γ(xt−xt−1) be the corrected gradient. For any γ>0 and every decision sequence x1:T∈XT and comparator sequence u1:T∈XT, we always have
where the second equality follows from the three-point identity 2⟨a−b,a−c⟩=∥a−c∥2−∥b−c∥2+∥a−b∥2, for a,b,c∈Rd and the last term of Eq. (3.2) is bounded by O(PT).
Note that we can generalize Proposition 1 to general Bregman divergence in Appendix A.2.
The negative movement in Eq. (3.2) plays an important role in optimistic online learning. In addition to a gradient sequence {gt}t=1T, an optimistic online learning algorithm has access to a prediction mt+1 of the next gradient gt+1, called an optimism. By Proposition 1, any algorithm with a standard optimistic regret bound scaling with ∑t∥gt−mt∥2 satisfies the “Regret bounded by Variation in Utilities” (RVU) property when applied to the surrogate losses in Eq. (3.1) with optimism mt=gt−1. This property is defined as follows:
Definition 3 (RVU Property). An algorithm with a parameter η>0 satisfies the RVU property if there exist constants α,β,ω>0 such that the regret REGT on decision sequence {xt}t=1T and gradient sequence {gt}t=1T is bounded by
A Toy Example. We illustrate our method with Optimistic-Adapt-ML-Prod (Wei et al., 2016). Its original optimistic regret bound lacks the negative movement term required by the RVU property and therefore does not directly establish this property. Our gradient correction introduces the required term through Proposition 1. Specifically, with the previous gradient as the optimism, Theorem 3.4 of Wei et al. (2016) gives the regret bound REGT≤O(∑t∥gt−gt−1∥∞2). At each round t, we update the algorithm using the corrected gradient vt=gt+32η1(xt−xt−1) and set the optimism to mt=vt−1. Combining the original optimistic regret bound with Proposition 1 yields REGT≤O(∑t∥gt−gt−1∥∞2−η1∑t∥xt−xt−1∥12), establishing the RVU property for the modified algorithm. Thus, our method extends the applicability of the RVU property to optimistic algorithms for which a negative movement term was not previously established.
In the next two sections, we further illustrate how the negative movement term in Proposition 1 plays a key role in two settings: non-stationary online learning and universal online learning.
In the non-stationary setting, Proposition 1 reduces the task of obtaining a gradient-variation dynamic regret bound to designing an algorithm with an optimistic dynamic regret bound.
Theorem 1 (Optimistic-to-Gradient-Variation Reduction). Under Assumption 1 and 2, let u1:T be a comparator sequence in X and let PT≜∑t=2T∥ut−ut−1∥ be the path length. Suppose that the functions {ft}t=1T are convex and that an online algorithm A satisfies the following bound for any gradient sequence {gt}t=1T and optimism sequence {mt}t=1T:
Algorithm 1 Dynamic Regret with Corrected Gradient
Input: G,D,L,T>0.
1: Initialize: Instantiate As as Sword.optimism without correction terms.1 Set x1∈X.
2: for t=1 to T do
3: Play xt, incur loss ft(xt), and observe ∇ft(xt).
4: Construct gt=∇ft(xt)+L(xt−xt−1) and optimism mt+1 in Eq. (4.2).
5: Provide gt and mt+1 to the meta-learner and all base learners of As.
6: Obtain the next decision xt+1 from As.
7: end for
A satisfies the gradient-variation dynamic regret bound:
D−REGT(u1:T)≤O((1+PT)(1+PT+VT)).
The proof is given in Appendix B.1, where we apply the optimistic dynamic regret bound in Eq. (4.1) to the linearized regret in Eq. (3.2) and then use the negative movement term in Eq. (3.2) to cancel the resulting positive terms, yielding the desired bound. Theorem 1 offers two advantages over the constrained version of the optimistic-to-gradient-variation reduction in Zhao et al. (2026, Theorem 1). First, our reduction requires smoothness only on X, whereas theirs requires smoothness on an extended domain X+ containing X or an unbounded domain. Second, our reduction preserves the RVU property, whereas theirs does not.
Conveniently, the Sword.optimism algorithm in Zhao et al. (2024) already satisfies the condition in Theorem 1. Sword.optimism uses an online ensemble framework with a two-layer meta-base architecture to adapt to an unknown comparator sequence. A diverse set of base learners is deployed to explore the environment, while a meta-algorithm adaptively tracks the best-performing base learner. Theorem 9 of Zhao et al. (2024) guarantees that Sword.optimism achieves the optimistic dynamic regret bound in Eq. (4.1). We present Sword.optimism with the corrected gradient and optimism in Algorithm 1 and provide the proof in Appendix B.1.
Corollary 1. Under Assumption 1 and 2, suppose that ft is convex for every t∈[T]. Then, for every comparator sequence u1:T∈XT, Algorithm 1 guarantees
D−REGT(u1:T)≤O((1+PT+VT)(1+PT)).
Corollary 1 matches the gradient-variation dynamic regret established by Sword++ in Zhao et al. (2024) with a simpler analysis. Sword++ obtained the negative movement by combining negative terms from meta and base regret bounds, whereas we obtain it directly using the corrected gradient.
5. Gradient-Variation Universal Online Learning
For static regret, obtaining negative movement terms remains the main technical challenge in achieving gradient-variation bounds. When the function class is known, negative movement terms are relatively easy to obtain. Prior analyses (Chiang et al., 2012; Yang et al., 2014) can therefore establish the optimal gradient-variation bounds directly, without relying on Proposition 1.
Zhao et al. (2024) introduced correction terms to obtain negative terms in the meta algorithm's analysis. We directly use the negative terms in Proposition 1, avoiding the need for such corrections.
In the universal setting, obtaining the required negative movement term is more challenging. To adapt to unknown function classes and curvature, universal online learning algorithms typically use a two-layer architecture: N base learners are maintained for strongly convex, exp-concave, and convex losses, while a meta learner tracks the best-performing base learner (Zhang et al., 2022; Yan et al., 2023, 2024). Specifically, for λ-strongly convex and α-exp-concave losses, these methods constructed candidate pools Hsc and Hexp for the unknown parameters λ and α, respectively, using a geometric grid:
Hexp=Hsc≜{T1,T2,T22,⋯,T2n−1},
where n=⌈log2T⌉+1=O(logT) is the number of candidates in each pool. One base learner is instantiated for each candidate λi or αi, with the final base learner, indexed by N, assigned to convex losses. Let xt,i denote the decision of base learner i at round t, and let pt,i denote its weight assigned by the meta-algorithm. The meta decision is xt=∑i=1Npt,ixt,i.
For the meta algorithm, Zhao et al. (2025a) observed that a second-order optimistic regret bound with negative stability terms is crucial for achieving gradient-variation universality. Specifically, for each base learner i, the meta regret should satisfy
where rt,i≜⟨gt,xt−xt,i⟩ is the instantaneous meta regret relative to the i-th base learner, and mt,i is the corresponding optimism. For strongly convex and exp-concave base learners, setting mt,i=0 allows the negative curvature terms to offset the meta regret. For example, for α-exp-concave functions, the negative curvature term −4α∑trt,i2 yields ∑trt,i2−4α∑trt,i2≤O(1). For convex functions, no negative curvature terms are available, so the negative stability term −∑t=2T∥pt−pt−1∥12 plays a key role in controlling the meta regret. To obtain the required guarantee, Yan et al. (2023) designed a complex two-layer meta algorithm based on MSMWC-MASTER (Chen et al., 2021). However, their regret bound for convex losses still contained an extra logVT factor relative to the optimal rate.
In Proposition 1, the negative movement term in Eq. (3.2) can directly cancel the meta regret, without requiring additional negative terms in the meta regret bound. This simplifies the design of the meta algorithm: any algorithm with a second-order optimistic regret bound can serve as the meta algorithm. In what follows, we use Optimistic-Adapt-ML-Prod (Wei et al., 2016) as the meta algorithm, for which deriving negative stability terms in the regret bound was previously difficult.
Meta Learner. Optimistic-Adapt-ML-Prod updates the weight pt+1 as follows:
Following Yan et al. (2024), we construct the base learners as follows:
Base Learner. The base learners update their decisions {xt,i}i=1N using OOMD with their respective surrogate losses and optimisms. We construct the surrogate loss for each function class as follows:
Here, λi and αi are selected from the candidate pools Hsc and Hexp, respectively. For convex loss functions, we run optimistic online gradient descent (OOGD) on the surrogate loss function ht,Nc(⋅) with optimism ∇ht−1,Nc(xt−1). For strongly convex and exp-concave loss functions, we use OOGD and optimistic online Newton step (OONS), respectively, with surrogate loss functions ht,isc(⋅) and ht,iexp(⋅) and corresponding optimisms ∇ht−1,isc(xt−1,i) and ∇ht−1,iexp(xt−1,i). For detailed update rules of differently configured OOMD, we refer readers to Appendix C.1.
Following Section 3, we use the corrected gradient gt=∇ft(xt)+γ(xt−xt−1) with γ=G/D. We denote the strongly convex and exp-concave base learners by Bisc and Biexp, respectively, with corresponding index sets Isc and Iexp. The convex base learner is denoted by Bc. We summarize our algorithm in Algorithm 2 and present its universal guarantee in Theorem 2. The corresponding proof is provided in Appendix C.2.
Theorem 2. Under Assumption 1 and 2, Algorithm 2 achieves the following universal guarantee:
We highlight the advantages of Theorem 2 in the following three aspects:
① Regret Bounds. Theorem 2 improves the regret bound for convex losses in Yan et al. (2023) from O(VTlogVT) to the optimal rate O(VT), while retaining optimal logarithmic regret bounds for strongly convex and exp-concave losses under the same assumptions. We also match the optimal rates of Yan et al. (2024) while removing their assumption of smoothness on an extended domain.
② Efficiency. Algorithm 2 uses only O(logT) base learners and one gradient query per round. Compared with Yan et al. (2023), it reduces the number of base learners from O(log2T) to O(logT). It matches Yan et al. (2024) in both the number of base learners and gradient queries, while reducing computational overhead: our choice of optimism avoids their one-dimensional fixed-point computation, which requires O(logT) iterations per round.
③ Analysis. Our analysis uses a simple corrected gradient to obtain the negative movement term in Eq. (3.2) directly. This term allows us to cancel the meta regret without requiring additional negative stability terms in the meta regret bound, avoiding the analysis of cascaded correction terms in Yan et al. (2023). It also supports simpler optimism, removing the need to analyze the one-dimensional fixed-point problem in Yan et al. (2024).
6. Application to Fast Convergence in Online Games
In this section, we apply Theorem 2 to online games and provide a detailed case showing how our negative movement term in Proposition 1 can be used to facilitate fast convergence in games.
We study a two-player zero-sum game of the form minx∈Xmaxy∈Yf(x,y). The x-player minimizes the payoff, while the y-player maximizes it. To demonstrate universality, we consider two classes of games: bilinear games with f(x,y)=x⊤Ay, and strongly convex-strongly concave games in which f is λ-strongly convex in x and λ-strongly concave in y. At each round t, the players choose their strategies simultaneously and then observe their respective loss gradients ∇xf(xt,yt) and −∇yf(xt,yt). We call the setting honest when both players run the same agreed algorithm in a distributed manner, and dishonest when at least one player deviates from the agreed protocol. In this setting, we use the following standard boundedness and smoothness conditions.
Assumption 3 (Strategy sets and payoff gradients). The strategy sets X and Y are nonempty compact convex sets with diameter at most D, and both partial gradients ∇xf(x,y) and ∇yf(x,y) have norm at most G. For all feasible pairs (x,y) and (x′,y′), the payoff satisfies
The pioneering work of Syrgkanis et al. (2015) showed that, in the honest setting, the sum of players' regrets is bounded by O(1) when each player runs an algorithm satisfying the RVU property defined in Definition 3. This bound enables efficient computation of Nash equilibria. Specifically, for bilinear games, setting the learning rates to ηx=ηy=L2βω in the RVU bounds yields
Table 2: Comparison of our regret guarantees with existing results. Honest play is measured by the sum of the players’ regrets, and dishonest play by each player’s individual regret. Both bilinear and strongly convex–strongly concave games are considered.
Games
Syrgkanis et al. (2015)
Zhang et al. (2022)
Yan et al. (2023)
Ours
Honest
Bilinear
O(1)
O(T)
O(1)
O(1)
Strongly convex–strongly concave
O(1)
O(λ−1logT)
O(1)
O(1)
Dishonest
Bilinear
O(T)
O(T)
O(TlogT)
O(T)
Strongly convex–strongly concave
O(T)
O(λ−1logT)
O(λ−1logT)
O(λ−1logT)
where the first step uses the smoothness of the payoff function. In the second step, the negative movement term in the RVU property plays a crucial role in cancellation.
For Algorithm 2, the negative movement term in Proposition 1 ensures the RVU property, allowing the algorithm to be applied directly to this setting. In both the honest and dishonest settings, Algorithm 2 achieves state-of-the-art performance. We provide the proof in Appendix D.
Theorem 3. Under Assumption 3, for both bilinear and strongly convex–strongly concave games, Algorithm 2 enjoys O(1) regret summation in the honest case:
REGTx+REGTy≤O(1).
In the dishonest case, the algorithm achieves individual regret bounds of O(T) for bilinear games and O(λ−1logT) for strongly convex–strongly concave games.
Table 2 compares our guarantees with prior work. Under honest play, Theorem 3 matches the O(1) regret sums of Yan et al. (2023) for both game classes, improving upon the corresponding bounds of Zhang et al. (2022). Under dishonest play, it matches the individual regret bounds of Zhang et al. (2022) for both game classes and improves the dishonest-play bound of Yan et al. (2023) from O(TlogT) to O(T) for bilinear games.
7. Conclusion
We propose a simple and unified method for obtaining negative terms in online regret bounds. These terms are key to establishing gradient-variation guarantees and fast convergence in games. In the non-stationary setting, we establish a black-box reduction from optimistic regret bounds to gradient-variation bounds. This reduction enables a broad class of algorithms to recover the gradient-variation dynamic regret guarantee O((1+VT+PT)(1+PT)) established by Zhao et al. (2024). Our method yields a simple and efficient universal algorithm with regret bounds of O(VT),O(αdlogVT), and O(λ1logVT) for convex, α-exp-concave, and λ-strongly convex losses, respectively. It matches the optimal rates of Yan et al. (2024) without their extended smoothness assumption, uses only O(logT) base learners and one gradient query per round, and incurs lower computational cost per round. We further apply the resulting universal guarantee to online games and improve on existing guarantees (Zhang et al., 2022; Yan et al., 2023).
AI-use Statement
The authors developed the idea of introducing a negative movement term with assistance from GPT-6 Astra. Building on this idea, they developed new algorithms for gradient-variation non-stationary online learning and obtained improved results for gradient-variation universal online learning. GPT-6 Astra was also used to assist with reviewing and polishing the manuscript. The authors take full responsibility for the content and correctness of the paper.
References
Nicolò Cesa-Bianchi and Gábor Lugosi. Prediction, Learning, and Games. Cambridge University Press, 2006.
Liyu Chen, Haipeng Luo, and Chen-Yu Wei. Impossible tuning made possible: A new expert algorithm and its applications. In Proceedings of the 34th Conference on Learning Theory (COLT), pages 1216–1259, 2021.
Sijia Chen, Yu-Jie Zhang, Wei-Wei Tu, Peng Zhao, and Lijun Zhang. Optimistic online mirror descent for bridging stochastic and adversarial online convex optimization. Journal of Machine Learning Research, 25(178):1–62, 2024.
Chao-Kai Chiang, Tianbao Yang, Chia-Jung Lee, Mehrdad Mahdavi, Chi-Jen Lu, Rong Jin, and Shenghuo Zhu. Online optimization with gradual variations. In Proceedings of the 25th Annual Conference on Learning Theory (COLT), pages 6.1–6.20, 2012.
Ashok Cutkosky. Anytime online-to-batch, optimism and acceleration. In Proceedings of the 36th International Conference on Machine Learning (ICML), pages 1446–1454, 2019.
Elad Hazan. Introduction to Online Convex Optimization. Foundations and Trends in Optimization, 2(3-4):157–325, 2016.
Ali Kavis, Kfir Y. Levy, Francis R. Bach, and Volkan Cevher. UniXGrad: A universal, adaptive algorithm with optimal guarantees for constrained optimization. In Advances in Neural Information Processing Systems 32 (NeurIPS), pages 6257–6266, 2019.
Haipeng Luo and Robert E. Schapire. Achieving all with no parameters: AdaNormalHedge. In Proceedings of the 28th Annual Conference on Learning Theory (COLT), pages 1286–1304, 2015.
Yurii Nesterov. Lectures on Convex Optimization, volume 137. Springer, 2018.
Francesco Orabona. A modern introduction to online learning. ArXiv Preprint, arXiv:1912.13213, 2019.
Alexander Rakhlin and Karthik Sridharan. Online learning with predictable sequences. In Proceedings of the 26th Conference on Learning Theory (COLT), pages 993–1019, 2013a.
Sasha Rakhlin and Karthik Sridharan. Optimization, learning, and games with predictable sequences. In Advances in Neural Information Processing Systems 26 (NIPS), pages 3066–3074, 2013b.
Sarah Sachs, Hedi Hadiji, Tim van Erven, and Cristóbal Guzmán. Between stochastic and adversarial online convex optimization: Improved regret bounds via smoothness. In Advances in Neural Information Processing Systems 35 (NeurIPS), pages 691–702, 2022.
Shai Shalev-Shwartz. Online Learning: Theory, Algorithms and Applications. PhD thesis, The Hebrew University of Jerusalem, 2007.
Vasilis Syrgkanis, Alekh Agarwal, Haipeng Luo, and Robert E Schapire. Fast convergence of regularized learning in games. In Advances in Neural Information Processing Systems 28 (NIPS), pages 2989–2997, 2015.
Tim van Erven and Wouter M. Koolen. MetaGrad: Multiple learning rates in online learning. In Advances in Neural Information Processing Systems 29 (NIPS), pages 3666–3674, 2016.
Guanghui Wang, Shiyin Lu, and Lijun Zhang. Adaptivity and optimality: A universal algorithm for online convex optimization. In Proceedings of the 35th Conference on Uncertainty in Artificial Intelligence (UAI), pages 659–668, 2020.
Chen-Yu Wei, Yi-Te Hong, and Chi-Jen Lu. Tracking the best expert in non-stationary stochastic environments. In Advances in Neural Information Processing Systems 29 (NIPS), pages 3972–3980, 2016.
Yan-Feng Xie, Peng Zhao, and Zhi-Hua Zhou. Gradient-variation online learning under generalized smoothness. In Advances in Neural Information Processing Systems 37 (NeurIPS), pages 37865–37899, 2024.
Yu-Hu Yan, Peng Zhao, and Zhi-Hua Zhou. Universal online learning with gradient variations: A multi-layer online ensemble approach. In Advances in Neural Information Processing Systems 36 (NeurIPS), pages 37682–37715, 2023.
Yu-Hu Yan, Peng Zhao, and Zhi-Hua Zhou. A simple and optimal approach for universal online learning with gradient variations. In Advances in Neural Information Processing Systems 37 (NeurIPS), pages 11132–11163, 2024.
Tianbao Yang, Mehrdad Mahdavi, Rong Jin, and Shenghuo Zhu. Regret bounded by gradual variation for online convex optimization. Machine Learning, 95(2):183–223, 2014.
Lijun Zhang, Shiyin Lu, and Zhi-Hua Zhou. Adaptive online learning in dynamic environments. In Advances in Neural Information Processing Systems 31 (NeurIPS), pages 1330–1340, 2018.
Lijun Zhang, Guanghui Wang, Jinfeng Yi, and Tianbao Yang. A simple yet universal strategy for online convex optimization. In Proceedings of the 39th International Conference on Machine Learning (ICML), pages 26605–26623, 2022.
Peng Zhao, Yu-Jie Zhang, Lijun Zhang, and Zhi-Hua Zhou. Dynamic regret of convex and smooth functions. In Advances in Neural Information Processing Systems 33 (NeurIPS), pages 12510–12520, 2020.
Peng Zhao, Yu-Jie Zhang, Lijun Zhang, and Zhi-Hua Zhou. Adaptivity and non-stationarity: Problem-dependent dynamic regret for online convex optimization. Journal of Machine Learning Research, 25(98):1–52, 2024.
Peng Zhao, Yu-Hu Yan, Hang Yu, and Zhi-Hua Zhou. Adaptivity and universality: Problem-dependent universal regret for online convex optimization. ArXiv Preprint, arXiv:2511.19937, 2025a.
Yuheng Zhao, Yu-Hu Yan, Kfir Y Levy, and Peng Zhao. Gradient-variation online adaptivity for accelerated optimization with Hölder smoothness. In Advances in Neural Information Processing Systems 38 (NeurIPS), pages 3749–3779, 2025b.
Yuheng Zhao, Andrew Jacobsen, Nicolò Cesa-Bianchi, and Peng Zhao. Gradient-variation regret bounds for unconstrained online learning. In Proceedings of the 39th Annual Conference on Learning Theory (COLT), pages 7062–7104, 2026.
Martin Zinkevich. Online convex programming and generalized infinitesimal gradient ascent. In Proceedings of the 20th International Conference on Machine Learning (ICML), pages 928–936, 2003.
Appendix A. Omitted Details in Section 3
In this section, we provide the proof of Proposition 1 in Appendix A.1 and its extension to general Bregman divergences in Appendix A.2.
A.1. Proof of Proposition 1
Proof. Recall that vt≜∇ft(xt)+γ(xt−xt−1). We have
where the second step follows from the three-point identity 2⟨a−b,a−c⟩=∥a−c∥2−∥b−c∥2+∥a−b∥2, for a,b,c∈Rd, the third step uses the boundedness assumption and the last inequality follows from ∥a∥2−∥b∥2≤∥a+b∥⋅∥a−b∥ for any a,b∈Rd.
A.2. Extension to Bregman Movement
Proposition 2. Under Assumption 1, let ft be convex for every t∈[T] and let ψ be differentiable, convex, and L′-smooth on X. Set x0=x1 and let vt≜∇ft(xt)+γ(∇ψ(xt)−∇ψ(xt−1)) be the corrected gradient. For any γ>0 and every decision sequence x1:T∈XT and comparator sequence u1:T∈XT, we have
where the second equality follows from the Bregman three-point identity ⟨∇ψ(a)−∇ψ(b),a−c⟩=Dψ(c,a)−Dψ(c,b)+Dψ(a,b) for a,b,c∈Rd, the third inequality uses smoothness, and the last inequality uses ∣Dψ(u,x)−Dψ(u′,x)∣≤L′D∥u−u′∥ for all u,u′,x∈X.
Appendix B. Omitted Proofs in Section 4
In this section, we provide the omitted proofs for Theorem 1 and Corollary 1.
B.1. Proof for Theorem 1
Proof. For the first choice of mt in Eq. (4.2), we have
where the last inequality follows from 2ab−a≤b for a,b≥0.
B.2. Proof of Corollary 1
Proof. Setting λ=0 in Theorem 9 of Zhao et al. (2024) shows that Sword.optimism satisfies Eq. (4.1). Applying Theorem 1 then completes the proof.
Appendix C. Omitted Details in Section 5
In this section, we provide the omitted details of the base learners in Algorithm 2 in Appendix C.1 and prove Theorem 2 in Appendix C.2.
C.1. Base Learners of Algorithm 2
Following the conversion stated after Definition 2, we use the effective exp-concavity coefficient α=21min{1/(4GD),β}, where exp(−βft(⋅)) is concave for every t∈[T]. In particular, αGD≤1/8. For the analysis, it suffices to consider λ∈[1/T,1] and α∈[1/T,min{1,1/(8GD)}]. If either parameter is below 1/T, the corresponding logarithmic regret bound does not improve on the trivial O(T) bound, while the general convex regret bound remains applicable. Conversely, if λ,α>1, they can be treated as λ=1 and α=1, which only worsens the regret by an ignorable constant factor.
Then, we construct the candidate pools Hsc and Hexp for the unknown parameters λ and α respectively, using a geometric grid:
Hexp=Hsc≜{T1,T2,T22,⋯,T2n−1},(C.1)
where n=⌈log2T⌉+1=O(logT) is the number of candidates in each pool. One base learner is instantiated for each candidate λi or αi, with the final base learner, indexed by N, assigned to convex losses. Thus, there are N=2n+1=O(logT) base learners in total. We define the best base learner as the one with the right guess of the curvature type and the closest guess of the curvature coefficient. For example, suppose the online functions are α-exp-concave (while this is unknown to the online learner). The best base learner, indexed by i∗, uses a candidate parameter αi∗ satisfying αi∗≤α≤2αi∗.
The base learners below use the corrected gradient gt from Algorithm 2, with ∥gt∥≤H as in the main text. Under Assumption 1, ∥gt∥≤G+γD, which equals 2G when γ=G/D. Let Iexp≜{1,…,n} and Isc≜{n+1,…,2n} be the two curved index sets. Initialize x0=x1,
g0=0, and x1,i=x0,i=x1 for every i∈[N], with h0,i≡0. We write ht,i for the surrogate assigned to base i; in particular, ht,N=ht,Nc for the convex base.
For α-exp-concave functions, we define a group of base learners {Biexp}i∈Iexp, where the i-th base learner runs the algorithm below:
where ψt,i(x)≜21x⊤Ut,ix, Ut,i=(1+2αiH2)Id+8αi∑s=1t−1∇hs,iexp(xs,i)∇hs,iexp(xs,i)⊤, αi is the corresponding element in Hexp, and ht,iexp(⋅) is a surrogate loss function for Biexp, defined as
ht,iexp(x)≜⟨gt,x⟩+4αi⟨gt,x−xt⟩2.
Similarly, for λ-strongly convex functions, we define a group of base learners {Bisc}i∈Isc, where the i-th base learner runs the algorithm below:
where ηt,N=min{D/1+∑s=2t−1∥gs−gs−1∥2,1}. Finally, we summarize the configurations of base learners. Specifically, we deploy
{Bi}i∈[N]≜{Biexp}i∈Iexp∪{Bisc}i∈Isc∪{Bc}
as the total set of base learners.
C.2. Proof of Theorem 2
Proof. Here, we consider any comparator u∈X. We first decompose the regret for the three curvature types, then analyze the meta and base regret separately, and finally combine their bounds. As in Algorithm 2, we use the corrected gradient gt=∇ft(xt)+γ(xt−xt−1), with γ=G/D and ∥gt∥≤H=2G. For simplicity, we write
Here VT is the variation of the corrected gradients; VˉT in Section 2 denotes the variation of the original loss gradients. Under Assumption 2, the same decomposition as in Eq. (2.1) gives
For α-exp-concave functions, choose i⋆∈Iexp with αi⋆≤α≤2αi⋆ and transfer the directional curvature from the original gradient ∇ft(xt) to the corrected gradient gt. The inequality (q−b)2≥q2/2−b2 gives
Meta Regret Analysis. We adopt Optimistic-Adapt-ML-Prod (Wei et al., 2016) as the meta learner and recall its optimistic second-order regret guarantee below.
Lemma 1 (Theorem 3.4 of Wei et al. (2016)). Denote by pt∈ΔN the algorithm's weights, ℓt∈[0,1]N the loss vector, and mt,i∈[−1,1] the optimism available before observing ℓt. The regret of Optimistic-Adapt-ML-Prod with respect to any base learner i∈[N] satisfies
t=1∑Trt,i≤C01+t=1∑T(rt,i−mt,i)2+C2,
where rt,i=⟨pt,ℓt⟩−ℓt,i, C0=logN+log(1+eN(1+log(T+1)))/logN, and C2=41(logN+log(1+eN(1+log(T+1))))+2logN+16logN.
To apply Lemma 1, we define ℓt,i≜21+2HD⟨gt,xt,i−x1⟩ and rewrite Eq. (5.2) and Eq. (5.4) in the following normalized form:
This normalization leaves the meta learner's weight updates and predictions unchanged. Since ∥gt∥≤H and ∥xt,i−x1∥≤D, we have ℓt,i∈[0,1] and mt,i=mt,i/(2HD)∈[−1/2,1/2]. Thus Lemma 1 yields
t=1∑Trt,i≤C0t=1∑T(rt,i−mt,i)2+C1HD,(C.10)
where C1=2C0+2C2=O(logN).
For λ-strongly convex functions, according to Eq. (5.3), we have mt,i∗=0 for the selected strongly convex base learner i∗. By Lemma 1, the meta regret in Eq. (C.6) can be bounded as
Here the first inequality uses rt,i⋆2≤H2∥xt−xt,i⋆∥2, and the second uses the AM–GM inequality. For exp-concave functions, we similarly have mt,i⋆=0 for the selected exp-concave base learner i⋆. By Lemma 1, the meta regret in Eq. (C.8) satisfies
The last step again follows from the AM–GM inequality. The remaining negative terms in these two bounds will cancel the surrogate-dependent terms in the base regret.
For convex functions, Eq. (5.3) gives mt,N=⟨gt−1,xt−1−xt,N⟩. Consequently, the prediction error decomposes as
The additional ST term is absorbed by the negative movement term in Proposition 1.
Base Regret Analysis. For λ-strongly convex functions, when using the update rule Eq. (C.3), following the OOMD analysis used for Eq. (C.9) of Yan et al. (2024), the base regret can be bounded as
For α-exp-concave functions, when using the update rule Eq. (C.2), following the OOMD analysis used for Eq. (C.7) of Yan et al. (2024), the base regret can be bounded as
where the equality uses ∇ht,i∗(xt,i∗)=gt(1−αi∗rt,i∗/2), the first inequality uses the squared triangle inequality, a shift of the summation index, and ∥gt∥≤H, and the last uses Eq. (C.5). Plugging the surrogate's empirical gradient variation into Eq. (C.18), we obtain
For convex functions, when using the update rule Eq. (C.4), following the OOMD analysis in the proof of Lemma 10 of Yan et al. (2023), the base regret can be bounded as
where the equality uses ∇ht,N(x)=gt and the expression for VT, and the inequality uses Eq. (C.5). Plugging the surrogate's empirical gradient variation into Eq. (C.21), we obtain
BASE−REGc≤O(1+VT+ST)≤O(1+VT+ST).(C.23)
Overall Regret Analysis. For λ-strongly convex functions, combining Eq. (C.6), Eq. (C.11), and Eq. (C.17), we obtain
where the last inequality uses log(1+x)≤x and αi∗≤α≤2αi∗.
For convex functions, Eq. (C.14) and Eq. (C.21) give the empirical guarantee
t=1∑T⟨gt,xt−u⟩≤O(VT+ST).(C.24)
Combining this with Eq. (C.9) and Eq. (C.5), and absorbing ST by Young's inequality, gives
REGT≤O(VT+ST)−2γST≤O(VT).(C.25)
Appendix D. Proofs for Section 6
Proof. Let gtx=∇xf(xt,yt)+γ(xt−xt−1) and gty=−∇yf(xt,yt)+γ(yt−yt−1) be the corrected gradients of the two players, with γ=G/D, x0=x1, and y0=y1. Write the empirical gradient variations and cumulative squared movements as
For the dishonest case, the two-player game degenerates to two separate online convex optimization problems. Therefore, the results for both bilinear and strongly-convex-strongly-concave games follow directly from Theorem 2 since VT=O(T).
For the honest case, we focus on the convex-concave game, where f(x,y) is convex in x and concave in y, which subsumes both bilinear and strongly-convex-strongly-concave games. The proof begins by analyzing the regret of player-x, following the structure in Appendix C.2.