Multiplicative updates for learning with experts #
A learner chooses among the experts ι (a nonempty finite type) in rounds t = 0, 1, …. In round
t it plays a distribution on ι; then the loss vector ℓ t : ι → ℝ is revealed and the learner
pays the expected loss ∑ i, prob φ ℓ t i * ℓ t i. A multiplicative update with factor φ
gives expert i the weight ∏ s < t, φ (ℓ s i) (weight), and plays the weights normalized by
their sum, the potential (potential, prob) [AroraHazanKale2012, §2]. The distribution in
round t depends only on the losses of the rounds before t (prob_congr), so the learner is
online. The factors 1 - η x (multiplicative weights) and exp (-η x) (Hedge) are the instances
studied in the files MultiplicativeWeights and Hedge.
All bounds below hold for every loss sequence ℓ. They therefore cover an adaptive adversary,
whose loss vector in each round depends on the learner's current distribution: such an adversary
adv produces the loss sequence adaptiveLoss φ adv, which satisfies
adaptiveLoss φ adv t = adv t (prob φ (adaptiveLoss φ adv) t) (adaptiveLoss_eq).
The analysis rests on one potential inequality (sum_log_le_log_card_add): the potential starts
at n = card ι, is at least the weight of any single expert, and is multiplied in round t by
the expected update factor ∑ i, prob φ ℓ t i * φ (ℓ t i). Taking logarithms, for every expert
i,
∑ s < t, log φ (ℓ s i) ≤ log n + ∑ s < t, log (∑ j, prob φ ℓ s j * φ (ℓ s j)).
This is the argument of [AroraHazanKale2012, proof of Theorem 2.1], stated once for every
positive factor.
The tuned learning rate η = √(L / T) balances the two terms η T + L / η of the regret bounds
at 2 √(T L) (sqrt_div_mul_add_div_sqrt_div).
The declarations of the experts setting live in the namespace
Cslib.MachineLearning.OnlineLearning.Experts.
Main definitions #
Cslib.MachineLearning.OnlineLearning.Experts.weight,Cslib.MachineLearning.OnlineLearning.Experts.potential,Cslib.MachineLearning.OnlineLearning.Experts.prob: the weights, their sum and the learner's distribution under a multiplicative update.Cslib.MachineLearning.OnlineLearning.Experts.adaptiveLoss: the losses produced by an adaptive adversary against a multiplicative update.
Main results #
Cslib.MachineLearning.OnlineLearning.Experts.sum_prob,Cslib.MachineLearning.OnlineLearning.Experts.prob_pos: the learner plays a distribution, with full support.Cslib.MachineLearning.OnlineLearning.Experts.prob_congr: the distribution in roundtdepends only on the losses before roundt.Cslib.MachineLearning.OnlineLearning.Experts.prob_succ: the distribution is updated multiplicatively and renormalized.Cslib.MachineLearning.OnlineLearning.Experts.potential_eq_card_mul_prod,Cslib.MachineLearning.OnlineLearning.Experts.log_potential: the potential isntimes the product of the expected update factors.Cslib.MachineLearning.OnlineLearning.Experts.sum_log_le_log_card_add: the potential inequality.Cslib.MachineLearning.OnlineLearning.Experts.adaptiveLoss_eq: adaptive adversaries.Cslib.MachineLearning.OnlineLearning.Experts.sqrt_div_mul_add_div_sqrt_div: the tuned learning rate.
References #
The distribution is updated multiplicatively: the probability of expert i in round t + 1
is its probability in round t times its update factor, normalized by the expected update
factor.
The logarithm of the potential: log n plus the logarithms of the expected update factors.
The potential inequality [AroraHazanKale2012, proof of Theorem 2.1]: the weight of any
expert is at most the potential, so for every expert i, the logarithms of its update factors sum
to at most log n plus the logarithms of the learner's expected update factors.
Adaptive adversaries #
The weights against adaptiveLoss φ adv are the adaptive weights.
Against adaptiveLoss φ adv, the loss vector of round t is the adversary's response to the
learner's distribution in round t. So the regret bounds, which hold for every loss sequence,
hold against adaptive adversaries.