Documentation

CslibFrontier.GameTheory.Strategic.NoRegret

No-regret dynamics and the price of anarchy #

In repeated play of a cost-minimization game, round t produces a distribution σ t on profiles. Player i has regret at most R i after T rounds if, for every fixed strategy a, its total expected cost ∑ t < T, E_{σ t}[cost i] exceeds the total expected cost ∑ t < T, E_{s ∼ σ t}[cost i (update s i a)] of always playing a by at most R i ([Rou13], Lecture 17, Definition 1.2 and §3). Thus R i bounds the total regret, whereas Definition 1.2 measures time-averaged regret: the source's ε in Proposition 3.1 and its R_i in Corollary 3.3 correspond to R i / T here. The time average timeAverage σ T = (1/T) ∑ t < T, σ t of the distributions is then a coarse correlated equilibrium up to the additive slack R i / T ([Rou13], Lecture 17, Proposition 3.1). With the robust price of anarchy of smooth games (CostGame.IsSmooth.expected_socialCost_le_of_forall_le), the total expected social cost of T rounds in a (λ, μ)-smooth game with μ < 1 is at most (T λ socialCost s' + ∑ i, R i) / (1 - μ) for every profile s' ([Rou13], Lecture 17, Corollary 3.3; [Rou15b], Theorem 3.3 and Remark 3.4, inequality (25)).

The source states Corollary 3.3 for the time average and leaves its proof as an exercise. We prove the equivalent bound for totals, which also covers T = 0, and the time-average form for 0 < T.

These statements hold for arbitrary sequences of distributions, not only product distributions. For the multiplicative-update dynamics, in which every player runs Hedge, see CslibFrontier.GameTheory.Strategic.Hedge.

Main definitions #

Main results #

References #

noncomputable def Cslib.GameTheory.timeAverage {X : Type u_1} (σ : ℕ → Convexity.StdSimplex ℝ X) (T : ℕ) (hT : 0 < T) :

The time average (1/T) ∑ t < T, σ t of the distributions σ 0, …, σ (T - 1), for 0 < T ([Rou13], Lecture 17, Proposition 3.1).

theorem Cslib.GameTheory.timeAverage_sum {X : Type u_1} (σ : ℕ → Convexity.StdSimplex ℝ X) {T : ℕ} (hT : 0 < T) (f : X → ℝ) :
((timeAverage σ T hT).sum fun (x : X) (w : ℝ) => w * f x) = (∑ t ∈ Finset.range T, (σ t).sum fun (x : X) (w : ℝ) => w * f x) / ↑T

Expectations under the time average are the time averages of the expectations.

theorem Cslib.GameTheory.CostGame.timeAverage_le_add {ι : Type u_2} {S : ι → Type u_3} [DecidableEq ι] {G : CostGame ι S} {σ : ℕ → Convexity.StdSimplex ℝ ((i : ι) → S i)} {T : ℕ} (hT : 0 < T) {R : ι → ℝ} (hR : ∀ (i : ι) (a : S i), (∑ t ∈ Finset.range T, (σ t).sum fun (s : (i : ι) → S i) (w : ℝ) => w * G.cost i s) ≤ (∑ t ∈ Finset.range T, (σ t).sum fun (s : (i : ι) → S i) (w : ℝ) => w * G.cost i (Function.update s i a)) + R i) (i : ι) (a : S i) :
((timeAverage σ T hT).sum fun (s : (i : ι) → S i) (w : ℝ) => w * G.cost i s) ≤ ((timeAverage σ T hT).sum fun (s : (i : ι) → S i) (w : ℝ) => w * G.cost i (Function.update s i a)) + R i / ↑T

No-regret play yields approximate coarse correlated equilibria ([Rou13], Lecture 17, Proposition 3.1): if after T rounds player i has total regret at most R i with respect to every fixed strategy, then the time average of the distributions satisfies the coarse correlated equilibrium inequalities up to the additive slack R i / T, the time-averaged regret that the source calls ε.

theorem Cslib.GameTheory.CostGame.IsSmooth.timeAverage_expected_socialCost_le {ι : Type u_2} {S : ι → Type u_3} [DecidableEq ι] {G : CostGame ι S} [Fintype ι] {lam μ : ℝ} (hG : G.IsSmooth lam μ) (hμ : μ < 1) {σ : ℕ → Convexity.StdSimplex ℝ ((i : ι) → S i)} {T : ℕ} (hT : 0 < T) {R : ι → ℝ} (hR : ∀ (i : ι) (a : S i), (∑ t ∈ Finset.range T, (σ t).sum fun (s : (i : ι) → S i) (w : ℝ) => w * G.cost i s) ≤ (∑ t ∈ Finset.range T, (σ t).sum fun (s : (i : ι) → S i) (w : ℝ) => w * G.cost i (Function.update s i a)) + R i) (s' : (i : ι) → S i) :
((timeAverage σ T hT).sum fun (s : (i : ι) → S i) (w : ℝ) => w * G.socialCost s) ≤ (lam * G.socialCost s' + ∑ i : ι, R i / ↑T) / (1 - μ)

The robust price of anarchy of no-regret play, time-average form ([Rou13], Lecture 17, Corollary 3.3): if G is (λ, μ)-smooth with μ < 1 and after T > 0 rounds player i has total regret at most R i, then the expected social cost under the time average of the distributions is at most (λ socialCost s' + ∑ i, R i / T) / (1 - μ) for every profile s'. The time-averaged regrets R i / T are the source's R_i.

theorem Cslib.GameTheory.CostGame.IsSmooth.sum_expected_socialCost_le {ι : Type u_2} {S : ι → Type u_3} [DecidableEq ι] {G : CostGame ι S} [Fintype ι] {lam μ : ℝ} (hG : G.IsSmooth lam μ) (hμ : μ < 1) {σ : ℕ → Convexity.StdSimplex ℝ ((i : ι) → S i)} {T : ℕ} {R : ι → ℝ} (hR : ∀ (i : ι) (a : S i), (∑ t ∈ Finset.range T, (σ t).sum fun (s : (i : ι) → S i) (w : ℝ) => w * G.cost i s) ≤ (∑ t ∈ Finset.range T, (σ t).sum fun (s : (i : ι) → S i) (w : ℝ) => w * G.cost i (Function.update s i a)) + R i) (s' : (i : ι) → S i) :
(∑ t ∈ Finset.range T, (σ t).sum fun (s : (i : ι) → S i) (w : ℝ) => w * G.socialCost s) ≤ (↑T * lam * G.socialCost s' + ∑ i : ι, R i) / (1 - μ)

The robust price of anarchy of no-regret play, total form ([Rou13], Lecture 17, Corollary 3.3; [Rou15b], Theorem 3.3 and Remark 3.4, inequality (25)): if G is (λ, μ)-smooth with μ < 1 and after T rounds player i has total regret at most R i, then the total expected social cost of the T rounds is at most (T λ socialCost s' + ∑ i, R i) / (1 - μ) for every profile s'. Dividing by T > 0 gives the source's time-averaged statement with R_i = R i / T.