Optimization, Learning, and Games with Predictable Sequences
Alexander Rakhlin, Karthik Sridharan
Introduction
Recently, no-regret algorithms have received increasing attention in a variety of communities, including theoretical computer science, optimization, and game theory . The wide applicability of these algorithms is arguably due to the black-box regret guarantees that hold for arbitrary sequences. However, such regret guarantees can be loose if the sequence being encountered is not “worst-case”. The reduction in “arbitrariness” of the sequence can arise from the particular structure of the problem at hand, and should be exploited. For instance, in some applications of online methods, the sequence comes from an additional computation done by the learner, thus being far from arbitrary.
One way to formally capture the partially benign nature of data is through a notion of predictable sequences . We exhibit applications of this idea in several domains. First, we show that the Mirror Prox method , designed for optimizing non-smooth structured saddle-point problems, can be viewed as an instance of the predictable sequence approach. Predictability in this case is due precisely to smoothness of the inner optimization part and the saddle-point structure of the problem. We extend the results to Hölder-smooth functions, interpolating between the case of well-predictable gradients and “unpredictable” gradients.
Online Learning with Predictable Gradient Sequences
Let us describe the online convex optimization (OCO) problem and the basic algorithm studied in . Let be a convex set of moves of the learner. On round , the learner makes a prediction and observes a convex function on . The objective is to keep regret
small for any . Let be a -strongly convex function w.r.t. some norm on , and let . Suppose that at the beginning of every round , the learner has access to , a vector computable based on the past observations or side information. In this paper we study the Optimistic Mirror Descent algorithm, defined by the interleaved sequence
where is the Bregman Divergence with respect to and is a sequence of step sizes that can be chosen adaptively based on the sequence observed so far. The method adheres to the OCO protocol since is available at the beginning of round , and becomes available after the prediction is made. The sequence will be called primary, while – secondary. This method was proposed in for , and the following lemma is a straightforward extension of the result in for general :
where is such that and .
When applying the lemma, we will often use the simple fact that
In particular, by setting , we obtain the (unnormalized) regret bound of , which is by choosing optimally. Since this choice is not known ahead of time, one may either employ the doubling trick, or choose the step size adaptively:
with . Then regret of the Optimistic Mirror Descent algorithm is upper bounded by
These results indicate that tighter regret bounds are possible if one can guess the next gradient by computing . One such case arises in offline optimization of a smooth function, whereby the previous gradient turns out to be a good proxy for the next one. More precisely, suppose we aim to optimize a function whose gradients are Lipschitz continuous: for some . In this optimization setting, no guessing of is needed: we may simply query the oracle for the gradient and set . The Optimistic Mirror Descent then becomes
which can be recognized as the Mirror Prox method, due to Nemirovski . By smoothness, . Lemma 1 with Eq. (3) and immediately yields a bound
which implies that the average satisfies , a known bound for Mirror Prox. We now extend this result to arbitrary -Hölder smooth functions, that is convex functions such that for all .
where is such that .
This result provides a smooth interpolation between the rate at (that is, no predictability of the gradient is possible) and the rate when the smoothness structure allows for a dramatic speed up with a very simple modification of the original Mirror Descent.
Structured Optimization
In this section we consider the structured optimization problem
where is of the form with convex for every and concave for every . Both and are assumed to be convex sets. While itself need not be smooth, it has been recognized that the structure can be exploited to improve rates of optimization if the function is smooth . From the point of view of online learning, we will see that the optimization problem of the saddle point type can be solved by playing two online convex optimization algorithms against each other (henceforth called Players I and II).
Specifically, assume that Player I produces a sequence by using a regret-minimization algorithm, such that
and Player II produces with
where and . By adding (4) and (5), we have
which sandwiches the previous sequence of inequalities up to the sum of regret rates and implies near-optimality of and .
Suppose both players employ the Optimistic Mirror Descent algorithm with, respectively, predictable sequences and , -strongly convex functions on (w.r.t. ) and on (w.r.t. ), and fixed learning rates and . Let and denote the primary sequences of the players while let denote the secondary. Then for any ,
where and are such that and , and .
The proof of Lemma 4 is immediate from Lemma 1. We obtain the following corollary:
and .
Let , . Suppose both players employ Optimistic Mirror Descent with and , where and are the secondary sequences updated by the two algorithms, and with step sizes . Then
As revealed in the proof of this corollary, the negative terms in (7), that come from an upper bound on regret of Player I, in fact contribute to cancellations with positive terms in regret of Player II, and vice versa. Such a coupling of the upper bounds on regret of the two players can be seen as leading to faster rates under the appropriate assumptions, and this idea will be exploited to a great extent in the proofs of the next section.
Zero-sum Game and Uncoupled Dynamics
The notions of a zero-sum matrix game and a minimax equilibrium are arguably the most basic and important notions of game theory. The tight connection between linear programming and minimax equilibrium suggests that there might be simple dynamics that can lead the two players of the game to eventually converge to the equilibrium value. Existence of such simple or natural dynamics is of interest in behavioral economics, where one asks whether agents can discover static solution concepts of the game iteratively and without extensive communication.
More formally, let be a matrix with bounded entries. The two players aim to find a pair of near-optimal mixed strategies such that is close to the minimax value , where is the probability simplex over actions. Of course, this is a particular form of the saddle point problem considered in the previous section, with . It is well-known (and follows immediately from (6)) that the players can compute near-optimal strategies by simply playing no-regret algorithms . More precisely, on round , the players I and II “predict” the mixed strategies and and observe and , respectively. While black-box regret minimization algorithms, such as Exponential Weights, immediately yield convergence rates, Daskalakis et al asked whether faster methods exist. To make the problem well-posed, it is required that the two players are strongly uncoupled: neither nor the number of available actions of the opponent is known to either player, no “funny bit arithmetic” is allowed, and memory storage of each player allows only for constant number of payoff vectors. The authors of exhibited a near-optimal algorithm that, if used by both players, yields a pair of mixed strategies that constitutes an -approximate minimax equilibrium. Furthermore, the method has a regret bound of the same order as Exponential Weights when faced with an arbitrary sequence. The algorithm in is an application of the excessive gap technique of Nesterov, and requires careful choreography and interleaving of rounds between the two non-communicating players. The authors, therefore, asked whether a simple algorithm (e.g. a modification of Exponential Weights) can in fact achieve the same result. We answer this in the affirmative. While a direct application of Mirror Prox does not yield the result (and also does not provide strong decoupling), below we show that a modification of Optimistic Mirror Descent achieves the goal. Furthermore, by choosing the step size adaptively, the same method guarantees the typical regret if not faced with a compliant player, thus ensuring robustness.
In Section 4.1, we analyze the “first-order information” version of the problem, as described above: upon playing the respective mixed strategies and on round , Player I observes and Player II observes . Then, in Section 4.2, we consider an interesting extension to partial information, whereby the players submit their moves but only observe the real value . Recall that in both cases the matrix is not known to the players.
Consider the following simple algorithm. Initialize and to be uniform distributions, set and proceed as follows:
On round , Player I performs while simultaneously Player II performs
Let , , . If both players use above algorithm with, respectively, and , and the adaptive step sizes
respectively, then the pair is an -approximate minimax equilibrium. Furthermore, if only one player (say, Player I) follows the above algorithm, her regret against any sequence of plays is
In particular, this implies the worst-case regret of in the general setting of online linear optimization.
We remark that (9) can give intermediate rates for regret in the case that the second player deviates from the prescribed strategy but produces “stable” moves. For instance, if the second player employs a mirror descent algorithm (or Follow the Regularized Leader / Exponential Weights method) with step size , one can typically show stability . In this case, (9) yields the rate for the first player. A typical setting of for the second player still ensures the regret for the first player.
Let us finish with a technical remark. The reason for the extra step of “mixing in” the uniform distribution stems from the goal of having an adaptive and robust method that still attains regret if the other player deviates from using the algorithm. If one is only interested in the dynamics when both players cooperate, this step is not necessary, and in this case the extraneous factor disappears from the above bound, leading to the convergence. On the technical side, the need for the extra step is the following. The adaptive step size result of Corollary 2 involves the term which is potentially infinite for the negative entropy function . It is possible that the doubling trick or the analysis of Auer et al (who encountered the same problem for the Exponential Weights algorithm) can remove the extra factor while still preserving the regret minimization property. We also remark that is small when is instead the -norm; hence, the use of this regularizer avoids the extraneous logarithmic in factor while still preserving the logarithmic dependence on and . However, projection onto the simplex under the -norm is not as elegant as the Exponential Weights update.
2 Partial Information
We now turn to the partial (or, zero-th order) information model. Recall that the matrix is not known to the players, yet we are interested in finding -optimal minimax strategies. On each round, the two players choose mixed strategies and , respectively, and observe . Now the question is, how many such observations do we need to get to an -optimal minimax strategy? Can this be done while still ensuring the usual no-regret rate?
The specific setting we consider below requires that on each round , the two players play four times, and that these four plays are -close to each other (that is, for ). Interestingly, up to logarithmic factors, the fast rate of the previous section is possible even in this scenario, but we do require the knowledge of the number of actions of the opposing player (or, an upper bound on this number). We leave it as an open problem the question of whether one can attain the -type rate with only one play per round.
Let , , , let be small enough (e.g. exponentially small in ), and let . If both players use above algorithms with the adaptive step sizes
respectively, then the pair is an
-approximate minimax equilibrium. Furthermore, if only one player (say, Player I) follows the above algorithm, her regret against any sequence of plays is bounded by
We leave it as an open problem to find an algorithm that attains the -type rate when both players only observe the value upon drawing pure actions from their respective mixed strategies . We hypothesize a rate better than is not possible in this scenario.
Approximate Smooth Convex Programming
In this section we show how one can use the structured optimization results from Section 3 for approximately solving convex programming problems. Specifically consider the optimization problem
where is a convex set and each is an -smooth convex function. Let the optimal value of the above optimization problem be given by , and without loss of generality assume is known (one typically performs binary search if it is not known). Define the sets and . The convex programming problem in (10) can now be reformulated as
This problem is in the saddle-point form, as studied earlier in the paper. We may think of the first player as aiming to minimize the above expression over , while the second player maximizes over a mixture of constraints with the aim of violating at least one of them.
Fix . Assume there exists such that and for every , . Suppose each is -Lipschitz over . Consider the solution
We then have that satisfies all constraints and is -approximate, that is
Lemma 8 tells us that using the predictable sequences approach for the two players, one can obtain an -approximate solution to the smooth convex programming problem in number of iterations at most order . If (reps. ) is the time complexity for single update of the predictable sequence algorithm of Player I (resp. Player 2), then time complexity of the overall procedure is
We now apply the above result to the problem of finding Max Flow between a source and a sink in a network, such that the capacity constraint on each edge is satisfied. For simplicity, consider a network where each edge has capacity (the method can be easily extended to the case of varying capacity). Suppose the number of edges in the network is the same order as number of vertices in the network. The Max Flow problem can be seen as an instance of a convex (linear) programming problem, and we apply the proposed algorithm for structured optimization to obtain an approximate solution.
For the Max Flow problem, the sets and are given by sets of linear equalities. Further, if we use Euclidean norm squared as regularizer for the flow player, then projection step can be performed in time using conjugate gradient method. This is because we are simply minimizing Euclidean norm squared subject to equality constraints which is well conditioned. Hence . Similarly, the Exponential Weights update has time complexity as there are order constraints, and so overall time complexity to produce approximate solution is given by , where is the number of iterations of the proposed procedure.
Once again, we shall assume that we know the value of the maximum flow (for, otherwise, we can use binary search to obtain it).
Applying the procedure for smooth convex programming from Lemma 8 to the Max Flow problem with the flow, the time complexity to compute an -approximate Max Flow is bounded by
This time complexity matches the known result from , but with a much simpler procedure (gradient descent for the flow player and Exponential Weights for the constraints). It would be interesting to see whether the techniques presented here can be used to improve the dependence on to or better while maintaining the dependence. While the result of has the improved dependence, the complexity in terms of is much worse.
Discussion
We close this paper with a discussion. As we showed, the notion of using extra information about the sequence is a powerful tool with applications in optimization, convex programming, game theory, to name a few. All the applications considered in this paper, however, used some notion of smoothness for constructing the predictable process . An interesting direction of further research is to isolate more general conditions under which the next gradient is predictable, perhaps even when the functions are not smooth in any sense. For instance one could use techniques from bundle methods to further restrict the set of possible gradients the function being optimized can have at various points in the feasible set. This could then be used to solve for the right predictable sequence to use so as to optimize the bounds. Using this notion of selecting predictable sequences one can hope to derive adaptive optimization procedures that in practice can provide rapid convergence.
Acknowledgements: We thank Vianney Perchet for insightful discussions. We gratefully acknowledge the support of NSF under grants CAREER DMS-0954737 and CCF-1116928, as well as Dean’s Research Fund.
References
Proofs
Any update of the form satisfies for any
Combining, is upper bounded by
where in the last step we used strong convexity: for any , . Summing over yields, for any ,
Appealing to convexity of ’s completes the proof. ∎
Let us re-work the proof of Lemma 1 for the case of a changing . Eq. (15) and (16) are now replaced by
Summing over yields, for any ,
Using this step size in Equation (20) and defining , is upper bounded by
where we used (3) with and dropped one of the positive terms. The last two terms can be upper bounded as
Let and . Then by Lemma 1 and by Hölder smoothness,
We can re-write the middle term in the upper bound as
by Hölder’s inequality with conjugate powers and . We further upper bound the last term using AM-GM inequality as
Setting yields an upper bound of
Using and the smoothness assumption yields
As in the proof of Lemma 3, we use Hölder inequality to further upper bound by
Setting we get an upper bound of
Finally picking step size as we conclude that
Let and, respectively, . These functions are strongly convex with respect to norm on the respective flat simplex. We first upper bound regret of Player I, writing as a generic observation vector, later to be chosen as , and as a generic predictable sequence, later chosen to be . Observe that . Let be a vertex of the simplex. Then
We conclude that is upper bounded by
Using strong convexity, the term involving the four divergences can be further upper bounded by
Using the above in the bound on and summing over , and using the fact that the step size are non-increasing, we conclude that
where is an upper bound on the largest KL divergence between and any that has all coordinates at least . Since is a vertex of the flat simplex, we may take . Also note that and so for large enough. Hence we conclude that a bound on regret of Player I is given by
With this, the upper bound on Player I’s unnormalized regret is
Adding the regret of the second player who uses step size , the overall bound on the suboptimality, as in Eq. (6), is
By over-bounding with for , we obtain an upper bound
Since each entry of the matrix is bounded by ,
and similar inequality holds for the other player too. This leads to an upper bound of
Similarly we also have that . Using these in Eq. (28) we conclude that the overall bound on the suboptimality is
This proves the result for the case when both players adhere to the prescribed algorithm. Now, consider the case when Player I adheres, but we do not make any assumption about Player II. Then, from Eq. (27) and Eq. (3) with , the upper bound on, , the unnormalized regret of Player I’s is
Now, using the definition of the stepsize,
Using the same line of proof as the one used to arrive at Eq. (27) in Proposition 6, we get that the unnormalized regret for Player I can be upper bounded as,
Since , we upper bound the above by
the upper bound on Player I’s unnormalized regret is
We first consider the case when both players play the prescribed algorithm. In this case, a similar regret bound holds for Player II. Adding the regret of the second player who uses step size , the overall bound on the suboptimality, as in Eq. (6), is
Similarly we have . Hence using this, we can bound the sub-optimality as
Using the fact that we further bound sub-optimality by
Hence we can conclude that sub-optimality is bounded by
Just as in the proof of Proposition 6 we have and and so overall we get the bound on sub-optimality :
Player II deviates from algorithm :
Now let us consider the case when the Player 2 deviates from the prescribed algorithm. In this case, note that starting from Eq. (30) and simply dropping the negative term we get,
As we noted earlier, and so,
Further noting that and we conclude that
Noting that the constraints are all -strongly smooth and that the objective is linear for the maximizing player, we can apply Lemma 4 to the optimization problem with and the entropy function to obtain that
(Strictly speaking we have used a version of Lemma 4 where the first term coming from (12) in Lemma 1 is kept as a linear term.) Here, is the vector of the values of the constraints for . We then write
where we used the fact that each . Combining, we get an upper bound of
Picking such that we get an upper bound of
Of course, for this choice to be possible we need to pick and such that . Therefore, picking and we obtain
Now since is such that we can conclude that
Observe that for an optimal solution to the original optimization problem (10) we have that and . Thus,
We conclude that is a solution that attains the optimum value and almost satisfies the constraints. Now we have from the lemma statement that is such that and for every , . Hence by convexity of , we have that for every ,
Thus for and we can conclude that and that all the constraints are satisfied. That is for every , . Also note that
and, hence, is an approximate maximizer, that is
Thus we obtain a -optimal solution in the multiplicative sense which concludes the proof. ∎
As mentioned, for both players, the time to perform each step of the optimistic mirror descent in the Max Flow problem is . Now further note that Max Flow is a linear programming problem and so we are ready to apply Lemma 8. Specifically for we use the flow which is in (though not in ) and note that for we have that . Applying Lemma 8 we get that number of iterations we need to reach an approximate solution is given by
Since each iteration has time complexity , the overall complexity of the algorithm is given by