Expert Problem and Hedge Algorithm

Research Depth 72 in the knowledge graph I know this Set as goal
online-learning experts hedge prediction

Core Idea

The expert problem is the canonical online learning setting: at each round, a learner must choose among N experts' advice, then suffers the loss of the chosen expert. The goal is to achieve cumulative loss close to the best expert in hindsight. The Hedge algorithm (also called the exponential weights algorithm) solves this by maintaining a probability distribution over experts, updated multiplicatively: p_i^{(t+1)} proportional to p_i^{(t)} * exp(-eta * loss_i^{(t)}). Hedge achieves regret O(sqrt(T * ln N)), which is optimal — no algorithm can do better against an adversary. The expert problem serves as the theoretical foundation for ensemble methods, model selection, and boosting.

Explainer

The expert problem is the simplest and most fundamental setting in online learning. Each round, N experts offer advice (implicitly, through their predicted actions), the learner chooses one or randomizes among them, and then nature reveals the outcome and each expert's loss. The learner's goal is to minimize regret — the gap between its cumulative loss and the best expert's cumulative loss in hindsight. No assumptions are made about how the losses are generated; they could be adversarial.

The Hedge algorithm solves this problem optimally. It maintains a weight w_i for each expert, initialized to 1. At each round: assign probability p_i = w_i / sum_j w_j to expert i, sample an expert according to this distribution (or play the mixed strategy directly if losses are linear), observe all experts' losses, and update w_i <- w_i * exp(-eta * loss_i). The exponential update is the defining feature: experts with high loss see their weights decrease exponentially, while low-loss experts maintain or increase their relative weight. Over time, the distribution concentrates on consistently good experts.

The regret analysis uses a potential function argument. Define Phi_t = ln(sum_i w_i^{(t)}). The potential decreases each round by at least eta * (learner's expected loss) - eta^2 (a second-order correction). At the end, the potential is at least ln(w_best^{(T)}) = -eta * (best expert's total loss). Combining the upper and lower bounds on the potential change gives: learner's loss <= best expert's loss + (ln N)/eta + eta * T. The optimal eta = sqrt(ln(N)/T) balances these terms, yielding regret 2 * sqrt(T * ln N).

The O(sqrt(T * ln N)) regret bound is optimal — a matching lower bound shows no algorithm can achieve o(sqrt(T * ln N)) regret in the worst case. The logarithmic dependence on N is remarkable and practically important: the cost of including additional experts is negligible. This makes the expert framework a natural foundation for ensemble methods (combine many base learners), model selection (compete with a pool of candidate models), and online portfolio selection (compete with the best stock in hindsight). The Hedge algorithm also serves as the template for more sophisticated online learning algorithms — online mirror descent generalizes Hedge from discrete experts to continuous action spaces, inheriting its optimal regret guarantees.

Practice Questions 4 questions

Prerequisite Chain

Counting to 10Counting to 20Understanding ZeroThe Number ZeroCounting to FiveOne-to-One CorrespondenceCombining Small Groups Within 5Addition Within 10Addition Within 20Two-Digit Addition Without RegroupingTwo-Digit Addition with RegroupingAddition Within 100Repeated Addition as MultiplicationMultiplication Facts Within 100Division as Equal SharingDivision as Grouping (Measurement Division)Division: Grouping (Repeated Subtraction) ModelDivision: Fair Sharing ModelDivision as Equal SharingDivision as GroupingBasic Division FactsDivision Facts Within 100Two-Digit by One-Digit DivisionDivision with RemaindersRemainders and Quotients in DivisionDivision Word ProblemsIntroduction to Long DivisionFactors and MultiplesPrime and Composite NumbersEquivalent FractionsRelating Fractions and DecimalsDecimal Place ValueReading and Writing DecimalsComparing and Ordering DecimalsAdding and Subtracting DecimalsMultiplying DecimalsDividing DecimalsDividing FractionsMixed Number ArithmeticOrder of OperationsInteger Order of OperationsVariable ExpressionsCombining Like TermsOne-Step EquationsTwo-Step EquationsSolving Multi-Step EquationsEquations with Variables on Both SidesLiteral EquationsSlope-Intercept FormPoint-Slope FormWriting Linear EquationsParallel and Perpendicular Line SlopesGraphing Linear EquationsPiecewise FunctionsStep FunctionsComposition of FunctionsInverse FunctionsRadical Functions and GraphsRational ExponentsExponential Functions and GraphsGeometric Sequences and SeriesSigma NotationExpected ValueLinear Regression in Machine LearningNeural Network FundamentalsBackpropagation AlgorithmMultilayer Perceptrons (MLPs)Vanishing Gradient ProblemGradient Descent and OptimizationConvex Optimization FundamentalsOnline Learning and Regret BoundsMultiplicative Weights MethodExpert Problem and Hedge Algorithm

Longest path: 73 steps · 475 total prerequisite topics

Prerequisites (3)

Leads To (0)

No topics depend on this one yet.