Swap regret and the Blum–Mansour reduction #
A learner that plays the distribution p t against the losses ℓ t has swap regret at most R
if, for every swapping function δ : ι → ι,
∑ t, ∑ i, p t i * ℓ t i ≤ ∑ t, ∑ i, p t i * ℓ t (δ i) + R: replacing every play of i by
δ i saves at most R ([BM07a], §2; [Rou13], Lecture 18,
Definition 1.2). Constant swapping functions recover external regret, the benchmark of
hedge_regret_le; swap regret is stronger, and it is the notion whose dynamics converge to
correlated rather than coarse correlated equilibria ([BM07a], Theorem 3).
Blum and Mansour reduce swap regret to external regret ([BM07a], §3;
[Rou13], Lecture 18, Theorem 2.1). Run one external-regret algorithm per expert.
In round t, copy j proposes a distribution, the row q t j of a matrix q t. The learner
plays a stationary vector p t ᵥ* q t = p t and charges copy j the scaled losses
p t j * ℓ t. Stationarity makes the learner's loss the sum of the losses the copies see, and
copy j's external regret against expert δ j covers the deviation j ↦ δ j. So the swap
regret is at most the sum of the copies' regrets (swap_regret_le_sum_regret,
[BM07a], Theorem 5). The theorem assumes only stationarity and the copies' regret
bounds, so it applies to any external-regret algorithms.
With Hedge copies (blumMansourWeight) and the stationary vectors Matrix.stationaryVec, the
learner (blumMansourProb) has swap regret at most η T + n ln n / η for losses in [-1, 1]
(blumMansour_swap_regret_le). Copy j's second-order term is at most η ∑ t, p t j, so the
second-order terms of all copies sum to at most η T. The learning rate η = √(n ln n / T) gives
swap regret at most 2 √(T n ln n) once T ≥ n ln n (blumMansour_swap_regret_le_sqrt), the
O(√(T N log N)) bound of [BM07a], Corollary 7.
Main definitions #
Cslib.MachineLearning.OnlineLearning.Experts.blumMansourWeight: the weights of the Hedge copies.Cslib.MachineLearning.OnlineLearning.Experts.blumMansourMatrix: the copies' distributions, as the rows of a row-stochastic matrix.Cslib.MachineLearning.OnlineLearning.Experts.blumMansourProb: the learner's distribution, a stationary vector ofblumMansourMatrix.Cslib.MachineLearning.OnlineLearning.Experts.blumMansourLoss: the scaled losses each copy sees.
Main results #
Cslib.MachineLearning.OnlineLearning.Experts.swap_regret_le_sum_regret: the Blum–Mansour reduction for arbitrary copies ([BM07a], Theorem 5).Cslib.MachineLearning.OnlineLearning.Experts.blumMansourProb_congr: the learner is online.Cslib.MachineLearning.OnlineLearning.Experts.blumMansour_swap_regret_le: swap regret with Hedge copies.Cslib.MachineLearning.OnlineLearning.Experts.blumMansour_swap_regret_le_sqrt: swap regret2 √(T n ln n)with the tuned learning rate ([BM07a], Corollary 7).
References #
The Blum–Mansour reduction [BlumMansour2007, Theorem 5]. Let the learner play p t, a
stationary vector of the matrix q t whose row j is the distribution of copy j, and let copy
j see the losses p t j * ℓ t. If copy j has regret at most R j against every expert, then
the learner has swap regret at most ∑ j, R j: for every swapping function δ,
∑ t, ⟨p t, ℓ t⟩ ≤ ∑ t, ∑ i, p t i * ℓ t (δ i) + ∑ j, R j.
Hedge copies #
The weights of the Hedge copies in the Blum–Mansour algorithm with learning rate η:
blumMansourWeight η ℓ t j i is the weight that copy j gives expert i in round t. Copy
j sees the losses ℓ t scaled by the learner's probability of j, the j-th entry of a
stationary vector of the copies' normalized weights.
The distribution of the Blum–Mansour learner in round t: the chosen stationary vector of
blumMansourMatrix.
The losses copy j sees: the loss vector ℓ t scaled by the learner's probability of j.
Copy j sees the loss ℓ t i of expert i scaled by the learner's probability of j.
Every copy starts with weight 1 on every expert.
Copy j multiplies the weight of expert i by the Hedge factor of its scaled loss.
Copy j is Hedge run on the losses blumMansourLoss η ℓ j.
Row j of blumMansourMatrix is the distribution of Hedge on the losses copy j sees.
The copies' distributions form a row-stochastic matrix.
The learner's probabilities are nonnegative.
The learner plays a probability distribution.
The learner's probabilities are at most 1.
The learner's distribution is stationary for the copies' distributions.
The copies' weights in round t depend only on the losses before round t.
The learner's distribution in round t depends only on the losses before round t: the
Blum–Mansour learner is an online algorithm.
Swap regret of the Blum–Mansour algorithm with Hedge copies: for losses in [-1, 1]
and 0 < η ≤ 1, for every swapping function δ,
∑ t, ⟨p t, ℓ t⟩ ≤ ∑ t, ∑ i, p t i * ℓ t (δ i) + η T + n ln n / η.
Tuned swap regret of the Blum–Mansour algorithm [BlumMansour2007, Corollary 7]: for
n ≥ 2 experts, losses in [-1, 1] and T ≥ n ln n rounds, Hedge copies with learning rate
η = √(n ln n / T) give swap regret at most 2 √(T n ln n).