Solving zero-sum games with multiplicative weights #
Let M : I → J → ℝ be the loss matrix of a finite zero-sum game with entries in [0, 1]: the row
player pays M i j. Run multiplicative weights on the rows with learning rate ε / 2, where the
loss vector of round t is the column M · (col t) of a column col t that best responds to the
current distribution (bestResponse). After T ≥ 4 ln n / ε ^ 2 rounds, with n = card I
[AroraHazanKale2012, §3.2, Theorem 3.1], [FS99]:
- the average of the learner's distributions (
averageProb) pays at mostv + εagainst every column and the empirical distribution of the columns played (empirical) collects at leastv - εagainst every row, wherevis the value of the game (mw_bestResponse_approx_optimal); - the average payoff
(1 / T) ∑ t, ⟨p t, M · (col t)⟩lies in[v, v + ε](averagePayoff_mem_Icc); - the average distribution pays at most the guarantee of the empirical column distribution plus
ε(sum_averageProb_mul_le_sum_empirical_mul_add), for every row and column, with no reference tov.
This is an algorithmic minimax theorem. The last inequality shows min_p max_j ≤ max_q min_i + ε
for every ε > 0 without the exact minimax theorem, and it gives an explicit approximate form of
Convexity.StdSimplex.exists_forall_sum_le_of_forall_exists_sum_le
(sum_averageProb_mul_le_add_of_forall_exists_sum_le). The value v is that of the exact minimax
theorem (Cslib.Probability.IsMinimaxValue, Cslib.Probability.exists_isMinimaxValue).
The theorems take the best-response property of the columns as a hypothesis, so they apply to any
best-response oracle; bestResponsePlay is one, defined by choice (bestResponsePlay_spec), and
bestResponsePlay_approx_optimal is the result for it with T = ⌈4 ln n / ε ^ 2⌉, the number of
rounds of [AroraHazanKale2012, proof of Theorem 3.1].
[AroraHazanKale2012, §3.2, proof of Theorem 3.1] proves all three bounds: the average payoff bound
is their (3.5), the empirical column bound is derived from (3.5), and the bound for the average
row strategy is their footnote 1 (their main text uses the distribution of the best single round
instead). They note that the algorithm and the result are those of [FS99], whose
proof of convergence is different. [AHK12] apply Corollary 2.2 against an optimal
row strategy p*. Here Theorem 2.1 (mw_regret_le) is applied against each single row i, and
the comparison is with the payoff of i against the empirical column distribution. This avoids
p* and gives the inequality without v above; the ε-optimality bounds then follow from it and
the defining properties of the value (IsMinimaxValue.exists_le, IsMinimaxValue.exists_ge).
Main definitions #
Cslib.MachineLearning.OnlineLearning.Experts.averageProb: the average of the learner's distributions.Cslib.MachineLearning.OnlineLearning.Experts.empirical: the empirical distribution of a sequence.Cslib.MachineLearning.OnlineLearning.Experts.bestResponse: a best response of the column player.Cslib.MachineLearning.OnlineLearning.Experts.bestResponsePlay: the columns of multiplicative weights against best responses.
Main results #
Cslib.MachineLearning.OnlineLearning.Experts.sum_averageProb_mul_le_sum_empirical_mul_add: the approximate minimax inequality.Cslib.MachineLearning.OnlineLearning.Experts.averagePayoff_mem_Icc: the average payoff approximates the value [AroraHazanKale2012, (3.5)].Cslib.MachineLearning.OnlineLearning.Experts.mw_bestResponse_approx_optimal: the average row strategy and the empirical column strategy areε-optimal [AroraHazanKale2012, Theorem 3.1].Cslib.MachineLearning.OnlineLearning.Experts.sum_averageProb_mul_le_add_of_forall_exists_sum_le: an algorithmic form of the minimax theorem.Cslib.MachineLearning.OnlineLearning.Experts.bestResponsePlay_approx_optimal: Theorem 3.1 of [AHK12] forbestResponsePlaywithT = ⌈4 ln n / ε ^ 2⌉rounds.
References #
The empirical distribution of the first T entries of the sequence col.
The average is nonnegative if the averaged distributions are.
A weighted sum against the average weights equals the average of the individual weighted sums. For a positive horizon and probability weights, this gives the expected payoff under the average distribution.
The expectation of f under the empirical distribution is the average of f along the
sequence.
The empirical distribution is nonnegative.
The empirical distribution of T > 0 entries is a distribution.
A best response of the column player to the row distribution p: a column maximizing the
expected loss ∑ i, p i * M i j of the row player.
bestResponse M p maximizes the row player's expected loss under p.
The column played in round t when multiplicative weights with learning rate η plays the
rows against best responses: the column that best responds to the current distribution.
bestResponsePlay best responds to the learner's distribution in every round.
The approximate minimax inequality: for a loss matrix with entries in [0, 1],
0 < ε ≤ 1 and T > 0 rounds with ε ^ 2 T ≥ 4 ln n, if every column col t best responds to
the distribution of multiplicative weights with learning rate ε / 2, then against every column
j the average distribution pays at most ε more than every row i pays against the empirical
distribution of the columns.
Multiplicative weights against best responses approximates the value
[AroraHazanKale2012, (3.5)]: under the hypotheses of
sum_averageProb_mul_le_sum_empirical_mul_add, the average payoff
(1 / T) ∑ t, ⟨p t, M · (col t)⟩ lies in [v, v + ε], where v is the value of the game.
Multiplicative weights solves zero-sum games [AroraHazanKale2012, Theorem 3.1],
[FS99]: under the hypotheses of sum_averageProb_mul_le_sum_empirical_mul_add,
the average distribution of the row player pays at most v + ε against every column, and the
empirical distribution of the columns collects at least v - ε against every row, where v is
the value of the game.
An algorithmic minimax theorem: under the hypothesis of
Convexity.StdSimplex.exists_forall_sum_le_of_forall_exists_sum_le (against every mixed column
strategy some row pays at most c) and the hypotheses of
sum_averageProb_mul_le_sum_empirical_mul_add, the explicit average distribution of
multiplicative weights pays at most c + ε against every column.
Multiplicative weights solves zero-sum games [AroraHazanKale2012, Theorem 3.1], for the
best-response oracle bestResponsePlay: for a game with n ≥ 2 rows, entries in [0, 1] and
value v, and 0 < ε ≤ 1, after T = ⌈4 ln n / ε ^ 2⌉ rounds of multiplicative weights with
learning rate ε / 2 against best responses, the average row distribution pays at most v + ε
against every column, and the empirical column distribution collects at least v - ε against
every row.