MIT 6.1220 — Lecture 17
Multiplicative Weights
Setup. A learner has experts. At time step , expert makes a prediction . The learner makes predictions based on the experts' predictions. The learner's goal is to perform well relative to the experts.
Solution. (Weighted Majority) Initialize weights for each expert . At each step,
Make a prediction based on the weighted majority of experts.
Update if expert made an incorrect prediction.
Suppose after time steps that the best expert makes mistakes and the learner makes mistakes. Then:
Remark. If is low, then you take too long to understand your experts, and dominates.
If is high, then you distrust your experts too easily, and dominates.
This bound is tight; we'll prove this in the problem set.
Proof: Let . Then at time step ,
If the learner is correct, we have . (This is the best possible bound!)
If the learner is wrong, we have:
The above implies that:
Taking logs yields the result. The final algebraic step is nonobvious; it holds for .
Remark. As the number of timesteps , you do at most twice as bad as the best expert.
Also, realistically, one would choose . The bound fails for for silly post-taking-logs reasons.
Definition (Online Learning). Let be the set of possible actions. At each time step ,
The learner picks a probability distribution over .
The adversary picks a cost function , possibly dependent on .
The learner picks from according to , incurs cost , and learns the cost.
Example. The weighted majority example has the following:
Definition. We have:
The expected cost is . There is also an expected benchmark .
The regret is , and we say there is vanishing regret if .
What is a reasonable benchmark?
We might set to be “the best action in hindsight”.
However, this is too high a standard: it is impossible to achieve vanishing regret. (Why?)
Instead, set to be “the best fixed action in hindsight”.
In other words, for each , there is an expert that predicts “” at every timestep.
Unfortunately, the weighted majority algorithm does not achieve vanishing regret. Indeed, .
Solution. (Multiplicative Weights) Update experts' weights as in the weighted majority algorithm.
Instead of making the highest-weighted decision, pick an expert to mimic at each step probabilistically by weight. Then if is the total cost incurred by the learner, we have:
Proof: We use the following notation:
Let be the cost incurred at step .
Let be an indicator variable that equals if expert made a mistake at time , and otherwise.
It follows that . Therefore,
If we keep multiplying these factors across all , we find:
And now take logs to get the desired inequality.
Remark. Again, the post-taking-logs step only holds for . Again, just assume .
And of course, this implies multiplicative weights has vanishing regret—so long as we shrink as grows, say .