The multiplicative weights update method is an algorithmic technique most commonly used for decision making and prediction, and also widely deployed in game theory and algorithm design. The simplest use case is the problem of prediction from expert advice, in which a decision maker needs to iteratively decide on an expert whose advice to follow. The method assigns initial weights to the experts (usually identical initial weights), and updates these weights multiplicatively and iteratively according to the feedback of how well an expert performed: reducing it in case of poor performance, and increasing it otherwise.[1] It was discovered repeatedly in very diverse fields such as machine learning (AdaBoost, Winnow, Hedge), optimization (solving linear programs), theoretical computer science (devising fast algorithm for LPs and SDPs), and game theory.
"Multiplicative weights" implies the iterative rule used in algorithms derived from the multiplicative weight update method.[2] It is given with different names in the different fields where it was discovered or rediscovered.
The earliest known version of this technique was in an algorithm named "fictitious play" which was proposed in game theory in the early 1950s. Grigoriadis and Khachiyan[3] applied a randomized variant of "fictitious play" to solve two-player zero-sum games efficiently using the multiplicative weights algorithm. In this case, player allocates higher weight to the actions that had a better outcome and choose his strategy relying on these weights. In machine learning, Littlestone applied the earliest form of the multiplicative weights update rule in his famous winnow algorithm, which is similar to Minsky and Papert's earlier perceptron learning algorithm. Later, he generalized the winnow algorithm to weighted majority algorithm. Freund and Schapire followed his steps and generalized the winnow algorithm in the form of hedge algorithm.
The multiplicative weights algorithm is also widely applied in computational geometry such as Kenneth Clarkson's algorithm for linear programming (LP) with a bounded number of variables in linear time.[4] [5] Later, Bronnimann and Goodrich employed analogous methods to find set covers for hypergraphs with small VC dimension.[6]
In operations research and on-line statistical decision making problem field, the weighted majority algorithm and its more complicated versions have been found independently.
In computer science field, some researchers have previously observed the close relationships between multiplicative update algorithms used in different contexts. Young discovered the similarities between fast LP algorithms and Raghavan's method of pessimistic estimators for derandomization of randomized rounding algorithms; Klivans and Servedio linked boosting algorithms in learning theory to proofs of Yao's XOR Lemma; Garg and Khandekar defined a common framework for convex optimization problems that contains Garg-Konemann and Plotkin-Shmoys-Tardos as subcases.[1]
The Hedge algorithm is a special case of mirror descent.
A binary decision needs to be made based on n experts’ opinions to attain an associated payoff. In the first round, all experts’ opinions have the same weight. The decision maker will make the first decision based on the majority of the experts' prediction. Then, in each successive round, the decision maker will repeatedly update the weight of each expert's opinion depending on the correctness of his prior predictions. Real life examples includes predicting if it is rainy tomorrow or if the stock market will go up or go down.
Given a sequential game played between an adversary and an aggregator who is advised by N experts, the goal is for the aggregator to make as few mistakes as possible. Assume there is an expert among the N experts who always gives the correct prediction. In the halving algorithm, only the consistent experts are retained. Experts who make mistakes will be dismissed. For every decision, the aggregator decides by taking a majority vote among the remaining experts. Therefore, every time the aggregator makes a mistake, at least half of the remaining experts are dismissed. The aggregator makes at most mistakes.[8]
Unlike halving algorithm which dismisses experts who have made mistakes, weighted majority algorithm discounts their advice. Given the same "expert advice" setup, suppose we have n decisions, and we need to select one decision for each loop. In each loop, every decision incurs a cost. All costs will be revealed after making the choice. The cost is 0 if the expert is correct, and 1 otherwise. this algorithm's goal is to limit its cumulative losses to roughly the same as the best of experts.The very first algorithm that makes choice based on majority vote every iteration does not work since the majority of the experts can be wrong consistently every time. The weighted majority algorithm corrects above trivial algorithm by keeping a weight of experts instead of fixing the cost at either 1 or 0. This would make fewer mistakes compared to halving algorithm.
Initialization: Fix an
η\le1/2
1 | |
{w | |
i} |
t
1
2
T
t,..., | |
w1 |
t | |
wn |
t+1 | |
w | |
i |
(1-η)
t | |
w | |
i |
If
η=0
η
η=1/2
After
T
T | |
m | |
i |
MT
i
MT\leq2(1+η)
T+ | |
m | |
i |
2ln(n) | |
η |
In particular, this holds for i which is the best expert. Since the best expert will have the least
T | |
m | |
i |
This algorithm can be understood as follows:[10]
Given the same setup with N experts. Consider the special situation where the proportions of experts predicting positive and negative, counting the weights, are both close to 50%. Then, there might be a tie. Following the weight update rule in weighted majority algorithm, the predictions made by the algorithm would be randomized. The algorithm calculates the probabilities of experts predicting positive or negatives, and then makes a random decision based on the computed fraction:
predict
f(x)=\begin{cases}1&withprobability
q1 | |
W |
\\0&otherwise\end{cases}
where
W=\sumi{wi}=q0+q1
The number of mistakes made by the randomized weighted majority algorithm is bounded as:
E\left[\#mistakesofthelearner\right]\leq\alpha\beta\left(\#mistakesofthebestexpert\right)+c\betaln(N)
where
\alpha\beta=
| |||||
1-\beta |
c | ||||
|
Note that only the learning algorithm is randomized. The underlying assumption is that the examples and experts' predictions are not random. The only randomness is the randomness where the learner makes his own prediction.In this randomized algorithm,
\alpha\beta → 1
\beta → 1
η=1/2
0\leqη\leq1
The multiplicative weights method is usually used to solve a constrained optimization problem. Let each expert be the constraint in the problem, and the events represent the points in the area of interest. The punishment of the expert corresponds to how well its corresponding constraint is satisfied on the point represented by an event.
Suppose we were given the distribution
P
A
n
When the row player
pr
i
pc
j
pc
A\left(i,j\right)
Aij
A\left(i,j\right)\in\left[0,1\right]
If player
pr
i
P
pc
j
A\left(P,j\right)=Ei\left[A\left(i,j\right)\right]
To maximize
A\left(P,j\right)
pc
j
pl
A\left(i,P\right)=Ej\in\left[A\left(i,j\right)\right]
i
minPmaxjA\left(P,j\right)=maxQminiA\left(i,Q\right)
Then, let
λ*
\delta>0
\delta
λ*-\delta\leqminiA\left(i,q\right)
maxjA\left(p,j\right)\leqλ*+\delta
So there is an algorithm solving zero-sum game up to an additive factor of δ using O(/
\delta2
Bailey and Piliouras showed that although the time average behavior of multiplicative weights update converges to Nash equilibria in zero-sum games the day-to-day (last iterate) behavior diverges away from it.[12]
In machine learning, Littlestone and Warmuth generalized the winnow algorithm to the weighted majority algorithm.[13] Later, Freund and Schapire generalized it in the form of hedge algorithm. AdaBoost Algorithm formulated by Yoav Freund and Robert Schapire also employed the Multiplicative Weight Update Method.
Based on current knowledge in algorithms, the multiplicative weight update method was first used in Littlestone's winnow algorithm. It is used in machine learning to solve a linear program.
Given
m
\left(a1,l1\right),…,\left(am,lm\right)
aj\inRn
lj\in\left\{-1,1\right\}
The aim is to find non-negative weights such that for all examples, the sign of the weighted combination of the features matches its labels. That is, require that
ljajx\geq0
j
aj
ljaj
\forallj=1,2,…,m:ajx\geq0
1*x=1
\foralli:xi\geq0
This is general form of LP.
The hedge algorithm is similar to the weighted majority algorithm. However, their exponential update rules are different.It is generally used to solve the problem of binary allocation in which we need to allocate different portion of resources into N different options. The loss with every option is available at the end of every iteration. The goal is to reduce the total loss suffered for a particular allocation. The allocation for the following iteration is then revised, based on the total loss suffered in the current iteration using multiplicative update.[14]
Assume the learning rate
η>0
t\in[T]
pt
i
\sumtptmt\leq\sumt
t | ||
m | + | |
i |
ln(N) | |
η |
+ηT
Initialization: Fix an
η>0
1 | |
w | |
i |
t= | |
p | |
i |
| |||||||
\Phit |
\Phit=\sumi
t | |
w | |
i |
mt
t+1 | |
w | |
i |
=
t | |
w | |
i |
\exp(-η
t | |
m | |
i |
This algorithm[15] maintains a set of weights
wt
t
pt
ht
ht
wt+1
hf
hf
Input: Sequence of
N
x1
y1
xN
yN
D
N
T
1 | |
w | |
i |
=D(i)
i=1,2,...,N
t=1,2,...,T
| |||||||||||||||||||
p |
pt
ht:X →
ht:\epsilont=
N | |
\sum | |
i=1 |
t | |
p | |
i |
|ht(xi)-yi|
\betat=
\epsilont | |
1-\epsilont |
t+1 | |
w | |
i |
t | |
=w | |
i |
1-|ht(xi)-yi| | |
\beta | |
t |
f(x)=hf(x)=\begin{cases}1&if
T | |
\sum | |
t=1 |
(log(1/\betat))ht(x)\geq
1 | |
2 |
T | |
\sum | |
t=1 |
log(1/\betat)\\0&otherwise\end{cases}
Given a
m x n
A
b\inRn
x
Ax\geqb
\exists?x:Ax\geqb
Using the oracle algorithm in solving zero-sum problem, with an error parameter
\epsilon>0
x
Ax\geqb-\epsilon
x
Given vector
p\in\Deltan
\exists?x:psfTAx\geqpsf{T}b
If there exists a x satisfying (1), then x satisfies (2) for all
p\in\Deltan
p
x
maxi|{(Ax)}i-bi|\leq1
2\epsilon
ln(m) | |
\epsilon2 |